// File: /workspace/github_c_makefile_star2_O1/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 $0xc8, %rsp
movq %rcx, 0x10(%rsp)
movq %rdx, 0x78(%rsp)
movq %rdi, 0x50(%rsp)
movq 0x100(%rsp), %rcx
movl (%r8), %r15d
movl 0x4(%r8), %ebp
movl 0x8(%r8), %r10d
movl 0xc(%r8), %edi
movl 0x1c(%r8), %eax
movq 0x10(%r8), %rdx
movq %rdx, 0xa0(%rsp)
movslq 0x18(%r8), %rdx
movq %rdx, 0x98(%rsp)
testq %rcx, %rcx
je 0xeefe
movl $0x0, (%rcx)
testl %esi, %esi
sete %cl
movq 0x10(%rsp), %rbx
testl %ebx, %ebx
sete %dl
xorl %r12d, %r12d
orb %cl, %dl
jne 0x104c4
movq %r10, 0x8(%rsp)
movq %rdi, (%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, 0x18(%rsp)
cmovgel %esi, %edx
movq %rdx, 0x48(%rsp)
cmpl %ebx, %ecx
movl %ebx, %eax
movl %ecx, 0x44(%rsp)
cmovll %ecx, %eax
movq %rax, 0x38(%rsp)
movslq %ebx, %rax
movq %rax, 0xb0(%rsp)
leaq 0x8(,%rax,8), %rdi
callq 0x3240
movq %rax, %r13
testl %ebx, %ebx
js 0xefb9
movq 0x38(%rsp), %rax
movq 0x48(%rsp), %rcx
addl %ecx, %eax
movq 0x18(%rsp), %rcx
cmpl %ecx, %eax
cmovgel %ecx, %eax
incl %eax
movslq %eax, %rbx
movq 0x10(%rsp), %rax
leal 0x1(%rax), %r14d
xorl %r12d, %r12d
movq %rbx, %rdi
callq 0x3240
movq %rax, (%r13,%r12,8)
incq %r12
cmpq %r12, %r14
jne 0xefa4
movq 0x10(%rsp), %rdx
cmpl %edx, 0x44(%rsp)
jge 0xeff1
movslq 0x44(%rsp), %rax
movslq 0x38(%rsp), %rsi
leaq 0x8(,%rax,8), %rcx
addq %r13, %rcx
notq %rax
addq %rsi, %rax
subl %esi, %edx
xorl %esi, %esi
addq %rax, (%rcx,%rsi,8)
decq %rax
incq %rsi
cmpl %esi, %edx
jne 0xefe3
movslq 0x18(%rsp), %rax
movq %rax, 0x70(%rsp)
leaq (,%rax,4), %rax
leaq (%rax,%rax,2), %rbx
addq $0xc, %rbx
movq %rbx, %rdi
callq 0x3240
movq %rax, %r14
movq %rbx, %rdi
callq 0x3240
movq %rax, %rbx
movl $0xc0000001, 0x8(%r14)  # imm = 0xC0000001
movabsq $-0x3fffffff00000000, %rax # imm = 0xC000000100000000
movq %rax, (%r14)
cmpl $0x2, 0x48(%rsp)
jl 0xf0dc
leal (%r15,%rbp), %eax
movq (%rsp), %rcx
movq 0x8(%rsp), %rdx
addl %edx, %ecx
movl 0x48(%rsp), %edx
movq (%r13), %rsi
movl $0x1, %edi
movq %r14, %r8
movl $0xc0000001, 0x14(%r8)  # imm = 0xC0000001
movabsq $-0x3ffffffe3fffffff, %r9 # imm = 0xC0000001C0000001
movq %r9, 0xc(%r8)
leaq 0x8(%r8), %r10
movb (%rsi,%rdi), %r9b
andb $0x1f, %r9b
movl (%r8), %r11d
movl 0x8(%r8), %r12d
cmpl $0x0, (%rsp)
js 0xf0a1
subl 0x8(%rsp), %r11d
cmpl %r12d, %r11d
jle 0xf0b1
movq %r8, %r10
movl %ecx, %r11d
jmp 0xf0c2
subl %r15d, %r11d
cmpl %r12d, %r11d
jle 0xf0bb
movq %r8, %r10
movl %eax, %r11d
jmp 0xf0c2
orb $0x40, %r9b
movq (%rsp), %r11
jmp 0xf0c2
orb $0x40, %r9b
movl %ebp, %r11d
movb %r9b, (%rsi,%rdi)
movl (%r10), %r9d
subl %r11d, %r9d
movl %r9d, 0x14(%r8)
addq $0xc, %r8
incq %rdi
cmpq %rdi, %rdx
jne 0xf060
movq 0x18(%rsp), %r9
leal 0x1(%r9), %r10d
movq 0x10(%rsp), %rsi
leal -0x1(%rsi), %edx
movl 0x44(%rsp), %ecx
cmpl %esi, %ecx
movl %edx, %edi
cmovll 0x38(%rsp), %edi
testl %edi, %edi
movq %r13, 0x68(%rsp)
jle 0xf47d
movl %edx, 0x88(%rsp)
leal (%r15,%rbp), %eax
movl %eax, 0x80(%rsp)
movq (%rsp), %r11
movq 0x8(%rsp), %rax
addl %r11d, %eax
movl %eax, 0x58(%rsp)
movslq 0x48(%rsp), %rax
movq %rax, 0x28(%rsp)
movl %r10d, 0x90(%rsp)
movslq %r10d, %rax
movq %rax, 0x60(%rsp)
incl %edi
movl $0x1, %r13d
movq %rdi, 0x30(%rsp)
movq %r14, %rax
movq %rbx, %r14
movq 0x68(%rsp), %rcx
movq (%rcx,%r13,8), %rbx
movl $0xc0000001, 0x8(%r14)  # imm = 0xC0000001
movabsq $-0x3ffffffe3fffffff, %rcx # imm = 0xC0000001C0000001
movq %rcx, (%r14)
leaq 0x4(%rax), %rdi
movb (%rbx), %cl
andb $-0x19, %cl
movl (%rax), %edx
movl 0x4(%rax), %esi
testl %r11d, %r11d
js 0xf198
subl 0x8(%rsp), %edx
cmpl %esi, %edx
jle 0xf1ab
movq %rax, %rdi
movl 0x58(%rsp), %edx
jmp 0xf1b8
subl %r15d, %edx
cmpl %esi, %edx
jle 0xf1b3
movq %rax, %rdi
movl 0x80(%rsp), %edx
jmp 0xf1b8
orb $0x8, %cl
movl %r11d, %edx
jmp 0xf1b8
orb $0x8, %cl
movl %ebp, %edx
movb %cl, (%rbx)
movl (%rdi), %ecx
subl %edx, %ecx
movl %ecx, 0x4(%r14)
movq 0x28(%rsp), %rdx
leaq (%rdx,%r13), %rcx
cmpq 0x60(%rsp), %rcx
leaq -0x1(%r13,%rdx), %rcx
movl %ecx, %edx
cmovgl %r9d, %edx
movq 0x78(%rsp), %rsi
movq %r13, 0x20(%rsp)
movzbl -0x1(%rsi,%r13), %esi
imulq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdi
leaq (%rdi,%rsi,4), %r9
leaq 0xc(%r14), %rdi
cmpl $0x1, %edx
jne 0xf219
incq %rbx
movl $0x1, %edx
movq %r14, %r12
jmp 0xf326
movl %edx, %r12d
leaq 0x10(%rax), %r13
movl $0x1, %r10d
movl -0x10(%r13), %r8d
movl -0xc(%r13), %r11d
movl -0x8(%r13), %esi
movq 0x50(%rsp), %rdx
movzbl -0x1(%rdx,%r10), %edx
movl (%r9,%rdx,4), %edx
cmpl %r11d, %r8d
jge 0xf25d
cmpl %esi, %r11d
jle 0xf262
addl %r11d, %edx
movl %edx, (%rdi)
movb (%rbx,%r10), %sil
andb $-0x8, %sil
incb %sil
jmp 0xf281
cmpl %esi, %r8d
jge 0xf274
addl %esi, %edx
movl %edx, (%rdi)
movb (%rbx,%r10), %sil
andb $-0x8, %sil
orb $0x2, %sil
jmp 0xf281
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 %r15d, %r8d
andb $-0x19, %sil
leal 0x8(%rsi), %r11d
cmpl (%r13), %r8d
movzbl %sil, %esi
movzbl %r11b, %r8d
cmovgl %esi, %r8d
movl $0x0, %esi
cmovgl %r15d, %esi
cmovleq %r13, %rdx
movb %r8b, (%rbx,%r10)
addl %ebp, %esi
movl (%rdx), %edx
subl %esi, %edx
movl %edx, 0x4(%rdi)
movl -0xc(%rdi), %edx
subl %r15d, %edx
movb (%rbx,%r10), %sil
andb $0x1f, %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 %r15d, %r8d
leaq -0x4(%rdi), %r11
movb %sil, (%rbx,%r10)
cmovgq %rdx, %r11
addl %ebp, %r8d
movl (%r11), %edx
subl %r8d, %edx
movl %edx, 0x8(%rdi)
incq %r10
addq $0xc, %rdi
addq $0xc, %r13
cmpq %r10, %r12
jne 0xf226
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 0x50(%rsp), %r13
movzbl -0x1(%r13,%rdx), %edx
movl (%r9,%rdx,4), %edx
cmpl %r11d, %r8d
jge 0xf363
cmpl %esi, %r11d
jle 0xf37d
addl %r11d, %edx
movl %edx, (%rdi)
movb (%rbx), %sil
andb $-0x8, %sil
incb %sil
jmp 0xf38c
cmpl %esi, %r8d
movq (%rsp), %r11
jge 0xf392
addl %esi, %edx
movl %edx, (%rdi)
movb (%rbx), %sil
andb $-0x8, %sil
orb $0x2, %sil
jmp 0xf39e
addl %esi, %edx
movl %edx, (%rdi)
movb (%rbx), %sil
andb $-0x8, %sil
orb $0x2, %sil
movq (%rsp), %r11
jmp 0xf39e
addl %r8d, %edx
movl %edx, (%rdi)
movb (%rbx), %sil
andb $-0x8, %sil
movq 0x20(%rsp), %r13
movb %sil, (%rbx)
movl (%r12), %edx
subl %r15d, %edx
leaq 0x8(%r12), %rdi
andb $0x1f, %sil
leal 0x40(%rsi), %r8d
cmpl 0x8(%r12), %edx
movzbl %sil, %edx
movzbl %r8b, %esi
cmovgl %edx, %esi
movl $0x0, %edx
cmovgl %r15d, %edx
movb %sil, (%rbx)
cmovgq %r12, %rdi
addl %ebp, %edx
movl (%rdi), %esi
subl %edx, %esi
movl %esi, 0x14(%r12)
movl $0xc0000001, %esi       # imm = 0xC0000001
cmpq 0x70(%rsp), %rcx
jle 0xf442
leaq (%rax,%r10,4), %rdx
leaq 0x4(%rdx), %rdi
movb (%rbx), %cl
andb $-0x19, %cl
movl (%rdx), %esi
movl 0x4(%rdx), %r8d
testl %r11d, %r11d
js 0xf41b
subl 0x8(%rsp), %esi
cmpl %r8d, %esi
jle 0xf42f
movq %rdx, %rdi
movl 0x58(%rsp), %edx
jmp 0xf43c
subl %r15d, %esi
cmpl %r8d, %esi
jle 0xf437
movq %rdx, %rdi
movl 0x80(%rsp), %edx
jmp 0xf43c
orb $0x8, %cl
movl %r11d, %edx
jmp 0xf43c
orb $0x8, %cl
movl %ebp, %edx
movb %cl, (%rbx)
movl (%rdi), %esi
subl %edx, %esi
movl %esi, 0x10(%r12)
incq %r13
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %rdi, %r13
movq 0x18(%rsp), %r9
jne 0xf150
movq %rax, %rbx
movq 0x10(%rsp), %rsi
movl 0x44(%rsp), %ecx
movl 0x90(%rsp), %r10d
movl 0x88(%rsp), %edx
jmp 0xf487
movl $0x1, %r13d
movq (%rsp), %r11
cmpl %esi, %r13d
setne %al
cmpl %edx, %ecx
sete %cl
orb %al, %cl
je 0xf4a6
movq %r14, %r12
movq %rbx, %r14
movq 0x38(%rsp), %rcx
jmp 0xf816
movl %r13d, %eax
movq 0x68(%rsp), %rcx
movq (%rcx,%rax,8), %rdi
movl $0xc0000001, 0x8(%rbx)  # imm = 0xC0000001
movabsq $-0x3ffffffe3fffffff, %rcx # imm = 0xC0000001C0000001
movq %rcx, (%rbx)
movb (%rdi), %cl
andb $-0x19, %cl
movl (%r14), %edx
movl 0x4(%r14), %esi
testl %r11d, %r11d
js 0xf4ee
movq 0x8(%rsp), %r8
subl %r8d, %edx
cmpl %esi, %edx
jle 0xf502
movb %cl, (%rdi)
movl (%r14), %ecx
leal (%r11,%r8), %edx
jmp 0xf4fe
subl %r15d, %edx
cmpl %esi, %edx
jle 0xf510
movb %cl, (%rdi)
movl (%r14), %ecx
leal (%r15,%rbp), %edx
subl %edx, %ecx
jmp 0xf51b
orb $0x8, %cl
movb %cl, (%rdi)
movl 0x4(%r14), %ecx
subl %r11d, %ecx
jmp 0xf51b
orb $0x8, %cl
movb %cl, (%rdi)
movl 0x4(%r14), %ecx
subl %ebp, %ecx
movl %ecx, 0x4(%rbx)
movq 0x48(%rsp), %rdx
leal (%rdx,%r13), %ecx
cmpl %r10d, %ecx
leal -0x1(%r13,%rdx), %r12d
movl %r12d, %edx
cmovgl %r9d, %edx
movq 0x78(%rsp), %rcx
movzbl -0x1(%rcx,%rax), %eax
imulq 0x98(%rsp), %rax
movq 0xa0(%rsp), %rcx
leaq (%rcx,%rax,4), %rax
movq %rax, 0x30(%rsp)
leaq 0xc(%rbx), %rax
cmpl $0x1, %edx
jne 0xf573
incq %rdi
movl $0x1, %edx
movq %rbx, %rsi
jmp 0xf6d5
movl %r12d, 0x58(%rsp)
movq %r13, 0x20(%rsp)
leal (%r15,%rbp), %ecx
movl %ecx, 0x60(%rsp)
movq 0x8(%rsp), %rcx
addl %r11d, %ecx
movl %ecx, 0x28(%rsp)
movl %edx, %r10d
leaq 0x10(%r14), %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 0x50(%rsp), %rax
movzbl -0x1(%rax,%r8), %eax
movq 0x30(%rsp), %rcx
movl (%rcx,%rax,4), %eax
cmpl %r9d, %esi
jge 0xf5e4
cmpl %edx, %r9d
jle 0xf5e8
addl %r9d, %eax
movl %eax, (%r12)
movb (%rdi,%r8), %sil
andb $-0x8, %sil
incb %sil
jmp 0xf60a
cmpl %edx, %esi
jge 0xf5fc
addl %edx, %eax
movl %eax, (%r12)
movb (%rdi,%r8), %sil
andb $-0x8, %sil
orb $0x2, %sil
jmp 0xf60a
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 %r15d, %r9d
andb $-0x19, %sil
leal 0x8(%rsi), %ecx
cmpl (%r11), %r9d
movzbl %sil, %esi
movzbl %cl, %ecx
cmovgl %esi, %ecx
movl $0x0, %esi
cmovgl %r15d, %esi
movb %cl, (%rdi,%r8)
cmovleq %r11, %rdx
addl %ebp, %esi
movl (%rdx), %ecx
subl %esi, %ecx
movl %ecx, 0x4(%r12)
addq $0x8, %r13
movb (%rdi,%r8), %sil
andb $0x1f, %sil
movl -0xc(%r12), %edx
movl -0x4(%r12), %r9d
cmpl $0x0, (%rsp)
js 0xf67c
subl 0x8(%rsp), %edx
cmpl %r9d, %edx
jle 0xf68d
movq %rax, %r13
movl 0x28(%rsp), %eax
jmp 0xf69d
subl %r15d, %edx
cmpl %r9d, %edx
jle 0xf697
movq %rax, %r13
movl 0x60(%rsp), %eax
jmp 0xf69d
orb $0x40, %sil
movq (%rsp), %rax
jmp 0xf69d
orb $0x40, %sil
movl %ebp, %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 0xf5a1
movl %r8d, %edx
leaq -0xc(%rax), %rsi
addq %r8, %rdi
movq 0x20(%rsp), %r13
movl 0x58(%rsp), %r12d
leaq (%rdx,%rdx,2), %r8
movl -0xc(%r14,%r8,4), %r10d
movl -0x8(%r14,%r8,4), %r11d
movl -0x4(%r14,%r8,4), %r9d
movq 0x50(%rsp), %rcx
movzbl -0x1(%rcx,%rdx), %ecx
movq 0x30(%rsp), %rdx
movl (%rdx,%rcx,4), %ecx
cmpl %r11d, %r10d
jge 0xf711
cmpl %r9d, %r11d
jle 0xf727
addl %r11d, %ecx
movl %ecx, (%rax)
movb (%rdi), %al
andb $-0x8, %al
incb %al
jmp 0xf732
cmpl %r9d, %r10d
movq (%rsp), %r11
jge 0xf73d
addl %r9d, %ecx
movl %ecx, (%rax)
movb (%rdi), %al
andb $-0x8, %al
orb $0x2, %al
jmp 0xf746
addl %r9d, %ecx
movl %ecx, (%rax)
movb (%rdi), %al
andb $-0x8, %al
orb $0x2, %al
movq 0x18(%rsp), %r9
movq (%rsp), %r11
jmp 0xf74b
addl %r10d, %ecx
movl %ecx, (%rax)
movb (%rdi), %al
andb $-0x8, %al
movq 0x18(%rsp), %r9
movl %eax, %ecx
andb $0x1f, %cl
movb %al, (%rdi)
movl (%rsi), %eax
movl 0x8(%rsi), %edx
testl %r11d, %r11d
js 0xf772
movq 0x8(%rsp), %r10
subl %r10d, %eax
cmpl %edx, %eax
jle 0xf785
movb %cl, (%rdi)
movl (%rsi), %eax
leal (%r11,%r10), %ecx
jmp 0xf781
subl %r15d, %eax
cmpl %edx, %eax
jle 0xf792
movb %cl, (%rdi)
movl (%rsi), %eax
leal (%r15,%rbp), %ecx
subl %ecx, %eax
jmp 0xf79c
orb $0x40, %cl
movb %cl, (%rdi)
movl 0x8(%rsi), %eax
subl %r11d, %eax
jmp 0xf79c
orb $0x40, %cl
movb %cl, (%rdi)
movl 0x8(%rsi), %eax
subl %ebp, %eax
movl %eax, 0x14(%rsi)
cmpl %r9d, %r12d
jle 0xf7cf
leaq (%r14,%r8,4), %rax
movb (%rdi), %cl
andb $-0x19, %cl
movl (%rax), %edx
movl 0x4(%rax), %r8d
testl %r11d, %r11d
js 0xf7d8
movq 0x8(%rsp), %r10
subl %r10d, %edx
cmpl %r8d, %edx
jle 0xf7ec
movb %cl, (%rdi)
movl (%rax), %eax
leal (%r11,%r10), %ecx
jmp 0xf7e8
movl $0xc0000001, 0x10(%rsi) # imm = 0xC0000001
jmp 0xf806
subl %r15d, %edx
cmpl %r8d, %edx
jle 0xf7f9
movb %cl, (%rdi)
movl (%rax), %eax
leal (%r15,%rbp), %ecx
subl %ecx, %eax
jmp 0xf803
orb $0x8, %cl
movb %cl, (%rdi)
movl 0x4(%rax), %eax
subl %r11d, %eax
jmp 0xf803
orb $0x8, %cl
movb %cl, (%rdi)
movl 0x4(%rax), %eax
subl %ebp, %eax
movl %eax, 0x10(%rsi)
movq 0x38(%rsp), %rcx
incl %r13d
movq %rbx, %r12
movq 0x10(%rsp), %rsi
leal 0x1(%rsi), %eax
movl %eax, 0xac(%rsp)
subl %ecx, %eax
cmpl %eax, %r13d
jle 0xf82f
movq %r14, %r8
jmp 0xfb61
movslq %r13d, %rsi
subl %ecx, %r13d
incl %r13d
movslq %ecx, %rdi
cltq
movq %rax, 0x90(%rsp)
movq 0x50(%rsp), %rax
decq %rax
movq %rax, 0xc0(%rsp)
movq 0x48(%rsp), %rdx
movl %edx, %eax
decl %edx
movq %rdx, 0x48(%rsp)
leal (%rcx,%rax), %r9d
addl $-0x2, %r9d
movq %rsi, %rax
subq %rdi, %rax
incq %rax
movq %rax, 0x60(%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, 0x58(%rsp)
movq %rdi, 0x80(%rsp)
negq %rdi
movq %rdi, 0x88(%rsp)
movq %r12, %r11
movq %r14, %r10
movq %rsi, %rcx
movq %rsi, %rdx
subq 0x80(%rsp), %rdx
leaq (%rdx,%rdx,2), %r8
movl $0xc0000001, 0x8(%r14,%r8,4) # imm = 0xC0000001
movabsq $-0x3ffffffe3fffffff, %rax # imm = 0xC0000001C0000001
movq %rax, (%r14,%r8,4)
movq 0x78(%rsp), %rax
movzbl -0x1(%rax,%rsi), %eax
imulq 0x98(%rsp), %rax
movq 0xa0(%rsp), %rsi
leaq (%rsi,%rax,4), %rdi
movq 0x48(%rsp), %rax
addl %ecx, %eax
movq 0x88(%rsp), %rsi
addq %rcx, %rsi
incq %rsi
movq 0x68(%rsp), %rbx
movq (%rbx,%rcx,8), %r12
cmpl %esi, %eax
movq %r11, 0x28(%rsp)
movq %r14, 0x30(%rsp)
jne 0xf93d
addq %rdx, %r12
incq %r12
leaq (%r10,%r8,4), %r8
addq $0xc, %r8
jmp 0xfa68
movq %r13, 0x20(%rsp)
movslq %r13d, %rsi
leaq (,%rsi,4), %rax
leaq (%rax,%rax,2), %r14
movq 0xc0(%rsp), %rax
leaq (%rax,%rsi), %rbx
addq %r11, %r14
addq 0x60(%rsp), %r12
movq 0x58(%rsp), %rax
leaq (%r10,%rax), %r8
xorl %r13d, %r13d
movl -0xc(%r14), %r11d
movl -0x8(%r14), %eax
movl -0x4(%r14), %r10d
movzbl (%rbx,%r13), %edx
movl (%rdi,%rdx,4), %edx
cmpl %eax, %r11d
jge 0xf99f
cmpl %r10d, %eax
jle 0xf9a4
addl %eax, %edx
movl %edx, (%r8)
movb (%r12,%r13), %dl
andb $-0x8, %dl
incb %dl
jmp 0xf9c3
cmpl %r10d, %r11d
jge 0xf9b6
addl %r10d, %edx
movl %edx, (%r8)
movb (%r12,%r13), %dl
andb $-0x8, %dl
orb $0x2, %dl
jmp 0xf9c3
addl %r11d, %edx
movl %edx, (%r8)
movb (%r12,%r13), %dl
andb $-0x8, %dl
movb %dl, (%r12,%r13)
movl (%r14), %eax
subl %r15d, %eax
leaq 0x4(%r14), %r10
andb $-0x19, %dl
leal 0x8(%rdx), %r11d
cmpl 0x4(%r14), %eax
movzbl %dl, %eax
movzbl %r11b, %edx
cmovgl %eax, %edx
movl $0x0, %eax
cmovgl %r15d, %eax
cmovgq %r14, %r10
movb %dl, (%r12,%r13)
addl %ebp, %eax
movl (%r10), %edx
subl %eax, %edx
movl %edx, 0x4(%r8)
movl -0xc(%r8), %eax
subl %r15d, %eax
movb (%r12,%r13), %dl
andb $0x1f, %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 %r15d, %r10d
leaq -0x4(%r8), %r11
movb %dl, (%r12,%r13)
cmovgq %rax, %r11
addl %ebp, %r10d
movl (%r11), %eax
subl %r10d, %eax
movl %eax, 0x8(%r8)
addq $0xc, %r14
incq %r13
addq $0xc, %r8
cmpl %r13d, %r9d
jne 0xf971
addq %r13, %rsi
addq %r13, %r12
movq 0x20(%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 0x50(%rsp), %rbx
movzbl -0x1(%rbx,%rdx), %edx
movl (%rdi,%rdx,4), %edx
cmpl %eax, %r10d
jge 0xfaab
cmpl %esi, %eax
jle 0xfab0
addl %eax, %edx
movl %edx, (%r8)
movb (%r12), %sil
andb $-0x8, %sil
incb %sil
jmp 0xfad1
cmpl %esi, %r10d
jge 0xfac3
addl %esi, %edx
movl %edx, (%r8)
movb (%r12), %sil
andb $-0x8, %sil
orb $0x2, %sil
jmp 0xfad1
addl %r10d, %edx
movl %edx, (%r8)
movb (%r12), %sil
andb $-0x8, %sil
movb %sil, (%r12)
leaq -0xc(%r8), %rax
movl -0xc(%r8), %edx
subl %r15d, %edx
leaq -0x4(%r8), %rdi
andb $0x1f, %sil
leal 0x40(%rsi), %r10d
cmpl -0x4(%r8), %edx
movzbl %sil, %edx
movzbl %r10b, %esi
cmovgl %edx, %esi
movl $0x0, %edx
cmovgl %r15d, %edx
cmovgq %rax, %rdi
movb %sil, (%r12)
addl %ebp, %edx
movl (%rdi), %eax
subl %edx, %eax
movl %eax, 0x8(%r8)
movl $0xc0000001, 0x4(%r8)   # imm = 0xC0000001
leaq 0x1(%rcx), %rsi
incl %r13d
incq 0x60(%rsp)
addq $0xc, 0x58(%rsp)
movq 0x28(%rsp), %r8
movq %r8, %r14
cmpq 0x90(%rsp), %rcx
movq 0x30(%rsp), %r12
jl 0xf8b0
movl %esi, %r13d
movq 0x10(%rsp), %rsi
movq 0x38(%rsp), %rcx
movq 0x18(%rsp), %r9
movq (%rsp), %r11
cmpl %esi, %r13d
movq 0x70(%rsp), %r14
jge 0xff06
leal (%r15,%rbp), %eax
movl %eax, 0x88(%rsp)
movq 0x8(%rsp), %rax
addl %r11d, %eax
movl %eax, 0x90(%rsp)
movslq %r13d, %rsi
subl %ecx, %r13d
incl %r13d
movslq %ecx, %rcx
movq 0x50(%rsp), %rax
decq %rax
movq %rax, 0x80(%rsp)
movq %rsi, %rbx
subq %rcx, %rbx
incq %rbx
leaq (,%rsi,4), %rax
leaq (%rax,%rax,2), %rdx
leaq (,%rcx,4), %rax
leaq (%rax,%rax,2), %rax
subq %rax, %rdx
addq $0xc, %rdx
movq %rdx, 0x60(%rsp)
movq %rcx, 0x58(%rsp)
negq %rcx
movq %rcx, 0x48(%rsp)
movq %r12, %r9
movq %rsi, %rdx
subq 0x58(%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 0x78(%rsp), %rax
movzbl -0x1(%rax,%rsi), %eax
imulq 0x98(%rsp), %rax
movq 0xa0(%rsp), %rcx
leaq (%rcx,%rax,4), %r10
movq 0x48(%rsp), %rax
leaq (%rsi,%rax), %rcx
incq %rcx
movq 0x68(%rsp), %rax
movq (%rax,%rsi,8), %rax
cmpq %r14, %rcx
movq %r12, 0x28(%rsp)
movq %r8, 0x30(%rsp)
jge 0xfd93
movq %r13, 0x20(%rsp)
movslq %r13d, %rcx
leaq (,%rcx,4), %rdx
leaq (%rdx,%rdx,2), %r14
movq %r9, %rdx
movq 0x80(%rsp), %rdi
leaq (%rdi,%rcx), %r9
addq %rdx, %r14
addq %rbx, %rax
movq 0x60(%rsp), %rdx
addq %rdx, %r8
xorl %r13d, %r13d
movl -0xc(%r14), %edi
movl -0x8(%r14), %r11d
movl -0x4(%r14), %r12d
movzbl (%r9,%r13), %edx
movl (%r10,%rdx,4), %edx
cmpl %r11d, %edi
jge 0xfcb0
cmpl %r12d, %r11d
jle 0xfcb5
addl %r11d, %edx
movl %edx, (%r8)
movb (%rax,%r13), %dl
andb $-0x8, %dl
incb %dl
jmp 0xfcd3
cmpl %r12d, %edi
jge 0xfcc7
addl %r12d, %edx
movl %edx, (%r8)
movb (%rax,%r13), %dl
andb $-0x8, %dl
orb $0x2, %dl
jmp 0xfcd3
addl %edi, %edx
movl %edx, (%r8)
movb (%rax,%r13), %dl
andb $-0x8, %dl
movb %dl, (%rax,%r13)
movl (%r14), %edi
subl %r15d, %edi
andb $-0x19, %dl
leal 0x8(%rdx), %r11d
cmpl 0x4(%r14), %edi
movzbl %dl, %edx
movzbl %r11b, %edi
cmovgl %edx, %edi
movl $0x0, %edx
cmovgl %r15d, %edx
leaq 0x4(%r14), %r11
movb %dil, (%rax,%r13)
cmovgq %r14, %r11
addl %ebp, %edx
movl (%r11), %edi
subl %edx, %edi
movl %edi, 0x4(%r8)
leaq -0xc(%r8), %rdx
movl -0xc(%r8), %edi
subl %r15d, %edi
movb (%rax,%r13), %r11b
andb $0x1f, %r11b
leal 0x40(%r11), %r12d
cmpl -0x4(%r8), %edi
movzbl %r11b, %edi
movzbl %r12b, %r11d
cmovgl %edi, %r11d
leaq -0x4(%r8), %rdi
movl $0x0, %r12d
cmovgl %r15d, %r12d
movb %r11b, (%rax,%r13)
cmovgq %rdx, %rdi
addl %ebp, %r12d
movl (%rdi), %edx
subl %r12d, %edx
movl %edx, 0x8(%r8)
addq $0xc, %r14
leaq (%rcx,%r13), %rdx
incq %rdx
incq %r13
addq $0xc, %r8
cmpq 0x70(%rsp), %rdx
jl 0xfc80
addq %r13, %rcx
addq %r13, %rax
movq (%rsp), %r11
movq 0x70(%rsp), %r14
movq 0x20(%rsp), %r13
movq 0x28(%rsp), %r9
jmp 0xfda1
addq %rdx, %rax
incq %rax
leaq (%r8,%rdi,4), %r8
addq $0xc, %r8
movq %rbx, 0x20(%rsp)
leaq (%r14,%r14,2), %rdx
movl -0xc(%r9,%rdx,4), %r14d
movl -0x8(%r9,%rdx,4), %r12d
movl -0x4(%r9,%rdx,4), %r9d
movslq %ecx, %rdx
movq 0x50(%rsp), %rdi
movzbl -0x1(%rdi,%rdx), %edx
movl (%r10,%rdx,4), %edx
movq %r11, %rbx
cmpl %r12d, %r14d
jge 0xfde6
cmpl %r9d, %r12d
jle 0xfdeb
addl %r12d, %edx
movl %edx, (%r8)
movb (%rax), %dl
andb $-0x8, %dl
incb %dl
jmp 0xfe06
cmpl %r9d, %r14d
jge 0xfdfb
addl %r9d, %edx
movl %edx, (%r8)
movb (%rax), %dl
andb $-0x8, %dl
orb $0x2, %dl
jmp 0xfe06
addl %r14d, %edx
movl %edx, (%r8)
movb (%rax), %dl
andb $-0x8, %dl
movq 0x70(%rsp), %r14
movq 0x30(%rsp), %r12
movl %edx, %r9d
andb $-0x19, %r9b
movb %dl, (%rax)
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x28(%rsp), %r11
leaq (%r11,%rcx,4), %rdx
movl (%rdx), %edi
movl 0x4(%rdx), %r10d
leaq (%r11,%rcx,4), %rcx
addq $0x4, %rcx
movq %rbx, %r11
testl %r11d, %r11d
js 0xfe59
subl 0x8(%rsp), %edi
cmpl %r10d, %edi
movq 0x20(%rsp), %rbx
jle 0xfe72
movq %rdx, %rcx
movl 0x90(%rsp), %edx
jmp 0xfe81
subl %r15d, %edi
cmpl %r10d, %edi
movq 0x20(%rsp), %rbx
jle 0xfe7b
movq %rdx, %rcx
movl 0x88(%rsp), %edx
jmp 0xfe81
orb $0x8, %r9b
movl %r11d, %edx
jmp 0xfe81
orb $0x8, %r9b
movl %ebp, %edx
movb %r9b, (%rax)
movl (%rcx), %ecx
subl %edx, %ecx
movl %ecx, 0x4(%r8)
leaq -0xc(%r8), %rcx
movl -0xc(%r8), %edx
subl %r15d, %edx
leaq -0x4(%r8), %rdi
movb (%rax), %r9b
andb $0x1f, %r9b
leal 0x40(%r9), %r10d
cmpl -0x4(%r8), %edx
movzbl %r9b, %edx
movzbl %r10b, %r9d
cmovgl %edx, %r9d
movl $0x0, %edx
cmovgl %r15d, %edx
movb %r9b, (%rax)
cmovgq %rcx, %rdi
addl %ebp, %edx
movl (%rdi), %eax
subl %edx, %eax
movl %eax, 0x8(%r8)
incq %rsi
incl %r13d
incq %rbx
addq $0xc, 0x60(%rsp)
movq 0x28(%rsp), %r8
cmpq 0xb0(%rsp), %rsi
jne 0xfbdf
movl %esi, %r13d
movq 0x10(%rsp), %rsi
movq 0x38(%rsp), %rcx
movq 0x18(%rsp), %r9
jmp 0xff0b
movq %r8, 0x28(%rsp)
cmpl %esi, %r13d
jne 0x10120
movslq %r13d, %rax
subl %ecx, %r13d
movslq %r13d, %rcx
leaq (%rcx,%rcx,2), %rdx
movq 0x28(%rsp), %rsi
leaq (%rsi,%rdx,4), %rdx
addq $0xc, %rdx
movl $0xc0000001, -0x4(%rdx) # imm = 0xC0000001
movabsq $-0x3ffffffe3fffffff, %rsi # imm = 0xC0000001C0000001
movq %rsi, -0xc(%rdx)
movq 0x78(%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 0x68(%rsp), %r13
movq (%r13,%rax,8), %rax
addq %rcx, %rax
cmpl %r9d, %ecx
jge 0x100e1
leal (%r15,%rbp), %edi
movl %edi, 0x78(%rsp)
movq 0x8(%rsp), %rdi
addl %r11d, %edi
movl %edi, 0x20(%rsp)
leaq (%rcx,%rcx,2), %rdi
movq %r12, 0x30(%rsp)
leaq (%r12,%rdi,4), %r10
movq 0x50(%rsp), %rdi
leaq (%rcx,%rdi), %r11
decq %r11
movl %r9d, %edi
negl %edi
movl %ecx, %r12d
addq %rdi, %r12
xorl %ebx, %ebx
movl -0xc(%r10), %edi
movl -0x8(%r10), %r13d
movl -0x4(%r10), %r14d
movzbl (%r11,%rbx), %r8d
movl (%rsi,%r8,4), %r8d
cmpl %r13d, %edi
jge 0xffea
cmpl %r14d, %r13d
jle 0xffef
addl %r13d, %r8d
movl %r8d, (%rdx)
movb (%rax,%rbx), %r14b
andb $-0x8, %r14b
incb %r14b
jmp 0x10011
cmpl %r14d, %edi
jge 0x10003
addl %r14d, %r8d
movl %r8d, (%rdx)
movb (%rax,%rbx), %r14b
andb $-0x8, %r14b
orb $0x2, %r14b
jmp 0x10011
addl %edi, %r8d
movl %r8d, (%rdx)
movb (%rax,%rbx), %r14b
andb $-0x8, %r14b
movb %r14b, (%rax,%rbx)
movl (%r10), %edi
subl %r15d, %edi
leaq 0x4(%r10), %r8
andb $-0x19, %r14b
leal 0x8(%r14), %r9d
cmpl 0x4(%r10), %edi
movzbl %r14b, %edi
movzbl %r9b, %r9d
cmovgl %edi, %r9d
movl $0x0, %edi
cmovgl %r15d, %edi
cmovgq %r10, %r8
movb %r9b, (%rax,%rbx)
addl %ebp, %edi
movl (%r8), %r8d
subl %edi, %r8d
movl %r8d, 0x4(%rdx)
leaq -0xc(%rdx), %r8
leaq -0x4(%rdx), %r13
movb (%rax,%rbx), %r14b
andb $0x1f, %r14b
movl -0xc(%rdx), %edi
movl -0x4(%rdx), %r9d
cmpl $0x0, (%rsp)
js 0x10083
subl 0x8(%rsp), %edi
cmpl %r9d, %edi
jle 0x10094
movq %r8, %r13
movl 0x20(%rsp), %edi
jmp 0x100a4
subl %r15d, %edi
cmpl %r9d, %edi
jle 0x1009e
movq %r8, %r13
movl 0x78(%rsp), %edi
jmp 0x100a4
orb $0x40, %r14b
movq (%rsp), %rdi
jmp 0x100a4
orb $0x40, %r14b
movl %ebp, %edi
movb %r14b, (%rax,%rbx)
movl (%r13), %r8d
subl %edi, %r8d
movl %r8d, 0x8(%rdx)
addq $0xc, %rdx
addq $0xc, %r10
incq %rbx
movl %r12d, %edi
addl %ebx, %edi
jne 0xffb8
addl %ebx, %ecx
addq %rbx, %rax
movq 0x68(%rsp), %r13
movq (%rsp), %r11
movq 0x70(%rsp), %r14
movq 0x30(%rsp), %r12
leaq (%r14,%r14,2), %r8
movl -0xc(%r12,%r8,4), %r9d
movl -0x8(%r12,%r8,4), %edi
movl -0x4(%r12,%r8,4), %r8d
movslq %ecx, %rcx
movq 0x50(%rsp), %r10
movzbl -0x1(%r10,%rcx), %r10d
movl (%rsi,%r10,4), %esi
cmpl %edi, %r9d
jge 0x10132
cmpl %r8d, %edi
jle 0x10137
addl %edi, %esi
movl %esi, (%rdx)
movb (%rax), %sil
andb $-0x8, %sil
incb %sil
jmp 0x10155
movq %r12, %rbp
movq 0x28(%rsp), %r12
movq 0x68(%rsp), %r13
jmp 0x1021a
cmpl %r8d, %r9d
jge 0x10149
addl %r8d, %esi
movl %esi, (%rdx)
movb (%rax), %sil
andb $-0x8, %sil
orb $0x2, %sil
jmp 0x10155
addl %r9d, %esi
movl %esi, (%rdx)
movb (%rax), %sil
andb $-0x8, %sil
movq 0x18(%rsp), %r9
movb %sil, (%rax)
andb $-0x19, %sil
leaq (%rcx,%rcx,2), %rcx
leaq (%r12,%rcx,4), %rcx
movl (%rcx), %edi
movl 0x4(%rcx), %r8d
testl %r11d, %r11d
js 0x1018c
movq 0x8(%rsp), %r10
subl %r10d, %edi
cmpl %r8d, %edi
jle 0x101a1
movb %sil, (%rax)
movl (%rcx), %ecx
leal (%r11,%r10), %esi
jmp 0x1019d
subl %r15d, %edi
cmpl %r8d, %edi
jle 0x101b0
movb %sil, (%rax)
movl (%rcx), %ecx
leal (%r15,%rbp), %esi
subl %esi, %ecx
jmp 0x101bc
orb $0x8, %sil
movb %sil, (%rax)
movl 0x4(%rcx), %ecx
subl %r11d, %ecx
jmp 0x101bc
orb $0x8, %sil
movb %sil, (%rax)
movl 0x4(%rcx), %ecx
subl %ebp, %ecx
movl %ecx, 0x4(%rdx)
movb (%rax), %cl
andb $0x1f, %cl
movl -0xc(%rdx), %esi
movl -0x4(%rdx), %edi
testl %r11d, %r11d
js 0x101e5
movq 0x8(%rsp), %r8
subl %r8d, %esi
cmpl %edi, %esi
jle 0x101f6
movb %cl, (%rax)
movl -0xc(%rdx), %eax
addl %r8d, %r11d
jmp 0x101fe
subl %r15d, %esi
cmpl %edi, %esi
jle 0x10203
movb %cl, (%rax)
movl -0xc(%rdx), %eax
addl %r15d, %ebp
jmp 0x1020b
orb $0x40, %cl
movb %cl, (%rax)
movl -0x4(%rdx), %eax
subl %r11d, %eax
jmp 0x1020d
orb $0x40, %cl
movb %cl, (%rax)
movl -0x4(%rdx), %eax
subl %ebp, %eax
movq 0x10(%rsp), %rsi
movl %eax, 0x8(%rdx)
movq 0x28(%rsp), %rbp
leaq (%r14,%r14,2), %rax
movl (%rbp,%rax,4), %ecx
movq 0xb8(%rsp), %rdx
movl %ecx, (%rdx)
cmpq $0x0, 0x100(%rsp)
je 0x10419
leaq (,%rax,4), %rbx
addq %rbp, %rbx
leal (%r9,%rsi), %eax
addl $0x2, %eax
cltq
shlq $0x2, %rax
movq %r14, %r15
movq %rsi, %r14
leaq (%rax,%rax,2), %rdi
callq 0x3240
movq 0x18(%rsp), %r10
movq 0xb0(%rsp), %rcx
movq (%r13,%rcx,8), %rcx
movb (%rcx,%r15), %cl
movl %ecx, %edx
andb $0x7, %dl
movzbl %dl, %edx
movl %ecx, %esi
shrb $0x3, %sil
andb $0x3, %sil
movzbl %sil, %edi
movl (%rbx), %esi
movl 0x4(%rbx), %r8d
xorl %r9d, %r9d
cmpl %esi, %r8d
cmovgl %r8d, %esi
cmovlel %edx, %edi
setg %r9b
shrb $0x5, %cl
cmpl %esi, 0x8(%rbx)
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 0x102ef
movzbl %dil, %esi
cmpl $0x1, %esi
je 0x102eb
testl %esi, %esi
jne 0x102f2
decl %r10d
decl %edx
jmp 0x102f2
decl %r10d
movslq %edx, %rsi
movq 0x68(%rsp), %rdi
movq (%rdi,%rsi,8), %rdi
movslq %r10d, %r8
cmpb $0x2, %al
je 0x1032e
movzbl %al, %r9d
cmpl $0x1, %r9d
je 0x10320
movl %eax, %esi
testl %r9d, %r9d
jne 0x10336
movb (%rdi,%r8), %sil
andb $0x7, %sil
jmp 0x10336
movb (%rdi,%r8), %sil
shrb $0x3, %sil
andb $0x3, %sil
jmp 0x10336
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 0x102d1
sarq $0x2, %rcx
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rbx
movl %ebx, %r14d
movq %r12, %r15
decl %r14d
je 0x10421
movl $0x1, %eax
cmpl $0x2, %r14d
jl 0x1039e
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 0x10386
movq 0x100(%rsp), %rcx
movl %eax, (%rcx)
movslq %eax, %rdi
movl $0x4, %esi
callq 0x3610
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 0x10432
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 0x103fd
addl $0x10, (%r12,%rdi,4)
jmp 0x1040e
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 0x103eb
jmp 0x10432
movq %r12, %r15
xorl %r12d, %r12d
jmp 0x10444
movq 0x100(%rsp), %rax
movl $0x0, (%rax)
xorl %r12d, %r12d
movq %r13, %rdi
callq 0x3350
movq 0x10(%rsp), %rsi
movq 0x68(%rsp), %r13
movl 0x44(%rsp), %eax
cmpl %esi, %eax
jge 0x10489
movslq %eax, %rcx
movq 0x38(%rsp), %rsi
movslq %esi, %rdx
leaq 0x8(,%rcx,8), %rax
addq %r13, %rax
negq %rdx
addq %rdx, %rcx
incq %rcx
movq 0x10(%rsp), %rdx
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 0x10474
cmpl $0x0, 0x10(%rsp)
js 0x104ac
movl 0xac(%rsp), %ebx
xorl %r14d, %r14d
movq (%r13,%r14,8), %rdi
callq 0x3350
incq %r14
cmpq %r14, %rbx
jne 0x1049a
movq %r13, %rdi
callq 0x3350
movq %r15, %rdi
callq 0x3350
movq %rbp, %rdi
callq 0x3350
movq %r12, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq