// File: /workspace/github_c_makefile_star2_O2/samtools[P]htslib/htscodecs/htscodecs/rANS_static4x16pr.c
// Function: rans_uncompress_to_4x16
unsigned char *rans_uncompress_to_4x16(unsigned char *in,  unsigned int in_size,
                                       unsigned char *out, unsigned int *out_size) {
    unsigned char *in_end = in + in_size;
    unsigned char *out_free = NULL, *tmp_free = NULL, *meta_free = NULL;

    if (in_size == 0)
        return NULL;

    if (*in & RANS_ORDER_STRIPE) {
        unsigned int ulen, olen, c_meta_len = 1;
        int i;
        uint64_t clen_tot = 0;

        // Decode lengths
        c_meta_len += var_get_u32(in+c_meta_len, in_end, &ulen);
        if (c_meta_len >= in_size)
            return NULL;
        unsigned int N = in[c_meta_len++];
        if (N < 1)  // Must be at least one stripe
            return NULL;
        unsigned int clenN[256], ulenN[256], idxN[256];
        if (!out) {
            if (ulen >= INT_MAX)
                return NULL;
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
            if (ulen > 100000)
                return NULL;
#endif
            if (!(out_free = out = malloc(ulen))) {
                return NULL;
            }
            *out_size = ulen;
        }
        if (ulen != *out_size) {
            free(out_free);
            return NULL;
        }

        for (i = 0; i < N; i++) {
            ulenN[i] = ulen / N + ((ulen % N) > i);
            idxN[i] = i ? idxN[i-1] + ulenN[i-1] : 0;
            c_meta_len += var_get_u32(in+c_meta_len, in_end, &clenN[i]);
            clen_tot += clenN[i];
            if (c_meta_len > in_size || clenN[i] > in_size || clenN[i] < 1) {
                free(out_free);
                return NULL;
            }
        }

        // We can call this with a larger buffer, but once we've determined
        // how much we really use we limit it so the recursion becomes easier
        // to limit.
        if (c_meta_len + clen_tot > in_size) {
            free(out_free);
            return NULL;
        }
        in_size = c_meta_len + clen_tot;

        //fprintf(stderr, "    stripe meta %d\n", c_meta_len); //c-size

        // Uncompress the N streams
        unsigned char *outN = malloc(ulen);
        if (!outN) {
            free(out_free);
            return NULL;
        }
        for (i = 0; i < N; i++) {
            olen = ulenN[i];
            if (in_size < c_meta_len) {
                free(out_free);
                free(outN);
                return NULL;
            }
            if (!rans_uncompress_to_4x16(in+c_meta_len, in_size-c_meta_len, outN + idxN[i], &olen)
                || olen != ulenN[i]) {
                free(out_free);
                free(outN);
                return NULL;
            }
            c_meta_len += clenN[i];
        }

        unstripe(out, outN, ulen, N, idxN);

        free(outN);
        *out_size = ulen;
        return out;
    }

    int order = *in++;  in_size--;
    int do_pack = order & RANS_ORDER_PACK;
    int do_rle  = order & RANS_ORDER_RLE;
    int do_cat  = order & RANS_ORDER_CAT;
    int no_size = order & RANS_ORDER_NOSZ;
    int do_simd = order & RANS_ORDER_X32;
    order &= 1;

    int sz = 0;
    unsigned int osz;
    if (!no_size) {
        sz = var_get_u32(in, in_end, &osz);
    } else
        sz = 0, osz = *out_size;
    in += sz;
    in_size -= sz;

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

    if (no_size && !out)
        goto err; // Need one or the other

    if (!out) {
        *out_size = osz;
        if (!(out = out_free = malloc(*out_size)))
            return NULL;
    } else {
        if (*out_size < osz)
        goto err;
        *out_size = osz;
    }

//    if (do_pack || do_rle) {
//      in += sz; // size field not needed when pure rANS
//      in_size -= sz;
//    }

    uint32_t c_meta_size = 0;
    unsigned int tmp1_size = *out_size;
    unsigned int tmp2_size = *out_size;
    unsigned int tmp3_size = *out_size;
    unsigned char *tmp1 = NULL, *tmp2 = NULL, *tmp3 = NULL, *tmp = NULL;

    // Need In, Out and Tmp buffers with temporary buffer of the same size
    // as output.  All use rANS, but with optional transforms (none, RLE,
    // Pack, or both).
    //
    //                    rans   unrle  unpack
    // If none:     in -> out
    // If RLE:      in -> tmp -> out
    // If Pack:     in -> tmp        -> out
    // If RLE+Pack: in -> out -> tmp -> out
    //                    tmp1   tmp2   tmp3
    //
    // So rans is in   -> tmp1
    // RLE     is tmp1 -> tmp2
    // Unpack  is tmp2 -> tmp3

    // Format is meta data (Pack and RLE in that order if present),
    // followed by rANS compressed data.

    if (do_pack || do_rle) {
        if (!(tmp = tmp_free = malloc(*out_size)))
            goto err;
        if (do_pack && do_rle) {
            tmp1 = out;
            tmp2 = tmp;
            tmp3 = out;
        } else if (do_pack) {
            tmp1 = tmp;
            tmp2 = tmp1;
            tmp3 = out;
        } else if (do_rle) {
            tmp1 = tmp;
            tmp2 = out;
            tmp3 = out;
        }
    } else {
        // neither
        tmp  = NULL;
        tmp1 = out;
        tmp2 = out;
        tmp3 = out;
    }

    // Decode the bit-packing map.
    uint8_t map[16] = {0};
    int npacked_sym = 0;
    uint64_t unpacked_sz = 0; // FIXME: rename to packed_per_byte
    if (do_pack) {
        c_meta_size = hts_unpack_meta(in, in_size, *out_size, map, &npacked_sym);
        if (c_meta_size == 0)
            goto err;

        unpacked_sz = osz;
        in      += c_meta_size;
        in_size -= c_meta_size;

        // New unpacked size.  We could derive this bit from *out_size
        // and npacked_sym.
        unsigned int osz;
        sz = var_get_u32(in, in_end, &osz);
        in += sz;
        in_size -= sz;
        if (osz > tmp1_size)
            goto err;
        tmp1_size = osz;
    }

    uint8_t *meta = NULL;
    uint32_t u_meta_size = 0;
    if (do_rle) {
        // Uncompress meta data
        uint32_t c_meta_size, rle_len, sz;
        sz  = var_get_u32(in,    in_end, &u_meta_size);
        sz += var_get_u32(in+sz, in_end, &rle_len);
        if (rle_len > tmp1_size) // should never grow
            goto err;
        if (u_meta_size & 1) {
            meta = in + sz;
            u_meta_size = u_meta_size/2 > (in_end-meta) ? (in_end-meta) : u_meta_size/2;
            c_meta_size = u_meta_size;
        } else {
            sz += var_get_u32(in+sz, in_end, &c_meta_size);
            u_meta_size /= 2;

            meta_free = meta = rans_dec_func(do_simd, 0)(in+sz, in_size-sz, NULL, u_meta_size);
            if (!meta)
                goto err;
        }
        if (c_meta_size+sz > in_size)
            goto err;
        in      += c_meta_size+sz;
        in_size -= c_meta_size+sz;
        tmp1_size = rle_len;
    }
    //fprintf(stderr, "    meta_size %d bytes\n", (int)(in - orig_in)); //c-size

    // uncompress RLE data.  in -> tmp1
    if (in_size) {
        if (do_cat) {
            //fprintf(stderr, "    CAT %d\n", tmp1_size); //c-size
            if (tmp1_size > in_size)
                goto err;
            if (tmp1_size > *out_size)
                goto err;
            memcpy(tmp1, in, tmp1_size);
        } else {
            tmp1 = rans_dec_func(do_simd, order)(in, in_size, tmp1, tmp1_size);
            if (!tmp1)
                goto err;
        }
    } else {
        tmp1_size = 0;
    }
    tmp2_size = tmp3_size = tmp1_size;

    if (do_rle) {
        // Unpack RLE.  tmp1 -> tmp2.
        if (u_meta_size == 0)
            goto err;
        uint64_t unrle_size = *out_size;
        int rle_nsyms = *meta ? *meta : 256;
        if (u_meta_size < 1+rle_nsyms)
            goto err;
        if (!hts_rle_decode(tmp1, tmp1_size,
                            meta+1+rle_nsyms, u_meta_size-(1+rle_nsyms),
                            meta+1, rle_nsyms, tmp2, &unrle_size))
            goto err;
        tmp3_size = tmp2_size = unrle_size;
        free(meta_free);
        meta_free = NULL;
    }
    if (do_pack) {
        // Unpack bits via pack-map.  tmp2 -> tmp3
        if (npacked_sym == 1)
            unpacked_sz = tmp2_size;
        //uint8_t *porig = unpack(tmp2, tmp2_size, unpacked_sz, npacked_sym, map);
        //memcpy(tmp3, porig, unpacked_sz);
        if (!hts_unpack(tmp2, tmp2_size, tmp3, unpacked_sz, npacked_sym, map))
            goto err;
        tmp3_size = unpacked_sz;
    }

    if (tmp)
        free(tmp);

    *out_size = tmp3_size;
    return tmp3;

 err:
    free(meta_free);
    free(out_free);
    free(tmp_free);
    return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc88, %rsp            # imm = 0xC88
testl %esi, %esi
je 0x50d8f
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %r13d
movq %rdi, %rbx
movl %esi, %eax
leaq (%rdi,%rax), %r12
movzbl (%rdi), %ebp
testb $0x8, %bpl
jne 0x509ec
incq %rbx
testb $0x10, %bpl
movq %rbx, 0x18(%rsp)
jne 0x50a4d
leaq 0x880(%rsp), %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x51248
movl %eax, %ebx
jmp 0x50a59
movq %rax, 0x60(%rsp)
leaq 0x1(%rbx), %rdi
leaq 0x6c(%rsp), %rdx
movq %r12, 0x28(%rsp)
movq %r12, %rsi
callq 0x51248
movl %eax, %r12d
leal 0x1(%r12), %eax
cmpl %r13d, %eax
jae 0x50d8f
movl %eax, %eax
movzbl (%rbx,%rax), %eax
testl %eax, %eax
je 0x50d8f
movq %rax, 0x40(%rsp)
movl 0x6c(%rsp), %ebp
testq %r14, %r14
je 0x50bd0
movq %rbx, 0x18(%rsp)
xorl %ebx, %ebx
cmpl (%r15), %ebp
je 0x50bfb
jmp 0x51019
movl (%r15), %eax
movl %eax, 0x880(%rsp)
xorl %ebx, %ebx
movl %ebp, %eax
andl $0x10, %eax
shrl $0x4, %eax
testq %r14, %r14
sete %cl
testb %al, %cl
jne 0x50a82
movq %r12, 0x28(%rsp)
testq %r14, %r14
je 0x50a8f
movl 0x880(%rsp), %r12d
cmpl %r12d, (%r15)
jae 0x50ab4
xorl %r13d, %r13d
xorl %r14d, %r14d
xorl %ebx, %ebx
jmp 0x50ffb
movl 0x880(%rsp), %r12d
movl %r12d, (%r15)
movq %r12, %rdi
callq 0x4680
movq %rax, %r14
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x50ac0
jmp 0x51013
movl %r12d, (%r15)
movq $0x0, 0x10(%rsp)
movslq %ebx, %rbx
addq %rbx, 0x18(%rsp)
notl %ebx
addl %r13d, %ebx
testb %bpl, %bpl
setns %al
testb $0x40, %bpl
sete %cl
testb %cl, %al
jne 0x50b25
movl %r12d, %r13d
movq %r13, %rdi
callq 0x4680
testq %rax, %rax
je 0x50d96
movq %rax, %rcx
testb $0x40, %bpl
cmovneq %r14, %rax
testb %bpl, %bpl
cmovnsq %rcx, %rax
movq %rcx, 0x8(%rsp)
js 0x50f2c
xorl %eax, %eax
testb $0x40, %bpl
cmoveq %rax, %rcx
movq %r14, %rdx
cmoveq %rax, %rdx
movq %rcx, %r14
jmp 0x50b31
movq $0x0, 0x8(%rsp)
movq %r14, %rdx
movq %r14, %rax
andl $0x0, 0x50(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movq $0x0, 0x60(%rsp)
movq %rdx, 0x40(%rsp)
movq %rdx, %r14
andl $0x0, 0x24(%rsp)
movl %ebp, %edi
andl $0x4, %edi
xorl %r13d, %r13d
testb $0x40, %bpl
je 0x50cba
movl %edi, 0x38(%rsp)
movq %rax, 0x30(%rsp)
movq %r14, 0x48(%rsp)
leaq 0x24(%rsp), %rdx
movq %r12, 0x58(%rsp)
movq 0x18(%rsp), %r12
movq %r12, %rdi
movq 0x28(%rsp), %r13
movq %r13, %rsi
callq 0x51248
movl %eax, %r14d
movl %eax, %edi
movq %r12, 0x18(%rsp)
addq %r12, %rdi
leaq 0x80(%rsp), %rdx
movq %r13, %rsi
movq %rdx, %r13
callq 0x51248
movl %eax, %r12d
movq 0x58(%rsp), %rax
cmpl %eax, (%r13)
jbe 0x50da6
xorl %r13d, %r13d
jmp 0x50ff1
cmpl $0x7ffffffe, %ebp       # imm = 0x7FFFFFFE
ja 0x50d8f
movq %rbp, %rdi
callq 0x4680
testq %rax, %rax
je 0x50d8f
movq %rax, %r14
movq %rbx, 0x18(%rsp)
movl %ebp, (%r15)
movq %rax, %rbx
movq %r14, 0x48(%rsp)
movq %r15, 0x38(%rsp)
movq %rbp, 0x58(%rsp)
movl %ebp, %eax
xorl %edx, %edx
movq 0x40(%rsp), %rcx
divl %ecx
movl %eax, 0x8(%rsp)
movq %rdx, 0x30(%rsp)
addl $0x2, %r12d
xorl %r14d, %r14d
movl %ecx, %eax
movq %rax, 0x10(%rsp)
xorl %r15d, %r15d
xorl %ebp, %ebp
movl %r12d, %edi
cmpq %r15, 0x10(%rsp)
je 0x50d07
cmpq 0x30(%rsp), %r15
movl 0x8(%rsp), %eax
adcl $0x0, %eax
movl %eax, 0x880(%rsp,%r15,4)
testq %r15, %r15
je 0x50c67
movl 0x87c(%rsp,%r15,4), %eax
addl 0x7c(%rsp,%r15,4), %eax
jmp 0x50c69
xorl %eax, %eax
movl %eax, 0x80(%rsp,%r15,4)
addq 0x18(%rsp), %rdi
leaq (%rsp,%r14), %rdx
addq $0x480, %rdx            # imm = 0x480
movq 0x28(%rsp), %rsi
callq 0x51248
addl %eax, %r12d
cmpl %r13d, %r12d
ja 0x50d87
movl 0x480(%rsp,%r15,4), %eax
leal -0x1(%rax), %ecx
cmpl %r13d, %ecx
jae 0x50d87
addq %rax, %rbp
incq %r15
addq $0x4, %r14
jmp 0x50c31
xorl %r8d, %r8d
testl %ebx, %ebx
je 0x50e26
movq %rax, 0x30(%rsp)
testb $0x20, %bpl
jne 0x50ef3
movl %ebp, %esi
andl $0x1, %esi
movq %r8, 0x28(%rsp)
callq 0x512ce
movq 0x18(%rsp), %rdi
movl %ebx, %esi
movq 0x30(%rsp), %rdx
movl %r12d, %ecx
callq *%rax
movq 0x28(%rsp), %r8
testq %rax, %rax
jne 0x50e29
jmp 0x50ff1
addq %rdi, %rbp
cmpq 0x60(%rsp), %rbp
ja 0x50d87
movq 0x58(%rsp), %rdi
callq 0x4680
testq %rax, %rax
je 0x50d87
movq %rax, %r13
xorl %r15d, %r15d
cmpq %r15, 0x10(%rsp)
je 0x51056
movl 0x880(%rsp,%r15,4), %r14d
movl %r14d, 0x54(%rsp)
movl %ebp, %esi
subl %r12d, %esi
jb 0x51046
movl %r12d, %edi
addq 0x18(%rsp), %rdi
movl 0x80(%rsp,%r15,4), %edx
addq %r13, %rdx
leaq 0x54(%rsp), %rcx
callq 0x50993
testq %rax, %rax
je 0x51046
cmpl %r14d, 0x54(%rsp)
jne 0x51046
addl 0x480(%rsp,%r15,4), %r12d
incq %r15
jmp 0x50d26
movq %rbx, %rdi
callq 0x45c0
xorl %ebx, %ebx
jmp 0x51019
xorl %r13d, %r13d
xorl %r14d, %r14d
movq 0x10(%rsp), %rbx
jmp 0x50ffb
addl %r14d, %r12d
movl 0x24(%rsp), %eax
movl %r12d, %r8d
addq 0x18(%rsp), %r8
testb $0x1, %al
jne 0x50fc9
leaq 0x480(%rsp), %rdx
movq %r8, %rdi
movq 0x28(%rsp), %rsi
callq 0x51248
movl %eax, %r14d
addl %r12d, %r14d
movl 0x24(%rsp), %r12d
shrl %r12d
movl %r12d, 0x24(%rsp)
xorl %r13d, %r13d
movl 0x38(%rsp), %edi
xorl %esi, %esi
callq 0x512ce
movq 0x18(%rsp), %rcx
leaq (%rcx,%r14), %rdi
movl %ebx, %esi
subl %r14d, %esi
xorl %edx, %edx
movl %r12d, %ecx
callq *%rax
testq %rax, %rax
je 0x50ff1
movq %rax, %r8
movl 0x480(%rsp), %ecx
movq %rax, %r13
movl %r14d, %r12d
jmp 0x50fe0
xorl %r12d, %r12d
testb $0x40, %bpl
je 0x50ea9
movl 0x24(%rsp), %ecx
testl %ecx, %ecx
je 0x50ff1
movl (%r15), %edx
movq %rdx, 0x480(%rsp)
movzbl (%r8), %edx
testl %edx, %edx
movl $0x100, %r9d            # imm = 0x100
cmovnel %edx, %r9d
cmpl %r9d, %ecx
jbe 0x50ff1
movl %r9d, %edi
notl %edi
movl %r12d, %esi
movl %r9d, %edx
addq %r8, %rdx
incq %rdx
incq %r8
addl %edi, %ecx
leaq 0x480(%rsp), %r10
movq %rax, %rdi
pushq %r10
pushq 0x48(%rsp)
callq 0x613fd
popq %rcx
popq %rdx
testq %rax, %rax
je 0x50ff1
movl 0x480(%rsp), %r12d
movq %r13, %rdi
callq 0x45c0
xorl %r13d, %r13d
testb %bpl, %bpl
jns 0x50ee1
movl 0x50(%rsp), %r8d
cmpl $0x1, %r8d
movl %r12d, %esi
movq 0x60(%rsp), %r12
cmoveq %rsi, %r12
leaq 0x70(%rsp), %r9
movq 0x40(%rsp), %rdi
movq %r14, %rdx
movq %r12, %rcx
callq 0x4e95d
testq %rax, %rax
je 0x50ff1
movq 0x8(%rsp), %rdi
callq 0x45c0
movl %r12d, (%r15)
jmp 0x51016
cmpl %ebx, %r12d
ja 0x50ff1
cmpl (%r15), %r12d
ja 0x50ff1
movl %r12d, %edx
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movq %r8, 0x28(%rsp)
callq 0x43c0
movq 0x28(%rsp), %r8
movq %rbx, %rax
jmp 0x50e29
movq %rax, 0x30(%rsp)
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %rcx
movaps %xmm0, (%rcx)
leaq 0x50(%rsp), %r8
andl $0x0, (%r8)
movq %r13, %rdx
movq 0x18(%rsp), %r13
movq %r13, %rdi
movl %ebx, %esi
movq %rdx, 0x60(%rsp)
callq 0x4e8ed
testb %al, %al
je 0x50bc8
movq %r14, 0x48(%rsp)
movq %r15, 0x38(%rsp)
movzbl %al, %r15d
addq %r15, %r13
leaq 0x480(%rsp), %r14
movq %r13, %rdi
movq 0x28(%rsp), %rsi
movq %r14, %rdx
callq 0x51248
movl (%r14), %ecx
cmpl %r12d, %ecx
ja 0x50bc8
cltq
addq %rax, %r13
movq %r13, 0x18(%rsp)
addl %r15d, %eax
subl %eax, %ebx
movq 0x8(%rsp), %rax
movq %rax, 0x40(%rsp)
movl %ecx, %r12d
movq 0x38(%rsp), %r15
movq 0x48(%rsp), %r14
movq 0x30(%rsp), %rax
jmp 0x50b52
shrl %eax
movq 0x28(%rsp), %rcx
subq %r8, %rcx
cmpq %rax, %rcx
cmovgel %eax, %ecx
movl %ecx, 0x24(%rsp)
xorl %r13d, %r13d
addl %r12d, %ecx
subl %ecx, %ebx
movq 0x48(%rsp), %r14
movq 0x30(%rsp), %rax
jae 0x5102e
movq 0x10(%rsp), %rbx
movq 0x8(%rsp), %r14
movq %r13, %rdi
callq 0x45c0
movq %rbx, %rdi
callq 0x45c0
movq %r14, %rdi
callq 0x45c0
xorl %r14d, %r14d
movq %r14, %rbx
movq %rbx, %rax
addq $0xc88, %rsp            # imm = 0xC88
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ecx, %ecx
addq %rcx, 0x18(%rsp)
movl 0x80(%rsp), %r12d
movl 0x38(%rsp), %edi
jmp 0x50cbd
movq %rbx, %rdi
callq 0x45c0
movq %r13, %rdi
jmp 0x50d8a
xorl %eax, %eax
movq 0x58(%rsp), %r15
movl %r15d, %ecx
movq 0x40(%rsp), %r9
subl %r9d, %ecx
movq 0x38(%rsp), %rbx
movq 0x48(%rsp), %r14
jb 0x51133
xorl %eax, %eax
cmpq $0x2, %r9
je 0x511b0
cmpl $0x4, %r9d
jne 0x5112f
cmpl $0x40, %r15d
jb 0x51175
leal -0x40(%r15), %ecx
xorl %eax, %eax
movq %r14, %rdx
cmpq %rcx, %rax
jae 0x51175
movq %rdx, %rsi
xorl %edi, %edi
cmpq $0x10, %rdi
je 0x510e0
xorl %r8d, %r8d
cmpq $0x4, %r8
je 0x510d7
movl 0x80(%rsp,%r8,4), %r9d
addl %edi, %r9d
movb (%r13,%r9), %r9b
movb %r9b, (%rsi,%r8)
incq %r8
jmp 0x510b8
incq %rdi
addq $0x4, %rsi
jmp 0x510af
xorl %esi, %esi
cmpq $0x4, %rsi
je 0x510f5
addl $0x10, 0x80(%rsp,%rsi,4)
incq %rsi
jmp 0x510e2
addq $0x40, %rax
addq $0x40, %rdx
jmp 0x510a1
movslq %eax, %rdx
addq %r14, %rdx
xorl %esi, %esi
cmpq %rsi, %r9
je 0x5112d
movl 0x80(%rsp,%rsi,4), %edi
leal 0x1(%rdi), %r8d
movl %r8d, 0x80(%rsp,%rsi,4)
movb (%r13,%rdi), %dil
movb %dil, (%rdx,%rsi)
incq %rsi
jmp 0x51107
addl %esi, %eax
cmpl %ecx, %eax
jb 0x510ff
movslq %eax, %rcx
leaq (%r14,%rcx), %rax
movl %ecx, %ecx
xorl %edx, %edx
leal (%rcx,%rdx), %esi
cmpl %esi, %r15d
jbe 0x51165
movl 0x80(%rsp,%rdx,4), %esi
leal 0x1(%rsi), %edi
movl %edi, 0x80(%rsp,%rdx,4)
movb (%r13,%rsi), %sil
movb %sil, (%rax,%rdx)
incq %rdx
jmp 0x5113e
movq %r13, %rdi
callq 0x45c0
movl %r15d, (%rbx)
jmp 0x51016
leal -0x4(%r15), %ecx
cmpl %ecx, %eax
jae 0x51133
movslq %eax, %rdx
addq %r14, %rdx
xorl %esi, %esi
cmpq $0x4, %rsi
je 0x511ac
movl 0x80(%rsp,%rsi,4), %edi
leal 0x1(%rdi), %r8d
movl %r8d, 0x80(%rsp,%rsi,4)
movb (%r13,%rdi), %dil
movb %dil, (%rdx,%rsi)
incq %rsi
jmp 0x51185
addl %esi, %eax
jmp 0x51179
cmpl $0x8, %r15d
jb 0x51209
leal -0x8(%r15), %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jae 0x51209
xorl %edx, %edx
cmpl $0x4, %edx
je 0x511f4
movslq %eax, %rsi
addq %r14, %rsi
xorl %edi, %edi
cmpq $0x2, %rdi
je 0x511ee
movl 0x80(%rsp,%rdi,4), %r8d
addl %edx, %r8d
movb (%r13,%r8), %r8b
movb %r8b, (%rsi,%rdi)
incq %rdi
jmp 0x511cf
addl %edi, %eax
incl %edx
jmp 0x511c2
xorl %edx, %edx
cmpq $0x2, %rdx
je 0x511bc
addl $0x4, 0x80(%rsp,%rdx,4)
incq %rdx
jmp 0x511f6
leal -0x2(%r15), %ecx
cmpl %ecx, %eax
jae 0x51133
movslq %eax, %rdx
addq %r14, %rdx
xorl %esi, %esi
cmpq $0x2, %rsi
je 0x51244
movl 0x80(%rsp,%rsi,4), %edi
leal 0x1(%rdi), %r8d
movl %r8d, 0x80(%rsp,%rsi,4)
movb (%r13,%rdi), %dil
movb %dil, (%rdx,%rsi)
incq %rsi
jmp 0x5121d
addl %esi, %eax
jmp 0x5120d