// File: /workspace/github_c_makefile_star2_O1/samtools[P]htslib/htscodecs/htscodecs/rANS_static4x16pr.c
// Function: rans_uncompress_O1_4x16
static
unsigned char *rans_uncompress_O1_4x16(unsigned char *in, unsigned int in_size,
                                       unsigned char *out, unsigned int out_sz) {
    if (in_size < 16) // 4-states at least
        return NULL;

    if (out_sz >= INT_MAX)
        return NULL; // protect against some overflow cases

#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    if (out_sz > 100000)
        return NULL;
#endif

    /* Load in the static tables */
    unsigned char *cp = in, *cp_end = in+in_size, *out_free = NULL;
    unsigned char *c_freq = NULL;
    int i, j = -999;
    unsigned int x;

    uint8_t *sfb_ = htscodecs_tls_alloc(256*(TOTFREQ_O1+MAGIC2)*sizeof(*sfb_));
    uint32_t (*s3)[TOTFREQ_O1_FAST] = (uint32_t (*)[TOTFREQ_O1_FAST])sfb_;
    // reuse the same memory for the fast mode lookup, but this only works
    // if we're on e.g. 12-bit freqs vs 10-bit freqs as needs 4x larger array.
    //uint32_t s3[256][TOTFREQ_O1_FAST];

    if (!sfb_)
        return NULL;
    fb_t (*fb)[256] = htscodecs_tls_alloc(256 * sizeof(*fb));
    if (!fb)
        goto err;
    uint8_t *sfb[256];
    if ((*cp >> 4) == TF_SHIFT_O1) {
        for (i = 0; i < 256; i++)
            sfb[i]=  sfb_ + i*(TOTFREQ_O1+MAGIC2);
    } else {
        for (i = 0; i < 256; i++)
            sfb[i]=  sfb_ + i*(TOTFREQ_O1_FAST+MAGIC2);
    }

    if (!out)
        out_free = out = malloc(out_sz);

    if (!out)
        goto err;

    //fprintf(stderr, "out_sz=%d\n", out_sz);

    // compressed header? If so uncompress it
    unsigned char *tab_end = NULL;
    unsigned char *c_freq_end = cp_end;
    unsigned int shift = *cp >> 4;
    if (*cp++ & 1) {
        uint32_t u_freq_sz, c_freq_sz;
        cp += var_get_u32(cp, cp_end, &u_freq_sz);
        cp += var_get_u32(cp, cp_end, &c_freq_sz);
        if (c_freq_sz > cp_end - cp)
            goto err;
        tab_end = cp + c_freq_sz;
        if (!(c_freq = rans_uncompress_O0_4x16(cp, c_freq_sz, NULL, u_freq_sz)))
            goto err;
        cp = c_freq;
        c_freq_end = c_freq + u_freq_sz;
    }

    // Decode order-0 symbol list; avoids needing in order-1 tables
    uint32_t F0[256] = {0};
    int fsz = decode_alphabet(cp, c_freq_end, F0);
    if (!fsz)
        goto err;
    cp += fsz;

    if (cp >= c_freq_end)
        goto err;

    const int s3_fast_on = in_size >= 100000;

    for (i = 0; i < 256; i++) {
        if (F0[i] == 0)
            continue;

        uint32_t F[256] = {0}, T = 0;
        fsz = decode_freq_d(cp, c_freq_end, F0, F, &T);
        if (!fsz)
            goto err;
        cp += fsz;

        if (!T) {
            //fprintf(stderr, "No freq for F_%d\n", i);
            continue;
        }

        normalise_freq_shift(F, T, 1<<shift);

        // Build symbols; fixme, do as part of decode, see the _d variant
        for (j = x = 0; j < 256; j++) {
            if (F[j]) {
                if (F[j] > (1<<shift) - x)
                    goto err;

                if (shift == TF_SHIFT_O1_FAST && s3_fast_on) {
                    int y;
                    for (y = 0; y < F[j]; y++)
                        s3[i][y+x] = (((uint32_t)F[j])<<(shift+8)) |(y<<8) |j;
                } else {
                    memset(&sfb[i][x], j, F[j]);
                    fb[i][j].f = F[j];
                    fb[i][j].b = x;
                }
                x += F[j];
            }
        }
        if (x != (1<<shift))
            goto err;
    }

    if (tab_end)
        cp = tab_end;
    free(c_freq);
    c_freq = NULL;

    if (cp+16 > cp_end)
        goto err;

    RansState rans0, rans1, rans2, rans3;
    uint8_t *ptr = cp, *ptr_end = in + in_size - 8;
    RansDecInit(&rans0, &ptr); if (rans0 < RANS_BYTE_L) goto err;
    RansDecInit(&rans1, &ptr); if (rans1 < RANS_BYTE_L) goto err;
    RansDecInit(&rans2, &ptr); if (rans2 < RANS_BYTE_L) goto err;
    RansDecInit(&rans3, &ptr); if (rans3 < RANS_BYTE_L) goto err;

    unsigned int isz4 = out_sz>>2;
    int l0 = 0, l1 = 0, l2 = 0, l3 = 0;
    unsigned int i4[] = {0*isz4, 1*isz4, 2*isz4, 3*isz4};

    RansState R[4];
    R[0] = rans0;
    R[1] = rans1;
    R[2] = rans2;
    R[3] = rans3;

    // Around 15% faster to specialise for 10/12 than to have one
    // loop with shift as a variable.
    if (shift == TF_SHIFT_O1) {
        // TF_SHIFT_O1 = 12

        const uint32_t mask = ((1u << TF_SHIFT_O1)-1);
        for (; i4[0] < isz4; i4[0]++, i4[1]++, i4[2]++, i4[3]++) {
            uint16_t m, c;
            c = sfb[l0][m = R[0] & mask];
            R[0] = fb[l0][c].f * (R[0]>>TF_SHIFT_O1) + m - fb[l0][c].b;
            out[i4[0]] = l0 = c;

            c = sfb[l1][m = R[1] & mask];
            R[1] = fb[l1][c].f * (R[1]>>TF_SHIFT_O1) + m - fb[l1][c].b;
            out[i4[1]] = l1 = c;

            c = sfb[l2][m = R[2] & mask];
            R[2] = fb[l2][c].f * (R[2]>>TF_SHIFT_O1) + m - fb[l2][c].b;
            out[i4[2]] = l2 = c;

            c = sfb[l3][m = R[3] & mask];
            R[3] = fb[l3][c].f * (R[3]>>TF_SHIFT_O1) + m - fb[l3][c].b;
            out[i4[3]] = l3 = c;

            if (ptr < ptr_end) {
                RansDecRenorm(&R[0], &ptr);
                RansDecRenorm(&R[1], &ptr);
                RansDecRenorm(&R[2], &ptr);
                RansDecRenorm(&R[3], &ptr);
            } else {
                RansDecRenormSafe(&R[0], &ptr, ptr_end+8);
                RansDecRenormSafe(&R[1], &ptr, ptr_end+8);
                RansDecRenormSafe(&R[2], &ptr, ptr_end+8);
                RansDecRenormSafe(&R[3], &ptr, ptr_end+8);
            }
        }

        // Remainder
        for (; i4[3] < out_sz; i4[3]++) {
            uint32_t m3 = R[3] & ((1u<<TF_SHIFT_O1)-1);
            unsigned char c3 = sfb[l3][m3];
            out[i4[3]] = c3;
            R[3] = fb[l3][c3].f * (R[3]>>TF_SHIFT_O1) + m3 - fb[l3][c3].b;
            RansDecRenormSafe(&R[3], &ptr, ptr_end + 8);
            l3 = c3;
        }
    } else if (!s3_fast_on) {
        // TF_SHIFT_O1 = 10 with sfb[256][1024] & fb[256]256] array lookup
        // Slightly faster for -o193 on q4 (high comp), but also less
        // initialisation cost for smaller data
        const uint32_t mask = ((1u << TF_SHIFT_O1_FAST)-1);
        for (; i4[0] < isz4; i4[0]++, i4[1]++, i4[2]++, i4[3]++) {
            uint16_t m, c;
            c = sfb[l0][m = R[0] & mask];
            R[0] = fb[l0][c].f * (R[0]>>TF_SHIFT_O1_FAST) + m - fb[l0][c].b;
            out[i4[0]] = l0 = c;

            c = sfb[l1][m = R[1] & mask];
            R[1] = fb[l1][c].f * (R[1]>>TF_SHIFT_O1_FAST) + m - fb[l1][c].b;
            out[i4[1]] = l1 = c;

            c = sfb[l2][m = R[2] & mask];
            R[2] = fb[l2][c].f * (R[2]>>TF_SHIFT_O1_FAST) + m - fb[l2][c].b;
            out[i4[2]] = l2 = c;

            c = sfb[l3][m = R[3] & mask];
            R[3] = fb[l3][c].f * (R[3]>>TF_SHIFT_O1_FAST) + m - fb[l3][c].b;
            out[i4[3]] = l3 = c;

            if (ptr < ptr_end) {
                RansDecRenorm(&R[0], &ptr);
                RansDecRenorm(&R[1], &ptr);
                RansDecRenorm(&R[2], &ptr);
                RansDecRenorm(&R[3], &ptr);
            } else {
                RansDecRenormSafe(&R[0], &ptr, ptr_end+8);
                RansDecRenormSafe(&R[1], &ptr, ptr_end+8);
                RansDecRenormSafe(&R[2], &ptr, ptr_end+8);
                RansDecRenormSafe(&R[3], &ptr, ptr_end+8);
            }
        }

        // Remainder
        for (; i4[3] < out_sz; i4[3]++) {
            uint32_t m3 = R[3] & ((1u<<TF_SHIFT_O1_FAST)-1);
            unsigned char c3 = sfb[l3][m3];
            out[i4[3]] = c3;
            R[3] = fb[l3][c3].f * (R[3]>>TF_SHIFT_O1_FAST) + m3 - fb[l3][c3].b;
            RansDecRenormSafe(&R[3], &ptr, ptr_end + 8);
            l3 = c3;
        }
    } else {
        // TF_SHIFT_O1_FAST.
        // Significantly faster for -o1 on q40 (low comp).
        // Higher initialisation cost, so only use if big blocks.
        const uint32_t mask = ((1u << TF_SHIFT_O1_FAST)-1);
        for (; i4[0] < isz4; i4[0]++, i4[1]++, i4[2]++, i4[3]++) {
            uint32_t S0 = s3[l0][R[0] & mask];
            uint32_t S1 = s3[l1][R[1] & mask];
            l0 = out[i4[0]] = S0;
            l1 = out[i4[1]] = S1;
            uint16_t F0 = S0>>(TF_SHIFT_O1_FAST+8);
            uint16_t F1 = S1>>(TF_SHIFT_O1_FAST+8);
            uint16_t B0 = (S0>>8) & mask;
            uint16_t B1 = (S1>>8) & mask;

            R[0] = F0 * (R[0]>>TF_SHIFT_O1_FAST) + B0;
            R[1] = F1 * (R[1]>>TF_SHIFT_O1_FAST) + B1;

            uint32_t S2 = s3[l2][R[2] & mask];
            uint32_t S3 = s3[l3][R[3] & mask];
            l2 = out[i4[2]] = S2;
            l3 = out[i4[3]] = S3;
            uint16_t F2 = S2>>(TF_SHIFT_O1_FAST+8);
            uint16_t F3 = S3>>(TF_SHIFT_O1_FAST+8);
            uint16_t B2 = (S2>>8) & mask;
            uint16_t B3 = (S3>>8) & mask;

            R[2] = F2 * (R[2]>>TF_SHIFT_O1_FAST) + B2;
            R[3] = F3 * (R[3]>>TF_SHIFT_O1_FAST) + B3;

            if (ptr < ptr_end) {
                RansDecRenorm(&R[0], &ptr);
                RansDecRenorm(&R[1], &ptr);
                RansDecRenorm(&R[2], &ptr);
                RansDecRenorm(&R[3], &ptr);
            } else {
                RansDecRenormSafe(&R[0], &ptr, ptr_end+8);
                RansDecRenormSafe(&R[1], &ptr, ptr_end+8);
                RansDecRenormSafe(&R[2], &ptr, ptr_end+8);
                RansDecRenormSafe(&R[3], &ptr, ptr_end+8);
            }
        }

        // Remainder
        for (; i4[3] < out_sz; i4[3]++) {
            uint32_t S = s3[l3][R[3] & ((1u<<TF_SHIFT_O1_FAST)-1)];
            l3 = out[i4[3]] = S;
            R[3] = (S>>(TF_SHIFT_O1_FAST+8)) * (R[3]>>TF_SHIFT_O1_FAST)
                + ((S>>8) & ((1u<<TF_SHIFT_O1_FAST)-1));
            RansDecRenormSafe(&R[3], &ptr, ptr_end + 8);
        }
    }
    //fprintf(stderr, "    1 Decoded %d bytes\n", (int)(ptr-in)); //c-size

    htscodecs_tls_free(fb);
    htscodecs_tls_free(sfb_);
    return out;

 err:
    htscodecs_tls_free(fb);
    htscodecs_tls_free(sfb_);
    free(out_free);
    free(c_freq);

    return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1068, %rsp           # imm = 0x1068
movl %ecx, %ebp
cmpl $0x10, %esi
setb %al
cmpl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
setae %cl
orb %al, %cl
jne 0x693e4
movq %rdx, %r13
movl %esi, %r15d
movq %rdi, %r14
movl $0x10b300, %edi         # imm = 0x10B300
callq 0x8060c
testq %rax, %rax
je 0x693e4
movq %rax, %rbx
movl $0x40000, %edi          # imm = 0x40000
callq 0x8060c
movq %rax, 0x48(%rsp)
testq %rax, %rax
je 0x68e09
movzbl (%r14), %eax
movl %eax, (%rsp)
andb $-0x10, %al
cmpb $-0x40, %al
jne 0x68e14
xorl %eax, %eax
movq %rbx, %rcx
movq %rcx, 0x60(%rsp,%rax,8)
incq %rax
addq $0x10b3, %rcx           # imm = 0x10B3
cmpq $0x100, %rax            # imm = 0x100
jne 0x68df0
jmp 0x68e30
xorl %r15d, %r15d
xorl %r14d, %r14d
jmp 0x693c2
xorl %eax, %eax
movq %rbx, %rcx
movq %rcx, 0x60(%rsp,%rax,8)
incq %rax
addq $0x4b3, %rcx            # imm = 0x4B3
cmpq $0x100, %rax            # imm = 0x100
jne 0x68e19
testq %r13, %r13
je 0x68e40
movq $0x0, 0x20(%rsp)
jmp 0x68e4f
movl %ebp, %edi
callq 0x4680
movq %rax, %r13
movq %rax, 0x20(%rsp)
testq %r13, %r13
je 0x68e91
movl %ebp, 0x3c(%rsp)
movl %r15d, %eax
movl %r15d, %r15d
addq %r14, %r15
leaq 0x1(%r14), %rsi
xorl %r12d, %r12d
testb $0x1, (%rsp)
movq %r15, 0x10(%rsp)
movl %eax, 0x50(%rsp)
jne 0x68e9e
movq $0x0, 0x8(%rsp)
movq $0x0, 0x18(%rsp)
movq %rsi, %r14
jmp 0x68fc6
xorl %r15d, %r15d
movq 0x20(%rsp), %r14
jmp 0x693c2
cmpl $0x7, %eax
jb 0x68ed7
xorl %ebp, %ebp
movl $0x1, %ecx
movzbl (%r14,%rcx), %edx
movl %ebp, %eax
shll $0x7, %eax
movl %edx, %ebp
andl $0x7f, %ebp
orl %eax, %ebp
leaq 0x1(%rcx), %rax
testb %dl, %dl
jns 0x68ecb
cmpl $0x6, %ecx
movq %rax, %rcx
jne 0x68eaa
addq %r14, %rax
movq %rsi, %rdi
subl %edi, %eax
cltq
jmp 0x68ef8
cmpl $0x2, %eax
jb 0x68ef1
movq %rsi, %rdi
movsbl (%rsi), %ebp
testl %ebp, %ebp
js 0x693fc
movl $0x1, %eax
jmp 0x68ef8
xorl %ebp, %ebp
xorl %eax, %eax
movq %rsi, %rdi
addq %rax, %rdi
movq %r15, %rcx
subq %rdi, %rcx
cmpq $0x6, %rcx
jl 0x68f41
addq %rax, %r14
xorl %eax, %eax
movl $0x1, %ecx
movzbl (%r14,%rcx), %esi
movl %eax, %edx
shll $0x7, %edx
movl %esi, %eax
andl $0x7f, %eax
orl %edx, %eax
leaq 0x1(%rcx), %rdx
testb %sil, %sil
jns 0x68f33
cmpl $0x6, %ecx
movq %rdx, %rcx
jne 0x68f11
addq %rdx, %r14
subl %edi, %r14d
movslq %r14d, %rcx
movq %rdi, %r14
jmp 0x68f60
cmpq %r15, %rdi
movq %rdi, %r14
jae 0x68f5c
movsbl (%r14), %eax
testl %eax, %eax
js 0x69425
movl $0x1, %ecx
jmp 0x68f60
xorl %eax, %eax
xorl %ecx, %ecx
addq %rcx, %r14
movl %eax, %ecx
movq %r15, %rax
subq %r14, %rax
cmpq %rcx, %rax
jge 0x68f86
movq $0x0, 0x8(%rsp)
xorl %ecx, %ecx
movq $0x0, 0x18(%rsp)
jmp 0x68fbe
movl %ecx, %esi
addq %r14, %rcx
movq %rcx, 0x8(%rsp)
movq %r14, %rdi
xorl %edx, %edx
movl %ebp, %ecx
callq 0x65385
testq %rax, %rax
je 0x68fb3
movl %ebp, %r15d
addq %rax, %r15
movb $0x1, %cl
movq %rax, 0x18(%rsp)
movq %rax, %r14
jmp 0x68fbe
movq $0x0, 0x18(%rsp)
xorl %ecx, %ecx
testb %cl, %cl
je 0x693b8
leaq 0x860(%rsp), %rdi
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
callq 0x4260
cmpq %r15, %r14
je 0x690a4
leaq 0x1(%r14), %rax
movzbl (%r14), %ecx
leaq 0x3(%r14), %rsi
xorl %edx, %edx
cmpq %r15, %rsi
jae 0x69042
xorl %edx, %edx
movl %ecx, %esi
movl $0x1, 0x860(%rsp,%rsi,4)
testl %edx, %edx
je 0x6901b
cmpl $0xfe, %ecx
jg 0x690a1
decl %edx
incl %ecx
jmp 0x69035
movl %ecx, %edx
incl %edx
movzbl (%rax), %ecx
cmpl %ecx, %edx
jne 0x69030
movzbl 0x1(%rax), %edx
addq $0x2, %rax
jmp 0x69035
incq %rax
xorl %edx, %edx
testl %ecx, %ecx
je 0x69042
leaq 0x2(%rax), %rsi
cmpq %r15, %rsi
jb 0x68ff8
testl %ecx, %ecx
je 0x69099
movl %ecx, %esi
movl $0x1, 0x860(%rsp,%rsi,4)
xorl %r12d, %r12d
cmpq %r15, %rax
jae 0x690a4
testl %edx, %edx
je 0x6906d
cmpl $0xfe, %ecx
jg 0x690a4
decl %edx
incl %ecx
jmp 0x69090
movl %ecx, %edi
incl %edi
movzbl (%rax), %ecx
leaq 0x1(%rax), %rsi
xorl %edx, %edx
cmpl %ecx, %edi
jne 0x6908d
cmpq %r15, %rsi
jae 0x690a1
movzbl 0x1(%rax), %edx
addq $0x2, %rax
jmp 0x69090
movq %rsi, %rax
testl %ecx, %ecx
je 0x69099
cmpq %r15, %rax
jb 0x69046
subl %r14d, %eax
movl %eax, %r12d
jmp 0x690a4
xorl %r12d, %r12d
testl %r12d, %r12d
je 0x693b8
movslq %r12d, %rax
addq %rax, %r14
cmpq %r15, %r14
jae 0x693b8
movq %r13, 0x30(%rsp)
movl (%rsp), %ecx
shrl $0x4, %ecx
cmpl $0x186a0, 0x50(%rsp)    # imm = 0x186A0
setae %al
movl $0x1, %r10d
shll %cl, %r10d
movl %ecx, (%rsp)
cmpl $0xa, %ecx
sete %cl
andb %al, %cl
movb %cl, 0x40(%rsp)
xorl %r13d, %r13d
movq 0x8(%rsp), %r12
movl %r10d, 0x58(%rsp)
cmpl $0x0, 0x860(%rsp,%r13,4)
je 0x69333
xorl %ebp, %ebp
movl $0x400, %edx            # imm = 0x400
leaq 0xc60(%rsp), %rdi
xorl %esi, %esi
callq 0x4260
movl $0x0, %eax
cmpq %r15, %r14
je 0x6920b
xorl %ebp, %ebp
movq %r14, %rax
cmpq %r15, %r14
jae 0x69208
xorl %ecx, %ecx
xorl %ebp, %ebp
xorl %esi, %esi
movq %r14, %rax
cmpl $0x0, 0x860(%rsp,%rcx,4)
je 0x691c7
testl %esi, %esi
je 0x69155
decl %esi
xorl %edx, %edx
jmp 0x691b4
movq %r15, %rdx
subq %rax, %rdx
cmpq $0x6, %rdx
jl 0x69192
xorl %edi, %edi
xorl %edx, %edx
movzbl (%rax,%rdi), %r8d
movl %edx, %esi
shll $0x7, %esi
movl %r8d, %edx
andl $0x7f, %edx
orl %esi, %edx
leaq 0x1(%rdi), %rsi
testb %r8b, %r8b
jns 0x69188
cmpl $0x5, %edi
movq %rsi, %rdi
jne 0x69165
addq %rax, %rsi
subl %eax, %esi
movslq %esi, %rsi
jmp 0x6919e
movsbl (%rax), %edx
testl %edx, %edx
js 0x691de
movl $0x1, %esi
addq %rsi, %rax
xorl %esi, %esi
testl %edx, %edx
jne 0x691b4
xorl %esi, %esi
cmpq %r15, %rax
jae 0x69204
movzbl (%rax), %esi
incq %rax
movl %edx, 0xc60(%rsp,%rcx,4)
addl %edx, %ebp
movb $0x1, %dl
testb %dl, %dl
je 0x69345
cmpq $0xfe, %rcx
ja 0x69208
incq %rcx
cmpq %r15, %rax
jb 0x69141
jmp 0x69208
xorl %edx, %edx
movq %rax, %rsi
movzbl (%rsi), %edi
incq %rsi
movl %edx, %r8d
shll $0x7, %r8d
movl %edi, %edx
andl $0x7f, %edx
orl %r8d, %edx
testb %dil, %dil
jns 0x6918b
cmpq %r15, %rsi
jb 0x691e3
jmp 0x6918b
xorl %edx, %edx
jmp 0x691bf
subl %r14d, %eax
testl %eax, %eax
movl 0x58(%rsp), %r10d
je 0x69325
cltq
addq %rax, %r14
testl %ebp, %ebp
je 0x69314
cmpl %r10d, %ebp
je 0x69250
xorl %ecx, %ecx
cmpl %r10d, %ebp
jae 0x6923c
xorl %ecx, %ecx
addl %ebp, %ebp
incl %ecx
cmpl %r10d, %ebp
jb 0x69233
xorl %eax, %eax
shll %cl, 0xc60(%rsp,%rax,4)
incq %rax
cmpq $0x100, %rax            # imm = 0x100
jne 0x6923e
movq %r14, 0x28(%rsp)
xorl %ebp, %ebp
xorl %r12d, %r12d
movl 0xc60(%rsp,%rbp,4), %r14d
testq %r14, %r14
je 0x692ee
movl %r10d, %eax
subl %r12d, %eax
cmpl %eax, %r14d
ja 0x6931b
cmpb $0x0, 0x40(%rsp)
je 0x692ba
movl %r14d, %eax
shll $0x12, %eax
movq %r14, %rcx
shlq $0x8, %rcx
xorl %edx, %edx
movl %r12d, %esi
movl %eax, %edi
orl %edx, %edi
orl %ebp, %edi
movl %esi, %r8d
movq %r13, %r9
shlq $0xc, %r9
addq %rbx, %r9
movl %edi, (%r9,%r8,4)
incl %esi
addq $0x100, %rdx            # imm = 0x100
cmpq %rdx, %rcx
jne 0x69293
jmp 0x692e8
movl %r12d, %edi
addq 0x60(%rsp,%r13,8), %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0x4260
movl 0x58(%rsp), %r10d
movq %r13, %rax
shlq $0xa, %rax
addq 0x48(%rsp), %rax
movw %r14w, (%rax,%rbp,4)
movw %r12w, 0x2(%rax,%rbp,4)
addl %r12d, %r14d
movl %r14d, %r12d
incq %rbp
cmpq $0x100, %rbp            # imm = 0x100
jne 0x6925a
xorl %eax, %eax
cmpl %r10d, %r12d
setne %al
addl %eax, %eax
movq 0x28(%rsp), %r14
movq 0x8(%rsp), %r12
jmp 0x6932a
movl $0xb, %eax
jmp 0x6932a
movq 0x28(%rsp), %r14
movq 0x8(%rsp), %r12
movl $0x2, %eax
testl %eax, %eax
je 0x69333
cmpl $0xb, %eax
jne 0x693af
incq %r13
cmpq $0x100, %r13            # imm = 0x100
jne 0x690f7
jmp 0x6934e
xorl %ebp, %ebp
xorl %eax, %eax
jmp 0x6920b
testq %r12, %r12
cmovneq %r12, %r14
movq 0x18(%rsp), %rdi
callq 0x45c0
leaq 0x10(%r14), %rcx
movq 0x10(%rsp), %rax
cmpq %rax, %rcx
movq %r14, %rdx
movq 0x20(%rsp), %r14
ja 0x693aa
movl (%rdx), %r8d
cmpl $0x8000, %r8d           # imm = 0x8000
jb 0x693aa
movl 0x4(%rdx), %r9d
cmpl $0x8000, %r9d           # imm = 0x8000
jb 0x693aa
movl 0x8(%rdx), %r10d
cmpl $0x8000, %r10d          # imm = 0x8000
jb 0x693aa
movl 0xc(%rdx), %esi
cmpl $0x8000, %esi           # imm = 0x8000
jae 0x69451
xorl %r15d, %r15d
jmp 0x693c2
cmpl $0x2, %eax
jne 0x6944f
movq 0x20(%rsp), %r14
movq 0x18(%rsp), %r15
movq 0x48(%rsp), %rdi
callq 0x80732
movq %rbx, %rdi
callq 0x80732
movq %r14, %rdi
callq 0x45c0
movq %r15, %rdi
callq 0x45c0
xorl %r13d, %r13d
movq %r13, %rax
addq $0x1068, %rsp           # imm = 0x1068
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
movq %rdi, %rax
movzbl (%rax), %ecx
incq %rax
movl %ebp, %edx
shll $0x7, %edx
movl %ecx, %ebp
andl $0x7f, %ebp
orl %edx, %ebp
testb %cl, %cl
jns 0x68ece
cmpq %r15, %rax
jb 0x69401
jmp 0x68ece
xorl %eax, %eax
movq %r14, %rdi
movzbl (%r14), %ecx
incq %r14
movl %eax, %edx
shll $0x7, %edx
movl %ecx, %eax
andl $0x7f, %eax
orl %edx, %eax
testb %cl, %cl
jns 0x68f36
cmpq %r15, %r14
jb 0x6942a
jmp 0x68f36
jmp 0x693e7
leaq -0x8(%rax), %rdx
movq %rdx, 0x58(%rsp)
movl 0x3c(%rsp), %edx
movl %edx, %edi
shrl $0x2, %edi
movq %rdi, 0x40(%rsp)
leal (%rdi,%rdi,2), %r11d
cmpl $0xc, (%rsp)
jne 0x697d5
xorl %r15d, %r15d
cmpl $0x4, %edx
movq 0x30(%rsp), %r13
jb 0x69752
movq %rcx, (%rsp)
movabsq $0x100000000, %rdi      # imm = 0x100000000
movq 0x40(%rsp), %r14
leaq (%r14,%r14,2), %rax
movq %rax, 0x20(%rsp)
xorl %ebp, %ebp
movq %r13, %r12
xorl %edx, %edx
xorl %r11d, %r11d
xorl %r15d, %r15d
movq %r14, 0x28(%rsp)
movq %rdi, 0x8(%rsp)
movq %r11, %rax
movq %rbp, %r11
movq 0x60(%rsp,%rbp,8), %r13
movl %r8d, %ebp
movl $0xfff, %r14d           # imm = 0xFFF
andl %r14d, %ebp
movzbl (%r13,%rbp), %ecx
shlq $0xa, %r11
movq 0x48(%rsp), %rdi
addq %rdi, %r11
movzwl (%r11,%rcx,4), %r13d
shrl $0xc, %r8d
imull %r13d, %r8d
addl %ebp, %r8d
movzwl 0x2(%r11,%rcx,4), %r11d
subl %r11d, %r8d
movq %rcx, 0x18(%rsp)
movb %cl, (%r12)
movq 0x60(%rsp,%rdx,8), %r11
movl %r9d, %r13d
andl %r14d, %r13d
movzbl (%r11,%r13), %ecx
shlq $0xa, %rdx
addq %rdi, %rdx
movzwl (%rdx,%rcx,4), %r11d
shrl $0xc, %r9d
imull %r11d, %r9d
addl %r13d, %r9d
movzwl 0x2(%rdx,%rcx,4), %edx
subl %edx, %r9d
movq 0x40(%rsp), %rbp
movq %rcx, 0x50(%rsp)
movb %cl, (%r12,%rbp)
movq 0x60(%rsp,%rax,8), %rdx
movl %r10d, %r13d
andl %r14d, %r13d
movzbl (%rdx,%r13), %r11d
shlq $0xa, %rax
addq %rdi, %rax
movzwl (%rax,%r11,4), %edx
shrl $0xc, %r10d
imull %edx, %r10d
addl %r13d, %r10d
movzwl 0x2(%rax,%r11,4), %eax
subl %eax, %r10d
movb %r11b, (%r12,%rbp,2)
movl %r15d, %eax
movq 0x60(%rsp,%rax,8), %rdx
movl %esi, %r13d
andl %r14d, %r13d
movzbl (%rdx,%r13), %r15d
shlq $0xa, %rax
addq %rdi, %rax
movzwl (%rax,%r15,4), %edx
shrl $0xc, %esi
imull %edx, %esi
addl %r13d, %esi
movzwl 0x2(%rax,%r15,4), %eax
subl %eax, %esi
movq 0x20(%rsp), %rax
movb %r15b, (%r12,%rax)
movq (%rsp), %rcx
cmpq 0x58(%rsp), %rcx
jae 0x69658
movzwl (%rcx), %eax
movl %r8d, %edx
shll $0x10, %edx
orl %eax, %edx
xorl %eax, %eax
cmpl $0x8000, %r8d           # imm = 0x8000
cmovbl %edx, %r8d
leaq 0x2(%rcx), %rax
cmovbq %rax, %rcx
movzwl (%rcx), %eax
movl %r9d, %edx
shll $0x10, %edx
orl %eax, %edx
xorl %eax, %eax
cmpl $0x8000, %r9d           # imm = 0x8000
cmovbl %edx, %r9d
leaq 0x2(%rcx), %rax
cmovbq %rax, %rcx
movzwl (%rcx), %eax
movl %r10d, %edx
shll $0x10, %edx
orl %eax, %edx
xorl %eax, %eax
cmpl $0x8000, %r10d          # imm = 0x8000
cmovbl %edx, %r10d
leaq 0x2(%rcx), %rax
cmovbq %rax, %rcx
movzwl (%rcx), %eax
movl %esi, %edx
shll $0x10, %edx
orl %eax, %edx
xorl %eax, %eax
cmpl $0x8000, %esi           # imm = 0x8000
cmovbl %edx, %esi
leaq 0x2(%rcx), %rax
cmovbq %rax, %rcx
movq %rcx, (%rsp)
movq 0x30(%rsp), %r13
movq 0x8(%rsp), %rdi
movq 0x28(%rsp), %r14
movq 0x18(%rsp), %rbp
jmp 0x69732
cmpl $0x7fff, %r8d           # imm = 0x7FFF
jbe 0x69677
movq 0x30(%rsp), %r13
movq 0x8(%rsp), %rdi
movq 0x28(%rsp), %r14
movq 0x18(%rsp), %rbp
jmp 0x696ae
leaq 0x1(%rcx), %rax
cmpq 0x10(%rsp), %rax
movq 0x30(%rsp), %r13
movq 0x8(%rsp), %rdi
movq 0x28(%rsp), %r14
movq 0x18(%rsp), %rbp
jae 0x696ae
movzbl (%rcx), %eax
movzbl 0x1(%rcx), %edx
shll $0x8, %edx
shll $0x10, %r8d
orl %eax, %r8d
orl %edx, %r8d
addq $0x2, %rcx
cmpl $0x7fff, %r9d           # imm = 0x7FFF
ja 0x696da
leaq 0x1(%rcx), %rax
cmpq 0x10(%rsp), %rax
jae 0x696da
movzbl (%rcx), %eax
movzbl 0x1(%rcx), %edx
shll $0x8, %edx
shll $0x10, %r9d
orl %eax, %r9d
orl %edx, %r9d
addq $0x2, %rcx
cmpl $0x7fff, %r10d          # imm = 0x7FFF
ja 0x69706
leaq 0x1(%rcx), %rax
cmpq 0x10(%rsp), %rax
jae 0x69706
movzbl (%rcx), %eax
movzbl 0x1(%rcx), %edx
shll $0x8, %edx
shll $0x10, %r10d
orl %eax, %r10d
orl %edx, %r10d
addq $0x2, %rcx
cmpl $0x7fff, %esi           # imm = 0x7FFF
ja 0x6972e
leaq 0x1(%rcx), %rax
cmpq 0x10(%rsp), %rax
jae 0x6972e
movzbl (%rcx), %eax
movzbl 0x1(%rcx), %edx
shll $0x8, %edx
shll $0x10, %esi
orl %eax, %esi
orl %edx, %esi
addq $0x2, %rcx
movq %rcx, (%rsp)
incq %r12
decq %rdi
decq %r14
movq 0x50(%rsp), %rdx
jne 0x694b0
movq 0x20(%rsp), %r11
subl %edi, %r11d
movq (%rsp), %rcx
movl 0x3c(%rsp), %edx
cmpl %edx, %r11d
jae 0x69e3c
movl %r11d, %eax
movl %edx, %edx
movl %esi, %edi
andl $0xfff, %edi            # imm = 0xFFF
movl %r15d, %r8d
movq 0x60(%rsp,%r8,8), %r9
movzbl (%r9,%rdi), %r15d
movb %r15b, (%r13,%rax)
shlq $0xa, %r8
addq 0x48(%rsp), %r8
movzwl (%r8,%r15,4), %r9d
shrl $0xc, %esi
imull %r9d, %esi
addl %edi, %esi
movzwl 0x2(%r8,%r15,4), %edi
subl %edi, %esi
cmpl $0x7fff, %esi           # imm = 0x7FFF
ja 0x697c8
leaq 0x1(%rcx), %rdi
cmpq 0x10(%rsp), %rdi
jae 0x697c8
movzbl (%rcx), %edi
movzbl 0x1(%rcx), %r8d
shll $0x8, %r8d
shll $0x10, %esi
orl %edi, %esi
orl %r8d, %esi
addq $0x2, %rcx
incq %rax
cmpq %rax, %rdx
jne 0x69764
jmp 0x69e3c
cmpl $0x1869f, 0x50(%rsp)    # imm = 0x1869F
movq 0x30(%rsp), %r13
jbe 0x69af4
xorl %eax, %eax
cmpl $0x4, %edx
jb 0x69a6d
movabsq $0x100000000, %r15      # imm = 0x100000000
movq 0x40(%rsp), %r14
leaq (%r14,%r14,2), %rax
movq %rax, 0x20(%rsp)
xorl %r12d, %r12d
xorl %edi, %edi
xorl %r11d, %r11d
xorl %eax, %eax
movq %r14, 0x8(%rsp)
movq %r15, (%rsp)
movl %r8d, %edx
movl $0x3ff, %r14d           # imm = 0x3FF
andl %r14d, %edx
shlq $0xc, %r12
addq %rbx, %r12
movl (%r12,%rdx,4), %r12d
movl %r9d, %edx
andl %r14d, %edx
shlq $0xc, %rdi
addq %rbx, %rdi
movl (%rdi,%rdx,4), %edi
movb %r12b, (%r13)
movq 0x40(%rsp), %r15
movb %dil, (%r13,%r15)
movl %r12d, %edx
shrl $0x12, %edx
shrl $0xa, %r8d
imull %edx, %r8d
movl %r12d, %edx
shrl $0x8, %edx
andl %r14d, %edx
addl %edx, %r8d
movl %edi, %edx
shrl $0x12, %edx
shrl $0xa, %r9d
imull %edx, %r9d
movl %edi, %edx
shrl $0x8, %edx
andl %r14d, %edx
addl %edx, %r9d
movl %r10d, %edx
andl %r14d, %edx
shlq $0xc, %r11
addq %rbx, %r11
movl (%r11,%rdx,4), %r11d
movl %eax, %eax
movl %esi, %edx
andl %r14d, %edx
shlq $0xc, %rax
addq %rbx, %rax
movl (%rax,%rdx,4), %ebp
movl %r11d, %eax
shrl $0x12, %eax
shrl $0xa, %r10d
imull %eax, %r10d
movl %r11d, %eax
shrl $0x8, %eax
andl %r14d, %eax
addl %eax, %r10d
movl %ebp, %eax
shrl $0x12, %eax
shrl $0xa, %esi
imull %eax, %esi
movl %ebp, %eax
shrl $0x8, %eax
andl %r14d, %eax
addl %eax, %esi
movb %r11b, (%r13,%r15,2)
movq 0x20(%rsp), %rax
movb %bpl, (%r13,%rax)
cmpq 0x58(%rsp), %rcx
jae 0x6997b
movzwl (%rcx), %eax
movl %r8d, %edx
shll $0x10, %edx
orl %eax, %edx
xorl %eax, %eax
cmpl $0x8000, %r8d           # imm = 0x8000
cmovbl %edx, %r8d
leaq 0x2(%rcx), %rax
cmovbq %rax, %rcx
movzwl (%rcx), %eax
movl %r9d, %edx
shll $0x10, %edx
orl %eax, %edx
xorl %eax, %eax
cmpl $0x8000, %r9d           # imm = 0x8000
cmovbl %edx, %r9d
leaq 0x2(%rcx), %rax
cmovbq %rax, %rcx
movzwl (%rcx), %eax
movl %r10d, %edx
shll $0x10, %edx
orl %eax, %edx
xorl %eax, %eax
cmpl $0x8000, %r10d          # imm = 0x8000
cmovbl %edx, %r10d
leaq 0x2(%rcx), %rax
cmovbq %rax, %rcx
movzwl (%rcx), %eax
movl %esi, %edx
shll $0x10, %edx
orl %eax, %edx
xorl %eax, %eax
cmpl $0x8000, %esi           # imm = 0x8000
cmovbl %edx, %esi
leaq 0x2(%rcx), %rax
cmovbq %rax, %rcx
movq (%rsp), %r15
movq 0x8(%rsp), %r14
jmp 0x69a3b
cmpl $0x7fff, %r8d           # imm = 0x7FFF
jbe 0x6998f
movq (%rsp), %r15
movq 0x8(%rsp), %r14
jmp 0x699bb
leaq 0x1(%rcx), %rax
cmpq 0x10(%rsp), %rax
movq (%rsp), %r15
movq 0x8(%rsp), %r14
jae 0x699bb
movzbl (%rcx), %eax
movzbl 0x1(%rcx), %edx
shll $0x8, %edx
shll $0x10, %r8d
orl %eax, %r8d
orl %edx, %r8d
addq $0x2, %rcx
cmpl $0x7fff, %r9d           # imm = 0x7FFF
ja 0x699e7
leaq 0x1(%rcx), %rax
cmpq 0x10(%rsp), %rax
jae 0x699e7
movzbl (%rcx), %eax
movzbl 0x1(%rcx), %edx
shll $0x8, %edx
shll $0x10, %r9d
orl %eax, %r9d
orl %edx, %r9d
addq $0x2, %rcx
cmpl $0x7fff, %r10d          # imm = 0x7FFF
ja 0x69a13
leaq 0x1(%rcx), %rax
cmpq 0x10(%rsp), %rax
jae 0x69a13
movzbl (%rcx), %eax
movzbl 0x1(%rcx), %edx
shll $0x8, %edx
shll $0x10, %r10d
orl %eax, %r10d
orl %edx, %r10d
addq $0x2, %rcx
cmpl $0x7fff, %esi           # imm = 0x7FFF
ja 0x69a3b
leaq 0x1(%rcx), %rax
cmpq 0x10(%rsp), %rax
jae 0x69a3b
movzbl (%rcx), %eax
movzbl 0x1(%rcx), %edx
shll $0x8, %edx
shll $0x10, %esi
orl %eax, %esi
orl %edx, %esi
addq $0x2, %rcx
movl $0xff, %eax
andq %rax, %r12
andq %rax, %rdi
andq %rax, %r11
movzbl %bpl, %eax
incq %r13
decq %r15
decq %r14
jne 0x69815
movq 0x20(%rsp), %r11
subl %r15d, %r11d
movq 0x30(%rsp), %r13
movl 0x3c(%rsp), %edx
cmpl %edx, %r11d
jae 0x69e3c
movl %edx, %edi
movl %r11d, %edx
movl %edi, %edi
movl $0x3ff, %r8d            # imm = 0x3FF
movl %eax, %eax
movl %esi, %r9d
andl %r8d, %r9d
shlq $0xc, %rax
addq %rbx, %rax
movl (%rax,%r9,4), %eax
movb %al, (%r13,%rdx)
movl %eax, %r9d
shrl $0x12, %r9d
shrl $0xa, %esi
movl %esi, %r10d
imull %r9d, %r10d
movl %eax, %esi
shrl $0x8, %esi
andl %r8d, %esi
addl %r10d, %esi
cmpl $0x7fff, %esi           # imm = 0x7FFF
ja 0x69ae4
leaq 0x1(%rcx), %r9
cmpq 0x10(%rsp), %r9
jae 0x69ae4
movzbl (%rcx), %r9d
movzbl 0x1(%rcx), %r10d
shll $0x8, %r10d
shll $0x10, %esi
orl %r9d, %esi
orl %r10d, %esi
addq $0x2, %rcx
movzbl %al, %eax
incq %rdx
cmpq %rdx, %rdi
jne 0x69a83
jmp 0x69e3c
xorl %r15d, %r15d
cmpl $0x4, %edx
jb 0x69dc2
movabsq $0x100000000, %rdi      # imm = 0x100000000
movq 0x40(%rsp), %r14
leaq (%r14,%r14,2), %rax
movq %rax, 0x20(%rsp)
xorl %ebp, %ebp
movq %r13, %r12
movq $0x0, (%rsp)
xorl %r11d, %r11d
xorl %r15d, %r15d
movq %r15, 0x50(%rsp)
movq %r14, 0x28(%rsp)
movq %rdi, 0x8(%rsp)
movq %r11, %rax
movq (%rsp), %rdx
movq %rbp, %r11
movq 0x60(%rsp,%rbp,8), %r13
movl %r8d, %ebp
movl $0x3ff, %r14d           # imm = 0x3FF
andl %r14d, %ebp
movzbl (%r13,%rbp), %r15d
shlq $0xa, %r11
movq 0x48(%rsp), %rdi
addq %rdi, %r11
movzwl (%r11,%r15,4), %r13d
shrl $0xa, %r8d
imull %r13d, %r8d
addl %ebp, %r8d
movzwl 0x2(%r11,%r15,4), %r11d
subl %r11d, %r8d
movq %r15, 0x18(%rsp)
movb %r15b, (%r12)
movq 0x60(%rsp,%rdx,8), %r11
movl %r9d, %r13d
andl %r14d, %r13d
movzbl (%r11,%r13), %r15d
shlq $0xa, %rdx
addq %rdi, %rdx
movzwl (%rdx,%r15,4), %r11d
shrl $0xa, %r9d
imull %r11d, %r9d
addl %r13d, %r9d
movzwl 0x2(%rdx,%r15,4), %edx
subl %edx, %r9d
movq 0x40(%rsp), %rbp
movq %r15, (%rsp)
movb %r15b, (%r12,%rbp)
movq 0x60(%rsp,%rax,8), %rdx
movl %r10d, %r13d
andl %r14d, %r13d
movzbl (%rdx,%r13), %r11d
shlq $0xa, %rax
addq %rdi, %rax
movzwl (%rax,%r11,4), %edx
shrl $0xa, %r10d
imull %edx, %r10d
addl %r13d, %r10d
movzwl 0x2(%rax,%r11,4), %eax
subl %eax, %r10d
movb %r11b, (%r12,%rbp,2)
movl 0x50(%rsp), %eax
movq 0x60(%rsp,%rax,8), %rdx
movl %esi, %r13d
andl %r14d, %r13d
movzbl (%rdx,%r13), %r15d
shlq $0xa, %rax
addq %rdi, %rax
movzwl (%rax,%r15,4), %edx
shrl $0xa, %esi
imull %edx, %esi
addl %r13d, %esi
movzwl 0x2(%rax,%r15,4), %eax
subl %eax, %esi
movq 0x20(%rsp), %rax
movb %r15b, (%r12,%rax)
cmpq 0x58(%rsp), %rcx
jae 0x69cd5
movzwl (%rcx), %eax
movl %r8d, %edx
shll $0x10, %edx
orl %eax, %edx
xorl %eax, %eax
cmpl $0x8000, %r8d           # imm = 0x8000
cmovbl %edx, %r8d
leaq 0x2(%rcx), %rax
cmovbq %rax, %rcx
movzwl (%rcx), %eax
movl %r9d, %edx
shll $0x10, %edx
orl %eax, %edx
xorl %eax, %eax
cmpl $0x8000, %r9d           # imm = 0x8000
cmovbl %edx, %r9d
leaq 0x2(%rcx), %rax
cmovbq %rax, %rcx
movzwl (%rcx), %eax
movl %r10d, %edx
shll $0x10, %edx
orl %eax, %edx
xorl %eax, %eax
cmpl $0x8000, %r10d          # imm = 0x8000
cmovbl %edx, %r10d
leaq 0x2(%rcx), %rax
cmovbq %rax, %rcx
movzwl (%rcx), %eax
movl %esi, %edx
shll $0x10, %edx
orl %eax, %edx
xorl %eax, %eax
cmpl $0x8000, %esi           # imm = 0x8000
cmovbl %edx, %esi
leaq 0x2(%rcx), %rax
cmovbq %rax, %rcx
movq 0x30(%rsp), %r13
movq 0x8(%rsp), %rdi
movq 0x28(%rsp), %r14
movq 0x18(%rsp), %rbp
jmp 0x69dab
cmpl $0x7fff, %r8d           # imm = 0x7FFF
jbe 0x69cf4
movq 0x30(%rsp), %r13
movq 0x8(%rsp), %rdi
movq 0x28(%rsp), %r14
movq 0x18(%rsp), %rbp
jmp 0x69d2b
leaq 0x1(%rcx), %rax
cmpq 0x10(%rsp), %rax
movq 0x30(%rsp), %r13
movq 0x8(%rsp), %rdi
movq 0x28(%rsp), %r14
movq 0x18(%rsp), %rbp
jae 0x69d2b
movzbl (%rcx), %eax
movzbl 0x1(%rcx), %edx
shll $0x8, %edx
shll $0x10, %r8d
orl %eax, %r8d
orl %edx, %r8d
addq $0x2, %rcx
cmpl $0x7fff, %r9d           # imm = 0x7FFF
ja 0x69d57
leaq 0x1(%rcx), %rax
cmpq 0x10(%rsp), %rax
jae 0x69d57
movzbl (%rcx), %eax
movzbl 0x1(%rcx), %edx
shll $0x8, %edx
shll $0x10, %r9d
orl %eax, %r9d
orl %edx, %r9d
addq $0x2, %rcx
cmpl $0x7fff, %r10d          # imm = 0x7FFF
ja 0x69d83
leaq 0x1(%rcx), %rax
cmpq 0x10(%rsp), %rax
jae 0x69d83
movzbl (%rcx), %eax
movzbl 0x1(%rcx), %edx
shll $0x8, %edx
shll $0x10, %r10d
orl %eax, %r10d
orl %edx, %r10d
addq $0x2, %rcx
cmpl $0x7fff, %esi           # imm = 0x7FFF
ja 0x69dab
leaq 0x1(%rcx), %rax
cmpq 0x10(%rsp), %rax
jae 0x69dab
movzbl (%rcx), %eax
movzbl 0x1(%rcx), %edx
shll $0x8, %edx
shll $0x10, %esi
orl %eax, %esi
orl %edx, %esi
addq $0x2, %rcx
incq %r12
decq %rdi
decq %r14
jne 0x69b2b
movq 0x20(%rsp), %r11
subl %edi, %r11d
movl 0x3c(%rsp), %edx
cmpl %edx, %r11d
jae 0x69e3c
movl %r11d, %eax
movl %edx, %edx
movl %esi, %edi
andl $0x3ff, %edi            # imm = 0x3FF
movl %r15d, %r8d
movq 0x60(%rsp,%r8,8), %r9
movzbl (%r9,%rdi), %r15d
movb %r15b, (%r13,%rax)
shlq $0xa, %r8
addq 0x48(%rsp), %r8
movzwl (%r8,%r15,4), %r9d
shrl $0xa, %esi
imull %r9d, %esi
addl %edi, %esi
movzwl 0x2(%r8,%r15,4), %edi
subl %edi, %esi
cmpl $0x7fff, %esi           # imm = 0x7FFF
ja 0x69e34
leaq 0x1(%rcx), %rdi
cmpq 0x10(%rsp), %rdi
jae 0x69e34
movzbl (%rcx), %edi
movzbl 0x1(%rcx), %r8d
shll $0x8, %r8d
shll $0x10, %esi
orl %edi, %esi
orl %r8d, %esi
addq $0x2, %rcx
incq %rax
cmpq %rax, %rdx
jne 0x69dd0
movq 0x48(%rsp), %rdi
callq 0x80732
movq %rbx, %rdi
callq 0x80732
jmp 0x693e7
nop