// File: /workspace/github_c_makefile_star2_O3/xiongxu[P]bam2bedGraph2/samtools-0.1.19/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_open, gap_end_ext, 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_open = ap->gap_end_open;
	gap_end_ext = ap->gap_end_ext;
	b = ap->band_width;
	score_matrix = ap->matrix;
	N_MATRIX_ROW = ap->row;

	if (n_cigar) *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 $0xd8, %rsp
movq %rcx, 0x38(%rsp)
movq %rdx, 0x98(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdi, 0x70(%rsp)
movq 0x110(%rsp), %rcx
movl (%r8), %r15d
movl 0x4(%r8), %r14d
movl 0x8(%r8), %eax
movq %rax, 0x30(%rsp)
movl 0xc(%r8), %eax
movq %rax, 0x8(%rsp)
movl 0x1c(%r8), %eax
movq 0x10(%r8), %rdx
movq %rdx, 0x90(%rsp)
movslq 0x18(%r8), %rdx
movq %rdx, 0x88(%rsp)
testq %rcx, %rcx
je 0xf244
movl $0x0, (%rcx)
movq 0x58(%rsp), %rsi
testl %esi, %esi
sete %cl
movq 0x38(%rsp), %rbx
testl %ebx, %ebx
sete %dl
xorl %ebp, %ebp
orb %cl, %dl
jne 0x10881
movq %r9, 0xc0(%rsp)
movl %esi, %ecx
subl %ebx, %ecx
negl %ecx
movl %esi, %edx
subl %ebx, %edx
cmovlel %ebp, %edx
cmovgl %ebp, %ecx
addl %eax, %edx
addl %eax, %ecx
cmpl %esi, %edx
cmovgel %esi, %edx
movq %rdx, 0x40(%rsp)
cmpl %ebx, %ecx
movl %ebx, %eax
movl %ecx, 0x4c(%rsp)
cmovll %ecx, %eax
movq %rax, 0x28(%rsp)
leal 0x1(%rbx), %ebp
movslq %ebp, %rdi
shlq $0x3, %rdi
callq 0x3240
movq %rax, %r13
movl %ebp, 0x50(%rsp)
movl %ebp, %ebp
testl %ebx, %ebx
js 0xf2e7
movq 0x28(%rsp), %rax
movq 0x40(%rsp), %rcx
addl %ecx, %eax
movq 0x58(%rsp), %rcx
cmpl %ecx, %eax
cmovgel %ecx, %eax
incl %eax
movslq %eax, %rbx
xorl %r12d, %r12d
movq %rbx, %rdi
callq 0x3240
movq %rax, (%r13,%r12,8)
incq %r12
cmpq %r12, %rbp
jne 0xf2d2
movq %rbp, 0xc8(%rsp)
movl 0x4c(%rsp), %eax
cmpl 0x38(%rsp), %eax
jge 0xf32b
movslq 0x4c(%rsp), %rax
movslq 0x28(%rsp), %rsi
leaq 0x8(,%rax,8), %rcx
addq %r13, %rcx
notq %rax
addq %rsi, %rax
movq 0x38(%rsp), %rdx
subl %esi, %edx
xorl %esi, %esi
addq %rax, (%rcx,%rsi,8)
decq %rax
incq %rsi
cmpl %esi, %edx
jne 0xf31d
movslq 0x58(%rsp), %rax
movq %rax, 0xb8(%rsp)
leaq 0x4(,%rax,4), %rax
leaq (%rax,%rax,2), %r12
movq %r12, %rdi
callq 0x3240
movq %rax, %rbx
movq %r12, %rdi
callq 0x3240
movl $0xc0000001, 0x8(%rbx)  # imm = 0xC0000001
movabsq $-0x3fffffff00000000, %rcx # imm = 0xC000000100000000
movq %rbx, 0x18(%rsp)
movq %rcx, (%rbx)
cmpl $0x2, 0x40(%rsp)
jl 0xf417
leal (%r14,%r15), %ecx
movq 0x8(%rsp), %rdx
movq 0x30(%rsp), %rsi
addl %esi, %edx
movl 0x40(%rsp), %esi
movq (%r13), %rdi
movl $0x1, %r8d
movq 0x18(%rsp), %r9
movl $0xc0000001, 0x14(%r9)  # imm = 0xC0000001
movabsq $-0x3ffffffe3fffffff, %r10 # imm = 0xC0000001C0000001
movq %r10, 0xc(%r9)
leaq 0x8(%r9), %r11
movb (%rdi,%r8), %r10b
andb $0x1f, %r10b
movl (%r9), %ebx
movl 0x8(%r9), %ebp
cmpl $0x0, 0x8(%rsp)
js 0xf3dd
subl 0x30(%rsp), %ebx
cmpl %ebp, %ebx
jle 0xf3eb
movq %r9, %r11
movl %edx, %ebx
jmp 0xf3fd
subl %r15d, %ebx
cmpl %ebp, %ebx
jle 0xf3f6
movq %r9, %r11
movl %ecx, %ebx
jmp 0xf3fd
orb $0x40, %r10b
movq 0x8(%rsp), %rbx
jmp 0xf3fd
orb $0x40, %r10b
movl %r14d, %ebx
movb %r10b, (%rdi,%r8)
movl (%r11), %r10d
subl %ebx, %r10d
movl %r10d, 0x14(%r9)
addq $0xc, %r9
incq %r8
cmpq %r8, %rsi
jne 0xf39e
movq 0xb8(%rsp), %rcx
incq %rcx
movq %rcx, 0x78(%rsp)
movq 0x38(%rsp), %rcx
leal -0x1(%rcx), %edx
cmpl %ecx, 0x4c(%rsp)
movl %edx, %esi
movq 0x28(%rsp), %rdi
cmovll %edi, %esi
testl %esi, %esi
movq %r13, 0x60(%rsp)
jle 0xf7ac
movl %edx, 0xa4(%rsp)
leal (%r14,%r15), %r8d
movq 0x8(%rsp), %rcx
movq 0x30(%rsp), %rdx
addl %edx, %ecx
movl %ecx, 0xa8(%rsp)
movslq 0x40(%rsp), %rcx
movq %rcx, 0x80(%rsp)
incl %esi
movq %rsi, 0x68(%rsp)
movl $0x1, %r11d
movq 0x18(%rsp), %r10
movq %rax, %rbx
movq (%r13,%r11,8), %rax
movl $0xc0000001, 0x8(%rbx)  # imm = 0xC0000001
movabsq $-0x3ffffffe3fffffff, %rcx # imm = 0xC0000001C0000001
movq %rcx, (%rbx)
leaq 0x4(%r10), %rdx
movb (%rax), %cl
andb $-0x19, %cl
movl (%r10), %esi
movl 0x4(%r10), %edi
cmpl $0x0, 0x8(%rsp)
js 0xf4ce
subl 0x30(%rsp), %esi
cmpl %edi, %esi
jle 0xf4dd
movq %r10, %rdx
movl 0xa8(%rsp), %esi
jmp 0xf4ed
subl %r15d, %esi
cmpl %edi, %esi
jle 0xf4e7
movq %r10, %rdx
movl %r8d, %esi
jmp 0xf4ed
orb $0x8, %cl
movq 0x8(%rsp), %rsi
jmp 0xf4ed
orb $0x8, %cl
movl %r14d, %esi
movb %cl, (%rax)
movl (%rdx), %edx
subl %esi, %edx
movq 0x80(%rsp), %rsi
leaq (%r11,%rsi), %rcx
cmpq 0x78(%rsp), %rcx
leaq -0x1(%r11,%rsi), %rcx
movq %rcx, 0x10(%rsp)
cmovgl 0x58(%rsp), %ecx
movl %edx, 0x4(%rbx)
movq 0x98(%rsp), %rdx
movzbl -0x1(%rdx,%r11), %edx
imulq 0x88(%rsp), %rdx
movq 0x90(%rsp), %rsi
leaq (%rsi,%rdx,4), %rdi
incq %rax
leaq 0xc(%rbx), %rbp
movl $0x1, %edx
cmpl $0x1, %ecx
movq %r10, 0x20(%rsp)
movq %rbx, 0x18(%rsp)
je 0xf677
movl %ecx, %ecx
leaq 0x10(%r10), %rbx
movq %rcx, 0xb0(%rsp)
leaq -0x1(%rcx), %rdx
xorl %esi, %esi
movl -0x10(%rbx), %ecx
movl -0xc(%rbx), %r9d
movl -0x8(%rbx), %r13d
movq 0x70(%rsp), %r10
movzbl (%r10,%rsi), %r10d
movl (%rdi,%r10,4), %r10d
cmpl %r9d, %ecx
jge 0xf5a3
cmpl %r13d, %r9d
jle 0xf5a8
addl %r9d, %r10d
movl %r10d, (%rbp)
movb (%rax,%rsi), %r10b
andb $-0x8, %r10b
incb %r10b
jmp 0xf5cc
cmpl %r13d, %ecx
jge 0xf5bd
addl %r13d, %r10d
movl %r10d, (%rbp)
movb (%rax,%rsi), %r10b
andb $-0x8, %r10b
orb $0x2, %r10b
jmp 0xf5cc
addl %ecx, %r10d
movl %r10d, (%rbp)
movb (%rax,%rsi), %r10b
andb $-0x8, %r10b
movb %r10b, (%rax,%rsi)
movl -0x4(%rbx), %ecx
subl %r15d, %ecx
andb $-0x19, %r10b
leal 0x8(%r10), %r9d
cmpl (%rbx), %ecx
movzbl %r10b, %ecx
movzbl %r9b, %r9d
cmovgl %ecx, %r9d
leaq -0x4(%rbx), %rcx
movl %r14d, %r10d
cmovgl %r8d, %r10d
movb %r9b, (%rax,%rsi)
cmovleq %rbx, %rcx
movl (%rcx), %ecx
subl %r10d, %ecx
movl %ecx, 0x4(%rbp)
leaq -0xc(%rbp), %rcx
movl -0xc(%rbp), %r9d
subl %r15d, %r9d
leaq -0x4(%rbp), %r10
movb (%rax,%rsi), %r13b
andb $0x1f, %r13b
leal 0x40(%r13), %r12d
cmpl -0x4(%rbp), %r9d
movzbl %r13b, %r9d
movzbl %r12b, %r12d
cmovgl %r9d, %r12d
movl %r14d, %r9d
cmovgl %r8d, %r9d
cmovgq %rcx, %r10
movb %r12b, (%rax,%rsi)
movl (%r10), %ecx
subl %r9d, %ecx
movl %ecx, 0x8(%rbp)
addq $0xc, %rbp
incq %rsi
addq $0xc, %rbx
cmpq %rsi, %rdx
jne 0xf56c
leaq -0xc(%rbp), %rbx
addq %rsi, %rax
movq 0x60(%rsp), %r13
movq 0x20(%rsp), %r10
movq 0xb0(%rsp), %rdx
movq %rdx, %r12
leaq (%rdx,%rdx,2), %rdx
movl -0xc(%r10,%rdx,4), %ecx
movl -0x8(%r10,%rdx,4), %r9d
movl -0x4(%r10,%rdx,4), %r10d
movq 0x70(%rsp), %rsi
movzbl -0x1(%rsi,%r12), %esi
movl (%rdi,%rsi,4), %esi
cmpl %r9d, %ecx
jge 0xf6b7
cmpl %r10d, %r9d
jle 0xf6bc
addl %r9d, %esi
movl %esi, (%rbp)
movb (%rax), %sil
andb $-0x8, %sil
incb %sil
jmp 0xf6db
cmpl %r10d, %ecx
jge 0xf6cf
addl %r10d, %esi
movl %esi, (%rbp)
movb (%rax), %sil
andb $-0x8, %sil
orb $0x2, %sil
jmp 0xf6db
addl %ecx, %esi
movl %esi, (%rbp)
movb (%rax), %sil
andb $-0x8, %sil
movq 0x20(%rsp), %r10
movb %sil, (%rax)
movl (%rbx), %ecx
subl %r15d, %ecx
andb $0x1f, %sil
leal 0x40(%rsi), %edi
cmpl 0x8(%rbx), %ecx
movzbl %sil, %ecx
movzbl %dil, %esi
cmovgl %ecx, %esi
leaq 0x8(%rbx), %rcx
movl %r14d, %edi
cmovgl %r8d, %edi
movb %sil, (%rax)
cmovgq %rbx, %rcx
movl (%rcx), %ecx
subl %edi, %ecx
movl %ecx, 0x14(%rbx)
movl $0xc0000001, %ecx       # imm = 0xC0000001
movq 0x10(%rsp), %rsi
cmpq 0xb8(%rsp), %rsi
movq 0x68(%rsp), %rbp
jle 0xf784
leaq (%r10,%rdx,4), %rsi
leaq 0x4(%rsi), %rdx
movb (%rax), %cl
andb $-0x19, %cl
movl (%rsi), %edi
movl 0x4(%rsi), %r9d
cmpl $0x0, 0x8(%rsp)
js 0xf75e
subl 0x30(%rsp), %edi
cmpl %r9d, %edi
jle 0xf76e
movq %rsi, %rdx
movl 0xa8(%rsp), %esi
jmp 0xf77e
subl %r15d, %edi
cmpl %r9d, %edi
jle 0xf778
movq %rsi, %rdx
movl %r8d, %esi
jmp 0xf77e
orb $0x8, %cl
movq 0x8(%rsp), %rsi
jmp 0xf77e
orb $0x8, %cl
movl %r14d, %esi
movb %cl, (%rax)
movl (%rdx), %ecx
subl %esi, %ecx
movl %ecx, 0x10(%rbx)
incq %r11
movq %r10, %rax
cmpq %rbp, %r11
jne 0xf482
movq %r10, %rax
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %r12
movl 0xa4(%rsp), %edx
jmp 0xf7b6
movl $0x1, %ebp
movq 0x18(%rsp), %r12
movq 0x38(%rsp), %rsi
cmpl %esi, %ebp
setne %cl
cmpl %edx, 0x4c(%rsp)
sete %dl
orb %cl, %dl
je 0xf7d7
movq %rax, %r11
movl 0x50(%rsp), %edx
jmp 0xfb83
movl %esi, %ecx
movq (%r13,%rcx,8), %rdx
movl $0xc0000001, 0x8(%rax)  # imm = 0xC0000001
movabsq $-0x3ffffffe3fffffff, %rsi # imm = 0xC0000001C0000001
movq %rsi, (%rax)
movb (%rdx), %sil
andb $-0x19, %sil
movl (%r12), %edi
movl 0x4(%r12), %r8d
cmpl $0x0, 0x8(%rsp)
js 0xf827
movq 0x30(%rsp), %r9
subl %r9d, %edi
cmpl %r8d, %edi
jle 0xf83e
movb %sil, (%rdx)
movl (%r12), %esi
movq 0x8(%rsp), %rdi
addl %r9d, %edi
jmp 0xf83a
subl %r15d, %edi
cmpl %r8d, %edi
jle 0xf850
movb %sil, (%rdx)
movl (%r12), %esi
leal (%r14,%r15), %edi
subl %edi, %esi
jmp 0xf85f
orb $0x8, %sil
movb %sil, (%rdx)
movl 0x4(%r12), %esi
subl 0x8(%rsp), %esi
jmp 0xf85f
orb $0x8, %sil
movb %sil, (%rdx)
movl 0x4(%r12), %esi
subl %r14d, %esi
movq 0x38(%rsp), %r8
movq 0x40(%rsp), %r9
leal (%r9,%r8), %edi
cmpl 0x78(%rsp), %edi
leal -0x1(%r9,%r8), %edi
movl %edi, %r8d
cmovgl 0x58(%rsp), %r8d
movl %esi, 0x4(%rax)
movq 0x98(%rsp), %rsi
movzbl -0x1(%rsi,%rcx), %ecx
imulq 0x88(%rsp), %rcx
movq 0x90(%rsp), %rsi
leaq (%rsi,%rcx,4), %rsi
incq %rdx
leaq 0xc(%rax), %rcx
cmpl $0x1, %r8d
movq %r12, 0x18(%rsp)
movl %edi, 0x20(%rsp)
jne 0xf8cc
movl $0x1, %edi
movq %rdi, 0x10(%rsp)
movq %rax, %rdi
jmp 0xfa2b
leal (%r14,%r15), %edi
movq 0x8(%rsp), %r9
movq 0x30(%rsp), %r10
addl %r10d, %r9d
movl %r9d, 0x68(%rsp)
movl %r8d, %r8d
leaq 0x10(%r12), %r11
movq %r8, 0x10(%rsp)
leaq -0x1(%r8), %rbx
xorl %r10d, %r10d
movq %rax, %r12
movq %r12, %rbp
movq %rcx, %r12
movl -0x10(%r11), %r13d
movl -0xc(%r11), %r9d
movl -0x8(%r11), %r8d
movq 0x70(%rsp), %rcx
movzbl (%rcx,%r10), %ecx
movl (%rsi,%rcx,4), %ecx
cmpl %r9d, %r13d
jge 0xf936
cmpl %r8d, %r9d
jle 0xf93b
addl %r9d, %ecx
movl %ecx, (%r12)
movb (%rdx,%r10), %r8b
andb $-0x8, %r8b
incb %r8b
jmp 0xf95f
cmpl %r8d, %r13d
jge 0xf950
addl %r8d, %ecx
movl %ecx, (%r12)
movb (%rdx,%r10), %r8b
andb $-0x8, %r8b
orb $0x2, %r8b
jmp 0xf95f
addl %r13d, %ecx
movl %ecx, (%r12)
movb (%rdx,%r10), %r8b
andb $-0x8, %r8b
leaq -0xc(%r12), %rcx
movb %r8b, (%rdx,%r10)
movl -0x4(%r11), %r9d
subl %r15d, %r9d
andb $-0x19, %r8b
leal 0x8(%r8), %r13d
cmpl (%r11), %r9d
movzbl %r8b, %r8d
movzbl %r13b, %r9d
cmovgl %r8d, %r9d
leaq -0x4(%r11), %r8
movl %r14d, %r13d
cmovgl %edi, %r13d
movb %r9b, (%rdx,%r10)
cmovleq %r11, %r8
movl (%r8), %r8d
subl %r13d, %r8d
movl %r8d, 0x4(%r12)
addq $0x8, %rbp
movb (%rdx,%r10), %r8b
andb $0x1f, %r8b
movl -0xc(%r12), %r9d
movl -0x4(%r12), %r13d
cmpl $0x0, 0x8(%rsp)
js 0xf9d4
subl 0x30(%rsp), %r9d
cmpl %r13d, %r9d
jle 0xf9e3
movq %rcx, %rbp
movl 0x68(%rsp), %ecx
jmp 0xf9f5
subl %r15d, %r9d
cmpl %r13d, %r9d
jle 0xf9ee
movq %rcx, %rbp
movl %edi, %ecx
jmp 0xf9f5
orb $0x40, %r8b
movq 0x8(%rsp), %rcx
jmp 0xf9f5
orb $0x40, %r8b
movl %r14d, %ecx
movq 0x60(%rsp), %r13
movb %r8b, (%rdx,%r10)
movl (%rbp), %r8d
subl %ecx, %r8d
movl %r8d, 0x8(%r12)
leaq 0xc(%r12), %rcx
incq %r10
addq $0xc, %r11
cmpq %r10, %rbx
jne 0xf8f9
leaq -0xc(%rcx), %rdi
addq %r10, %rdx
movq 0x18(%rsp), %r12
movq 0x10(%rsp), %rbp
leaq (,%rbp,2), %r9
addq %rbp, %r9
movl -0xc(%r12,%r9,4), %r10d
movl -0x8(%r12,%r9,4), %r11d
movl -0x4(%r12,%r9,4), %r8d
movq 0x70(%rsp), %rbx
movzbl -0x1(%rbx,%rbp), %ebx
movl (%rsi,%rbx,4), %esi
cmpl %r11d, %r10d
jge 0xfa6f
cmpl %r8d, %r11d
jle 0xfa74
addl %r11d, %esi
movl %esi, (%rcx)
movb (%rdx), %cl
andb $-0x8, %cl
incb %cl
jmp 0xfa8d
cmpl %r8d, %r10d
jge 0xfa83
addl %r8d, %esi
movl %esi, (%rcx)
movb (%rdx), %cl
andb $-0x8, %cl
orb $0x2, %cl
jmp 0xfa8d
addl %r10d, %esi
movl %esi, (%rcx)
movb (%rdx), %cl
andb $-0x8, %cl
movq 0x18(%rsp), %r11
movl 0x20(%rsp), %ebx
movl %ecx, %esi
andb $0x1f, %sil
movb %cl, (%rdx)
movl (%rdi), %ecx
movl 0x8(%rdi), %r8d
cmpl $0x0, 0x8(%rsp)
js 0xfac7
movq 0x30(%rsp), %r10
subl %r10d, %ecx
cmpl %r8d, %ecx
jle 0xfadc
movb %sil, (%rdx)
movl (%rdi), %ecx
movq 0x8(%rsp), %rsi
addl %r10d, %esi
jmp 0xfad8
subl %r15d, %ecx
cmpl %r8d, %ecx
jle 0xfaec
movb %sil, (%rdx)
movl (%rdi), %ecx
leal (%r14,%r15), %esi
subl %esi, %ecx
jmp 0xfaf9
orb $0x40, %sil
movb %sil, (%rdx)
movl 0x8(%rdi), %ecx
subl 0x8(%rsp), %ecx
jmp 0xfaf9
orb $0x40, %sil
movb %sil, (%rdx)
movl 0x8(%rdi), %ecx
subl %r14d, %ecx
movl %ecx, 0x14(%rdi)
cmpl 0x58(%rsp), %ebx
jle 0xfb37
leaq (%r11,%r9,4), %rcx
movb (%rdx), %sil
andb $-0x19, %sil
movl (%rcx), %r8d
movl 0x4(%rcx), %r9d
cmpl $0x0, 0x8(%rsp)
js 0xfb40
movq 0x30(%rsp), %r10
subl %r10d, %r8d
cmpl %r9d, %r8d
jle 0xfb55
movb %sil, (%rdx)
movl (%rcx), %ecx
movq 0x8(%rsp), %rdx
addl %r10d, %edx
jmp 0xfb51
movl $0xc0000001, 0x10(%rdi) # imm = 0xC0000001
jmp 0xfb75
subl %r15d, %r8d
cmpl %r9d, %r8d
jle 0xfb65
movb %sil, (%rdx)
movl (%rcx), %ecx
leal (%r14,%r15), %edx
subl %edx, %ecx
jmp 0xfb72
orb $0x8, %sil
movb %sil, (%rdx)
movl 0x4(%rcx), %ecx
subl 0x8(%rsp), %ecx
jmp 0xfb72
orb $0x8, %sil
movb %sil, (%rdx)
movl 0x4(%rcx), %ecx
subl %r14d, %ecx
movl %ecx, 0x10(%rdi)
movq %rax, %r12
movl 0x50(%rsp), %edx
movl %edx, %ebp
movq 0x28(%rsp), %rdi
subl %edi, %edx
cmpl %edx, %ebp
jle 0xfb91
movq %r11, %rsi
jmp 0xfeb9
leal (%r14,%r15), %eax
movslq %ebp, %rcx
subl %edi, %ebp
incl %ebp
movslq %edi, %r8
movslq %edx, %rdx
movq %rdx, 0xa8(%rsp)
movq 0x70(%rsp), %rdx
decq %rdx
movq %rdx, 0xd0(%rsp)
movq 0x40(%rsp), %rsi
movl %esi, %edx
decl %esi
movq %rsi, 0x40(%rsp)
leal (%rdi,%rdx), %r9d
addl $-0x2, %r9d
movq %rcx, %rdx
subq %r8, %rdx
incq %rdx
movq %rdx, 0x78(%rsp)
leaq (,%rcx,4), %rdx
leaq (%rdx,%rdx,2), %rsi
leaq (,%r8,4), %rdx
leaq (%rdx,%rdx,2), %rdx
subq %rdx, %rsi
addq $0xc, %rsi
movq %rsi, 0x80(%rsp)
movq %r8, 0xb0(%rsp)
negq %r8
movq %r8, 0x50(%rsp)
movq %r12, %r10
movq %r11, %r12
movq %rcx, %r8
movq %rcx, %rdx
subq 0xb0(%rsp), %rdx
leaq (%rdx,%rdx,2), %rsi
movl $0xc0000001, 0x8(%r11,%rsi,4) # imm = 0xC0000001
movabsq $-0x3ffffffe3fffffff, %rcx # imm = 0xC0000001C0000001
movq %rcx, (%r11,%rsi,4)
movq 0x98(%rsp), %rcx
movzbl -0x1(%rcx,%r8), %ecx
imulq 0x88(%rsp), %rcx
movq 0x90(%rsp), %rdi
leaq (%rdi,%rcx,4), %rcx
movq 0x40(%rsp), %rdi
leal (%rdi,%r8), %r11d
movq 0x50(%rsp), %rdi
addq %r8, %rdi
incq %rdi
movq %r8, 0x10(%rsp)
movq (%r13,%r8,8), %rbx
cmpl %edi, %r11d
movq %r10, 0x18(%rsp)
jne 0xfca2
addq %rdx, %rbx
incq %rbx
leaq (%r12,%rsi,4), %rdi
addq $0xc, %rdi
jmp 0xfdf1
movl %r11d, 0xa4(%rsp)
movq %rbp, 0x68(%rsp)
movslq %ebp, %r13
leaq (,%r13,4), %rdx
leaq (%rdx,%rdx,2), %rsi
addq 0xd0(%rsp), %r13
addq %r10, %rsi
addq 0x78(%rsp), %rbx
movq %r12, 0x20(%rsp)
movq 0x80(%rsp), %rdx
leaq (%r12,%rdx), %rdi
xorl %edx, %edx
movl -0xc(%rsi), %r10d
movl -0x8(%rsi), %r11d
movl -0x4(%rsi), %ebp
movzbl (%r13,%rdx), %r12d
movl (%rcx,%r12,4), %r12d
cmpl %r11d, %r10d
jge 0xfd13
cmpl %ebp, %r11d
jle 0xfd18
addl %r11d, %r12d
movl %r12d, (%rdi)
movb (%rbx,%rdx), %r12b
andb $-0x8, %r12b
incb %r12b
jmp 0xfd3a
cmpl %ebp, %r10d
jge 0xfd2c
addl %ebp, %r12d
movl %r12d, (%rdi)
movb (%rbx,%rdx), %r12b
andb $-0x8, %r12b
orb $0x2, %r12b
jmp 0xfd3a
addl %r10d, %r12d
movl %r12d, (%rdi)
movb (%rbx,%rdx), %r12b
andb $-0x8, %r12b
movb %r12b, (%rbx,%rdx)
movl (%rsi), %r10d
subl %r15d, %r10d
andb $-0x19, %r12b
leal 0x8(%r12), %r11d
cmpl 0x4(%rsi), %r10d
movzbl %r12b, %r10d
movzbl %r11b, %r11d
cmovgl %r10d, %r11d
leaq 0x4(%rsi), %r10
movl %r14d, %ebp
cmovgl %eax, %ebp
movb %r11b, (%rbx,%rdx)
cmovgq %rsi, %r10
movl (%r10), %r10d
subl %ebp, %r10d
movl %r10d, 0x4(%rdi)
leaq -0xc(%rdi), %r10
movl -0xc(%rdi), %r11d
subl %r15d, %r11d
leaq -0x4(%rdi), %r12
movb (%rbx,%rdx), %bpl
andb $0x1f, %bpl
leal 0x40(%rbp), %r8d
cmpl -0x4(%rdi), %r11d
movzbl %bpl, %r11d
movzbl %r8b, %r8d
cmovgl %r11d, %r8d
movl %r14d, %r11d
cmovgl %eax, %r11d
cmovgq %r10, %r12
movb %r8b, (%rbx,%rdx)
movl (%r12), %r8d
subl %r11d, %r8d
movl %r8d, 0x8(%rdi)
addq $0xc, %rsi
incq %rdx
addq $0xc, %rdi
cmpl %edx, %r9d
jne 0xfce1
addq %rdx, %rbx
movq 0x60(%rsp), %r13
movq 0x68(%rsp), %rbp
movq 0x20(%rsp), %r12
movq 0x18(%rsp), %r10
movl 0xa4(%rsp), %r11d
movslq %r11d, %r8
leaq (%r8,%r8,2), %rdx
movl -0xc(%r10,%rdx,4), %esi
movq %r10, %r11
movl -0x8(%r10,%rdx,4), %r10d
movl -0x4(%r11,%rdx,4), %edx
movq 0x70(%rsp), %r11
movzbl -0x1(%r11,%r8), %r8d
movl (%rcx,%r8,4), %ecx
cmpl %r10d, %esi
jge 0xfe31
cmpl %edx, %r10d
jle 0xfe35
addl %r10d, %ecx
movl %ecx, (%rdi)
movb (%rbx), %cl
andb $-0x8, %cl
incb %cl
jmp 0xfe4c
cmpl %edx, %esi
jge 0xfe43
addl %edx, %ecx
movl %ecx, (%rdi)
movb (%rbx), %cl
andb $-0x8, %cl
orb $0x2, %cl
jmp 0xfe4c
addl %esi, %ecx
movl %ecx, (%rdi)
movb (%rbx), %cl
andb $-0x8, %cl
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %r8
movb %cl, (%rbx)
movl -0xc(%rdi), %edx
subl %r15d, %edx
andb $0x1f, %cl
cmpl -0x4(%rdi), %edx
leal 0x40(%rcx), %edx
movzbl %cl, %ecx
movzbl %dl, %edx
cmovgl %ecx, %edx
movb %dl, (%rbx)
leaq -0xc(%rdi), %rcx
leaq -0x4(%rdi), %rdx
cmovgq %rcx, %rdx
movl %r14d, %ecx
cmovgl %eax, %ecx
movl (%rdx), %edx
subl %ecx, %edx
movl %edx, 0x8(%rdi)
movl $0xc0000001, 0x4(%rdi)  # imm = 0xC0000001
leaq 0x1(%r8), %rcx
incl %ebp
incq 0x78(%rsp)
addq $0xc, 0x80(%rsp)
movq %rsi, %r11
cmpq 0xa8(%rsp), %r8
jl 0xfc15
movl %ecx, %ebp
movq 0x38(%rsp), %rax
movslq %eax, %rcx
movq %rcx, 0x40(%rsp)
cmpl %eax, %ebp
jge 0x1023e
movq %r12, 0x20(%rsp)
leal (%r14,%r15), %eax
movslq 0x58(%rsp), %rdi
movq 0x8(%rsp), %rcx
movq 0x30(%rsp), %rdx
addl %edx, %ecx
movl %ecx, 0x50(%rsp)
movslq %ebp, %r12
movq 0x28(%rsp), %rcx
subl %ecx, %ebp
incl %ebp
movslq %ecx, %rdx
movq 0x70(%rsp), %rcx
decq %rcx
movq %rcx, 0xa8(%rsp)
movq %r12, %rcx
subq %rdx, %rcx
incq %rcx
movq %rcx, 0x78(%rsp)
leaq (,%r12,4), %rcx
leaq (%rcx,%rcx,2), %r8
leaq (,%rdx,4), %rcx
leaq (%rcx,%rcx,2), %rcx
subq %rcx, %r8
addq $0xc, %r8
movq %r8, 0x80(%rsp)
movq %rdx, 0xb8(%rsp)
negq %rdx
movq %rdx, 0xb0(%rsp)
movq %r13, %rbx
movq 0x20(%rsp), %r13
movq %rsi, %r9
movq %r12, %rcx
subq 0xb8(%rsp), %rcx
leaq (%rcx,%rcx,2), %rdx
movl $0xc0000001, 0x8(%rsi,%rdx,4) # imm = 0xC0000001
movabsq $-0x3ffffffe3fffffff, %rsi # imm = 0xC0000001C0000001
movq %rsi, (%r9,%rdx,4)
movq 0x98(%rsp), %rsi
movzbl -0x1(%rsi,%r12), %esi
imulq 0x88(%rsp), %rsi
movq 0x90(%rsp), %r8
leaq (%r8,%rsi,4), %r10
movq 0xb0(%rsp), %rsi
leaq (%r12,%rsi), %r11
incq %r11
movq %r12, 0x18(%rsp)
movq (%rbx,%r12,8), %r12
cmpq %rdi, %r11
movq %rbp, 0x68(%rsp)
movq %r9, 0x20(%rsp)
movq %r13, 0x10(%rsp)
jge 0x100f7
movslq %ebp, %r11
leaq (,%r11,4), %rcx
leaq (%rcx,%rcx,2), %rsi
movq 0xa8(%rsp), %rcx
leaq (%rcx,%r11), %rbx
addq %r13, %rsi
addq 0x78(%rsp), %r12
movq 0x80(%rsp), %rcx
leaq (%r9,%rcx), %rbp
xorl %r13d, %r13d
movl -0xc(%rsi), %ecx
movl -0x8(%rsi), %r9d
movl -0x4(%rsi), %r8d
movzbl (%rbx,%r13), %edx
movl (%r10,%rdx,4), %edx
cmpl %r9d, %ecx
jge 0x10037
cmpl %r8d, %r9d
jle 0x1003c
addl %r9d, %edx
movl %edx, (%rbp)
movb (%r12,%r13), %dl
andb $-0x8, %dl
incb %dl
jmp 0x1005a
cmpl %r8d, %ecx
jge 0x1004e
addl %r8d, %edx
movl %edx, (%rbp)
movb (%r12,%r13), %dl
andb $-0x8, %dl
orb $0x2, %dl
jmp 0x1005a
addl %ecx, %edx
movl %edx, (%rbp)
movb (%r12,%r13), %dl
andb $-0x8, %dl
movb %dl, (%r12,%r13)
movl (%rsi), %ecx
subl %r15d, %ecx
leaq 0x4(%rsi), %r8
andb $-0x19, %dl
leal 0x8(%rdx), %r9d
cmpl 0x4(%rsi), %ecx
movzbl %dl, %ecx
movzbl %r9b, %edx
cmovgl %ecx, %edx
movl %r14d, %ecx
cmovgl %eax, %ecx
movb %dl, (%r12,%r13)
cmovgq %rsi, %r8
movl (%r8), %edx
subl %ecx, %edx
movl %edx, 0x4(%rbp)
movl -0xc(%rbp), %ecx
subl %r15d, %ecx
movb (%r12,%r13), %dl
andb $0x1f, %dl
leal 0x40(%rdx), %r8d
cmpl -0x4(%rbp), %ecx
movzbl %dl, %ecx
movzbl %r8b, %edx
cmovgl %ecx, %edx
leaq -0xc(%rbp), %rcx
movl %r14d, %r8d
cmovgl %eax, %r8d
leaq -0x4(%rbp), %r9
movb %dl, (%r12,%r13)
cmovgq %rcx, %r9
movl (%r9), %ecx
subl %r8d, %ecx
movl %ecx, 0x8(%rbp)
addq $0xc, %rsi
leaq (%r11,%r13), %rcx
incq %rcx
incq %r13
addq $0xc, %rbp
cmpq %rdi, %rcx
jl 0x10008
addq %r13, %r11
addq %r13, %r12
movq 0x60(%rsp), %r13
jmp 0x10108
addq %rcx, %r12
incq %r12
leaq (%r9,%rdx,4), %rbp
addq $0xc, %rbp
movq %rbx, %r13
leaq (%rdi,%rdi,2), %rcx
movq 0x10(%rsp), %r9
movl -0xc(%r9,%rcx,4), %r8d
movl -0x8(%r9,%rcx,4), %ebx
movl -0x4(%r9,%rcx,4), %esi
movslq %r11d, %rcx
movq 0x70(%rsp), %rdx
movzbl -0x1(%rdx,%rcx), %ecx
movl (%r10,%rcx,4), %edx
cmpl %ebx, %r8d
jge 0x1014c
cmpl %esi, %ebx
jle 0x10151
addl %ebx, %edx
movl %edx, (%rbp)
movb (%r12), %sil
andb $-0x8, %sil
incb %sil
jmp 0x10172
cmpl %esi, %r8d
jge 0x10164
addl %esi, %edx
movl %edx, (%rbp)
movb (%r12), %sil
andb $-0x8, %sil
orb $0x2, %sil
jmp 0x10172
addl %r8d, %edx
movl %edx, (%rbp)
movb (%r12), %sil
andb $-0x8, %sil
movl %esi, %edx
andb $-0x19, %dl
movb %sil, (%r12)
movslq %r11d, %rcx
leaq (%rcx,%rcx,2), %rsi
leaq (%r9,%rsi,4), %r10
movl (%r10), %ecx
movl 0x4(%r10), %r8d
leaq (%r9,%rsi,4), %rsi
addq $0x4, %rsi
cmpl $0x0, 0x8(%rsp)
js 0x101ae
subl 0x30(%rsp), %ecx
cmpl %r8d, %ecx
jle 0x101bd
movq %r10, %rsi
movl 0x50(%rsp), %ecx
jmp 0x101cd
subl %r15d, %ecx
cmpl %r8d, %ecx
jle 0x101c7
movq %r10, %rsi
movl %eax, %ecx
jmp 0x101cd
orb $0x8, %dl
movq 0x8(%rsp), %rcx
jmp 0x101cd
orb $0x8, %dl
movl %r14d, %ecx
movb %dl, (%r12)
movl (%rsi), %edx
subl %ecx, %edx
movl %edx, 0x4(%rbp)
movl -0xc(%rbp), %ecx
subl %r15d, %ecx
movb (%r12), %dl
andb $0x1f, %dl
cmpl -0x4(%rbp), %ecx
leal 0x40(%rdx), %ecx
movzbl %dl, %edx
movzbl %cl, %ecx
cmovgl %edx, %ecx
movb %cl, (%r12)
leaq -0xc(%rbp), %rcx
leaq -0x4(%rbp), %rdx
cmovgq %rcx, %rdx
movl %r14d, %ecx
cmovgl %eax, %ecx
movl (%rdx), %edx
subl %ecx, %edx
movl %edx, 0x8(%rbp)
movq 0x18(%rsp), %r12
incq %r12
movq 0x68(%rsp), %rbp
incl %ebp
incq 0x78(%rsp)
addq $0xc, 0x80(%rsp)
movq %r9, %rsi
cmpq 0x40(%rsp), %r12
jne 0xff53
jmp 0x1024c
jne 0x104d1
movq %r12, 0x20(%rsp)
movq %rsi, %r9
movq %r9, 0x10(%rsp)
movq 0x38(%rsp), %r12
movl %r12d, %eax
movq 0x28(%rsp), %rsi
subl %esi, %eax
movslq %eax, %rbp
leaq (,%rbp,2), %rax
addq %rbp, %rax
leaq 0xc(%r9,%rax,4), %rax
movl $0xc0000001, -0x4(%rax) # imm = 0xC0000001
movabsq $-0x3ffffffe3fffffff, %rcx # imm = 0xC0000001C0000001
movq %rcx, -0xc(%rax)
movq 0x98(%rsp), %rcx
movq 0x40(%rsp), %rdi
movzbl -0x1(%rcx,%rdi), %ecx
movq 0x88(%rsp), %rdx
imulq %rcx, %rdx
movq 0x90(%rsp), %rcx
leaq (%rcx,%rdx,4), %rcx
movq %rcx, 0x68(%rsp)
incq %rbp
movq (%r13,%rdi,8), %rcx
addq %rbp, %rcx
movq 0x58(%rsp), %rdi
cmpl %edi, %ebp
jge 0x1046c
leal (%r14,%r15), %r8d
movq 0x8(%rsp), %rdx
movq 0x30(%rsp), %r9
addl %r9d, %edx
movl %edx, 0x90(%rsp)
leaq (,%rbp,4), %rdx
leaq (%rdx,%rdx,2), %r10
movq 0x70(%rsp), %rdx
movq %rbp, 0x88(%rsp)
leaq -0x1(%rbp,%rdx), %rdx
movq %rdx, 0x98(%rsp)
notl %r12d
addl %edi, %r12d
addl %esi, %r12d
xorl %ebp, %ebp
movq 0x10(%rsp), %rbx
movq 0x20(%rsp), %r13
movl -0xc(%r13,%r10), %r9d
movl -0x8(%r13,%r10), %edi
movl -0x4(%r13,%r10), %esi
movq 0x98(%rsp), %rdx
movzbl (%rdx,%rbp), %edx
movq 0x68(%rsp), %r11
movl (%r11,%rdx,4), %edx
cmpl %edi, %r9d
jge 0x10362
cmpl %esi, %edi
jle 0x10367
addl %edi, %edx
movl %edx, (%rbx,%r10)
movb (%rcx,%rbp), %sil
andb $-0x8, %sil
incb %sil
jmp 0x1038a
cmpl %esi, %r9d
jge 0x1037b
addl %esi, %edx
movl %edx, (%rbx,%r10)
movb (%rcx,%rbp), %sil
andb $-0x8, %sil
orb $0x2, %sil
jmp 0x1038a
addl %r9d, %edx
movl %edx, (%rbx,%r10)
movb (%rcx,%rbp), %sil
andb $-0x8, %sil
movb %sil, (%rcx,%rbp)
leaq (%r10,%r13), %rdx
leaq (%r10,%r13), %rdi
addq $0x4, %rdi
movl -0x4(%rdi), %r9d
subl %r15d, %r9d
andb $-0x19, %sil
leal 0x8(%rsi), %r11d
cmpl (%rdi), %r9d
movzbl %sil, %esi
movzbl %r11b, %r9d
cmovgl %esi, %r9d
movl %r14d, %esi
cmovgl %r8d, %esi
movb %r9b, (%rcx,%rbp)
cmovleq %rdi, %rdx
movl (%rdx), %edx
subl %esi, %edx
leaq (%rbx,%r10), %r9
addq $-0xc, %r9
movl %edx, 0x10(%r9)
leaq -0x4(%rax), %rdx
movb (%rcx,%rbp), %sil
andb $0x1f, %sil
movl (%r9), %edi
movl 0x8(%r9), %r11d
cmpl $0x0, 0x8(%rsp)
js 0x10406
subl 0x30(%rsp), %edi
cmpl %r11d, %edi
jle 0x10416
movq %r9, %rdx
movl 0x90(%rsp), %edi
jmp 0x10428
subl %r15d, %edi
cmpl %r11d, %edi
jle 0x10421
movq %r9, %rdx
movl %r8d, %edi
jmp 0x10428
orb $0x40, %sil
movq 0x8(%rsp), %rdi
jmp 0x10428
orb $0x40, %sil
movl %r14d, %edi
movb %sil, (%rcx,%rbp)
movl (%rdx), %edx
subl %edi, %edx
movl %edx, 0x8(%rbx,%r10)
addq $0xc, %rax
addq $0xc, %r13
incq %rbp
addq $0xc, %rbx
cmpl %ebp, %r12d
jne 0x10322
addq %rbp, %rcx
movq 0x88(%rsp), %rax
leaq (%rax,%rax,2), %rax
leaq (%rbx,%rax,4), %rax
movq 0x58(%rsp), %rdi
movl %edi, %ebp
movq 0x60(%rsp), %r13
movslq %edi, %rdx
movq %rdx, %r11
leaq (%rdx,%rdx,2), %rdx
movq 0x20(%rsp), %rbx
movl -0xc(%rbx,%rdx,4), %r9d
movl -0x8(%rbx,%rdx,4), %r10d
movl -0x4(%rbx,%rdx,4), %r8d
movslq %ebp, %rdx
movq 0x70(%rsp), %rsi
movzbl -0x1(%rsi,%rdx), %esi
movq 0x68(%rsp), %rdi
movl (%rdi,%rsi,4), %esi
cmpl %r10d, %r9d
jge 0x104ba
cmpl %r8d, %r10d
jle 0x104bf
addl %r10d, %esi
movl %esi, (%rax)
movb (%rcx), %sil
andb $-0x8, %sil
incb %sil
jmp 0x104f4
cmpl %r8d, %r9d
jge 0x104e8
addl %r8d, %esi
movl %esi, (%rax)
movb (%rcx), %sil
andb $-0x8, %sil
orb $0x2, %sil
jmp 0x104f4
movq 0x38(%rsp), %r15
movq 0x28(%rsp), %rdi
movq 0xb8(%rsp), %r11
jmp 0x105e2
addl %r9d, %esi
movl %esi, (%rax)
movb (%rcx), %sil
andb $-0x8, %sil
movq 0x10(%rsp), %r12
movb %sil, (%rcx)
andb $-0x19, %sil
leaq (%rdx,%rdx,2), %rdx
leaq (%rbx,%rdx,4), %rdx
movl (%rdx), %edi
movl 0x4(%rdx), %r8d
cmpl $0x0, 0x8(%rsp)
js 0x10533
movq 0x30(%rsp), %r9
subl %r9d, %edi
cmpl %r8d, %edi
jle 0x10548
movb %sil, (%rcx)
movl (%rdx), %edx
movq 0x8(%rsp), %rsi
addl %r9d, %esi
subl %esi, %edx
jmp 0x10556
subl %r15d, %edi
cmpl %r8d, %edi
jle 0x1059d
movb %sil, (%rcx)
movl (%rdx), %edx
subl %r14d, %edx
subl %r15d, %edx
jmp 0x105aa
orb $0x8, %sil
movb %sil, (%rcx)
movl 0x4(%rdx), %edx
subl 0x8(%rsp), %edx
movq 0x38(%rsp), %r15
movq 0x28(%rsp), %rdi
movl %edx, 0x4(%rax)
movl -0xc(%rax), %esi
subl %r9d, %esi
movb (%rcx), %dl
andb $0x1f, %dl
cmpl -0x4(%rax), %esi
jle 0x10584
movb %dl, (%rcx)
movl -0xc(%rax), %ecx
movq 0x8(%rsp), %rdx
addl %r9d, %edx
subl %edx, %ecx
jmp 0x10590
orb $0x40, %dl
movb %dl, (%rcx)
movl -0x4(%rax), %ecx
subl 0x8(%rsp), %ecx
movl %ecx, 0x8(%rax)
movq %rbx, %rsi
movq 0x10(%rsp), %r12
jmp 0x105e2
orb $0x8, %sil
movb %sil, (%rcx)
movl 0x4(%rdx), %edx
subl %r14d, %edx
movq 0x28(%rsp), %rdi
movl %edx, 0x4(%rax)
movl -0xc(%rax), %esi
subl %r15d, %esi
movb (%rcx), %dl
andb $0x1f, %dl
cmpl -0x4(%rax), %esi
jle 0x105cc
movb %dl, (%rcx)
movl -0xc(%rax), %ecx
addl %r15d, %r14d
jmp 0x105d4
orb $0x40, %dl
movb %dl, (%rcx)
movl -0x4(%rax), %ecx
subl %r14d, %ecx
movl %ecx, 0x8(%rax)
movq %rbx, %rsi
movq 0x38(%rsp), %r15
movq %rsi, 0x18(%rsp)
leaq (%r11,%r11,2), %rax
movl (%r12,%rax,4), %ebx
movq 0xc0(%rsp), %rcx
movl %ebx, (%rcx)
cmpq $0x0, 0x110(%rsp)
movq %r12, 0x10(%rsp)
je 0x107df
movq %r11, %rbp
leaq (%r12,%rax,4), %r14
movq 0x58(%rsp), %r12
leal (%r12,%r15), %eax
addl $0x2, %eax
cltq
shlq $0x2, %rax
leaq (%rax,%rax,2), %rdi
callq 0x3240
movq 0x40(%rsp), %rcx
movq (%r13,%rcx,8), %rcx
movb (%rcx,%rbp), %cl
movl %ecx, %edx
andb $0x7, %dl
movzbl %dl, %edx
movl %ecx, %esi
shrb $0x3, %sil
andb $0x3, %sil
movzbl %sil, %edi
movl 0x4(%r14), %esi
xorl %r8d, %r8d
cmpl %ebx, %esi
cmovgl %esi, %ebx
cmovlel %edx, %edi
setg %r8b
shrb $0x5, %cl
cmpl %ebx, 0x8(%r14)
movq %r12, %r10
movq %rax, %r13
movzbl %cl, %esi
cmovlel %edi, %esi
movl $0x2, %eax
cmovlel %r8d, %eax
movb %al, 0x8(%r13)
movl %r10d, (%r13)
movl %r15d, 0x4(%r13)
movl $0xc, %ecx
movl %r15d, %edx
movl %eax, %edi
movl %esi, %eax
cmpb $0x2, %dil
je 0x106b3
movzbl %dil, %esi
cmpl $0x1, %esi
je 0x106af
testl %esi, %esi
jne 0x106b6
decl %r10d
decl %edx
jmp 0x106b6
decl %r10d
movslq %edx, %rsi
movq 0x60(%rsp), %rdi
movq (%rdi,%rsi,8), %rdi
movslq %r10d, %r8
cmpb $0x2, %al
je 0x106f2
movzbl %al, %r9d
cmpl $0x1, %r9d
je 0x106e4
movl %eax, %esi
testl %r9d, %r9d
jne 0x106fa
movb (%rdi,%r8), %sil
andb $0x7, %sil
jmp 0x106fa
movb (%rdi,%r8), %sil
shrb $0x3, %sil
andb $0x3, %sil
jmp 0x106fa
movb (%rdi,%r8), %sil
shrb $0x5, %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 0x10695
sarq $0x2, %rcx
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rbx
movl %ebx, %r14d
decl %r14d
je 0x107e3
movl $0x1, %eax
cmpl $0x2, %r14d
jl 0x10766
movl %r14d, %ecx
movb 0x8(%r13), %sil
decq %rcx
leaq 0x14(%r13), %rdx
movb (%rdx), %dil
xorl %r8d, %r8d
cmpb %dil, %sil
setne %r8b
addl %r8d, %eax
addq $0xc, %rdx
movl %edi, %esi
decq %rcx
jne 0x1074b
movq 0x110(%rsp), %rcx
movl %eax, (%rcx)
movslq %eax, %rdi
movl $0x4, %esi
callq 0x3610
movq %rax, %rbp
movslq %r14d, %rax
leaq (%rax,%rax,2), %rax
movzbl -0x4(%r13,%rax,4), %eax
movl %eax, %ecx
orl $0x10, %ecx
movl %ecx, (%rbp)
cmpl $0x2, %r14d
jl 0x107f3
addl $-0x3, %ebx
leaq (%rbx,%rbx,2), %rcx
incq %rbx
leaq 0x8(,%rcx,4), %rcx
addq %r13, %rcx
xorl %edx, %edx
movb (%rcx), %sil
movslq %edx, %rdi
cmpb %al, %sil
jne 0x107c4
addl $0x10, (%rbp,%rdi,4)
jmp 0x107d4
movzbl %sil, %eax
orl $0x10, %eax
leal 0x1(%rdi), %edx
movl %eax, 0x4(%rbp,%rdi,4)
movl %esi, %eax
addq $-0xc, %rcx
decq %rbx
jg 0x107b2
jmp 0x107f3
xorl %ebp, %ebp
jmp 0x10805
movq 0x110(%rsp), %rax
movl $0x0, (%rax)
xorl %ebp, %ebp
movq %r13, %rdi
callq 0x3350
movq 0x60(%rsp), %r13
movq 0x28(%rsp), %rdi
movl 0x4c(%rsp), %eax
cmpl %r15d, %eax
jge 0x10844
movslq %eax, %rcx
movslq %edi, %rdx
leaq 0x8(,%rcx,8), %rax
addq %r13, %rax
negq %rdx
addq %rdx, %rcx
incq %rcx
movl %r15d, %edx
subl %edi, %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 0x1082f
testl %r15d, %r15d
movq 0xc8(%rsp), %r14
js 0x10865
xorl %ebx, %ebx
movq (%r13,%rbx,8), %rdi
callq 0x3350
incq %rbx
cmpq %rbx, %r14
jne 0x10853
movq %r13, %rdi
callq 0x3350
movq 0x18(%rsp), %rdi
callq 0x3350
movq 0x10(%rsp), %rdi
callq 0x3350
movq %rbp, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq