// File: /workspace/github_cpp_makefile_star2_O1/statgen[P]statgen/lib/samtools-0.1.7a-hybrid/kaln.c
// Function: ka_global_core
uint32_t *ka_global_core(uint8_t *seq1, int len1, uint8_t *seq2, int len2, const ka_param_t *ap, int *_score, int *n_cigar)
{
	int i, j;
	dpcell_t **dpcell, *q;
	dpscore_t *curr, *last, *s;
	int b1, b2, tmp_end;
	int *mat, end, max = 0;
	uint8_t type, ctype;
	uint32_t *cigar = 0;

	int gap_open, gap_ext, gap_end, b;
	int *score_matrix, N_MATRIX_ROW;

	/* initialize some align-related parameters. just for compatibility */
	gap_open = ap->gap_open;
	gap_ext = ap->gap_ext;
	gap_end = ap->gap_end;
	b = ap->band_width;
	score_matrix = ap->matrix;
	N_MATRIX_ROW = ap->row;

	*n_cigar = 0;
	if (len1 == 0 || len2 == 0) return 0;

	/* calculate b1 and b2 */
	if (len1 > len2) {
		b1 = len1 - len2 + b;
		b2 = b;
	} else {
		b1 = b;
		b2 = len2 - len1 + b;
	}
	if (b1 > len1) b1 = len1;
	if (b2 > len2) b2 = len2;
	--seq1; --seq2;

	/* allocate memory */
	end = (b1 + b2 <= len1)? (b1 + b2 + 1) : (len1 + 1);
	dpcell = (dpcell_t**)malloc(sizeof(dpcell_t*) * (len2 + 1));
	for (j = 0; j <= len2; ++j)
		dpcell[j] = (dpcell_t*)malloc(sizeof(dpcell_t) * end);
	for (j = b2 + 1; j <= len2; ++j)
		dpcell[j] -= j - b2;
	curr = (dpscore_t*)malloc(sizeof(dpscore_t) * (len1 + 1));
	last = (dpscore_t*)malloc(sizeof(dpscore_t) * (len1 + 1));
	
	/* set first row */
	SET_INF(*curr); curr->M = 0;
	for (i = 1, s = curr + 1; i < b1; ++i, ++s) {
		SET_INF(*s);
		set_end_D(s->D, dpcell[0] + i, s - 1);
	}
	s = curr; curr = last; last = s;

	/* core dynamic programming, part 1 */
	tmp_end = (b2 < len2)? b2 : len2 - 1;
	for (j = 1; j <= tmp_end; ++j) {
		q = dpcell[j]; s = curr; SET_INF(*s);
		set_end_I(s->I, q, last);
		end = (j + b1 <= len1 + 1)? (j + b1 - 1) : len1;
		mat = score_matrix + seq2[j] * N_MATRIX_ROW;
		++s; ++q;
		for (i = 1; i != end; ++i, ++s, ++q) {
			set_M(s->M, q, last + i - 1, mat[seq1[i]]); /* this will change s->M ! */
			set_I(s->I, q, last + i);
			set_D(s->D, q, s - 1);
		}
		set_M(s->M, q, last + i - 1, mat[seq1[i]]);
		set_D(s->D, q, s - 1);
		if (j + b1 - 1 > len1) { /* bug fixed, 040227 */
			set_end_I(s->I, q, last + i);
		} else s->I = MINOR_INF;
		s = curr; curr = last; last = s;
	}
	/* last row for part 1, use set_end_D() instead of set_D() */
	if (j == len2 && b2 != len2 - 1) {
		q = dpcell[j]; s = curr; SET_INF(*s);
		set_end_I(s->I, q, last);
		end = (j + b1 <= len1 + 1)? (j + b1 - 1) : len1;
		mat = score_matrix + seq2[j] * N_MATRIX_ROW;
		++s; ++q;
		for (i = 1; i != end; ++i, ++s, ++q) {
			set_M(s->M, q, last + i - 1, mat[seq1[i]]); /* this will change s->M ! */
			set_I(s->I, q, last + i);
			set_end_D(s->D, q, s - 1);
		}
		set_M(s->M, q, last + i - 1, mat[seq1[i]]);
		set_end_D(s->D, q, s - 1);
		if (j + b1 - 1 > len1) { /* bug fixed, 040227 */
			set_end_I(s->I, q, last + i);
		} else s->I = MINOR_INF;
		s = curr; curr = last; last = s;
		++j;
	}

	/* core dynamic programming, part 2 */
	for (; j <= len2 - b2 + 1; ++j) {
		SET_INF(curr[j - b2]);
		mat = score_matrix + seq2[j] * N_MATRIX_ROW;
		end = j + b1 - 1;
		for (i = j - b2 + 1, q = dpcell[j] + i, s = curr + i; i != end; ++i, ++s, ++q) {
			set_M(s->M, q, last + i - 1, mat[seq1[i]]);
			set_I(s->I, q, last + i);
			set_D(s->D, q, s - 1);
		}
		set_M(s->M, q, last + i - 1, mat[seq1[i]]);
		set_D(s->D, q, s - 1);
		s->I = MINOR_INF;
		s = curr; curr = last; last = s;
	}

	/* core dynamic programming, part 3 */
	for (; j < len2; ++j) {
		SET_INF(curr[j - b2]);
		mat = score_matrix + seq2[j] * N_MATRIX_ROW;
		for (i = j - b2 + 1, q = dpcell[j] + i, s = curr + i; i < len1; ++i, ++s, ++q) {
			set_M(s->M, q, last + i - 1, mat[seq1[i]]);
			set_I(s->I, q, last + i);
			set_D(s->D, q, s - 1);
		}
		set_M(s->M, q, last + len1 - 1, mat[seq1[i]]);
		set_end_I(s->I, q, last + i);
		set_D(s->D, q, s - 1);
		s = curr; curr = last; last = s;
	}
	/* last row */
	if (j == len2) {
		SET_INF(curr[j - b2]);
		mat = score_matrix + seq2[j] * N_MATRIX_ROW;
		for (i = j - b2 + 1, q = dpcell[j] + i, s = curr + i; i < len1; ++i, ++s, ++q) {
			set_M(s->M, q, last + i - 1, mat[seq1[i]]);
			set_I(s->I, q, last + i);
			set_end_D(s->D, q, s - 1);
		}
		set_M(s->M, q, last + len1 - 1, mat[seq1[i]]);
		set_end_I(s->I, q, last + i);
		set_end_D(s->D, q, s - 1);
		s = curr; curr = last; last = s;
	}

	*_score = last[len1].M;
	if (n_cigar) { /* backtrace */
		path_t *p, *path = (path_t*)malloc(sizeof(path_t) * (len1 + len2 + 2));
		i = len1; j = len2;
		q = dpcell[j] + i;
		s = last + len1;
		max = s->M; type = q->Mt; ctype = FROM_M;
		if (s->I > max) { max = s->I; type = q->It; ctype = FROM_I; }
		if (s->D > max) { max = s->D; type = q->Dt; ctype = FROM_D; }

		p = path;
		p->ctype = ctype; p->i = i; p->j = j; /* bug fixed 040408 */
		++p;
		do {
			switch (ctype) {
			case FROM_M: --i; --j; break;
			case FROM_I: --j; break;
			case FROM_D: --i; break;
			}
			q = dpcell[j] + i;
			ctype = type;
			switch (type) {
			case FROM_M: type = q->Mt; break;
			case FROM_I: type = q->It; break;
			case FROM_D: type = q->Dt; break;
			}
			p->ctype = ctype; p->i = i; p->j = j;
			++p;
		} while (i || j);
		cigar = ka_path2cigar32(path, p - path - 1, n_cigar);
		free(path);
	}

	/* free memory */
	for (j = b2 + 1; j <= len2; ++j)
		dpcell[j] += j - b2;
	for (j = 0; j <= len2; ++j)
		free(dpcell[j]);
	free(dpcell);
	free(curr); free(last);

	return cigar;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movl %ecx, %ebx
movq %rdx, 0x70(%rsp)
movq %rdi, 0x40(%rsp)
movq 0x100(%rsp), %rcx
movl (%r8), %ebp
movl 0x4(%r8), %r14d
movl 0x8(%r8), %edi
movl 0x1c(%r8), %eax
movq 0x10(%r8), %rdx
movq %rdx, 0xa0(%rsp)
movslq 0x18(%r8), %rdx
movq %rdx, 0x98(%rsp)
movl $0x0, (%rcx)
testl %esi, %esi
sete %cl
testl %ebx, %ebx
sete %dl
xorl %r12d, %r12d
orb %cl, %dl
jne 0xf9ee
movq %rdi, 0x8(%rsp)
movq %r9, 0xb8(%rsp)
movl %esi, %ecx
subl %ebx, %ecx
negl %ecx
movl %esi, %edx
subl %ebx, %edx
cmovlel %r12d, %edx
cmovgl %r12d, %ecx
addl %eax, %edx
addl %eax, %ecx
cmpl %esi, %edx
movq %rsi, 0x20(%rsp)
cmovgel %esi, %edx
movq %rdx, 0x38(%rsp)
cmpl %ebx, %ecx
movl %ebx, %eax
movl %ecx, 0x5c(%rsp)
cmovll %ecx, %eax
movq %rax, 0x60(%rsp)
movslq %ebx, %rax
movq %rax, 0xb0(%rsp)
leaq 0x8(,%rax,8), %rdi
callq 0x31d0
movq %rax, %r13
movq %rbx, 0x10(%rsp)
testl %ebx, %ebx
js 0xe571
movq 0x60(%rsp), %rax
movq 0x38(%rsp), %rcx
addl %ecx, %eax
movq 0x20(%rsp), %rcx
cmpl %ecx, %eax
cmovgel %ecx, %eax
incl %eax
movslq %eax, %rbx
movq 0x10(%rsp), %rax
leal 0x1(%rax), %r15d
xorl %r12d, %r12d
movq %rbx, %rdi
callq 0x31d0
movq %rax, (%r13,%r12,8)
incq %r12
cmpq %r12, %r15
jne 0xe55c
movl 0x5c(%rsp), %eax
cmpl 0x10(%rsp), %eax
jge 0xe5aa
cltq
movslq 0x60(%rsp), %rsi
leaq 0x8(,%rax,8), %rcx
addq %r13, %rcx
notq %rax
addq %rsi, %rax
movq 0x10(%rsp), %rdx
subl %esi, %edx
xorl %esi, %esi
addq %rax, (%rcx,%rsi,8)
decq %rax
incq %rsi
cmpl %esi, %edx
jne 0xe59c
movslq 0x20(%rsp), %rax
movq %rax, 0x80(%rsp)
leaq (,%rax,4), %rax
leaq (%rax,%rax,2), %rbx
addq $0xc, %rbx
movq %rbx, %rdi
callq 0x31d0
movq %rax, %r15
movq %rbx, %rdi
callq 0x31d0
movq %rax, %rbx
movl $0xc0000001, 0x8(%r15)  # imm = 0xC0000001
movabsq $-0x3fffffff00000000, %rax # imm = 0xC000000100000000
movq %rax, (%r15)
cmpl $0x2, 0x38(%rsp)
jl 0xe691
leal (%r14,%rbp), %eax
movq 0x8(%rsp), %rcx
addl %ebp, %ecx
movl 0x38(%rsp), %edx
movq (%r13), %rsi
movl $0x1, %edi
movq %r15, %r8
movl $0xc0000001, 0x14(%r8)  # imm = 0xC0000001
movabsq $-0x3ffffffe3fffffff, %r9 # imm = 0xC0000001C0000001
movq %r9, 0xc(%r8)
movl (%r8), %r11d
movl 0x8(%r8), %r12d
subl %ebp, %r11d
leaq 0x8(%r8), %r10
movb (%rsi,%rdi), %r9b
andb $-0x61, %r9b
cmpl $0x0, 0x8(%rsp)
js 0xe658
cmpl %r12d, %r11d
jle 0xe665
movq %r8, %r10
movl %ecx, %r11d
jmp 0xe677
cmpl %r12d, %r11d
jle 0xe670
movq %r8, %r10
movl %eax, %r11d
jmp 0xe677
orb $0x40, %r9b
movq 0x8(%rsp), %r11
jmp 0xe677
orb $0x40, %r9b
movl %r14d, %r11d
movb %r9b, (%rsi,%rdi)
movl (%r10), %r9d
subl %r11d, %r9d
movl %r9d, 0x14(%r8)
addq $0xc, %r8
incq %rdi
cmpq %rdi, %rdx
jne 0xe618
movq 0x20(%rsp), %r9
leal 0x1(%r9), %ecx
movq 0x10(%rsp), %rax
leal -0x1(%rax), %esi
cmpl %eax, 0x5c(%rsp)
movl %esi, %edi
movq 0x60(%rsp), %rdx
cmovll %edx, %edi
testl %edi, %edi
movq %r13, 0x50(%rsp)
movl %ecx, 0x90(%rsp)
jle 0xea15
movl %esi, 0x88(%rsp)
leal (%r14,%rbp), %eax
movl %eax, 0x78(%rsp)
movq 0x8(%rsp), %r11
leal (%r11,%rbp), %eax
movl %eax, 0x48(%rsp)
movslq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movslq %ecx, %rax
movq %rax, 0x68(%rsp)
incl %edi
movl $0x1, %r13d
movq %rdi, 0x18(%rsp)
movq %r15, %rax
movq %rbx, %r15
movq 0x50(%rsp), %rcx
movq (%rcx,%r13,8), %rbx
movl $0xc0000001, 0x8(%r15)  # imm = 0xC0000001
movabsq $-0x3ffffffe3fffffff, %rcx # imm = 0xC0000001C0000001
movq %rcx, (%r15)
movl (%rax), %esi
movl 0x4(%rax), %edi
subl %ebp, %esi
leaq 0x4(%rax), %rdx
movb (%rbx), %cl
andb $-0x19, %cl
testl %r11d, %r11d
js 0xe745
cmpl %edi, %esi
jle 0xe752
movq %rax, %rdx
movl 0x48(%rsp), %esi
jmp 0xe760
cmpl %edi, %esi
jle 0xe75a
movq %rax, %rdx
movl 0x78(%rsp), %esi
jmp 0xe760
orb $0x8, %cl
movl %r11d, %esi
jmp 0xe760
orb $0x8, %cl
movl %r14d, %esi
movb %cl, (%rbx)
movl (%rdx), %ecx
subl %esi, %ecx
movl %ecx, 0x4(%r15)
movq 0x28(%rsp), %rdx
leaq (%rdx,%r13), %rcx
cmpq 0x68(%rsp), %rcx
leaq -0x1(%r13,%rdx), %rcx
movl %ecx, %edx
cmovgl %r9d, %edx
movq 0x70(%rsp), %rsi
movq %r13, 0x30(%rsp)
movzbl -0x1(%rsi,%r13), %esi
imulq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdi
leaq (%rdi,%rsi,4), %r9
leaq 0xc(%r15), %rdi
cmpl $0x1, %edx
jne 0xe7c1
incq %rbx
movl $0x1, %edx
movq %r15, %r12
jmp 0xe8cd
movl %edx, %r12d
leaq 0x10(%rax), %r13
movl $0x1, %r10d
movl -0x10(%r13), %r8d
movl -0xc(%r13), %r11d
movl -0x8(%r13), %esi
movq 0x40(%rsp), %rdx
movzbl -0x1(%rdx,%r10), %edx
movl (%r9,%rdx,4), %edx
cmpl %r11d, %r8d
jge 0xe805
cmpl %esi, %r11d
jle 0xe80a
addl %r11d, %edx
movl %edx, (%rdi)
movb (%rbx,%r10), %sil
andb $-0x8, %sil
incb %sil
jmp 0xe829
cmpl %esi, %r8d
jge 0xe81c
addl %esi, %edx
movl %edx, (%rdi)
movb (%rbx,%r10), %sil
andb $-0x8, %sil
orb $0x2, %sil
jmp 0xe829
addl %r8d, %edx
movl %edx, (%rdi)
movb (%rbx,%r10), %sil
andb $-0x8, %sil
movb %sil, (%rbx,%r10)
leaq -0x4(%r13), %rdx
movl -0x4(%r13), %r8d
subl %ebp, %r8d
andb $-0x19, %sil
leal 0x8(%rsi), %r11d
cmpl (%r13), %r8d
movzbl %sil, %esi
movzbl %r11b, %r8d
cmovgl %esi, %r8d
movl $0x0, %esi
cmovgl %ebp, %esi
cmovleq %r13, %rdx
movb %r8b, (%rbx,%r10)
addl %r14d, %esi
movl (%rdx), %edx
subl %esi, %edx
movl %edx, 0x4(%rdi)
movl -0xc(%rdi), %edx
subl %ebp, %edx
movb (%rbx,%r10), %sil
andb $-0x61, %sil
leal 0x40(%rsi), %r8d
cmpl -0x4(%rdi), %edx
movzbl %sil, %edx
movzbl %r8b, %esi
cmovgl %edx, %esi
leaq -0xc(%rdi), %rdx
movl $0x0, %r8d
cmovgl %ebp, %r8d
leaq -0x4(%rdi), %r11
movb %sil, (%rbx,%r10)
cmovgq %rdx, %r11
addl %r14d, %r8d
movl (%r11), %edx
subl %r8d, %edx
movl %edx, 0x8(%rdi)
incq %r10
addq $0xc, %rdi
addq $0xc, %r13
cmpq %r10, %r12
jne 0xe7ce
movl %r10d, %edx
leaq -0xc(%rdi), %r12
addq %r10, %rbx
leaq (%rdx,%rdx,2), %r10
movl -0xc(%rax,%r10,4), %r8d
movl -0x8(%rax,%r10,4), %r11d
movl -0x4(%rax,%r10,4), %esi
movq 0x40(%rsp), %r13
movzbl -0x1(%r13,%rdx), %edx
movl (%r9,%rdx,4), %edx
cmpl %r11d, %r8d
jge 0xe90a
cmpl %esi, %r11d
jle 0xe925
addl %r11d, %edx
movl %edx, (%rdi)
movb (%rbx), %sil
andb $-0x8, %sil
incb %sil
jmp 0xe934
cmpl %esi, %r8d
movq 0x8(%rsp), %r11
jge 0xe93b
addl %esi, %edx
movl %edx, (%rdi)
movb (%rbx), %sil
andb $-0x8, %sil
orb $0x2, %sil
jmp 0xe947
addl %esi, %edx
movl %edx, (%rdi)
movb (%rbx), %sil
andb $-0x8, %sil
orb $0x2, %sil
movq 0x8(%rsp), %r11
jmp 0xe947
addl %r8d, %edx
movl %edx, (%rdi)
movb (%rbx), %sil
andb $-0x8, %sil
movq 0x30(%rsp), %r13
movb %sil, (%rbx)
movl (%r12), %edx
subl %ebp, %edx
leaq 0x8(%r12), %rdi
andb $-0x61, %sil
leal 0x40(%rsi), %r8d
cmpl 0x8(%r12), %edx
movzbl %sil, %edx
movzbl %r8b, %esi
cmovgl %edx, %esi
movl $0x0, %edx
cmovgl %ebp, %edx
movb %sil, (%rbx)
cmovgq %r12, %rdi
addl %r14d, %edx
movl (%rdi), %esi
subl %edx, %esi
movl %esi, 0x14(%r12)
movl $0xc0000001, %edx       # imm = 0xC0000001
cmpq 0x80(%rsp), %rcx
jle 0xe9e6
leaq (%rax,%r10,4), %rsi
movl (%rsi), %edi
movl 0x4(%rsi), %r8d
subl %ebp, %edi
leaq 0x4(%rsi), %rdx
movb (%rbx), %cl
andb $-0x19, %cl
testl %r11d, %r11d
js 0xe9c4
cmpl %r8d, %edi
jle 0xe9d2
movq %rsi, %rdx
movl 0x48(%rsp), %esi
jmp 0xe9e0
cmpl %r8d, %edi
jle 0xe9da
movq %rsi, %rdx
movl 0x78(%rsp), %esi
jmp 0xe9e0
orb $0x8, %cl
movl %r11d, %esi
jmp 0xe9e0
orb $0x8, %cl
movl %r14d, %esi
movb %cl, (%rbx)
movl (%rdx), %edx
subl %esi, %edx
movl %edx, 0x10(%r12)
incq %r13
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %rdi, %r13
movq 0x20(%rsp), %r9
jne 0xe6ff
movq %rax, %rbx
movq 0x60(%rsp), %rdx
movl 0x88(%rsp), %esi
jmp 0xea20
movl $0x1, %r13d
movq 0x8(%rsp), %r11
cmpl 0x10(%rsp), %r13d
setne %al
cmpl %esi, 0x5c(%rsp)
sete %cl
orb %al, %cl
je 0xea3e
movq %r15, %r10
movq %rbx, %r15
jmp 0xed8c
movl %r13d, %eax
movq 0x50(%rsp), %rcx
movq (%rcx,%rax,8), %rdi
movl $0xc0000001, 0x8(%rbx)  # imm = 0xC0000001
movabsq $-0x3ffffffe3fffffff, %rcx # imm = 0xC0000001C0000001
movq %rcx, (%rbx)
movl (%r15), %edx
movl 0x4(%r15), %esi
subl %ebp, %edx
movb (%rdi), %cl
andb $-0x19, %cl
testl %r11d, %r11d
js 0xea80
cmpl %esi, %edx
jle 0xea91
movb %cl, (%rdi)
movl (%r15), %ecx
leal (%r11,%rbp), %edx
jmp 0xea8d
cmpl %esi, %edx
jle 0xea9f
movb %cl, (%rdi)
movl (%r15), %ecx
leal (%r14,%rbp), %edx
subl %edx, %ecx
jmp 0xeaab
orb $0x8, %cl
movb %cl, (%rdi)
movl 0x4(%r15), %ecx
subl %r11d, %ecx
jmp 0xeaab
orb $0x8, %cl
movb %cl, (%rdi)
movl 0x4(%r15), %ecx
subl %r14d, %ecx
movl %ecx, 0x4(%rbx)
movq 0x38(%rsp), %rdx
leal (%rdx,%r13), %ecx
cmpl 0x90(%rsp), %ecx
leal -0x1(%r13,%rdx), %r12d
movl %r12d, %edx
cmovgl %r9d, %edx
movq 0x70(%rsp), %rcx
movzbl -0x1(%rcx,%rax), %eax
imulq 0x98(%rsp), %rax
movq 0xa0(%rsp), %rcx
leaq (%rcx,%rax,4), %rax
movq %rax, 0x18(%rsp)
leaq 0xc(%rbx), %rax
cmpl $0x1, %edx
jne 0xeb07
incq %rdi
movl $0x1, %edx
movq %rbx, %rsi
jmp 0xec63
movl %r12d, 0x48(%rsp)
movq %r13, 0x30(%rsp)
leal (%r14,%rbp), %ecx
movl %ecx, 0x68(%rsp)
leal (%r11,%rbp), %ecx
movl %ecx, 0x28(%rsp)
movl %edx, %r10d
leaq 0x10(%r15), %r11
movl $0x1, %r8d
movq %rbx, %r12
movq %r12, %r13
movq %rax, %r12
movl -0x10(%r11), %esi
movl -0xc(%r11), %r9d
movl -0x8(%r11), %edx
movq 0x40(%rsp), %rax
movzbl -0x1(%rax,%r8), %eax
movq 0x18(%rsp), %rcx
movl (%rcx,%rax,4), %eax
cmpl %r9d, %esi
jge 0xeb74
cmpl %edx, %r9d
jle 0xeb78
addl %r9d, %eax
movl %eax, (%r12)
movb (%rdi,%r8), %sil
andb $-0x8, %sil
incb %sil
jmp 0xeb9a
cmpl %edx, %esi
jge 0xeb8c
addl %edx, %eax
movl %eax, (%r12)
movb (%rdi,%r8), %sil
andb $-0x8, %sil
orb $0x2, %sil
jmp 0xeb9a
addl %esi, %eax
movl %eax, (%r12)
movb (%rdi,%r8), %sil
andb $-0x8, %sil
leaq -0xc(%r12), %rax
movb %sil, (%rdi,%r8)
leaq -0x4(%r11), %rdx
movl -0x4(%r11), %r9d
subl %ebp, %r9d
andb $-0x19, %sil
leal 0x8(%rsi), %ecx
cmpl (%r11), %r9d
movzbl %sil, %esi
movzbl %cl, %ecx
cmovgl %esi, %ecx
movl $0x0, %esi
cmovgl %ebp, %esi
cmovleq %r11, %rdx
movb %cl, (%rdi,%r8)
addl %r14d, %esi
movl (%rdx), %ecx
subl %esi, %ecx
movl %ecx, 0x4(%r12)
movl -0xc(%r12), %edx
movl -0x4(%r12), %r9d
subl %ebp, %edx
addq $0x8, %r13
movb (%rdi,%r8), %sil
andb $-0x61, %sil
cmpl $0x0, 0x8(%rsp)
js 0xec0b
cmpl %r9d, %edx
jle 0xec19
movq %rax, %r13
movl 0x28(%rsp), %eax
jmp 0xec2b
cmpl %r9d, %edx
jle 0xec24
movq %rax, %r13
movl 0x68(%rsp), %eax
jmp 0xec2b
orb $0x40, %sil
movq 0x8(%rsp), %rax
jmp 0xec2b
orb $0x40, %sil
movl %r14d, %eax
movb %sil, (%rdi,%r8)
movl (%r13), %ecx
subl %eax, %ecx
movl %ecx, 0x8(%r12)
incq %r8
leaq 0xc(%r12), %rax
addq $0xc, %r11
cmpq %r8, %r10
jne 0xeb31
movl %r8d, %edx
leaq -0xc(%rax), %rsi
addq %r8, %rdi
movq 0x30(%rsp), %r13
movl 0x48(%rsp), %r12d
leaq (%rdx,%rdx,2), %r8
movl -0xc(%r15,%r8,4), %r10d
movl -0x8(%r15,%r8,4), %r11d
movl -0x4(%r15,%r8,4), %r9d
movq 0x40(%rsp), %rcx
movzbl -0x1(%rcx,%rdx), %ecx
movq 0x18(%rsp), %rdx
movl (%rdx,%rcx,4), %ecx
cmpl %r11d, %r10d
jge 0xec9f
cmpl %r9d, %r11d
jle 0xecb6
addl %r11d, %ecx
movl %ecx, (%rax)
movb (%rdi), %al
andb $-0x8, %al
incb %al
jmp 0xecc1
cmpl %r9d, %r10d
movq 0x8(%rsp), %r11
jge 0xeccd
addl %r9d, %ecx
movl %ecx, (%rax)
movb (%rdi), %al
andb $-0x8, %al
orb $0x2, %al
jmp 0xecd6
addl %r9d, %ecx
movl %ecx, (%rax)
movb (%rdi), %al
andb $-0x8, %al
orb $0x2, %al
movq 0x20(%rsp), %r9
movq 0x8(%rsp), %r11
jmp 0xecdb
addl %r10d, %ecx
movl %ecx, (%rax)
movb (%rdi), %al
andb $-0x8, %al
movq 0x20(%rsp), %r9
movb %al, (%rdi)
movl (%rsi), %ecx
movl 0x8(%rsi), %edx
subl %ebp, %ecx
andb $-0x61, %al
testl %r11d, %r11d
js 0xecf9
cmpl %edx, %ecx
jle 0xed09
movb %al, (%rdi)
movl (%rsi), %eax
leal (%r11,%rbp), %ecx
jmp 0xed05
cmpl %edx, %ecx
jle 0xed15
movb %al, (%rdi)
movl (%rsi), %eax
leal (%r14,%rbp), %ecx
subl %ecx, %eax
jmp 0xed1f
orb $0x40, %al
movb %al, (%rdi)
movl 0x8(%rsi), %eax
subl %r11d, %eax
jmp 0xed1f
orb $0x40, %al
movb %al, (%rdi)
movl 0x8(%rsi), %eax
subl %r14d, %eax
movl %eax, 0x14(%rsi)
cmpl %r9d, %r12d
jle 0xed4c
leaq (%r15,%r8,4), %rax
movl (%rax), %edx
movl 0x4(%rax), %r8d
subl %ebp, %edx
movb (%rdi), %cl
andb $-0x19, %cl
testl %r11d, %r11d
js 0xed55
cmpl %r8d, %edx
jle 0xed66
movb %cl, (%rdi)
movl (%rax), %eax
leal (%r11,%rbp), %ecx
jmp 0xed62
movl $0xc0000001, 0x10(%rsi) # imm = 0xC0000001
jmp 0xed81
cmpl %r8d, %edx
jle 0xed73
movb %cl, (%rdi)
movl (%rax), %eax
leal (%r14,%rbp), %ecx
subl %ecx, %eax
jmp 0xed7e
orb $0x8, %cl
movb %cl, (%rdi)
movl 0x4(%rax), %eax
subl %r11d, %eax
jmp 0xed7e
orb $0x8, %cl
movb %cl, (%rdi)
movl 0x4(%rax), %eax
subl %r14d, %eax
movl %eax, 0x10(%rsi)
incl %r13d
movq %rbx, %r10
movq 0x60(%rsp), %rdx
movq 0x10(%rsp), %rax
incl %eax
movl %eax, 0xac(%rsp)
subl %edx, %eax
cmpl %eax, %r13d
jle 0xeda9
movq %r15, %r8
jmp 0xf0ce
movslq %r13d, %rsi
subl %edx, %r13d
incl %r13d
movslq %edx, %rdi
cltq
movq %rax, 0x90(%rsp)
movq 0x40(%rsp), %rax
decq %rax
movq %rax, 0xc0(%rsp)
movq 0x38(%rsp), %rcx
movl %ecx, %eax
decl %ecx
movq %rcx, 0x38(%rsp)
leal (%rdx,%rax), %r9d
addl $-0x2, %r9d
movq %rsi, %rax
subq %rdi, %rax
incq %rax
movq %rax, 0x68(%rsp)
leaq (,%rsi,4), %rax
leaq (%rax,%rax,2), %rcx
leaq (,%rdi,4), %rax
leaq (%rax,%rax,2), %rax
subq %rax, %rcx
addq $0xc, %rcx
movq %rcx, 0x48(%rsp)
movq %rdi, 0x78(%rsp)
negq %rdi
movq %rdi, 0x88(%rsp)
movq %r10, %r11
movq %r15, %r10
movq %rsi, %rcx
movq %rsi, %rdx
subq 0x78(%rsp), %rdx
leaq (%rdx,%rdx,2), %r8
movl $0xc0000001, 0x8(%r15,%r8,4) # imm = 0xC0000001
movabsq $-0x3ffffffe3fffffff, %rax # imm = 0xC0000001C0000001
movq %rax, (%r15,%r8,4)
movq 0x70(%rsp), %rax
movzbl -0x1(%rax,%rsi), %eax
imulq 0x98(%rsp), %rax
movq 0xa0(%rsp), %rsi
leaq (%rsi,%rax,4), %rdi
movq 0x38(%rsp), %rax
addl %ecx, %eax
movq 0x88(%rsp), %rsi
addq %rcx, %rsi
incq %rsi
movq 0x50(%rsp), %rbx
movq (%rbx,%rcx,8), %r12
cmpl %esi, %eax
movq %r11, 0x28(%rsp)
movq %r15, 0x18(%rsp)
jne 0xeeb1
addq %rdx, %r12
incq %r12
leaq (%r10,%r8,4), %r8
addq $0xc, %r8
jmp 0xefda
movq %r13, 0x30(%rsp)
movslq %r13d, %rsi
leaq (,%rsi,4), %rax
leaq (%rax,%rax,2), %r15
movq 0xc0(%rsp), %rax
leaq (%rax,%rsi), %rbx
addq %r11, %r15
addq 0x68(%rsp), %r12
movq 0x48(%rsp), %rax
leaq (%r10,%rax), %r8
xorl %r13d, %r13d
movl -0xc(%r15), %r11d
movl -0x8(%r15), %eax
movl -0x4(%r15), %r10d
movzbl (%rbx,%r13), %edx
movl (%rdi,%rdx,4), %edx
cmpl %eax, %r11d
jge 0xef13
cmpl %r10d, %eax
jle 0xef18
addl %eax, %edx
movl %edx, (%r8)
movb (%r12,%r13), %dl
andb $-0x8, %dl
incb %dl
jmp 0xef37
cmpl %r10d, %r11d
jge 0xef2a
addl %r10d, %edx
movl %edx, (%r8)
movb (%r12,%r13), %dl
andb $-0x8, %dl
orb $0x2, %dl
jmp 0xef37
addl %r11d, %edx
movl %edx, (%r8)
movb (%r12,%r13), %dl
andb $-0x8, %dl
movb %dl, (%r12,%r13)
movl (%r15), %eax
subl %ebp, %eax
leaq 0x4(%r15), %r10
andb $-0x19, %dl
leal 0x8(%rdx), %r11d
cmpl 0x4(%r15), %eax
movzbl %dl, %eax
movzbl %r11b, %edx
cmovgl %eax, %edx
movl $0x0, %eax
cmovgl %ebp, %eax
cmovgq %r15, %r10
movb %dl, (%r12,%r13)
addl %r14d, %eax
movl (%r10), %edx
subl %eax, %edx
movl %edx, 0x4(%r8)
movl -0xc(%r8), %eax
subl %ebp, %eax
movb (%r12,%r13), %dl
andb $-0x61, %dl
leal 0x40(%rdx), %r10d
cmpl -0x4(%r8), %eax
movzbl %dl, %eax
movzbl %r10b, %edx
cmovgl %eax, %edx
leaq -0xc(%r8), %rax
movl $0x0, %r10d
cmovgl %ebp, %r10d
leaq -0x4(%r8), %r11
movb %dl, (%r12,%r13)
cmovgq %rax, %r11
addl %r14d, %r10d
movl (%r11), %eax
subl %r10d, %eax
movl %eax, 0x8(%r8)
addq $0xc, %r15
incq %r13
addq $0xc, %r8
cmpl %r13d, %r9d
jne 0xeee5
addq %r13, %rsi
addq %r13, %r12
movq 0x30(%rsp), %r13
movslq %esi, %rdx
leaq (%rdx,%rdx,2), %rsi
movq 0x28(%rsp), %r11
movl -0xc(%r11,%rsi,4), %r10d
movl -0x8(%r11,%rsi,4), %eax
movl -0x4(%r11,%rsi,4), %esi
movq 0x40(%rsp), %rbx
movzbl -0x1(%rbx,%rdx), %edx
movl (%rdi,%rdx,4), %edx
cmpl %eax, %r10d
jge 0xf01d
cmpl %esi, %eax
jle 0xf022
addl %eax, %edx
movl %edx, (%r8)
movb (%r12), %sil
andb $-0x8, %sil
incb %sil
jmp 0xf043
cmpl %esi, %r10d
jge 0xf035
addl %esi, %edx
movl %edx, (%r8)
movb (%r12), %sil
andb $-0x8, %sil
orb $0x2, %sil
jmp 0xf043
addl %r10d, %edx
movl %edx, (%r8)
movb (%r12), %sil
andb $-0x8, %sil
movb %sil, (%r12)
leaq -0xc(%r8), %rax
movl -0xc(%r8), %edx
subl %ebp, %edx
leaq -0x4(%r8), %rdi
andb $-0x61, %sil
leal 0x40(%rsi), %r10d
cmpl -0x4(%r8), %edx
movzbl %sil, %edx
movzbl %r10b, %esi
cmovgl %edx, %esi
movl $0x0, %edx
cmovgl %ebp, %edx
cmovgq %rax, %rdi
movb %sil, (%r12)
addl %r14d, %edx
movl (%rdi), %eax
subl %edx, %eax
movl %eax, 0x8(%r8)
movl $0xc0000001, 0x4(%r8)   # imm = 0xC0000001
leaq 0x1(%rcx), %rsi
incl %r13d
incq 0x68(%rsp)
addq $0xc, 0x48(%rsp)
movq 0x28(%rsp), %r8
movq %r8, %r15
cmpq 0x90(%rsp), %rcx
movq 0x18(%rsp), %r10
jl 0xee27
movl %esi, %r13d
movq 0x60(%rsp), %rdx
movq 0x20(%rsp), %r9
movq 0x8(%rsp), %r11
cmpl 0x10(%rsp), %r13d
jge 0xf453
leal (%r14,%rbp), %eax
movl %eax, 0x88(%rsp)
leal (%r11,%rbp), %eax
movl %eax, 0x90(%rsp)
movslq %r13d, %rsi
subl %edx, %r13d
incl %r13d
movslq %edx, %rcx
movq 0x40(%rsp), %rax
decq %rax
movq %rax, 0x78(%rsp)
movq %rsi, %r9
subq %rcx, %r9
incq %r9
leaq (,%rsi,4), %rax
leaq (%rax,%rax,2), %rbx
leaq (,%rcx,4), %rax
leaq (%rax,%rax,2), %rax
subq %rax, %rbx
addq $0xc, %rbx
movq %rcx, 0x48(%rsp)
negq %rcx
movq %rcx, 0x38(%rsp)
movq %r10, %r12
movq %rsi, %rdx
subq 0x48(%rsp), %rdx
leaq (%rdx,%rdx,2), %rdi
movl $0xc0000001, 0x8(%r8,%rdi,4) # imm = 0xC0000001
movabsq $-0x3ffffffe3fffffff, %rax # imm = 0xC0000001C0000001
movq %rax, (%r8,%rdi,4)
movq 0x70(%rsp), %rax
movzbl -0x1(%rax,%rsi), %eax
imulq 0x98(%rsp), %rax
movq 0xa0(%rsp), %rcx
leaq (%rcx,%rax,4), %r10
movq 0x38(%rsp), %rax
leaq (%rsi,%rax), %rcx
incq %rcx
movq 0x50(%rsp), %rax
movq (%rax,%rsi,8), %rax
cmpq 0x80(%rsp), %rcx
movq %r12, 0x28(%rsp)
movq %r8, 0x18(%rsp)
movq %r9, 0x68(%rsp)
jge 0xf2f3
movq %r13, 0x30(%rsp)
movslq %r13d, %rcx
leaq (,%rcx,4), %rdx
leaq (%rdx,%rdx,2), %r15
movq 0x78(%rsp), %rdx
leaq (%rdx,%rcx), %rdi
addq %r12, %r15
addq %r9, %rax
addq %rbx, %r8
xorl %r13d, %r13d
movl -0xc(%r15), %r12d
movl -0x8(%r15), %r11d
movl -0x4(%r15), %r9d
movzbl (%rdi,%r13), %edx
movl (%r10,%rdx,4), %edx
cmpl %r11d, %r12d
jge 0xf20d
cmpl %r9d, %r11d
jle 0xf212
addl %r11d, %edx
movl %edx, (%r8)
movb (%rax,%r13), %dl
andb $-0x8, %dl
incb %dl
jmp 0xf231
cmpl %r9d, %r12d
jge 0xf224
addl %r9d, %edx
movl %edx, (%r8)
movb (%rax,%r13), %dl
andb $-0x8, %dl
orb $0x2, %dl
jmp 0xf231
addl %r12d, %edx
movl %edx, (%r8)
movb (%rax,%r13), %dl
andb $-0x8, %dl
movb %dl, (%rax,%r13)
movl (%r15), %r9d
subl %ebp, %r9d
andb $-0x19, %dl
leal 0x8(%rdx), %r11d
cmpl 0x4(%r15), %r9d
movzbl %dl, %edx
movzbl %r11b, %r9d
cmovgl %edx, %r9d
movl $0x0, %edx
cmovgl %ebp, %edx
leaq 0x4(%r15), %r11
movb %r9b, (%rax,%r13)
cmovgq %r15, %r11
addl %r14d, %edx
movl (%r11), %r9d
subl %edx, %r9d
movl %r9d, 0x4(%r8)
leaq -0xc(%r8), %rdx
movl -0xc(%r8), %r9d
subl %ebp, %r9d
movb (%rax,%r13), %r11b
andb $-0x61, %r11b
leal 0x40(%r11), %r12d
cmpl -0x4(%r8), %r9d
movzbl %r11b, %r9d
movzbl %r12b, %r11d
cmovgl %r9d, %r11d
leaq -0x4(%r8), %r9
movl $0x0, %r12d
cmovgl %ebp, %r12d
movb %r11b, (%rax,%r13)
cmovgq %rdx, %r9
addl %r14d, %r12d
movl (%r9), %edx
subl %r12d, %edx
movl %edx, 0x8(%r8)
addq $0xc, %r15
leaq (%rcx,%r13), %rdx
incq %rdx
incq %r13
addq $0xc, %r8
cmpq 0x80(%rsp), %rdx
jl 0xf1dd
addq %r13, %rcx
addq %r13, %rax
movq 0x8(%rsp), %r11
movq 0x30(%rsp), %r13
movq 0x28(%rsp), %r12
jmp 0xf301
addq %rdx, %rax
incq %rax
leaq (%r8,%rdi,4), %r8
addq $0xc, %r8
movq 0x80(%rsp), %rdx
leaq (%rdx,%rdx,2), %rdx
movl -0xc(%r12,%rdx,4), %r9d
movl -0x8(%r12,%rdx,4), %r15d
movl -0x4(%r12,%rdx,4), %edi
movslq %ecx, %rdx
movq 0x40(%rsp), %r12
movzbl -0x1(%r12,%rdx), %edx
movl (%r10,%rdx,4), %edx
cmpl %r15d, %r9d
jge 0xf34a
cmpl %edi, %r15d
jle 0xf34f
addl %r15d, %edx
movl %edx, (%r8)
movb (%rax), %dil
andb $-0x8, %dil
incb %dil
jmp 0xf36e
cmpl %edi, %r9d
jge 0xf361
addl %edi, %edx
movl %edx, (%r8)
movb (%rax), %dil
andb $-0x8, %dil
orb $0x2, %dil
jmp 0xf36e
addl %r9d, %edx
movl %edx, (%r8)
movb (%rax), %dil
andb $-0x8, %dil
movq 0x28(%rsp), %r15
movb %dil, (%rax)
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%r15,%rcx,4), %rdx
movl (%rdx), %r9d
movl 0x4(%rdx), %r10d
subl %ebp, %r9d
andb $-0x19, %dil
leaq (%r15,%rcx,4), %rcx
addq $0x4, %rcx
testl %r11d, %r11d
js 0xf3ad
cmpl %r10d, %r9d
jle 0xf3be
movq %rdx, %rcx
movl 0x90(%rsp), %edx
jmp 0xf3ce
cmpl %r10d, %r9d
jle 0xf3c7
movq %rdx, %rcx
movl 0x88(%rsp), %edx
jmp 0xf3ce
orb $0x8, %dil
movl %r11d, %edx
jmp 0xf3ce
orb $0x8, %dil
movl %r14d, %edx
movb %dil, (%rax)
movl (%rcx), %ecx
subl %edx, %ecx
movl %ecx, 0x4(%r8)
leaq -0xc(%r8), %rcx
movl -0xc(%r8), %edx
subl %ebp, %edx
leaq -0x4(%r8), %rdi
movb (%rax), %r9b
andb $-0x61, %r9b
leal 0x40(%r9), %r10d
cmpl -0x4(%r8), %edx
movzbl %r9b, %edx
movzbl %r10b, %r9d
cmovgl %edx, %r9d
movl $0x0, %edx
cmovgl %ebp, %edx
movb %r9b, (%rax)
cmovgq %rcx, %rdi
addl %r14d, %edx
movl (%rdi), %eax
subl %edx, %eax
movl %eax, 0x8(%r8)
incq %rsi
incl %r13d
movq 0x68(%rsp), %r9
incq %r9
addq $0xc, %rbx
movq %r15, %r8
cmpq 0xb0(%rsp), %rsi
movq 0x18(%rsp), %r10
jne 0xf13d
movl %esi, %r13d
movq 0x60(%rsp), %rdx
movq 0x20(%rsp), %r9
jmp 0xf456
movq %r8, %r15
cmpl 0x10(%rsp), %r13d
jne 0xf670
movslq %r13d, %rax
subl %edx, %r13d
movslq %r13d, %rcx
leaq (%rcx,%rcx,2), %rdx
movq %r15, 0x28(%rsp)
leaq (%r15,%rdx,4), %rdx
addq $0xc, %rdx
movl $0xc0000001, -0x4(%rdx) # imm = 0xC0000001
movabsq $-0x3ffffffe3fffffff, %rsi # imm = 0xC0000001C0000001
movq %rsi, -0xc(%rdx)
movq 0x70(%rsp), %rsi
movzbl -0x1(%rsi,%rax), %esi
movq 0x98(%rsp), %rdi
imulq %rsi, %rdi
movq 0xa0(%rsp), %rsi
leaq (%rsi,%rdi,4), %rsi
incq %rcx
movq 0x50(%rsp), %r12
movq (%r12,%rax,8), %rax
addq %rcx, %rax
cmpl %r9d, %ecx
movq %r10, 0x18(%rsp)
jge 0xf628
movq %r9, %r8
leal (%r14,%rbp), %edi
movl %edi, 0x70(%rsp)
leal (%r11,%rbp), %edi
movl %edi, 0x30(%rsp)
leaq (%rcx,%rcx,2), %rdi
leaq (%r10,%rdi,4), %r9
movq 0x40(%rsp), %rdi
leaq (%rcx,%rdi), %r10
decq %r10
movl %r8d, %edi
negl %edi
movl %ecx, %ebx
addq %rdi, %rbx
xorl %r11d, %r11d
movl -0xc(%r9), %r12d
movl -0x8(%r9), %r13d
movl -0x4(%r9), %edi
movzbl (%r10,%r11), %r8d
movl (%rsi,%r8,4), %r15d
cmpl %r13d, %r12d
jge 0xf535
cmpl %edi, %r13d
jle 0xf53a
addl %r13d, %r15d
movl %r15d, (%rdx)
movb (%rax,%r11), %r15b
andb $-0x8, %r15b
incb %r15b
jmp 0xf55c
cmpl %edi, %r12d
jge 0xf54e
addl %edi, %r15d
movl %r15d, (%rdx)
movb (%rax,%r11), %r15b
andb $-0x8, %r15b
orb $0x2, %r15b
jmp 0xf55c
addl %r12d, %r15d
movl %r15d, (%rdx)
movb (%rax,%r11), %r15b
andb $-0x8, %r15b
movb %r15b, (%rax,%r11)
movl (%r9), %edi
subl %ebp, %edi
andb $-0x19, %r15b
leal 0x8(%r15), %r8d
cmpl 0x4(%r9), %edi
movzbl %r15b, %edi
movzbl %r8b, %r8d
cmovgl %edi, %r8d
movl $0x0, %edi
cmovgl %ebp, %edi
leaq 0x4(%r9), %r15
movb %r8b, (%rax,%r11)
cmovgq %r9, %r15
addl %r14d, %edi
movl (%r15), %r8d
subl %edi, %r8d
movl %r8d, 0x4(%rdx)
leaq -0xc(%rdx), %rdi
movl -0xc(%rdx), %r12d
movl -0x4(%rdx), %r8d
subl %ebp, %r12d
leaq -0x4(%rdx), %r13
movb (%rax,%r11), %r15b
andb $-0x61, %r15b
cmpl $0x0, 0x8(%rsp)
js 0xf5ce
cmpl %r8d, %r12d
jle 0xf5dc
movq %rdi, %r13
movl 0x30(%rsp), %edi
jmp 0xf5ee
cmpl %r8d, %r12d
jle 0xf5e7
movq %rdi, %r13
movl 0x70(%rsp), %edi
jmp 0xf5ee
orb $0x40, %r15b
movq 0x8(%rsp), %rdi
jmp 0xf5ee
orb $0x40, %r15b
movl %r14d, %edi
movb %r15b, (%rax,%r11)
movl (%r13), %r8d
subl %edi, %r8d
movl %r8d, 0x8(%rdx)
addq $0xc, %rdx
addq $0xc, %r9
incq %r11
movl %ebx, %edi
addl %r11d, %edi
jne 0xf503
addl %r11d, %ecx
addq %r11, %rax
movq 0x50(%rsp), %r12
movq 0x8(%rsp), %r11
movq 0x18(%rsp), %r10
movq 0x80(%rsp), %rdi
leaq (%rdi,%rdi,2), %rdi
movl -0xc(%r10,%rdi,4), %r8d
movl -0x8(%r10,%rdi,4), %r9d
movl -0x4(%r10,%rdi,4), %edi
movslq %ecx, %rcx
movq 0x40(%rsp), %r10
movzbl -0x1(%r10,%rcx), %r10d
movl (%rsi,%r10,4), %esi
cmpl %r9d, %r8d
jge 0xf687
cmpl %edi, %r9d
jle 0xf68c
addl %r9d, %esi
movl %esi, (%rdx)
movb (%rax), %sil
andb $-0x8, %sil
incb %sil
jmp 0xf6a9
movq %r10, %rbp
movq %r15, 0x18(%rsp)
movq 0x10(%rsp), %r14
movq 0x50(%rsp), %r12
jmp 0xf763
cmpl %edi, %r8d
jge 0xf69d
addl %edi, %esi
movl %esi, (%rdx)
movb (%rax), %sil
andb $-0x8, %sil
orb $0x2, %sil
jmp 0xf6a9
addl %r8d, %esi
movl %esi, (%rdx)
movb (%rax), %sil
andb $-0x8, %sil
movq 0x20(%rsp), %r9
movq 0x18(%rsp), %rdi
movb %sil, (%rax)
leaq (%rcx,%rcx,2), %rcx
leaq (%rdi,%rcx,4), %rcx
movl (%rcx), %edi
movl 0x4(%rcx), %r8d
subl %ebp, %edi
andb $-0x19, %sil
testl %r11d, %r11d
js 0xf6df
cmpl %r8d, %edi
jle 0xf6f1
movb %sil, (%rax)
movl (%rcx), %ecx
leal (%r11,%rbp), %esi
jmp 0xf6ed
cmpl %r8d, %edi
jle 0xf700
movb %sil, (%rax)
movl (%rcx), %ecx
leal (%r14,%rbp), %esi
subl %esi, %ecx
jmp 0xf70d
orb $0x8, %sil
movb %sil, (%rax)
movl 0x4(%rcx), %ecx
subl %r11d, %ecx
jmp 0xf70d
orb $0x8, %sil
movb %sil, (%rax)
movl 0x4(%rcx), %ecx
subl %r14d, %ecx
movl %ecx, 0x4(%rdx)
movl -0xc(%rdx), %esi
movl -0x4(%rdx), %edi
subl %ebp, %esi
movb (%rax), %cl
andb $-0x61, %cl
testl %r11d, %r11d
js 0xf730
cmpl %edi, %esi
jle 0xf73e
movb %cl, (%rax)
movl -0xc(%rdx), %eax
addl %ebp, %r11d
jmp 0xf746
cmpl %edi, %esi
jle 0xf74b
movb %cl, (%rax)
movl -0xc(%rdx), %eax
addl %ebp, %r14d
jmp 0xf753
orb $0x40, %cl
movb %cl, (%rax)
movl -0x4(%rdx), %eax
subl %r11d, %eax
jmp 0xf756
orb $0x40, %cl
movb %cl, (%rax)
movl -0x4(%rdx), %eax
subl %r14d, %eax
movq 0x10(%rsp), %r14
movl %eax, 0x8(%rdx)
movq 0x28(%rsp), %rbp
movq 0x80(%rsp), %r15
leaq (%r15,%r15,2), %rbx
movl (%rbp,%rbx,4), %eax
movq 0xb8(%rsp), %rcx
movl %eax, (%rcx)
leal (%r9,%r14), %eax
addl $0x2, %eax
cltq
shlq $0x2, %rax
leaq (%rax,%rax,2), %rdi
callq 0x31d0
movq 0x20(%rsp), %r10
movq 0xb0(%rsp), %rcx
movq (%r12,%rcx,8), %rcx
movb (%rcx,%r15), %cl
movl %ecx, %edx
andb $0x7, %dl
movl (%rbp,%rbx,4), %esi
movl 0x4(%rbp,%rbx,4), %edi
movzbl %dl, %edx
movl %ecx, %r8d
shrb $0x3, %r8b
andb $0x3, %r8b
xorl %r9d, %r9d
cmpl %esi, %edi
cmovgl %edi, %esi
movzbl %r8b, %edi
setg %r9b
cmovlel %edx, %edi
shrb $0x5, %cl
andb $0x3, %cl
cmpl %esi, 0x8(%rbp,%rbx,4)
movq %rax, %r13
movzbl %cl, %esi
cmovlel %edi, %esi
movl $0x2, %eax
cmovlel %r9d, %eax
movb %al, 0x8(%r13)
movl %r10d, (%r13)
movl %r14d, 0x4(%r13)
movl $0xc, %ecx
movl %r14d, %edx
movl %eax, %edi
movl %esi, %eax
cmpb $0x2, %dil
je 0xf824
movzbl %dil, %esi
cmpl $0x1, %esi
je 0xf820
testl %esi, %esi
jne 0xf827
decl %r10d
decl %edx
jmp 0xf827
decl %r10d
movslq %edx, %rsi
movq 0x50(%rsp), %rdi
movq (%rdi,%rsi,8), %rdi
movslq %r10d, %r8
cmpb $0x2, %al
je 0xf85f
movzbl %al, %r9d
cmpl $0x1, %r9d
je 0xf855
movl %eax, %esi
testl %r9d, %r9d
jne 0xf86b
movb (%rdi,%r8), %sil
andb $0x7, %sil
jmp 0xf86b
movb (%rdi,%r8), %sil
shrb $0x3, %sil
jmp 0xf867
movb (%rdi,%r8), %sil
shrb $0x5, %sil
andb $0x3, %sil
movb %al, 0x8(%r13,%rcx)
movl %r10d, (%r13,%rcx)
movl %edx, 0x4(%r13,%rcx)
addq $0xc, %rcx
movl %r10d, %edi
orl %edx, %edi
jne 0xf806
sarq $0x2, %rcx
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rbx
movl %ebx, %r14d
decl %r14d
je 0xf950
movl $0x1, %eax
cmpl $0x2, %r14d
jl 0xf8d0
movl %r14d, %ecx
decq %rcx
leaq 0x14(%r13), %rdx
movb -0xc(%rdx), %sil
xorl %edi, %edi
cmpb (%rdx), %sil
setne %dil
addl %edi, %eax
addq $0xc, %rdx
decq %rcx
jne 0xf8b8
movq 0x100(%rsp), %rcx
movl %eax, (%rcx)
movslq %eax, %rdi
movl $0x4, %esi
callq 0x3530
movq %rax, %r12
movslq %r14d, %rax
leaq (%rax,%rax,2), %rax
movzbl -0x4(%r13,%rax,4), %eax
movl %eax, %ecx
orl $0x10, %ecx
movl %ecx, (%r12)
cmpl $0x2, %r14d
jl 0xf961
addl $-0x3, %ebx
leaq (%rbx,%rbx,2), %rcx
incq %rbx
leaq 0x8(,%rcx,4), %rcx
addq %r13, %rcx
xorl %edx, %edx
movq 0x10(%rsp), %r14
movb (%rcx), %sil
movslq %edx, %rdi
cmpb %al, %sil
jne 0xf934
addl $0x10, (%r12,%rdi,4)
jmp 0xf945
movzbl %sil, %eax
orl $0x10, %eax
leal 0x1(%rdi), %edx
movl %eax, 0x4(%r12,%rdi,4)
movl %esi, %eax
addq $-0xc, %rcx
decq %rbx
jg 0xf922
jmp 0xf966
movq 0x100(%rsp), %rax
movl $0x0, (%rax)
xorl %r12d, %r12d
movq 0x10(%rsp), %r14
movq %r13, %rdi
callq 0x32c0
movl 0x5c(%rsp), %eax
cmpl %r14d, %eax
movq 0x50(%rsp), %r15
jge 0xf9b4
movslq %eax, %rcx
movq 0x60(%rsp), %rsi
movslq %esi, %rdx
leaq (%r15,%rcx,8), %rax
addq $0x8, %rax
negq %rdx
addq %rdx, %rcx
incq %rcx
movl %r14d, %edx
subl %esi, %edx
xorl %esi, %esi
movq (%rax,%rsi,8), %rdi
addq %rcx, %rdi
addq %rsi, %rdi
movq %rdi, (%rax,%rsi,8)
incq %rsi
cmpl %esi, %edx
jne 0xf99f
testl %r14d, %r14d
js 0xf9d4
movl 0xac(%rsp), %ebx
xorl %r14d, %r14d
movq (%r15,%r14,8), %rdi
callq 0x32c0
incq %r14
cmpq %r14, %rbx
jne 0xf9c3
movq %r15, %rdi
callq 0x32c0
movq 0x18(%rsp), %rdi
callq 0x32c0
movq %rbp, %rdi
callq 0x32c0
movq %r12, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop