// File: /workspace/github_c_makefile_star2_O3/lh3[P]fermi2/correct.c
// Function: fmc_correct1
void fmc_correct1(const fmc_opt_t *opt, fmc_hash_t **h, char **s, char **q, fmc_aux_t *a, fmc_ecstat_t *ecs)
{
	fmc_aux_t *_a = 0;
	int i;
	correct1_stat_t st[2];

	memset(ecs, 0, sizeof(fmc_ecstat_t));
	if (a == 0) a = _a = fmc_aux_init();
	kh_clear(kache, a->cache);
	fmc_seq_conv(*s, *q, opt->defQ, &a->ori);
	// forward strand
	fmc_seq_cpy_no_del(&a->seq, &a->ori);
	st[0] = fmc_correct1_aux(opt, h, a);
	fmc_seq_cpy_no_del(&a->ec_for, &a->seq);
	// reverse strand
	fmc_seq_cpy_no_del(&a->seq, &a->ori);
	fmc_seq_revcomp(&a->seq);
	st[1] = fmc_correct1_aux(opt, h, a);
	fmc_seq_revcomp(&a->seq);
	ecs->n_conflict = fmc_cns_ungap(&a->ec_for, &a->seq);
	fmc_seq_cpy_no_del(&a->seq, &a->ec_for);
	// generate final stats
	ecs->n_paths[0] = st[0].n_paths; ecs->n_failures[0] = st[0].n_failures;
	ecs->n_paths[1] = st[1].n_paths; ecs->n_failures[1] = st[1].n_failures;
	ecs->penalty = st[0].penalty + st[1].penalty;
	if (a->seq.n > a->ori.n) {
		*s = realloc(*s, a->seq.n + 1);
		*q = realloc(*q, a->seq.n + 1);
	} else if (!*q) *q = calloc(a->seq.n + 1, 1);
	ecs->n_si = kmer_cov(opt, &a->seq, h, a->cache);
	ecs->to_drop = (ecs->n_si == 0 || ecs->n_failures[0] > a->seq.n || ecs->n_failures[1] > a->seq.n);
	// write the sequence
	for (i = 0; i < a->seq.n; ++i) {
		ecbase_t *b = &a->seq.a[i];
		int qual;
		if (b->f || a->ori.a[b->i].b < 4) { // FIXME: this block is not quite right in the presence of gaps.
			if (b->b != a->ori.a[b->i].b)
				++ecs->n_diff, ecs->q_diff += a->ori.a[b->i].q;
			(*s)[i] = b->b == a->ori.a[b->i].b? "ACGTN"[b->b] : "acgtn"[b->b];
			qual = b->f? b->min_diff : b->q;
			(*q)[i] = (qual < FMC_Q_MAX_OUT? qual : FMC_Q_MAX_OUT) + 33;
		} else (*s)[i] = 'N', (*q)[i] = 33;
	}
	(*s)[i] = (*q)[i] = 0;
	if (_a) fmc_aux_destroy(_a);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, (%rsp)
movq %rdx, %r15
movq %rsi, 0x30(%rsp)
movq %rdi, %r12
pxor %xmm0, %xmm0
movdqu %xmm0, 0x10(%r9)
movdqu %xmm0, (%r9)
movq %r9, 0x28(%rsp)
movq $0x0, 0x20(%r9)
testq %r8, %r8
je 0x8c64
movq %r8, %r13
movq 0xa8(%r8), %rbx
movq $0x0, 0x20(%rsp)
jmp 0x8c94
movl $0x1, %edi
movl $0xb0, %esi
callq 0x2190
movq %rax, %r13
movl $0x1, %edi
movl $0x28, %esi
callq 0x2190
movq %rax, %rbx
movq %rax, 0xa8(%r13)
movq %r13, 0x20(%rsp)
testq %rbx, %rbx
je 0x8cc9
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x8cc9
movl (%rbx), %eax
movl %eax, %ecx
shrl $0x2, %ecx
andl $-0x4, %ecx
cmpl $0x10, %eax
movl $0x4, %edx
cmovael %ecx, %edx
movl $0xaa, %esi
callq 0x2140
movq $0x0, 0x4(%rbx)
movq (%r15), %rdi
movq (%rsp), %rax
movq (%rax), %rsi
movl 0x38(%r12), %edx
movq %r13, %rcx
callq 0x779c
movq %r15, 0x10(%rsp)
leaq 0x48(%r13), %rbp
movq %rbp, %rdi
movq %r13, %rsi
callq 0x78e5
movq %r12, %rdi
movq 0x30(%rsp), %rbx
movq %rbx, %rsi
movq %r13, %rdx
callq 0x9667
movq %rax, 0x18(%rsp)
movl %edx, 0x50(%rsp)
leaq 0x60(%r13), %r15
movq %r15, %rdi
movq %rbp, %rsi
callq 0x78e5
movq %rbp, %rdi
movq %r13, %rsi
callq 0x78e5
movq %rbp, %rdi
callq 0x79cd
movq %r12, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x9667
movq %rax, %r14
movl %edx, %ebx
movq %rbp, %rdi
callq 0x79cd
movq %r15, %rdi
movq %rbp, %rsi
callq 0x8b0f
movq %r13, 0x8(%rsp)
movq 0x28(%rsp), %r13
movl %eax, 0x1c(%r13)
movq %rbp, %rdi
movq %r15, %rsi
callq 0x78e5
movq 0x18(%rsp), %rcx
movq %rcx, %rax
shrq $0x20, %rax
movl %eax, 0x8(%r13)
movl 0x50(%rsp), %eax
movl %eax, 0x10(%r13)
movq %r14, %rax
shrq $0x20, %rax
movl %eax, 0xc(%r13)
movl %ebx, 0x14(%r13)
addl %ecx, %r14d
movl %r14d, 0x18(%r13)
movq 0x8(%rsp), %r13
movq 0x48(%r13), %rbx
cmpq (%r13), %rbx
movq %rbp, 0x38(%rsp)
jbe 0x8de8
movq 0x10(%rsp), %r15
movq (%r15), %rdi
incq %rbx
movq %rbx, %rsi
callq 0x2260
movq %r15, %r14
movq %rax, (%r15)
movq (%rsp), %rbx
movq (%rbx), %rdi
movq (%rbp), %rsi
incq %rsi
callq 0x2260
movq %rax, (%rbx)
movq (%rbp), %rbx
jmp 0x8e08
movq 0x10(%rsp), %r14
movq (%rsp), %r15
cmpq $0x0, (%r15)
jne 0x8e08
leaq 0x1(%rbx), %rdi
movl $0x1, %esi
callq 0x2190
movq %rax, (%r15)
movq 0xa8(%r13), %rax
movq %rax, 0x18(%rsp)
pxor %xmm0, %xmm0
movdqa %xmm0, 0x40(%rsp)
testq %rbx, %rbx
je 0x94b7
leaq 0xf(%rbx), %rax
andq $-0x10, %rax
decq %rbx
movq %rbx, %xmm0
movl $0xb9, %ecx
addq 0x58(%r13), %rcx
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movdqa %xmm0, 0x50(%rsp)
movdqa 0x146dd(%rip), %xmm1    # 0x1d530
movdqa 0x146e5(%rip), %xmm2    # 0x1d540
movdqa 0x146ed(%rip), %xmm3    # 0x1d550
movdqa 0x146f5(%rip), %xmm4    # 0x1d560
movdqa 0x146fd(%rip), %xmm5    # 0x1d570
movdqa 0x14705(%rip), %xmm6    # 0x1d580
movdqa 0x1470d(%rip), %xmm7    # 0x1d590
movdqa 0x14184(%rip), %xmm8    # 0x1d010
movdqa 0x1418b(%rip), %xmm9    # 0x1d020
pcmpeqd %xmm10, %xmm10
movdqa 0x50(%rsp), %xmm12
pxor %xmm9, %xmm12
movdqa %xmm8, %xmm13
pxor %xmm9, %xmm13
movdqa %xmm13, %xmm15
pcmpgtd %xmm12, %xmm15
pshufd $0xa0, %xmm15, %xmm14   # xmm14 = xmm15[0,0,2,2]
pshuflw $0xe8, %xmm14, %xmm0    # xmm0 = xmm14[0,2,2,3,4,5,6,7]
pcmpeqd %xmm12, %xmm13
pshufd $0xf5, %xmm13, %xmm13   # xmm13 = xmm13[1,1,3,3]
pshuflw $0xe8, %xmm13, %xmm11   # xmm11 = xmm13[0,2,2,3,4,5,6,7]
pand %xmm0, %xmm11
pshufd $0xf5, %xmm15, %xmm15   # xmm15 = xmm15[1,1,3,3]
pshuflw $0xe8, %xmm15, %xmm0    # xmm0 = xmm15[0,2,2,3,4,5,6,7]
por %xmm11, %xmm0
pxor %xmm10, %xmm0
packssdw %xmm0, %xmm0
movd %xmm0, %edx
testb $0x1, %dl
je 0x8f06
movb $0x0, -0xb4(%rcx)
pand %xmm14, %xmm13
por %xmm15, %xmm13
packssdw %xmm13, %xmm13
pxor %xmm10, %xmm13
packssdw %xmm13, %xmm13
packsswb %xmm13, %xmm13
movd %xmm13, %edx
shrl $0x8, %edx
testb $0x1, %dl
je 0x8f38
movb $0x0, -0xa8(%rcx)
movdqa %xmm7, %xmm0
pxor %xmm9, %xmm0
movdqa %xmm0, %xmm11
pcmpgtd %xmm12, %xmm11
pshufd $0xa0, %xmm11, %xmm13   # xmm13 = xmm11[0,0,2,2]
pcmpeqd %xmm12, %xmm0
pshufd $0xf5, %xmm0, %xmm14    # xmm14 = xmm0[1,1,3,3]
movdqa %xmm14, %xmm0
pand %xmm13, %xmm0
pshufd $0xf5, %xmm11, %xmm15   # xmm15 = xmm11[1,1,3,3]
por %xmm15, %xmm0
packssdw %xmm0, %xmm0
pxor %xmm10, %xmm0
packssdw %xmm0, %xmm0
packsswb %xmm0, %xmm0
movd %xmm0, %edx
shrl $0x10, %edx
testb $0x1, %dl
je 0x8f95
movb $0x0, -0x9c(%rcx)
pshufhw $0x84, %xmm13, %xmm0    # xmm0 = xmm13[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm14, %xmm11   # xmm11 = xmm14[0,1,2,3,4,5,4,6]
pand %xmm0, %xmm11
pshufhw $0x84, %xmm15, %xmm0    # xmm0 = xmm15[0,1,2,3,4,5,4,6]
por %xmm11, %xmm0
pxor %xmm10, %xmm0
packssdw %xmm0, %xmm0
packsswb %xmm0, %xmm0
movd %xmm0, %edx
shrl $0x18, %edx
testb $0x1, %dl
je 0x8fd1
movb $0x0, -0x90(%rcx)
movdqa %xmm6, %xmm0
pxor %xmm9, %xmm0
movdqa %xmm0, %xmm11
pcmpgtd %xmm12, %xmm11
pshufd $0xa0, %xmm11, %xmm14   # xmm14 = xmm11[0,0,2,2]
pshuflw $0xe8, %xmm14, %xmm15   # xmm15 = xmm14[0,2,2,3,4,5,6,7]
pcmpeqd %xmm12, %xmm0
pshufd $0xf5, %xmm0, %xmm13    # xmm13 = xmm0[1,1,3,3]
pshuflw $0xe8, %xmm13, %xmm0    # xmm0 = xmm13[0,2,2,3,4,5,6,7]
pand %xmm15, %xmm0
pshufd $0xf5, %xmm11, %xmm15   # xmm15 = xmm11[1,1,3,3]
pshuflw $0xe8, %xmm15, %xmm11   # xmm11 = xmm15[0,2,2,3,4,5,6,7]
por %xmm0, %xmm11
pxor %xmm10, %xmm11
packssdw %xmm11, %xmm0
packsswb %xmm0, %xmm0
pextrw $0x2, %xmm0, %edx
testb $0x1, %dl
je 0x9036
movb $0x0, -0x84(%rcx)
pand %xmm14, %xmm13
por %xmm15, %xmm13
packssdw %xmm13, %xmm13
pxor %xmm10, %xmm13
packssdw %xmm13, %xmm0
packsswb %xmm0, %xmm0
pextrw $0x2, %xmm0, %edx
shrl $0x8, %edx
testb $0x1, %dl
je 0x9064
movb $0x0, -0x78(%rcx)
movdqa %xmm5, %xmm0
pxor %xmm9, %xmm0
movdqa %xmm0, %xmm11
pcmpgtd %xmm12, %xmm11
pshufd $0xa0, %xmm11, %xmm13   # xmm13 = xmm11[0,0,2,2]
pcmpeqd %xmm12, %xmm0
pshufd $0xf5, %xmm0, %xmm14    # xmm14 = xmm0[1,1,3,3]
movdqa %xmm14, %xmm0
pand %xmm13, %xmm0
pshufd $0xf5, %xmm11, %xmm15   # xmm15 = xmm11[1,1,3,3]
por %xmm15, %xmm0
packssdw %xmm0, %xmm0
pxor %xmm10, %xmm0
packssdw %xmm0, %xmm0
packsswb %xmm0, %xmm0
pextrw $0x3, %xmm0, %edx
testb $0x1, %dl
je 0x90bc
movb $0x0, -0x6c(%rcx)
pshufhw $0x84, %xmm13, %xmm0    # xmm0 = xmm13[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm14, %xmm11   # xmm11 = xmm14[0,1,2,3,4,5,4,6]
pand %xmm0, %xmm11
pshufhw $0x84, %xmm15, %xmm0    # xmm0 = xmm15[0,1,2,3,4,5,4,6]
por %xmm11, %xmm0
pxor %xmm10, %xmm0
packssdw %xmm0, %xmm0
packsswb %xmm0, %xmm0
pextrw $0x3, %xmm0, %edx
shrl $0x8, %edx
testb $0x1, %dl
je 0x90f6
movb $0x0, -0x60(%rcx)
movdqa %xmm4, %xmm0
pxor %xmm9, %xmm0
movdqa %xmm0, %xmm11
pcmpgtd %xmm12, %xmm11
pshufd $0xa0, %xmm11, %xmm14   # xmm14 = xmm11[0,0,2,2]
pshuflw $0xe8, %xmm14, %xmm15   # xmm15 = xmm14[0,2,2,3,4,5,6,7]
pcmpeqd %xmm12, %xmm0
pshufd $0xf5, %xmm0, %xmm13    # xmm13 = xmm0[1,1,3,3]
pshuflw $0xe8, %xmm13, %xmm0    # xmm0 = xmm13[0,2,2,3,4,5,6,7]
pand %xmm15, %xmm0
pshufd $0xf5, %xmm11, %xmm15   # xmm15 = xmm11[1,1,3,3]
pshuflw $0xe8, %xmm15, %xmm11   # xmm11 = xmm15[0,2,2,3,4,5,6,7]
por %xmm0, %xmm11
pxor %xmm10, %xmm11
packssdw %xmm11, %xmm11
packsswb %xmm11, %xmm0
pextrw $0x4, %xmm0, %edx
testb $0x1, %dl
je 0x9159
movb $0x0, -0x54(%rcx)
pand %xmm14, %xmm13
por %xmm15, %xmm13
packssdw %xmm13, %xmm13
pxor %xmm10, %xmm13
packssdw %xmm13, %xmm13
packsswb %xmm13, %xmm0
pextrw $0x4, %xmm0, %edx
shrl $0x8, %edx
testb $0x1, %dl
je 0x9188
movb $0x0, -0x48(%rcx)
movdqa %xmm3, %xmm0
pxor %xmm9, %xmm0
movdqa %xmm0, %xmm11
pcmpgtd %xmm12, %xmm11
pshufd $0xa0, %xmm11, %xmm13   # xmm13 = xmm11[0,0,2,2]
pcmpeqd %xmm12, %xmm0
pshufd $0xf5, %xmm0, %xmm14    # xmm14 = xmm0[1,1,3,3]
movdqa %xmm14, %xmm0
pand %xmm13, %xmm0
pshufd $0xf5, %xmm11, %xmm15   # xmm15 = xmm11[1,1,3,3]
por %xmm15, %xmm0
packssdw %xmm0, %xmm0
pxor %xmm10, %xmm0
packssdw %xmm0, %xmm0
packsswb %xmm0, %xmm0
pextrw $0x5, %xmm0, %edx
testb $0x1, %dl
je 0x91e0
movb $0x0, -0x3c(%rcx)
pshufhw $0x84, %xmm13, %xmm0    # xmm0 = xmm13[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm14, %xmm11   # xmm11 = xmm14[0,1,2,3,4,5,4,6]
pand %xmm0, %xmm11
pshufhw $0x84, %xmm15, %xmm0    # xmm0 = xmm15[0,1,2,3,4,5,4,6]
por %xmm11, %xmm0
pxor %xmm10, %xmm0
packssdw %xmm0, %xmm0
packsswb %xmm0, %xmm0
pextrw $0x5, %xmm0, %edx
shrl $0x8, %edx
testb $0x1, %dl
je 0x921a
movb $0x0, -0x30(%rcx)
movdqa %xmm2, %xmm0
pxor %xmm9, %xmm0
movdqa %xmm0, %xmm11
pcmpgtd %xmm12, %xmm11
pshufd $0xa0, %xmm11, %xmm14   # xmm14 = xmm11[0,0,2,2]
pshuflw $0xe8, %xmm14, %xmm15   # xmm15 = xmm14[0,2,2,3,4,5,6,7]
pcmpeqd %xmm12, %xmm0
pshufd $0xf5, %xmm0, %xmm13    # xmm13 = xmm0[1,1,3,3]
pshuflw $0xe8, %xmm13, %xmm0    # xmm0 = xmm13[0,2,2,3,4,5,6,7]
pand %xmm15, %xmm0
pshufd $0xf5, %xmm11, %xmm15   # xmm15 = xmm11[1,1,3,3]
pshuflw $0xe8, %xmm15, %xmm11   # xmm11 = xmm15[0,2,2,3,4,5,6,7]
por %xmm0, %xmm11
pxor %xmm10, %xmm11
packssdw %xmm11, %xmm0
packsswb %xmm0, %xmm0
pextrw $0x6, %xmm0, %edx
testb $0x1, %dl
je 0x927c
movb $0x0, -0x24(%rcx)
pand %xmm14, %xmm13
por %xmm15, %xmm13
packssdw %xmm13, %xmm13
pxor %xmm10, %xmm13
packssdw %xmm13, %xmm0
packsswb %xmm0, %xmm0
pextrw $0x6, %xmm0, %edx
shrl $0x8, %edx
testb $0x1, %dl
je 0x92aa
movb $0x0, -0x18(%rcx)
movdqa %xmm1, %xmm0
pxor %xmm9, %xmm0
movdqa %xmm0, %xmm11
pcmpgtd %xmm12, %xmm11
pshufd $0xa0, %xmm11, %xmm13   # xmm13 = xmm11[0,0,2,2]
pcmpeqd %xmm12, %xmm0
pshufd $0xf5, %xmm0, %xmm12    # xmm12 = xmm0[1,1,3,3]
movdqa %xmm12, %xmm0
pand %xmm13, %xmm0
pshufd $0xf5, %xmm11, %xmm14   # xmm14 = xmm11[1,1,3,3]
por %xmm14, %xmm0
packssdw %xmm0, %xmm0
pxor %xmm10, %xmm0
packssdw %xmm0, %xmm0
packsswb %xmm0, %xmm0
pextrw $0x7, %xmm0, %edx
testb $0x1, %dl
je 0x9302
movb $0x0, -0xc(%rcx)
pshufhw $0x84, %xmm13, %xmm0    # xmm0 = xmm13[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm12, %xmm11   # xmm11 = xmm12[0,1,2,3,4,5,4,6]
pand %xmm0, %xmm11
pshufhw $0x84, %xmm14, %xmm0    # xmm0 = xmm14[0,1,2,3,4,5,4,6]
por %xmm11, %xmm0
pxor %xmm10, %xmm0
packssdw %xmm0, %xmm0
packsswb %xmm0, %xmm0
pextrw $0x7, %xmm0, %edx
shrl $0x8, %edx
testb $0x1, %dl
je 0x933b
movb $0x0, (%rcx)
movdqa 0x1425d(%rip), %xmm0    # 0x1d5a0
paddq %xmm0, %xmm8
paddq %xmm0, %xmm7
paddq %xmm0, %xmm6
paddq %xmm0, %xmm5
paddq %xmm0, %xmm4
paddq %xmm0, %xmm3
paddq %xmm0, %xmm2
paddq %xmm0, %xmm1
addq $0xc0, %rcx
addq $-0x10, %rax
jne 0x8e9a
xorl %r14d, %r14d
movl $0x5, %r15d
xorl %ebp, %ebp
xorl %r13d, %r13d
xorl %ebx, %ebx
movq 0x8(%rsp), %rax
movq 0x58(%rax), %rax
leaq (%r14,%r14,2), %rcx
movzwl (%rax,%rcx,4), %eax
andl $0xf, %eax
cmpw $0x4, %ax
jb 0x93bc
movq $0x0, 0x40(%rsp)
movq (%r12), %rsi
movq %rsi, %rdi
shlq $0x30, %rdi
xorl %ebx, %ebx
xorl %r13d, %r13d
xorl %ebp, %ebp
jmp 0x9407
incl %ebp
movq (%r12), %rsi
movq %rsi, %rdi
shlq $0x30, %rdi
shlq $0x2, %r13
leal (%rsi,%rsi), %ecx
movq $-0x1, %rdx
shlq %cl, %rdx
notq %rdx
andq %r13, %rdx
orq %rax, %rdx
movzwl %ax, %eax
movl $0x3, %r8d
subl %eax, %r8d
movslq %r8d, %rax
addb $-0x2, %cl
shlq %cl, %rax
movq %rdx, 0x40(%rsp)
shrq $0x2, %rbx
orq %rax, %rbx
movq %rdx, %r13
movq %rbx, 0x48(%rsp)
sarq $0x30, %rdi
cmpl %edi, %ebp
jl 0x9458
sarl $0x10, %esi
leaq 0x40(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq 0x18(%rsp), %r8
callq 0xae40
testl %eax, %eax
js 0x9458
cmpw $0x0, (%r12)
jle 0x9458
movq 0x8(%rsp), %rax
movq 0x58(%rax), %rax
addq %r15, %rax
xorl %ecx, %ecx
incb (%rax)
incq %rcx
movswq (%r12), %rdx
addq $-0xc, %rax
cmpq %rdx, %rcx
jl 0x9445
incq %r14
movq 0x38(%rsp), %rax
movq (%rax), %rax
addq $0xc, %r15
cmpq %r14, %rax
ja 0x9385
testq %rax, %rax
je 0x94be
movq 0x8(%rsp), %r13
movq 0x58(%r13), %rcx
movswl (%r12), %edx
addl $-0x3, %edx
addq $0x5, %rcx
xorl %ebx, %ebx
movb $0x1, %sil
movq 0x10(%rsp), %rbp
movzbl (%rcx), %edi
cmpl %edi, %edx
setg %dil
setle %r8b
andb %sil, %r8b
movzbl %r8b, %esi
addl %esi, %ebx
addq $0xc, %rcx
movl %edi, %esi
decq %rax
jne 0x9494
jmp 0x94ca
xorl %ebx, %ebx
movq %r14, %rbp
jmp 0x94ca
xorl %ebx, %ebx
movq 0x10(%rsp), %rbp
movq 0x8(%rsp), %r13
cmpl $0x6, 0x1bcff(%rip)     # 0x251d0
movq 0x28(%rsp), %r14
movq 0x20(%rsp), %r15
movq 0x38(%rsp), %r12
jge 0x9657
movl %ebx, 0x20(%r14)
movq (%r12), %rax
movl $0x1, %ecx
testl %ebx, %ebx
je 0x9512
movslq 0x10(%r14), %rdx
cmpq %rdx, %rax
movq (%rsp), %rbx
jb 0x9516
movslq 0x14(%r14), %rdx
xorl %ecx, %ecx
cmpq %rdx, %rax
setb %cl
jmp 0x9516
movq (%rsp), %rbx
movl %ecx, 0x24(%r14)
testq %rax, %rax
je 0x961c
xorl %ecx, %ecx
leaq 0x13ec1(%rip), %rdx     # 0x1d3ed
movdqa 0x1407c(%rip), %xmm0    # 0x1d5b0
leaq 0x14329(%rip), %rsi     # 0x1d864
xorl %eax, %eax
movq 0x10(%r13), %r9
movq 0x58(%r13), %rdi
movzwl (%rdi,%rcx), %r8d
movslq 0x8(%rdi,%rcx), %r10
leaq (%r10,%r10,2), %r10
movzwl (%r9,%r10,4), %r11d
cmpq $0xfff, %r8             # imm = 0xFFF
ja 0x957d
movl %r11d, %ebx
andl $0xc, %ebx
movq (%rsp), %rbx
je 0x957d
movq (%rbp), %rdi
movb $0x4e, (%rdi,%rax)
movb $0x21, %dil
jmp 0x9602
xorl %r8d, %r11d
testb $0xf, %r11b
je 0x95ca
movzbl 0x2(%r9,%r10,4), %r8d
movq (%r14), %xmm1
movd %r8d, %xmm2
movdqa %xmm0, %xmm3
punpckldq %xmm2, %xmm3    # xmm3 = xmm3[0],xmm2[0],xmm3[1],xmm2[1]
paddd %xmm1, %xmm3
movq %xmm3, (%r14)
movzwl (%rdi,%rcx), %r8d
movzwl (%r9,%r10,4), %r10d
xorw %r8w, %r10w
movq %rdx, %r9
testb $0xf, %r10b
je 0x95c1
movq %rsi, %r9
andl $0xf, %r8d
addq %r9, %r8
jmp 0x95d1
andl $0xf, %r8d
addq %rdx, %r8
movb (%r8), %r8b
movq (%rbp), %r9
movb %r8b, (%r9,%rax)
xorl %r8d, %r8d
cmpw $0x1000, (%rdi,%rcx)    # imm = 0x1000
leaq (%rdi,%rcx), %rdi
setae %r8b
movzbl 0x2(%rdi,%r8,2), %edi
cmpb $0x21, %dil
jb 0x95fe
movl $0x21, %edi
addb $0x21, %dil
movq (%rbx), %r8
movb %dil, (%r8,%rax)
incq %rax
addq $0xc, %rcx
cmpq %rax, (%r12)
ja 0x953d
jmp 0x961e
xorl %eax, %eax
movq (%rbx), %rcx
xorl %edx, %edx
movb %dl, (%rcx,%rax)
movq (%rbp), %rcx
movb %dl, (%rcx,%rax)
testq %r15, %r15
je 0x9648
movq %r15, %rdi
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8a8e
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
movq %r13, %rsi
callq 0x27c2
jmp 0x94e6