// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/ksw2/ksw2_extd.c
// Function: ksw_extd
void ksw_extd(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat,
			  int8_t gapo, int8_t gape, int8_t gapo2, int8_t gape2, int w, int zdrop, int flag, ksw_extz_t *ez)
{
	eh_t *eh;
	int8_t *qp; // query profile
	int32_t i, j, k, max_j = 0, gapoe = gapo + gape, gapoe2 = gapo2 + gape2, n_col, *off = 0, with_cigar = !(flag&KSW_EZ_SCORE_ONLY);
	uint8_t *z = 0; // backtrack matrix; in each cell: f<<4|e<<2|h; in principle, we can halve the memory, but backtrack will be more complex

	ksw_reset_extz(ez);

	// allocate memory
	if (w < 0) w = tlen > qlen? tlen : qlen;
	n_col = qlen < 2*w+1? qlen : 2*w+1; // maximum #columns of the backtrack matrix
	qp = (int8_t*)kmalloc(km, qlen * m);
	eh = (eh_t*)kcalloc(km, qlen + 1, sizeof(eh_t));
	if (with_cigar) {
		z = (uint8_t*)kmalloc(km, (size_t)n_col * tlen);
		off = (int32_t*)kcalloc(km, tlen, 4);
	}

	// generate the query profile
	for (k = i = 0; k < m; ++k) {
		const int8_t *p = &mat[k * m];
		for (j = 0; j < qlen; ++j) qp[i++] = p[query[j]];
	}

	// fill the first row
	eh[0].h = 0, eh[0].e = -gapoe - gapoe, eh[0].e2 = -gapoe2 - gapoe2;
	for (j = 1; j <= qlen && j <= w; ++j) {
		int tmp;
		eh[j].h = -(gapo + gape * j) > -(gapo2 + gape2 * j)? -(gapo + gape * j) : -(gapo2 + gape2 * j);
		tmp = -(gapoe + gape * j) > -(gapoe2 + gape2 * j)? -(gapoe + gape * j) : -(gapoe2 + gape2 * j);
		eh[j].e = tmp - gapoe;
		eh[j].e2 = tmp - gapoe2;
	}
	for (; j <= qlen; ++j) eh[j].h = eh[j].e = eh[j].e2 = KSW_NEG_INF; // everything is -inf outside the band

	// DP loop
	for (i = 0; i < tlen; ++i) { // target sequence is in the outer loop
		int32_t f, f2, h1, st, en, max = KSW_NEG_INF, tmp;
		int8_t *q = &qp[target[i] * qlen];
		st = i > w? i - w : 0;
		en = i + w < qlen - 1? i + w : qlen - 1;
		tmp = -(gapoe + gape * i) > -(gapoe2 + gape2 * i)? -(gapoe + gape * i) : -(gapoe2 + gape2 * i);
		h1 = st > 0? KSW_NEG_INF : tmp;
		f  = st > 0? KSW_NEG_INF : tmp - gapoe;
		f2 = st > 0? KSW_NEG_INF : tmp - gapoe2;
		if (!with_cigar) {
			for (j = st; j <= en; ++j) {
				eh_t *p = &eh[j];
				int32_t h = p->h, h2, e = p->e, e2 = p->e2;
				p->h = h1;
				h += q[j];
				h = h >= e?  h : e;
				h = h >= f?  h : f;
				h = h >= e2? h : e2;
				h = h >= f2? h : f2;
				h1 = h;
				max_j = max > h? max_j : j;
				max   = max > h? max   : h;
				h -= gapoe;
				e -= gape;
				e  = e > h? e : h;
				p->e = e;
				f -= gape;
				f  = f > h? f : h;
				h2 = h1 - gapoe2;
				e2-= gape2;
				e2 = e2 > h2? e2 : h2;
				p->e2 = e2;
				f2-= gape2;
				f2 = f2 > h2? f2 : h2;
			}
		} else if (!(flag&KSW_EZ_RIGHT)) {
			uint8_t *zi = &z[(long)i * n_col];
			off[i] = st;
			for (j = st; j <= en; ++j) {
				eh_t *p = &eh[j];
				int32_t h = p->h, h2, e = p->e, e2 = p->e2;
				uint8_t d; // direction
				p->h = h1;
				h += q[j];
				d = h >= e?  0 : 1;
				h = h >= e?  h : e;
				d = h >= f?  d : 2;
				h = h >= f?  h : f;
				d = h >= e2? d : 3;
				h = h >= e2? h : e2;
				d = h >= f2? d : 4;
				h = h >= f2? h : f2;
				h1 = h;
				max_j = max > h? max_j : j;
				max   = max > h? max   : h;
				h -= gapoe;
				e -= gape;
				d |= e > h? 1<<3 : 0;
				e  = e > h? e    : h;
				p->e = e;
				f -= gape;
				d |= f > h? 1<<4 : 0; // if we want to halve the memory, use one bit only, instead of two
				f  = f > h? f    : h;
				h2 = h1 - gapoe2;
				e2-= gape2;
				d |= e2 > h2? 1<<5 : 0;
				e2 = e2 > h2? e2 : h2;
				p->e2 = e2;
				f2-= gape2;
				d |= f2 > h2? 1<<6 : 0;
				f2 = f2 > h2? f2 : h2;
				zi[j - st] = d; // z[i,j] keeps h for the current cell and e/f for the next cell
			}
		} else {
			uint8_t *zi = &z[(long)i * n_col];
			off[i] = st;
			for (j = st; j <= en; ++j) {
				eh_t *p = &eh[j];
				int32_t h = p->h, h2, e = p->e, e2 = p->e2;
				uint8_t d; // direction
				p->h = h1;
				h += q[j];
				d = h > e?  0 : 1;
				h = h > e?  h : e;
				d = h > f?  d : 2;
				h = h > f?  h : f;
				d = h > e2? d : 3;
				h = h > e2? h : e2;
				d = h > f2? d : 4;
				h = h > f2? h : f2;
				h1 = h;
				max_j = max > h? max_j : j;
				max   = max > h? max   : h;
				h -= gapoe;
				e -= gape;
				d |= e >= h? 1<<3 : 0;
				e  = e >= h? e    : h;
				p->e = e;
				f -= gape;
				d |= f >= h? 1<<4 : 0; // if we want to halve the memory, use one bit only, instead of two
				f  = f >= h? f    : h;
				h2 = h1 - gapoe2;
				e2-= gape2;
				d |= e2 >= h2? 1<<5 : 0;
				e2 = e2 >= h2? e2 : h2;
				p->e2 = e2;
				f2-= gape2;
				d |= f2 >= h2? 1<<6 : 0;
				f2 = f2 >= h2? f2 : h2;
				zi[j - st] = d; // z[i,j] keeps h for the current cell and e/f for the next cell
			}
		}
		eh[j].h = h1, eh[j].e = KSW_NEG_INF;
		// update ez
		if (en == qlen - 1 && eh[qlen].h > ez->mqe)
			ez->mqe = eh[qlen].h, ez->mqe_t = i;
		if (i == tlen - 1)
			ez->mte = max, ez->mte_q = max_j;
		if (ksw_apply_zdrop(ez, 0, max, i, max_j, zdrop, gape2)) break;
		if (i == tlen - 1 && en == qlen - 1)
			ez->score = eh[qlen].h;
	}
	kfree(km, qp); kfree(km, eh);
	if (with_cigar) {
		int rev_cigar = !!(flag & KSW_EZ_REV_CIGAR);
		if (!ez->zdropped && !(flag&KSW_EZ_EXTZ_ONLY))
			ksw_backtrack(km, 0, rev_cigar, 0, z, off, 0, n_col, tlen-1, qlen-1, &ez->m_cigar, &ez->n_cigar, &ez->cigar);
		else if (ez->max_t >= 0 && ez->max_q >= 0)
			ksw_backtrack(km, 0, rev_cigar, 0, z, off, 0, n_col, ez->max_t, ez->max_q, &ez->m_cigar, &ez->n_cigar, &ez->cigar);
		kfree(km, z); kfree(km, off);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movb %r9b, %al
movq 0x50(%rbp), %r9
movl 0x48(%rbp), %r9d
movl 0x40(%rbp), %r9d
movl 0x38(%rbp), %r9d
movb 0x30(%rbp), %r9b
movb 0x28(%rbp), %r9b
movb 0x20(%rbp), %r9b
movb 0x18(%rbp), %r9b
movq 0x10(%rbp), %r9
movq %rdi, -0x20(%rbp)
movl %esi, -0x24(%rbp)
movq %rdx, -0x30(%rbp)
movl %ecx, -0x34(%rbp)
movq %r8, -0x40(%rbp)
movb %al, -0x41(%rbp)
movl $0x0, -0x68(%rbp)
movsbl 0x18(%rbp), %eax
movsbl 0x20(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0x6c(%rbp)
movsbl 0x28(%rbp), %eax
movsbl 0x30(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0x70(%rbp)
movq $0x0, -0x80(%rbp)
movl 0x48(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x84(%rbp)
movq $0x0, -0x90(%rbp)
movq 0x50(%rbp), %rdi
callq 0x1a0070
cmpl $0x0, 0x38(%rbp)
jge 0x19ec6d
movl -0x34(%rbp), %eax
cmpl -0x24(%rbp), %eax
jle 0x19ec5b
movl -0x34(%rbp), %eax
movl %eax, -0x12c(%rbp)
jmp 0x19ec64
movl -0x24(%rbp), %eax
movl %eax, -0x12c(%rbp)
movl -0x12c(%rbp), %eax
movl %eax, 0x38(%rbp)
movl -0x24(%rbp), %eax
movl 0x38(%rbp), %ecx
shll %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jge 0x19ec87
movl -0x24(%rbp), %eax
movl %eax, -0x130(%rbp)
jmp 0x19ec95
movl 0x38(%rbp), %eax
shll %eax
addl $0x1, %eax
movl %eax, -0x130(%rbp)
movl -0x130(%rbp), %eax
movl %eax, -0x74(%rbp)
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %eax
movsbl -0x41(%rbp), %ecx
imull %ecx, %eax
movslq %eax, %rsi
callq 0x19e720
movq %rax, -0x58(%rbp)
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0xc, %edx
callq 0x19e9c0
movq %rax, -0x50(%rbp)
cmpl $0x0, -0x84(%rbp)
je 0x19ed0e
movq -0x20(%rbp), %rdi
movslq -0x74(%rbp), %rsi
movslq -0x34(%rbp), %rax
imulq %rax, %rsi
callq 0x19e720
movq %rax, -0x90(%rbp)
movq -0x20(%rbp), %rdi
movslq -0x34(%rbp), %rsi
movl $0x4, %edx
callq 0x19e9c0
movq %rax, -0x80(%rbp)
movl $0x0, -0x5c(%rbp)
movl $0x0, -0x64(%rbp)
movl -0x64(%rbp), %eax
movsbl -0x41(%rbp), %ecx
cmpl %ecx, %eax
jge 0x19ed94
movq 0x10(%rbp), %rax
movl -0x64(%rbp), %ecx
movsbl -0x41(%rbp), %edx
imull %edx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x98(%rbp)
movl $0x0, -0x60(%rbp)
movl -0x60(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x19ed87
movq -0x98(%rbp), %rax
movq -0x30(%rbp), %rcx
movslq -0x60(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
movb (%rax,%rcx), %dl
movq -0x58(%rbp), %rax
movl -0x5c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x5c(%rbp)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0x19ed49
jmp 0x19ed89
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x19ed1c
movq -0x50(%rbp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
subl -0x6c(%rbp), %ecx
subl -0x6c(%rbp), %ecx
movq -0x50(%rbp), %rax
movl %ecx, 0x4(%rax)
xorl %ecx, %ecx
subl -0x70(%rbp), %ecx
subl -0x70(%rbp), %ecx
movq -0x50(%rbp), %rax
movl %ecx, 0x8(%rax)
movl $0x1, -0x60(%rbp)
movl -0x60(%rbp), %ecx
xorl %eax, %eax
cmpl -0x24(%rbp), %ecx
movb %al, -0x131(%rbp)
jg 0x19ede2
movl -0x60(%rbp), %eax
cmpl 0x38(%rbp), %eax
setle %al
movb %al, -0x131(%rbp)
movb -0x131(%rbp), %al
testb $0x1, %al
jne 0x19edf1
jmp 0x19ef08
movsbl 0x18(%rbp), %ecx
movsbl 0x20(%rbp), %eax
imull -0x60(%rbp), %eax
addl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movsbl 0x28(%rbp), %edx
movsbl 0x30(%rbp), %ecx
imull -0x60(%rbp), %ecx
addl %ecx, %edx
xorl %ecx, %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jle 0x19ee33
movsbl 0x18(%rbp), %ecx
movsbl 0x20(%rbp), %eax
imull -0x60(%rbp), %eax
addl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movl %eax, -0x138(%rbp)
jmp 0x19ee4b
movsbl 0x28(%rbp), %ecx
movsbl 0x30(%rbp), %eax
imull -0x60(%rbp), %eax
addl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movl %eax, -0x138(%rbp)
movl -0x138(%rbp), %ecx
movq -0x50(%rbp), %rax
movslq -0x60(%rbp), %rdx
imulq $0xc, %rdx, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movl -0x6c(%rbp), %ecx
movsbl 0x20(%rbp), %eax
imull -0x60(%rbp), %eax
addl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movl -0x70(%rbp), %edx
movsbl 0x30(%rbp), %ecx
imull -0x60(%rbp), %ecx
addl %ecx, %edx
xorl %ecx, %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jle 0x19eea1
movl -0x6c(%rbp), %ecx
movsbl 0x20(%rbp), %eax
imull -0x60(%rbp), %eax
addl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movl %eax, -0x13c(%rbp)
jmp 0x19eeb8
movl -0x70(%rbp), %ecx
movsbl 0x30(%rbp), %eax
imull -0x60(%rbp), %eax
addl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movl %eax, -0x13c(%rbp)
movl -0x13c(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0x9c(%rbp), %ecx
subl -0x6c(%rbp), %ecx
movq -0x50(%rbp), %rax
movslq -0x60(%rbp), %rdx
imulq $0xc, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x4(%rax)
movl -0x9c(%rbp), %ecx
subl -0x70(%rbp), %ecx
movq -0x50(%rbp), %rax
movslq -0x60(%rbp), %rdx
imulq $0xc, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0x19edc3
jmp 0x19ef0a
movl -0x60(%rbp), %eax
cmpl -0x24(%rbp), %eax
jg 0x19ef5e
movq -0x50(%rbp), %rax
movslq -0x60(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl $0xc0000000, 0x8(%rax)  # imm = 0xC0000000
movq -0x50(%rbp), %rax
movslq -0x60(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl $0xc0000000, 0x4(%rax)  # imm = 0xC0000000
movq -0x50(%rbp), %rax
movslq -0x60(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl $0xc0000000, (%rax)     # imm = 0xC0000000
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0x19ef0a
movl $0x0, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
cmpl -0x34(%rbp), %eax
jge 0x19feea
movl $0xc0000000, -0xb4(%rbp) # imm = 0xC0000000
movq -0x58(%rbp), %rax
movq -0x40(%rbp), %rcx
movslq -0x5c(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
imull -0x24(%rbp), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0xc0(%rbp)
movl -0x5c(%rbp), %eax
cmpl 0x38(%rbp), %eax
jle 0x19efb2
movl -0x5c(%rbp), %eax
subl 0x38(%rbp), %eax
movl %eax, -0x140(%rbp)
jmp 0x19efbc
xorl %eax, %eax
movl %eax, -0x140(%rbp)
jmp 0x19efbc
movl -0x140(%rbp), %eax
movl %eax, -0xac(%rbp)
movl -0x5c(%rbp), %eax
addl 0x38(%rbp), %eax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x19efe6
movl -0x5c(%rbp), %eax
addl 0x38(%rbp), %eax
movl %eax, -0x144(%rbp)
jmp 0x19eff2
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x144(%rbp)
movl -0x144(%rbp), %eax
movl %eax, -0xb0(%rbp)
movl -0x6c(%rbp), %ecx
movsbl 0x20(%rbp), %eax
imull -0x5c(%rbp), %eax
addl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movl -0x70(%rbp), %edx
movsbl 0x30(%rbp), %ecx
imull -0x5c(%rbp), %ecx
addl %ecx, %edx
xorl %ecx, %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jle 0x19f03d
movl -0x6c(%rbp), %ecx
movsbl 0x20(%rbp), %eax
imull -0x5c(%rbp), %eax
addl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movl %eax, -0x148(%rbp)
jmp 0x19f054
movl -0x70(%rbp), %ecx
movsbl 0x30(%rbp), %eax
imull -0x5c(%rbp), %eax
addl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movl %eax, -0x148(%rbp)
movl -0x148(%rbp), %eax
movl %eax, -0xb8(%rbp)
cmpl $0x0, -0xac(%rbp)
jle 0x19f076
movl $0xc0000000, %eax       # imm = 0xC0000000
movl %eax, -0x14c(%rbp)
jmp 0x19f082
movl -0xb8(%rbp), %eax
movl %eax, -0x14c(%rbp)
movl -0x14c(%rbp), %eax
movl %eax, -0xa8(%rbp)
cmpl $0x0, -0xac(%rbp)
jle 0x19f0a4
movl $0xc0000000, %eax       # imm = 0xC0000000
movl %eax, -0x150(%rbp)
jmp 0x19f0b3
movl -0xb8(%rbp), %eax
subl -0x6c(%rbp), %eax
movl %eax, -0x150(%rbp)
movl -0x150(%rbp), %eax
movl %eax, -0xa0(%rbp)
cmpl $0x0, -0xac(%rbp)
jle 0x19f0d5
movl $0xc0000000, %eax       # imm = 0xC0000000
movl %eax, -0x154(%rbp)
jmp 0x19f0e4
movl -0xb8(%rbp), %eax
subl -0x70(%rbp), %eax
movl %eax, -0x154(%rbp)
movl -0x154(%rbp), %eax
movl %eax, -0xa4(%rbp)
cmpl $0x0, -0x84(%rbp)
jne 0x19f42a
movl -0xac(%rbp), %eax
movl %eax, -0x60(%rbp)
movl -0x60(%rbp), %eax
cmpl -0xb0(%rbp), %eax
jg 0x19f425
movq -0x50(%rbp), %rax
movslq -0x60(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movl (%rax), %eax
movl %eax, -0xcc(%rbp)
movq -0xc8(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0xd4(%rbp)
movq -0xc8(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0xd8(%rbp)
movl -0xa8(%rbp), %ecx
movq -0xc8(%rbp), %rax
movl %ecx, (%rax)
movq -0xc0(%rbp), %rax
movslq -0x60(%rbp), %rcx
movsbl (%rax,%rcx), %eax
addl -0xcc(%rbp), %eax
movl %eax, -0xcc(%rbp)
movl -0xcc(%rbp), %eax
cmpl -0xd4(%rbp), %eax
jl 0x19f1a0
movl -0xcc(%rbp), %eax
movl %eax, -0x158(%rbp)
jmp 0x19f1ac
movl -0xd4(%rbp), %eax
movl %eax, -0x158(%rbp)
movl -0x158(%rbp), %eax
movl %eax, -0xcc(%rbp)
movl -0xcc(%rbp), %eax
cmpl -0xa0(%rbp), %eax
jl 0x19f1d4
movl -0xcc(%rbp), %eax
movl %eax, -0x15c(%rbp)
jmp 0x19f1e0
movl -0xa0(%rbp), %eax
movl %eax, -0x15c(%rbp)
movl -0x15c(%rbp), %eax
movl %eax, -0xcc(%rbp)
movl -0xcc(%rbp), %eax
cmpl -0xd8(%rbp), %eax
jl 0x19f208
movl -0xcc(%rbp), %eax
movl %eax, -0x160(%rbp)
jmp 0x19f214
movl -0xd8(%rbp), %eax
movl %eax, -0x160(%rbp)
movl -0x160(%rbp), %eax
movl %eax, -0xcc(%rbp)
movl -0xcc(%rbp), %eax
cmpl -0xa4(%rbp), %eax
jl 0x19f23c
movl -0xcc(%rbp), %eax
movl %eax, -0x164(%rbp)
jmp 0x19f248
movl -0xa4(%rbp), %eax
movl %eax, -0x164(%rbp)
movl -0x164(%rbp), %eax
movl %eax, -0xcc(%rbp)
movl -0xcc(%rbp), %eax
movl %eax, -0xa8(%rbp)
movl -0xb4(%rbp), %eax
cmpl -0xcc(%rbp), %eax
jle 0x19f279
movl -0x68(%rbp), %eax
movl %eax, -0x168(%rbp)
jmp 0x19f282
movl -0x60(%rbp), %eax
movl %eax, -0x168(%rbp)
movl -0x168(%rbp), %eax
movl %eax, -0x68(%rbp)
movl -0xb4(%rbp), %eax
cmpl -0xcc(%rbp), %eax
jle 0x19f2a7
movl -0xb4(%rbp), %eax
movl %eax, -0x16c(%rbp)
jmp 0x19f2b3
movl -0xcc(%rbp), %eax
movl %eax, -0x16c(%rbp)
movl -0x16c(%rbp), %eax
movl %eax, -0xb4(%rbp)
movl -0x6c(%rbp), %ecx
movl -0xcc(%rbp), %eax
subl %ecx, %eax
movl %eax, -0xcc(%rbp)
movsbl 0x20(%rbp), %ecx
movl -0xd4(%rbp), %eax
subl %ecx, %eax
movl %eax, -0xd4(%rbp)
movl -0xd4(%rbp), %eax
cmpl -0xcc(%rbp), %eax
jle 0x19f2fe
movl -0xd4(%rbp), %eax
movl %eax, -0x170(%rbp)
jmp 0x19f30a
movl -0xcc(%rbp), %eax
movl %eax, -0x170(%rbp)
movl -0x170(%rbp), %eax
movl %eax, -0xd4(%rbp)
movl -0xd4(%rbp), %ecx
movq -0xc8(%rbp), %rax
movl %ecx, 0x4(%rax)
movsbl 0x20(%rbp), %ecx
movl -0xa0(%rbp), %eax
subl %ecx, %eax
movl %eax, -0xa0(%rbp)
movl -0xa0(%rbp), %eax
cmpl -0xcc(%rbp), %eax
jle 0x19f354
movl -0xa0(%rbp), %eax
movl %eax, -0x174(%rbp)
jmp 0x19f360
movl -0xcc(%rbp), %eax
movl %eax, -0x174(%rbp)
movl -0x174(%rbp), %eax
movl %eax, -0xa0(%rbp)
movl -0xa8(%rbp), %eax
subl -0x70(%rbp), %eax
movl %eax, -0xd0(%rbp)
movsbl 0x30(%rbp), %ecx
movl -0xd8(%rbp), %eax
subl %ecx, %eax
movl %eax, -0xd8(%rbp)
movl -0xd8(%rbp), %eax
cmpl -0xd0(%rbp), %eax
jle 0x19f3a9
movl -0xd8(%rbp), %eax
movl %eax, -0x178(%rbp)
jmp 0x19f3b5
movl -0xd0(%rbp), %eax
movl %eax, -0x178(%rbp)
movl -0x178(%rbp), %eax
movl %eax, -0xd8(%rbp)
movl -0xd8(%rbp), %ecx
movq -0xc8(%rbp), %rax
movl %ecx, 0x8(%rax)
movsbl 0x30(%rbp), %ecx
movl -0xa4(%rbp), %eax
subl %ecx, %eax
movl %eax, -0xa4(%rbp)
movl -0xa4(%rbp), %eax
cmpl -0xd0(%rbp), %eax
jle 0x19f3ff
movl -0xa4(%rbp), %eax
movl %eax, -0x17c(%rbp)
jmp 0x19f40b
movl -0xd0(%rbp), %eax
movl %eax, -0x17c(%rbp)
movl -0x17c(%rbp), %eax
movl %eax, -0xa4(%rbp)
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0x19f106
jmp 0x19fdde
movl 0x48(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
jne 0x19f90c
movq -0x90(%rbp), %rax
movslq -0x5c(%rbp), %rcx
movslq -0x74(%rbp), %rdx
imulq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0xe0(%rbp)
movl -0xac(%rbp), %edx
movq -0x80(%rbp), %rax
movslq -0x5c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0xac(%rbp), %eax
movl %eax, -0x60(%rbp)
movl -0x60(%rbp), %eax
cmpl -0xb0(%rbp), %eax
jg 0x19f907
movq -0x50(%rbp), %rax
movslq -0x60(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
movl (%rax), %eax
movl %eax, -0xec(%rbp)
movq -0xe8(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0xf4(%rbp)
movq -0xe8(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0xf8(%rbp)
movl -0xa8(%rbp), %ecx
movq -0xe8(%rbp), %rax
movl %ecx, (%rax)
movq -0xc0(%rbp), %rax
movslq -0x60(%rbp), %rcx
movsbl (%rax,%rcx), %eax
addl -0xec(%rbp), %eax
movl %eax, -0xec(%rbp)
movl -0xec(%rbp), %edx
movl -0xf4(%rbp), %esi
movl $0x1, %eax
xorl %ecx, %ecx
cmpl %esi, %edx
cmovgel %ecx, %eax
movb %al, -0xf9(%rbp)
movl -0xec(%rbp), %eax
cmpl -0xf4(%rbp), %eax
jl 0x19f528
movl -0xec(%rbp), %eax
movl %eax, -0x180(%rbp)
jmp 0x19f534
movl -0xf4(%rbp), %eax
movl %eax, -0x180(%rbp)
movl -0x180(%rbp), %eax
movl %eax, -0xec(%rbp)
movl -0xec(%rbp), %eax
cmpl -0xa0(%rbp), %eax
jl 0x19f55d
movzbl -0xf9(%rbp), %eax
movl %eax, -0x184(%rbp)
jmp 0x19f56a
movl $0x2, %eax
movl %eax, -0x184(%rbp)
jmp 0x19f56a
movl -0x184(%rbp), %eax
movb %al, -0xf9(%rbp)
movl -0xec(%rbp), %eax
cmpl -0xa0(%rbp), %eax
jl 0x19f592
movl -0xec(%rbp), %eax
movl %eax, -0x188(%rbp)
jmp 0x19f59e
movl -0xa0(%rbp), %eax
movl %eax, -0x188(%rbp)
movl -0x188(%rbp), %eax
movl %eax, -0xec(%rbp)
movl -0xec(%rbp), %eax
cmpl -0xf8(%rbp), %eax
jl 0x19f5c7
movzbl -0xf9(%rbp), %eax
movl %eax, -0x18c(%rbp)
jmp 0x19f5d4
movl $0x3, %eax
movl %eax, -0x18c(%rbp)
jmp 0x19f5d4
movl -0x18c(%rbp), %eax
movb %al, -0xf9(%rbp)
movl -0xec(%rbp), %eax
cmpl -0xf8(%rbp), %eax
jl 0x19f5fc
movl -0xec(%rbp), %eax
movl %eax, -0x190(%rbp)
jmp 0x19f608
movl -0xf8(%rbp), %eax
movl %eax, -0x190(%rbp)
movl -0x190(%rbp), %eax
movl %eax, -0xec(%rbp)
movl -0xec(%rbp), %eax
cmpl -0xa4(%rbp), %eax
jl 0x19f631
movzbl -0xf9(%rbp), %eax
movl %eax, -0x194(%rbp)
jmp 0x19f63e
movl $0x4, %eax
movl %eax, -0x194(%rbp)
jmp 0x19f63e
movl -0x194(%rbp), %eax
movb %al, -0xf9(%rbp)
movl -0xec(%rbp), %eax
cmpl -0xa4(%rbp), %eax
jl 0x19f666
movl -0xec(%rbp), %eax
movl %eax, -0x198(%rbp)
jmp 0x19f672
movl -0xa4(%rbp), %eax
movl %eax, -0x198(%rbp)
movl -0x198(%rbp), %eax
movl %eax, -0xec(%rbp)
movl -0xec(%rbp), %eax
movl %eax, -0xa8(%rbp)
movl -0xb4(%rbp), %eax
cmpl -0xec(%rbp), %eax
jle 0x19f6a3
movl -0x68(%rbp), %eax
movl %eax, -0x19c(%rbp)
jmp 0x19f6ac
movl -0x60(%rbp), %eax
movl %eax, -0x19c(%rbp)
movl -0x19c(%rbp), %eax
movl %eax, -0x68(%rbp)
movl -0xb4(%rbp), %eax
cmpl -0xec(%rbp), %eax
jle 0x19f6d1
movl -0xb4(%rbp), %eax
movl %eax, -0x1a0(%rbp)
jmp 0x19f6dd
movl -0xec(%rbp), %eax
movl %eax, -0x1a0(%rbp)
movl -0x1a0(%rbp), %eax
movl %eax, -0xb4(%rbp)
movl -0x6c(%rbp), %ecx
movl -0xec(%rbp), %eax
subl %ecx, %eax
movl %eax, -0xec(%rbp)
movsbl 0x20(%rbp), %ecx
movl -0xf4(%rbp), %eax
subl %ecx, %eax
movl %eax, -0xf4(%rbp)
movl -0xf4(%rbp), %edx
movl -0xec(%rbp), %esi
xorl %ecx, %ecx
movl $0x8, %eax
cmpl %esi, %edx
cmovgl %eax, %ecx
movzbl -0xf9(%rbp), %eax
orl %ecx, %eax
movb %al, -0xf9(%rbp)
movl -0xf4(%rbp), %eax
cmpl -0xec(%rbp), %eax
jle 0x19f74f
movl -0xf4(%rbp), %eax
movl %eax, -0x1a4(%rbp)
jmp 0x19f75b
movl -0xec(%rbp), %eax
movl %eax, -0x1a4(%rbp)
movl -0x1a4(%rbp), %eax
movl %eax, -0xf4(%rbp)
movl -0xf4(%rbp), %ecx
movq -0xe8(%rbp), %rax
movl %ecx, 0x4(%rax)
movsbl 0x20(%rbp), %ecx
movl -0xa0(%rbp), %eax
subl %ecx, %eax
movl %eax, -0xa0(%rbp)
movl -0xa0(%rbp), %edx
movl -0xec(%rbp), %esi
xorl %ecx, %ecx
movl $0x10, %eax
cmpl %esi, %edx
cmovgl %eax, %ecx
movzbl -0xf9(%rbp), %eax
orl %ecx, %eax
movb %al, -0xf9(%rbp)
movl -0xa0(%rbp), %eax
cmpl -0xec(%rbp), %eax
jle 0x19f7cc
movl -0xa0(%rbp), %eax
movl %eax, -0x1a8(%rbp)
jmp 0x19f7d8
movl -0xec(%rbp), %eax
movl %eax, -0x1a8(%rbp)
movl -0x1a8(%rbp), %eax
movl %eax, -0xa0(%rbp)
movl -0xa8(%rbp), %eax
subl -0x70(%rbp), %eax
movl %eax, -0xf0(%rbp)
movsbl 0x30(%rbp), %ecx
movl -0xf8(%rbp), %eax
subl %ecx, %eax
movl %eax, -0xf8(%rbp)
movl -0xf8(%rbp), %edx
movl -0xf0(%rbp), %esi
xorl %ecx, %ecx
movl $0x20, %eax
cmpl %esi, %edx
cmovgl %eax, %ecx
movzbl -0xf9(%rbp), %eax
orl %ecx, %eax
movb %al, -0xf9(%rbp)
movl -0xf8(%rbp), %eax
cmpl -0xf0(%rbp), %eax
jle 0x19f848
movl -0xf8(%rbp), %eax
movl %eax, -0x1ac(%rbp)
jmp 0x19f854
movl -0xf0(%rbp), %eax
movl %eax, -0x1ac(%rbp)
movl -0x1ac(%rbp), %eax
movl %eax, -0xf8(%rbp)
movl -0xf8(%rbp), %ecx
movq -0xe8(%rbp), %rax
movl %ecx, 0x8(%rax)
movsbl 0x30(%rbp), %ecx
movl -0xa4(%rbp), %eax
subl %ecx, %eax
movl %eax, -0xa4(%rbp)
movl -0xa4(%rbp), %edx
movl -0xf0(%rbp), %esi
xorl %ecx, %ecx
movl $0x40, %eax
cmpl %esi, %edx
cmovgl %eax, %ecx
movzbl -0xf9(%rbp), %eax
orl %ecx, %eax
movb %al, -0xf9(%rbp)
movl -0xa4(%rbp), %eax
cmpl -0xf0(%rbp), %eax
jle 0x19f8c5
movl -0xa4(%rbp), %eax
movl %eax, -0x1b0(%rbp)
jmp 0x19f8d1
movl -0xf0(%rbp), %eax
movl %eax, -0x1b0(%rbp)
movl -0x1b0(%rbp), %eax
movl %eax, -0xa4(%rbp)
movb -0xf9(%rbp), %dl
movq -0xe0(%rbp), %rax
movl -0x60(%rbp), %ecx
subl -0xac(%rbp), %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0x19f470
jmp 0x19fddc
movq -0x90(%rbp), %rax
movslq -0x5c(%rbp), %rcx
movslq -0x74(%rbp), %rdx
imulq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x108(%rbp)
movl -0xac(%rbp), %edx
movq -0x80(%rbp), %rax
movslq -0x5c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0xac(%rbp), %eax
movl %eax, -0x60(%rbp)
movl -0x60(%rbp), %eax
cmpl -0xb0(%rbp), %eax
jg 0x19fdda
movq -0x50(%rbp), %rax
movslq -0x60(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x114(%rbp)
movq -0x110(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x11c(%rbp)
movq -0x110(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x120(%rbp)
movl -0xa8(%rbp), %ecx
movq -0x110(%rbp), %rax
movl %ecx, (%rax)
movq -0xc0(%rbp), %rax
movslq -0x60(%rbp), %rcx
movsbl (%rax,%rcx), %eax
addl -0x114(%rbp), %eax
movl %eax, -0x114(%rbp)
movl -0x114(%rbp), %edx
movl -0x11c(%rbp), %esi
movl $0x1, %eax
xorl %ecx, %ecx
cmpl %esi, %edx
cmovgl %ecx, %eax
movb %al, -0x121(%rbp)
movl -0x114(%rbp), %eax
cmpl -0x11c(%rbp), %eax
jle 0x19f9fb
movl -0x114(%rbp), %eax
movl %eax, -0x1b4(%rbp)
jmp 0x19fa07
movl -0x11c(%rbp), %eax
movl %eax, -0x1b4(%rbp)
movl -0x1b4(%rbp), %eax
movl %eax, -0x114(%rbp)
movl -0x114(%rbp), %eax
cmpl -0xa0(%rbp), %eax
jle 0x19fa30
movzbl -0x121(%rbp), %eax
movl %eax, -0x1b8(%rbp)
jmp 0x19fa3d
movl $0x2, %eax
movl %eax, -0x1b8(%rbp)
jmp 0x19fa3d
movl -0x1b8(%rbp), %eax
movb %al, -0x121(%rbp)
movl -0x114(%rbp), %eax
cmpl -0xa0(%rbp), %eax
jle 0x19fa65
movl -0x114(%rbp), %eax
movl %eax, -0x1bc(%rbp)
jmp 0x19fa71
movl -0xa0(%rbp), %eax
movl %eax, -0x1bc(%rbp)
movl -0x1bc(%rbp), %eax
movl %eax, -0x114(%rbp)
movl -0x114(%rbp), %eax
cmpl -0x120(%rbp), %eax
jle 0x19fa9a
movzbl -0x121(%rbp), %eax
movl %eax, -0x1c0(%rbp)
jmp 0x19faa7
movl $0x3, %eax
movl %eax, -0x1c0(%rbp)
jmp 0x19faa7
movl -0x1c0(%rbp), %eax
movb %al, -0x121(%rbp)
movl -0x114(%rbp), %eax
cmpl -0x120(%rbp), %eax
jle 0x19facf
movl -0x114(%rbp), %eax
movl %eax, -0x1c4(%rbp)
jmp 0x19fadb
movl -0x120(%rbp), %eax
movl %eax, -0x1c4(%rbp)
movl -0x1c4(%rbp), %eax
movl %eax, -0x114(%rbp)
movl -0x114(%rbp), %eax
cmpl -0xa4(%rbp), %eax
jle 0x19fb04
movzbl -0x121(%rbp), %eax
movl %eax, -0x1c8(%rbp)
jmp 0x19fb11
movl $0x4, %eax
movl %eax, -0x1c8(%rbp)
jmp 0x19fb11
movl -0x1c8(%rbp), %eax
movb %al, -0x121(%rbp)
movl -0x114(%rbp), %eax
cmpl -0xa4(%rbp), %eax
jle 0x19fb39
movl -0x114(%rbp), %eax
movl %eax, -0x1cc(%rbp)
jmp 0x19fb45
movl -0xa4(%rbp), %eax
movl %eax, -0x1cc(%rbp)
movl -0x1cc(%rbp), %eax
movl %eax, -0x114(%rbp)
movl -0x114(%rbp), %eax
movl %eax, -0xa8(%rbp)
movl -0xb4(%rbp), %eax
cmpl -0x114(%rbp), %eax
jle 0x19fb76
movl -0x68(%rbp), %eax
movl %eax, -0x1d0(%rbp)
jmp 0x19fb7f
movl -0x60(%rbp), %eax
movl %eax, -0x1d0(%rbp)
movl -0x1d0(%rbp), %eax
movl %eax, -0x68(%rbp)
movl -0xb4(%rbp), %eax
cmpl -0x114(%rbp), %eax
jle 0x19fba4
movl -0xb4(%rbp), %eax
movl %eax, -0x1d4(%rbp)
jmp 0x19fbb0
movl -0x114(%rbp), %eax
movl %eax, -0x1d4(%rbp)
movl -0x1d4(%rbp), %eax
movl %eax, -0xb4(%rbp)
movl -0x6c(%rbp), %ecx
movl -0x114(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x114(%rbp)
movsbl 0x20(%rbp), %ecx
movl -0x11c(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x11c(%rbp)
movl -0x11c(%rbp), %edx
movl -0x114(%rbp), %esi
xorl %ecx, %ecx
movl $0x8, %eax
cmpl %esi, %edx
cmovgel %eax, %ecx
movzbl -0x121(%rbp), %eax
orl %ecx, %eax
movb %al, -0x121(%rbp)
movl -0x11c(%rbp), %eax
cmpl -0x114(%rbp), %eax
jl 0x19fc22
movl -0x11c(%rbp), %eax
movl %eax, -0x1d8(%rbp)
jmp 0x19fc2e
movl -0x114(%rbp), %eax
movl %eax, -0x1d8(%rbp)
movl -0x1d8(%rbp), %eax
movl %eax, -0x11c(%rbp)
movl -0x11c(%rbp), %ecx
movq -0x110(%rbp), %rax
movl %ecx, 0x4(%rax)
movsbl 0x20(%rbp), %ecx
movl -0xa0(%rbp), %eax
subl %ecx, %eax
movl %eax, -0xa0(%rbp)
movl -0xa0(%rbp), %edx
movl -0x114(%rbp), %esi
xorl %ecx, %ecx
movl $0x10, %eax
cmpl %esi, %edx
cmovgel %eax, %ecx
movzbl -0x121(%rbp), %eax
orl %ecx, %eax
movb %al, -0x121(%rbp)
movl -0xa0(%rbp), %eax
cmpl -0x114(%rbp), %eax
jl 0x19fc9f
movl -0xa0(%rbp), %eax
movl %eax, -0x1dc(%rbp)
jmp 0x19fcab
movl -0x114(%rbp), %eax
movl %eax, -0x1dc(%rbp)
movl -0x1dc(%rbp), %eax
movl %eax, -0xa0(%rbp)
movl -0xa8(%rbp), %eax
subl -0x70(%rbp), %eax
movl %eax, -0x118(%rbp)
movsbl 0x30(%rbp), %ecx
movl -0x120(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x120(%rbp)
movl -0x120(%rbp), %edx
movl -0x118(%rbp), %esi
xorl %ecx, %ecx
movl $0x20, %eax
cmpl %esi, %edx
cmovgel %eax, %ecx
movzbl -0x121(%rbp), %eax
orl %ecx, %eax
movb %al, -0x121(%rbp)
movl -0x120(%rbp), %eax
cmpl -0x118(%rbp), %eax
jl 0x19fd1b
movl -0x120(%rbp), %eax
movl %eax, -0x1e0(%rbp)
jmp 0x19fd27
movl -0x118(%rbp), %eax
movl %eax, -0x1e0(%rbp)
movl -0x1e0(%rbp), %eax
movl %eax, -0x120(%rbp)
movl -0x120(%rbp), %ecx
movq -0x110(%rbp), %rax
movl %ecx, 0x8(%rax)
movsbl 0x30(%rbp), %ecx
movl -0xa4(%rbp), %eax
subl %ecx, %eax
movl %eax, -0xa4(%rbp)
movl -0xa4(%rbp), %edx
movl -0x118(%rbp), %esi
xorl %ecx, %ecx
movl $0x40, %eax
cmpl %esi, %edx
cmovgel %eax, %ecx
movzbl -0x121(%rbp), %eax
orl %ecx, %eax
movb %al, -0x121(%rbp)
movl -0xa4(%rbp), %eax
cmpl -0x118(%rbp), %eax
jl 0x19fd98
movl -0xa4(%rbp), %eax
movl %eax, -0x1e4(%rbp)
jmp 0x19fda4
movl -0x118(%rbp), %eax
movl %eax, -0x1e4(%rbp)
movl -0x1e4(%rbp), %eax
movl %eax, -0xa4(%rbp)
movb -0x121(%rbp), %dl
movq -0x108(%rbp), %rax
movl -0x60(%rbp), %ecx
subl -0xac(%rbp), %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0x19f943
jmp 0x19fddc
jmp 0x19fdde
movl -0xa8(%rbp), %ecx
movq -0x50(%rbp), %rax
movslq -0x60(%rbp), %rdx
imulq $0xc, %rdx, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movq -0x50(%rbp), %rax
movslq -0x60(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl $0xc0000000, 0x4(%rax)  # imm = 0xC0000000
movl -0xb0(%rbp), %eax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x19fe57
movq -0x50(%rbp), %rax
movslq -0x24(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
movq 0x50(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jle 0x19fe57
movq -0x50(%rbp), %rax
movslq -0x24(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %ecx
movq 0x50(%rbp), %rax
movl %ecx, 0xc(%rax)
movl -0x5c(%rbp), %ecx
movq 0x50(%rbp), %rax
movl %ecx, 0x10(%rax)
movl -0x5c(%rbp), %eax
movl -0x34(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x19fe7b
movl -0xb4(%rbp), %ecx
movq 0x50(%rbp), %rax
movl %ecx, 0x14(%rax)
movl -0x68(%rbp), %ecx
movq 0x50(%rbp), %rax
movl %ecx, 0x18(%rax)
movq 0x50(%rbp), %rdi
movl -0xb4(%rbp), %edx
movl -0x5c(%rbp), %ecx
movl -0x68(%rbp), %r8d
movl 0x40(%rbp), %r9d
xorl %esi, %esi
movsbl 0x30(%rbp), %eax
movl %eax, (%rsp)
callq 0x1a0100
cmpl $0x0, %eax
je 0x19fea5
jmp 0x19feea
movl -0x5c(%rbp), %eax
movl -0x34(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x19feda
movl -0xb0(%rbp), %eax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x19feda
movq -0x50(%rbp), %rax
movslq -0x24(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %ecx
movq 0x50(%rbp), %rax
movl %ecx, 0x1c(%rax)
jmp 0x19fedc
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0x19ef65
movq -0x20(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0x19e3f0
movq -0x20(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x19e3f0
cmpl $0x0, -0x84(%rbp)
je 0x1a005e
movl 0x48(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x128(%rbp)
movq 0x50(%rbp), %rax
movl (%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
jne 0x19ffbb
movl 0x48(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
jne 0x19ffbb
movq -0x20(%rbp), %rdi
movl -0x128(%rbp), %edx
movq -0x90(%rbp), %r8
movq -0x80(%rbp), %r9
movl -0x74(%rbp), %r15d
movl -0x34(%rbp), %r14d
subl $0x1, %r14d
movl -0x24(%rbp), %ebx
subl $0x1, %ebx
movq 0x50(%rbp), %r11
addq $0x20, %r11
movq 0x50(%rbp), %r10
addq $0x24, %r10
movq 0x50(%rbp), %rax
addq $0x28, %rax
xorl %ecx, %ecx
xorl %esi, %esi
movl %ecx, %esi
movq $0x0, (%rsp)
movl %r15d, 0x8(%rsp)
movl %r14d, 0x10(%rsp)
movl %ebx, 0x18(%rsp)
movq %r11, 0x20(%rsp)
movq %r10, 0x28(%rsp)
movq %rax, 0x30(%rsp)
callq 0x1a0240
jmp 0x1a0041
movq 0x50(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jl 0x1a003f
movq 0x50(%rbp), %rax
cmpl $0x0, 0x4(%rax)
jl 0x1a003f
movq -0x20(%rbp), %rdi
movl -0x128(%rbp), %edx
movq -0x90(%rbp), %r8
movq -0x80(%rbp), %r9
movl -0x74(%rbp), %r15d
movq 0x50(%rbp), %rax
movl 0x8(%rax), %r14d
movq 0x50(%rbp), %rax
movl 0x4(%rax), %ebx
movq 0x50(%rbp), %r11
addq $0x20, %r11
movq 0x50(%rbp), %r10
addq $0x24, %r10
movq 0x50(%rbp), %rax
addq $0x28, %rax
xorl %ecx, %ecx
xorl %esi, %esi
movl %ecx, %esi
movq $0x0, (%rsp)
movl %r15d, 0x8(%rsp)
movl %r14d, 0x10(%rsp)
movl %ebx, 0x18(%rsp)
movq %r11, 0x20(%rsp)
movq %r10, 0x28(%rsp)
movq %rax, 0x30(%rsp)
callq 0x1a0240
jmp 0x1a0041
movq -0x20(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq 0x19e3f0
movq -0x20(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x19e3f0
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)