// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/ecovlp.cpp
// Function: update_scb(All_reads*, asg16_v*, asg16_v*, asg16_v*, UC_Read*, UC_Read*, asg64_v*, bit_extz_t*, unsigned long)
void update_scb(All_reads *R_INF, asg16_v *scc, asg16_v *scb, asg16_v *scb_res, UC_Read *qu, UC_Read *tu, asg64_v *srt, bit_extz_t *exz, uint64_t rid)
{
    char *qstr = NULL, *tstr = NULL; uint64_t ql = 0, tl = 0;
    uint64_t ck, qk, tk, k, wq[2], wt[2]; uint32_t len; uint16_t c, bq, bt;
    gen_ori_seq0(qu->seq, qu->length, tu, scb, rid); ///tstr = tu->seq; tl = tu->length;

    ck = qk = tk = 0; ql = qu->length;
    while (ck < scc->n) {
        wq[0] = qk; wt[0] = tk;
        ck = pop_trace_bp_f(scc, ck, &c, &bq, &bt, &len);
        if(c != 2) qk += len;
        if(c != 3) tk += len;
        wq[1] = qk; wt[1] = tk;
    }
    assert(qk == ql);
    tl = tk; resize_UC_Read(qu, ql + tl);
    qstr = qu->seq; tstr = qu->seq + ql;

    ck = 0; qk = tk = 0; 
    while (ck < scc->n) {
        wq[0] = qk; wt[0] = tk;
        ck = pop_trace_bp_f(scc, ck, &c, &bq, &bt, &len);
        if(c != 2) qk += len;
        if(c != 3) tk += len;
        wq[1] = qk; wt[1] = tk;
        // if(xk > (uint32_t)p->z.length) fprintf(stderr, "[M::%s] xk::%u, len::%u, c::%u, rid::%ld\n", __func__, xk, (uint32_t)p->z.length, c, i);
        if(c == 0) {
            memcpy(tstr + wt[0], qstr + wq[0], (wq[1]-wq[0])*sizeof((*qstr)));
        } else if(c == 1 || c == 2) {
            for (k = wt[0]; k < wt[1]; k++) tstr[k] = s_H[bt]; 
        }
        // if(i == 700) fprintf(stderr, "|%u%c(%c)(x::%u)(y::%u)", len, cm[c], ((c==1)||(c==2))?(cc[b]):('*'), wx[1], wy[1]); // s_H
    }

    qstr = tstr; ql = tl;
    tstr = tu->seq; tl = tu->length;

    // fprintf(stderr, "\n[M::%s] ql::%lu, tl::%lu, rid::%lu\n", __func__, ql, tl, rid);

    gen_updated_trace(scc, scb, scb_res, qstr, ql, tstr, tl, srt, exz, rid);

    

    ///debug
    // resize_UC_Read(tu, ql + tl);
    // memcpy(tu->seq + tl, qstr, ql); tstr = tu->seq; qstr = tu->seq + tl;

    // resize_UC_Read(qu, ql + tl);
    // memcpy(qu->seq, tu->seq, ql + tl); tstr = qu->seq; qstr = qu->seq + tl;

    // gen_ori_seq0(qstr, ql, tu, scb_res, rid);
    // assert(memcmp(tstr, tu->seq, tl) == 0);
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %rbx
movq %rcx, 0x20(%rsp)
movq %rdx, %rcx
movq %rsi, %r12
movq 0x80(%rsp), %r8
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
movq %r9, 0x28(%rsp)
movq %r9, %rdx
movq %rcx, 0x18(%rsp)
callq 0x18f6f8
movq %rbx, 0x10(%rsp)
movq 0x8(%rbx), %rax
movq %rax, 0x8(%rsp)
movq (%r12), %rax
testq %rax, %rax
je 0x191419
movq 0x10(%r12), %rsi
xorl %edi, %edi
movw $0xffff, %r8w           # imm = 0xFFFF
xorl %r13d, %r13d
xorl %edx, %edx
xorl %r11d, %r11d
movzwl (%rsi,%r11,2), %r10d
movl %r10d, %r15d
shrl $0xe, %r15d
movw %r8w, 0x4(%rsp)
movw %r8w, 0x6(%rsp)
leal -0x2(%r15), %ecx
cmpl $0x2, %ecx
jae 0x191309
movw $0xfff, %r9w            # imm = 0xFFF
movw $0xc, %cx
leaq 0x4(%rsp), %rbx
jmp 0x19132f
movw $0x3fff, %r9w           # imm = 0x3FFF
testl %r15d, %r15d
je 0x19133b
movl %r10d, %ecx
shrl $0xc, %ecx
andl $0x3, %ecx
movw %cx, 0x4(%rsp)
movw $0x3ff, %r9w            # imm = 0x3FF
movw $0xa, %cx
leaq 0x6(%rsp), %rbx
movzwl %r10w, %ebp
shrl %cl, %ebp
andl $0x3, %ebp
movw %bp, (%rbx)
movzwl %r9w, %ecx
andl %r10d, %ecx
incl %r11d
cmpq %r11, %rax
jbe 0x1913d4
movzwl 0x6(%rsp), %ebp
movzwl 0x4(%rsp), %r10d
movzwl (%rsi,%r11,2), %ebx
movl %ebx, %r9d
shrl $0xe, %r9d
cmpl %r15d, %r9d
jne 0x1913d4
movzwl %r15w, %r9d
leal -0x2(%r9), %r14d
cmpl $0x2, %r14d
jae 0x19138b
movl %ebx, %r9d
shrl $0xc, %r9d
andl $0x3, %r9d
andl $0xfff, %ebx            # imm = 0xFFF
jmp 0x19139b
testl %r9d, %r9d
jne 0x1913a3
andl $0x3fff, %ebx           # imm = 0x3FFF
movw $0xffff, %r9w           # imm = 0xFFFF
movl $0xffff, %r14d          # imm = 0xFFFF
jmp 0x1913bf
movl %ebx, %r9d
shrl $0xc, %r9d
andl $0x3, %r9d
movl %ebx, %r14d
shrl $0xa, %r14d
andl $0x3, %r14d
andl $0x3ff, %ebx            # imm = 0x3FF
cmpl %ebp, %r14d
jne 0x1913d4
cmpw %r9w, %r10w
jne 0x1913d4
addl %ebx, %ecx
incl %r11d
cmpq %r11, %rax
ja 0x191359
cmpw $0x3, %r15w
jne 0x1913ee
movzwl 0x4(%rsp), %r9d
movw %r9w, 0x6(%rsp)
movw $0xffff, 0x4(%rsp)      # imm = 0xFFFF
cmpw $0x2, %r15w
movl %ecx, %ecx
movq %rcx, %r9
cmoveq %rdi, %r9
addq %r9, %rdx
cmpw $0x3, %r15w
movl %r11d, %r11d
cmoveq %rdi, %rcx
addq %rcx, %r13
cmpq %r11, %rax
ja 0x1912d8
jmp 0x19141e
xorl %edx, %edx
xorl %r13d, %r13d
movq 0x8(%rsp), %rcx
cmpq %rcx, %rdx
jne 0x191b7f
movq %rcx, %rdx
leaq (%rcx,%r13), %r15
movq 0x10(%rsp), %rcx
movq (%rcx), %rdi
cmpq %r15, 0x10(%rcx)
jge 0x19145f
movq %r15, %rsi
movq %rcx, %rbx
callq 0x2370
movq 0x8(%rsp), %rdx
movq %rax, %rdi
movq %rax, (%rbx)
movq %r15, 0x10(%rbx)
movq (%r12), %rax
movq %rdi, 0x10(%rsp)
leaq (%rdi,%rdx), %rcx
movq %rcx, 0x8(%rsp)
testq %rax, %rax
je 0x191b39
movq 0x10(%rsp), %rcx
addq %rdx, %rcx
addq $0xf, %rcx
movq %rcx, 0x30(%rsp)
xorl %edi, %edi
movdqa 0xa484e(%rip), %xmm8    # 0x235ce0
movdqa 0xa4855(%rip), %xmm9    # 0x235cf0
movdqa 0xa485c(%rip), %xmm10   # 0x235d00
movdqa 0xa4863(%rip), %xmm11   # 0x235d10
movdqa 0x9fdea(%rip), %xmm12   # 0x2312a0
movdqa 0x9fdf1(%rip), %xmm13   # 0x2312b0
movdqa 0x9fdf8(%rip), %xmm14   # 0x2312c0
movdqa 0x9fdff(%rip), %xmm15   # 0x2312d0
xorl %esi, %esi
xorl %r15d, %r15d
movq 0x10(%r12), %rdx
movzwl (%rdx,%r15,2), %r10d
movl %r10d, %r9d
shrl $0xe, %r9d
movw $0xffff, %cx            # imm = 0xFFFF
movw %cx, 0x4(%rsp)
movw %cx, 0x6(%rsp)
leal -0x2(%r9), %ecx
movzwl %r10w, %r8d
cmpl $0x2, %ecx
jae 0x191512
movw $0xfff, %r11w           # imm = 0xFFF
movw $0xc, %cx
leaq 0x4(%rsp), %rbx
jmp 0x191538
movw $0x3fff, %r11w          # imm = 0x3FFF
testl %r9d, %r9d
je 0x191543
movl %r10d, %ecx
shrl $0xc, %ecx
andl $0x3, %ecx
movw %cx, 0x4(%rsp)
movw $0x3ff, %r11w           # imm = 0x3FF
movw $0xa, %cx
leaq 0x6(%rsp), %rbx
movl %r8d, %ebp
shrl %cl, %ebp
andl $0x3, %ebp
movw %bp, (%rbx)
movzwl %r11w, %ecx
andl %r10d, %ecx
incl %r15d
cmpq %r15, %rax
jbe 0x1915d6
movzwl 0x6(%rsp), %r10d
movzwl 0x4(%rsp), %r11d
movzwl (%rdx,%r15,2), %ebp
movl %ebp, %ebx
shrl $0xe, %ebx
cmpl %r9d, %ebx
jne 0x1915d6
movzwl %r9w, %ebx
leal -0x2(%rbx), %r14d
cmpl $0x2, %r14d
jae 0x191592
movl %ebp, %r14d
shrl $0xc, %r14d
andl $0x3, %r14d
andl $0xfff, %ebp            # imm = 0xFFF
jmp 0x1915a1
testl %ebx, %ebx
jne 0x1915a8
andl $0x3fff, %ebp           # imm = 0x3FFF
movw $0xffff, %r14w          # imm = 0xFFFF
movl $0xffff, %ebx           # imm = 0xFFFF
jmp 0x1915c1
movl %ebp, %r14d
shrl $0xc, %r14d
andl $0x3, %r14d
movl %ebp, %ebx
shrl $0xa, %ebx
andl $0x3, %ebx
andl $0x3ff, %ebp            # imm = 0x3FF
cmpl %r10d, %ebx
jne 0x1915d6
cmpw %r14w, %r11w
jne 0x1915d6
addl %ebp, %ecx
incl %r15d
cmpq %r15, %rax
ja 0x191562
movl %ecx, %edx
cmpw $0x3, %r9w
jne 0x1915fb
movzwl 0x4(%rsp), %eax
movw %ax, 0x6(%rsp)
movw $0xffff, 0x4(%rsp)      # imm = 0xFFFF
addq %rdx, %rsi
movq %rsi, %r14
jmp 0x191b26
cmpw $0x2, %r9w
movl $0x0, %r14d
cmovneq %rdx, %r14
addq %rsi, %r14
leaq (%rdi,%rdx), %rbp
cmpl $0x4000, %r8d           # imm = 0x4000
jae 0x191676
addq 0x8(%rsp), %rdi
addq 0x10(%rsp), %rsi
callq 0x2160
movdqa 0x9fc9e(%rip), %xmm15   # 0x2312d0
movdqa 0x9fc85(%rip), %xmm14   # 0x2312c0
movdqa 0x9fc6c(%rip), %xmm13   # 0x2312b0
movdqa 0x9fc53(%rip), %xmm12   # 0x2312a0
movdqa 0xa46ba(%rip), %xmm11   # 0x235d10
movdqa 0xa46a1(%rip), %xmm10   # 0x235d00
movdqa 0xa4688(%rip), %xmm9    # 0x235cf0
movdqa 0xa466f(%rip), %xmm8    # 0x235ce0
jmp 0x191b23
cmpq %rbp, %rdi
jae 0x191b23
movzwl 0x4(%rsp), %eax
leaq 0x1040a5(%rip), %rcx    # 0x295730
movb (%rcx,%rax), %al
leaq 0xf(%rdx), %rcx
andq $-0x10, %rcx
decq %rdx
movq %rdx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
addq 0x30(%rsp), %rdi
xorl %edx, %edx
movq %rdx, %xmm1
pshufd $0x44, %xmm1, %xmm1     # xmm1 = xmm1[0,1,0,1]
movdqa %xmm1, %xmm3
por %xmm15, %xmm3
movdqa %xmm0, %xmm2
movdqa 0x9fc17(%rip), %xmm4    # 0x2312e0
pxor %xmm4, %xmm2
pxor %xmm4, %xmm3
movdqa %xmm3, %xmm5
pcmpgtd %xmm2, %xmm5
pshufd $0xa0, %xmm5, %xmm4     # xmm4 = xmm5[0,0,2,2]
pshuflw $0xe8, %xmm4, %xmm6     # xmm6 = xmm4[0,2,2,3,4,5,6,7]
pcmpeqd %xmm2, %xmm3
pshufd $0xf5, %xmm3, %xmm3     # xmm3 = xmm3[1,1,3,3]
pshuflw $0xe8, %xmm3, %xmm7     # xmm7 = xmm3[0,2,2,3,4,5,6,7]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm5, %xmm5     # xmm5 = xmm5[1,1,3,3]
pshuflw $0xe8, %xmm5, %xmm6     # xmm6 = xmm5[0,2,2,3,4,5,6,7]
por %xmm7, %xmm6
pcmpeqd %xmm7, %xmm7
pxor %xmm7, %xmm6
packssdw %xmm6, %xmm6
movd %xmm6, %esi
testb $0x1, %sil
je 0x19171d
movb %al, -0xf(%rdi,%rdx)
pand %xmm4, %xmm3
por %xmm5, %xmm3
packssdw %xmm3, %xmm3
pxor %xmm7, %xmm3
packssdw %xmm3, %xmm3
packsswb %xmm3, %xmm3
movd %xmm3, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0x191746
movb %al, -0xe(%rdi,%rdx)
movdqa %xmm1, %xmm4
por %xmm14, %xmm4
pxor 0x9fb89(%rip), %xmm4    # 0x2312e0
movdqa %xmm4, %xmm5
pcmpgtd %xmm2, %xmm5
pshufd $0xa0, %xmm5, %xmm3     # xmm3 = xmm5[0,0,2,2]
pcmpeqd %xmm2, %xmm4
pshufd $0xf5, %xmm4, %xmm4     # xmm4 = xmm4[1,1,3,3]
movdqa %xmm4, %xmm6
pand %xmm3, %xmm6
pshufd $0xf5, %xmm5, %xmm5     # xmm5 = xmm5[1,1,3,3]
por %xmm5, %xmm6
packssdw %xmm6, %xmm6
pxor %xmm7, %xmm6
packssdw %xmm6, %xmm6
packsswb %xmm6, %xmm6
movd %xmm6, %esi
shrl $0x10, %esi
testb $0x1, %sil
je 0x19179f
movb %al, -0xd(%rdi,%rdx)
pshufhw $0x84, %xmm3, %xmm3     # xmm3 = xmm3[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm4, %xmm4     # xmm4 = xmm4[0,1,2,3,4,5,4,6]
pand %xmm3, %xmm4
pshufhw $0x84, %xmm5, %xmm3     # xmm3 = xmm5[0,1,2,3,4,5,4,6]
por %xmm4, %xmm3
pxor %xmm7, %xmm3
packssdw %xmm3, %xmm3
packsswb %xmm3, %xmm3
movd %xmm3, %esi
shrl $0x18, %esi
testb $0x1, %sil
je 0x1917d3
movb %al, -0xc(%rdi,%rdx)
movdqa %xmm1, %xmm3
por %xmm13, %xmm3
pxor 0x9fafc(%rip), %xmm3    # 0x2312e0
movdqa %xmm3, %xmm5
pcmpgtd %xmm2, %xmm5
pshufd $0xa0, %xmm5, %xmm4     # xmm4 = xmm5[0,0,2,2]
pshuflw $0xe8, %xmm4, %xmm6     # xmm6 = xmm4[0,2,2,3,4,5,6,7]
pcmpeqd %xmm2, %xmm3
pshufd $0xf5, %xmm3, %xmm3     # xmm3 = xmm3[1,1,3,3]
pshuflw $0xe8, %xmm3, %xmm7     # xmm7 = xmm3[0,2,2,3,4,5,6,7]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm5, %xmm5     # xmm5 = xmm5[1,1,3,3]
pshuflw $0xe8, %xmm5, %xmm6     # xmm6 = xmm5[0,2,2,3,4,5,6,7]
por %xmm7, %xmm6
pcmpeqd %xmm7, %xmm7
pxor %xmm7, %xmm6
packssdw %xmm6, %xmm6
packsswb %xmm6, %xmm6
pextrw $0x2, %xmm6, %esi
testb $0x1, %sil
je 0x191835
movb %al, -0xb(%rdi,%rdx)
pand %xmm4, %xmm3
por %xmm5, %xmm3
packssdw %xmm3, %xmm3
pxor %xmm7, %xmm3
packssdw %xmm3, %xmm3
packsswb %xmm3, %xmm3
pextrw $0x2, %xmm3, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0x19185f
movb %al, -0xa(%rdi,%rdx)
movdqa %xmm1, %xmm4
por %xmm12, %xmm4
pxor 0x9fa70(%rip), %xmm4    # 0x2312e0
movdqa %xmm4, %xmm5
pcmpgtd %xmm2, %xmm5
pshufd $0xa0, %xmm5, %xmm3     # xmm3 = xmm5[0,0,2,2]
pcmpeqd %xmm2, %xmm4
pshufd $0xf5, %xmm4, %xmm4     # xmm4 = xmm4[1,1,3,3]
movdqa %xmm4, %xmm6
pand %xmm3, %xmm6
pshufd $0xf5, %xmm5, %xmm5     # xmm5 = xmm5[1,1,3,3]
por %xmm5, %xmm6
packssdw %xmm6, %xmm6
pxor %xmm7, %xmm6
packssdw %xmm6, %xmm6
packsswb %xmm6, %xmm6
pextrw $0x3, %xmm6, %esi
testb $0x1, %sil
je 0x1918b6
movb %al, -0x9(%rdi,%rdx)
pshufhw $0x84, %xmm3, %xmm3     # xmm3 = xmm3[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm4, %xmm4     # xmm4 = xmm4[0,1,2,3,4,5,4,6]
pand %xmm3, %xmm4
pshufhw $0x84, %xmm5, %xmm3     # xmm3 = xmm5[0,1,2,3,4,5,4,6]
por %xmm4, %xmm3
pxor %xmm7, %xmm3
packssdw %xmm3, %xmm3
packsswb %xmm3, %xmm3
pextrw $0x3, %xmm3, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0x1918eb
movb %al, -0x8(%rdi,%rdx)
movdqa %xmm1, %xmm3
por %xmm11, %xmm3
pxor 0x9f9e4(%rip), %xmm3    # 0x2312e0
movdqa %xmm3, %xmm5
pcmpgtd %xmm2, %xmm5
pshufd $0xa0, %xmm5, %xmm4     # xmm4 = xmm5[0,0,2,2]
pshuflw $0xe8, %xmm4, %xmm6     # xmm6 = xmm4[0,2,2,3,4,5,6,7]
pcmpeqd %xmm2, %xmm3
pshufd $0xf5, %xmm3, %xmm3     # xmm3 = xmm3[1,1,3,3]
pshuflw $0xe8, %xmm3, %xmm7     # xmm7 = xmm3[0,2,2,3,4,5,6,7]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm5, %xmm5     # xmm5 = xmm5[1,1,3,3]
pshuflw $0xe8, %xmm5, %xmm6     # xmm6 = xmm5[0,2,2,3,4,5,6,7]
por %xmm7, %xmm6
pcmpeqd %xmm7, %xmm7
pxor %xmm7, %xmm6
packssdw %xmm6, %xmm6
packsswb %xmm6, %xmm6
pextrw $0x4, %xmm6, %esi
testb $0x1, %sil
je 0x19194d
movb %al, -0x7(%rdi,%rdx)
pand %xmm4, %xmm3
por %xmm5, %xmm3
packssdw %xmm3, %xmm3
pxor %xmm7, %xmm3
packssdw %xmm3, %xmm3
packsswb %xmm3, %xmm3
pextrw $0x4, %xmm3, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0x191977
movb %al, -0x6(%rdi,%rdx)
movdqa %xmm1, %xmm4
por %xmm10, %xmm4
pxor 0x9f958(%rip), %xmm4    # 0x2312e0
movdqa %xmm4, %xmm5
pcmpgtd %xmm2, %xmm5
pshufd $0xa0, %xmm5, %xmm3     # xmm3 = xmm5[0,0,2,2]
pcmpeqd %xmm2, %xmm4
pshufd $0xf5, %xmm4, %xmm4     # xmm4 = xmm4[1,1,3,3]
movdqa %xmm4, %xmm6
pand %xmm3, %xmm6
pshufd $0xf5, %xmm5, %xmm5     # xmm5 = xmm5[1,1,3,3]
por %xmm5, %xmm6
packssdw %xmm6, %xmm6
pxor %xmm7, %xmm6
packssdw %xmm6, %xmm6
packsswb %xmm6, %xmm6
pextrw $0x5, %xmm6, %esi
testb $0x1, %sil
je 0x1919ce
movb %al, -0x5(%rdi,%rdx)
pshufhw $0x84, %xmm3, %xmm3     # xmm3 = xmm3[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm4, %xmm4     # xmm4 = xmm4[0,1,2,3,4,5,4,6]
pand %xmm3, %xmm4
pshufhw $0x84, %xmm5, %xmm3     # xmm3 = xmm5[0,1,2,3,4,5,4,6]
por %xmm4, %xmm3
pxor %xmm7, %xmm3
packssdw %xmm3, %xmm3
packsswb %xmm3, %xmm3
pextrw $0x5, %xmm3, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0x191a03
movb %al, -0x4(%rdi,%rdx)
movdqa %xmm1, %xmm3
por %xmm9, %xmm3
pxor 0x9f8cc(%rip), %xmm3    # 0x2312e0
movdqa %xmm3, %xmm5
pcmpgtd %xmm2, %xmm5
pshufd $0xa0, %xmm5, %xmm4     # xmm4 = xmm5[0,0,2,2]
pshuflw $0xe8, %xmm4, %xmm6     # xmm6 = xmm4[0,2,2,3,4,5,6,7]
pcmpeqd %xmm2, %xmm3
pshufd $0xf5, %xmm3, %xmm3     # xmm3 = xmm3[1,1,3,3]
pshuflw $0xe8, %xmm3, %xmm7     # xmm7 = xmm3[0,2,2,3,4,5,6,7]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm5, %xmm5     # xmm5 = xmm5[1,1,3,3]
pshuflw $0xe8, %xmm5, %xmm6     # xmm6 = xmm5[0,2,2,3,4,5,6,7]
por %xmm7, %xmm6
pcmpeqd %xmm7, %xmm7
pxor %xmm7, %xmm6
packssdw %xmm6, %xmm6
packsswb %xmm6, %xmm6
pextrw $0x6, %xmm6, %esi
testb $0x1, %sil
je 0x191a65
movb %al, -0x3(%rdi,%rdx)
pand %xmm4, %xmm3
por %xmm5, %xmm3
packssdw %xmm3, %xmm3
pxor %xmm7, %xmm3
packssdw %xmm3, %xmm3
packsswb %xmm3, %xmm3
pextrw $0x6, %xmm3, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0x191a8f
movb %al, -0x2(%rdi,%rdx)
por %xmm8, %xmm1
pxor 0x9f844(%rip), %xmm1    # 0x2312e0
movdqa %xmm1, %xmm4
pcmpgtd %xmm2, %xmm4
pshufd $0xa0, %xmm4, %xmm3     # xmm3 = xmm4[0,0,2,2]
pcmpeqd %xmm2, %xmm1
pshufd $0xf5, %xmm1, %xmm1     # xmm1 = xmm1[1,1,3,3]
movdqa %xmm1, %xmm5
pand %xmm3, %xmm5
pshufd $0xf5, %xmm4, %xmm2     # xmm2 = xmm4[1,1,3,3]
por %xmm2, %xmm5
packssdw %xmm5, %xmm4
pxor %xmm7, %xmm4
packssdw %xmm4, %xmm4
packsswb %xmm4, %xmm4
pextrw $0x7, %xmm4, %esi
testb $0x1, %sil
je 0x191ae2
movb %al, -0x1(%rdi,%rdx)
pshufhw $0x84, %xmm3, %xmm3     # xmm3 = xmm3[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm1, %xmm1     # xmm1 = xmm1[0,1,2,3,4,5,4,6]
pand %xmm3, %xmm1
pshufhw $0x84, %xmm2, %xmm2     # xmm2 = xmm2[0,1,2,3,4,5,4,6]
por %xmm1, %xmm2
pxor %xmm7, %xmm2
packssdw %xmm2, %xmm1
packsswb %xmm1, %xmm1
pextrw $0x7, %xmm1, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0x191b16
movb %al, (%rdi,%rdx)
addq $0x10, %rdx
cmpq %rdx, %rcx
jne 0x1916aa
movq %rbp, %rdi
movl %r15d, %r15d
movq (%r12), %rax
movq %r14, %rsi
cmpq %r15, %rax
ja 0x1914d6
movq 0x28(%rsp), %rax
movq (%rax), %r9
subq $0x8, %rsp
movq %r12, %rdi
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq %r13, %r8
pushq 0x80(%rsp)
pushq 0x80(%rsp)
pushq 0x8(%rax)
callq 0x190737
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xad8c5(%rip), %rdi     # 0x23f44b
leaq 0xac4ae(%rip), %rsi     # 0x23e03b
leaq 0xad8c0(%rip), %rcx     # 0x23f454
movl $0x163f, %edx           # imm = 0x163F
callq 0x2110