// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0xd40, %rsp            # imm = 0xD40
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq $0x0, -0x38(%rbp)
movq $0x0, -0x40(%rbp)
movq $0x0, -0x48(%rbp)
cmpl $0x0, -0x14(%rbp)
jne 0x918e3
movq $0x0, -0x8(%rbp)
jmp 0x92433
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x91c4c
movl $0x1, -0x54(%rbp)
movq $0x0, -0x60(%rbp)
movq -0x10(%rbp), %rdi
movl -0x54(%rbp), %eax
addq %rax, %rdi
movq -0x30(%rbp), %rsi
leaq -0x4c(%rbp), %rdx
callq 0x92440
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
cmpl -0x14(%rbp), %eax
jb 0x91937
movq $0x0, -0x8(%rbp)
jmp 0x92433
movq -0x10(%rbp), %rax
movl -0x54(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x54(%rbp)
movl %ecx, %ecx
movzbl (%rax,%rcx), %eax
movl %eax, -0x64(%rbp)
cmpl $0x1, -0x64(%rbp)
jae 0x91962
movq $0x0, -0x8(%rbp)
jmp 0x92433
cmpq $0x0, -0x20(%rbp)
jne 0x919ad
cmpl $0x7fffffff, -0x4c(%rbp) # imm = 0x7FFFFFFF
jb 0x9197f
movq $0x0, -0x8(%rbp)
jmp 0x92433
movl -0x4c(%rbp), %eax
movl %eax, %edi
callq 0x4650
movq %rax, -0x20(%rbp)
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
jne 0x919a4
movq $0x0, -0x8(%rbp)
jmp 0x92433
movl -0x4c(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movl -0x4c(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl (%rcx), %eax
je 0x919ce
movq -0x38(%rbp), %rdi
callq 0x45a0
movq $0x0, -0x8(%rbp)
jmp 0x92433
movl $0x0, -0x58(%rbp)
movl -0x58(%rbp), %eax
cmpl -0x64(%rbp), %eax
jae 0x91add
movl -0x4c(%rbp), %eax
xorl %edx, %edx
divl -0x64(%rbp)
movl %eax, %ecx
movl -0x4c(%rbp), %eax
xorl %edx, %edx
divl -0x64(%rbp)
cmpl -0x58(%rbp), %edx
seta %al
andb $0x1, %al
movzbl %al, %eax
addl %eax, %ecx
movslq -0x58(%rbp), %rax
movl %ecx, -0x870(%rbp,%rax,4)
cmpl $0x0, -0x58(%rbp)
je 0x91a38
movl -0x58(%rbp), %eax
subl $0x1, %eax
cltq
movl -0xc70(%rbp,%rax,4), %eax
movl -0x58(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
addl -0x870(%rbp,%rcx,4), %eax
movl %eax, -0xd20(%rbp)
jmp 0x91a42
xorl %eax, %eax
movl %eax, -0xd20(%rbp)
jmp 0x91a42
movl -0xd20(%rbp), %ecx
movslq -0x58(%rbp), %rax
movl %ecx, -0xc70(%rbp,%rax,4)
movq -0x10(%rbp), %rdi
movl -0x54(%rbp), %eax
addq %rax, %rdi
movq -0x30(%rbp), %rsi
movslq -0x58(%rbp), %rax
leaq -0x470(%rbp), %rdx
shlq $0x2, %rax
addq %rax, %rdx
callq 0x92440
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
movslq -0x58(%rbp), %rax
movl -0x470(%rbp,%rax,4), %eax
addq -0x60(%rbp), %rax
movq %rax, -0x60(%rbp)
movl -0x54(%rbp), %eax
cmpl -0x14(%rbp), %eax
ja 0x91ab7
movslq -0x58(%rbp), %rax
movl -0x470(%rbp,%rax,4), %eax
cmpl -0x14(%rbp), %eax
ja 0x91ab7
movslq -0x58(%rbp), %rax
cmpl $0x1, -0x470(%rbp,%rax,4)
jae 0x91acd
movq -0x38(%rbp), %rdi
callq 0x45a0
movq $0x0, -0x8(%rbp)
jmp 0x92433
jmp 0x91acf
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x919d5
movl -0x54(%rbp), %eax
addq -0x60(%rbp), %rax
movl -0x14(%rbp), %ecx
cmpq %rcx, %rax
jbe 0x91b02
movq -0x38(%rbp), %rdi
callq 0x45a0
movq $0x0, -0x8(%rbp)
jmp 0x92433
movl -0x54(%rbp), %eax
addq -0x60(%rbp), %rax
movl %eax, -0x14(%rbp)
movl -0x4c(%rbp), %eax
movl %eax, %edi
callq 0x4650
movq %rax, -0xc78(%rbp)
cmpq $0x0, -0xc78(%rbp)
jne 0x91b3d
movq -0x38(%rbp), %rdi
callq 0x45a0
movq $0x0, -0x8(%rbp)
jmp 0x92433
movl $0x0, -0x58(%rbp)
movl -0x58(%rbp), %eax
cmpl -0x64(%rbp), %eax
jae 0x91c0d
movslq -0x58(%rbp), %rax
movl -0x870(%rbp,%rax,4), %eax
movl %eax, -0x50(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x54(%rbp), %eax
jae 0x91b88
movq -0x38(%rbp), %rdi
callq 0x45a0
movq -0xc78(%rbp), %rdi
callq 0x45a0
movq $0x0, -0x8(%rbp)
jmp 0x92433
movq -0x10(%rbp), %rdi
movl -0x54(%rbp), %eax
addq %rax, %rdi
movl -0x14(%rbp), %esi
subl -0x54(%rbp), %esi
movq -0xc78(%rbp), %rdx
movslq -0x58(%rbp), %rax
movl -0xc70(%rbp,%rax,4), %eax
addq %rax, %rdx
leaq -0x50(%rbp), %rcx
callq 0x91890
cmpq $0x0, %rax
je 0x91bcc
movl -0x50(%rbp), %eax
movslq -0x58(%rbp), %rcx
cmpl -0x870(%rbp,%rcx,4), %eax
je 0x91bee
movq -0x38(%rbp), %rdi
callq 0x45a0
movq -0xc78(%rbp), %rdi
callq 0x45a0
movq $0x0, -0x8(%rbp)
jmp 0x92433
movslq -0x58(%rbp), %rax
movl -0x470(%rbp,%rax,4), %eax
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x91b44
movq -0x20(%rbp), %rdi
movq -0xc78(%rbp), %rsi
movl -0x4c(%rbp), %edx
movl -0x64(%rbp), %ecx
leaq -0xc70(%rbp), %r8
callq 0x92590
movq -0xc78(%rbp), %rdi
callq 0x45a0
movl -0x4c(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x92433
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movzbl (%rax), %eax
movl %eax, -0xc7c(%rbp)
movl -0x14(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x14(%rbp)
movl -0xc7c(%rbp), %eax
andl $0x80, %eax
movl %eax, -0xc80(%rbp)
movl -0xc7c(%rbp), %eax
andl $0x40, %eax
movl %eax, -0xc84(%rbp)
movl -0xc7c(%rbp), %eax
andl $0x20, %eax
movl %eax, -0xc88(%rbp)
movl -0xc7c(%rbp), %eax
andl $0x10, %eax
movl %eax, -0xc8c(%rbp)
movl -0xc7c(%rbp), %eax
andl $0x4, %eax
movl %eax, -0xc90(%rbp)
movl -0xc7c(%rbp), %eax
andl $0x1, %eax
movl %eax, -0xc7c(%rbp)
movl $0x0, -0xc94(%rbp)
cmpl $0x0, -0xc8c(%rbp)
jne 0x91cf8
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq -0xc98(%rbp), %rdx
callq 0x92440
movl %eax, -0xc94(%rbp)
jmp 0x91d0e
movl $0x0, -0xc94(%rbp)
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, -0xc98(%rbp)
movl -0xc94(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movl -0xc94(%rbp), %ecx
movl -0x14(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0xc8c(%rbp)
je 0x91d45
cmpq $0x0, -0x20(%rbp)
jne 0x91d45
jmp 0x92410
cmpq $0x0, -0x20(%rbp)
jne 0x91d82
movl -0xc98(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, %edi
callq 0x4650
movq %rax, -0x38(%rbp)
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x91d80
movq $0x0, -0x8(%rbp)
jmp 0x92433
jmp 0x91da1
movq -0x28(%rbp), %rax
movl (%rax), %eax
cmpl -0xc98(%rbp), %eax
jae 0x91d95
jmp 0x92410
movl -0xc98(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movl $0x0, -0xc9c(%rbp)
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, -0xca0(%rbp)
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, -0xca4(%rbp)
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, -0xca8(%rbp)
movq $0x0, -0xcb0(%rbp)
movq $0x0, -0xcb8(%rbp)
movq $0x0, -0xcc0(%rbp)
movq $0x0, -0xcc8(%rbp)
cmpl $0x0, -0xc80(%rbp)
jne 0x91e11
cmpl $0x0, -0xc84(%rbp)
je 0x91ed1
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, %edi
callq 0x4650
movq %rax, -0x40(%rbp)
movq %rax, -0xcc8(%rbp)
cmpq $0x0, %rax
jne 0x91e34
jmp 0x92410
cmpl $0x0, -0xc80(%rbp)
je 0x91e6c
cmpl $0x0, -0xc84(%rbp)
je 0x91e6c
movq -0x20(%rbp), %rax
movq %rax, -0xcb0(%rbp)
movq -0xcc8(%rbp), %rax
movq %rax, -0xcb8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xcc0(%rbp)
jmp 0x91ecf
cmpl $0x0, -0xc80(%rbp)
je 0x91e9e
movq -0xcc8(%rbp), %rax
movq %rax, -0xcb0(%rbp)
movq -0xcb0(%rbp), %rax
movq %rax, -0xcb8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xcc0(%rbp)
jmp 0x91ecd
cmpl $0x0, -0xc84(%rbp)
je 0x91ecb
movq -0xcc8(%rbp), %rax
movq %rax, -0xcb0(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xcb8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xcc0(%rbp)
jmp 0x91ecd
jmp 0x91ecf
jmp 0x91efd
movq $0x0, -0xcc8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xcb0(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xcb8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xcc0(%rbp)
leaq -0xce0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x4250
movl $0x0, -0xce4(%rbp)
movq $0x0, -0xcf0(%rbp)
cmpl $0x0, -0xc80(%rbp)
je 0x91ff4
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, %edx
leaq -0xce0(%rbp), %rcx
leaq -0xce4(%rbp), %r8
callq 0x8d780
movzbl %al, %eax
movl %eax, -0xc9c(%rbp)
cmpl $0x0, -0xc9c(%rbp)
jne 0x91f6b
jmp 0x92410
movl -0xc98(%rbp), %eax
movq %rax, -0xcf0(%rbp)
movl -0xc9c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movl -0xc9c(%rbp), %ecx
movl -0x14(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq -0xcf4(%rbp), %rdx
callq 0x92440
movl %eax, -0xc94(%rbp)
movl -0xc94(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movl -0xc94(%rbp), %ecx
movl -0x14(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x14(%rbp)
movl -0xcf4(%rbp), %eax
cmpl -0xca0(%rbp), %eax
jbe 0x91fe8
jmp 0x92410
movl -0xcf4(%rbp), %eax
movl %eax, -0xca0(%rbp)
movq $0x0, -0xd00(%rbp)
movl $0x0, -0xd04(%rbp)
cmpl $0x0, -0xc84(%rbp)
je 0x921c0
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq -0xd04(%rbp), %rdx
callq 0x92440
movl %eax, -0xd10(%rbp)
movq -0x10(%rbp), %rdi
movl -0xd10(%rbp), %eax
addq %rax, %rdi
movq -0x30(%rbp), %rsi
leaq -0xd0c(%rbp), %rdx
callq 0x92440
addl -0xd10(%rbp), %eax
movl %eax, -0xd10(%rbp)
movl -0xd0c(%rbp), %eax
cmpl -0xca0(%rbp), %eax
jbe 0x9206c
jmp 0x92410
movl -0xd04(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x920f1
movq -0x10(%rbp), %rax
movl -0xd10(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0xd00(%rbp)
movl -0xd04(%rbp), %eax
shrl %eax
movl %eax, %eax
movq -0x30(%rbp), %rcx
movq -0xd00(%rbp), %rdx
subq %rdx, %rcx
cmpq %rcx, %rax
jle 0x920c2
movq -0x30(%rbp), %rax
movq -0xd00(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0xd28(%rbp)
jmp 0x920d3
movl -0xd04(%rbp), %eax
shrl %eax
movl %eax, %eax
movq %rax, -0xd28(%rbp)
movq -0xd28(%rbp), %rax
movl %eax, -0xd04(%rbp)
movl -0xd04(%rbp), %eax
movl %eax, -0xd08(%rbp)
jmp 0x92171
movq -0x10(%rbp), %rdi
movl -0xd10(%rbp), %eax
addq %rax, %rdi
movq -0x30(%rbp), %rsi
leaq -0xd08(%rbp), %rdx
callq 0x92440
addl -0xd10(%rbp), %eax
movl %eax, -0xd10(%rbp)
movl -0xd04(%rbp), %eax
shrl %eax
movl %eax, -0xd04(%rbp)
movl -0xc90(%rbp), %edi
xorl %esi, %esi
callq 0x928b0
movq -0x10(%rbp), %rdi
movl -0xd10(%rbp), %ecx
addq %rcx, %rdi
movl -0x14(%rbp), %esi
subl -0xd10(%rbp), %esi
movl -0xd04(%rbp), %ecx
xorl %edx, %edx
callq *%rax
movq %rax, -0xd00(%rbp)
movq %rax, -0x48(%rbp)
cmpq $0x0, -0xd00(%rbp)
jne 0x9216f
jmp 0x92410
jmp 0x92171
movl -0xd08(%rbp), %eax
addl -0xd10(%rbp), %eax
cmpl -0x14(%rbp), %eax
jbe 0x92187
jmp 0x92410
movl -0xd08(%rbp), %ecx
addl -0xd10(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movl -0xd08(%rbp), %ecx
addl -0xd10(%rbp), %ecx
movl -0x14(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x14(%rbp)
movl -0xd0c(%rbp), %eax
movl %eax, -0xca0(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x92251
cmpl $0x0, -0xc88(%rbp)
je 0x92210
movl -0xca0(%rbp), %eax
cmpl -0x14(%rbp), %eax
jbe 0x921e3
jmp 0x92410
movl -0xca0(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl (%rcx), %eax
jbe 0x921f6
jmp 0x92410
movq -0xcb0(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0xca0(%rbp), %eax
movl %eax, %edx
callq 0x43b0
jmp 0x9224f
movl -0xc90(%rbp), %edi
movl -0xc7c(%rbp), %esi
callq 0x928b0
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0xcb0(%rbp), %rdx
movl -0xca0(%rbp), %ecx
callq *%rax
movq %rax, -0xcb0(%rbp)
cmpq $0x0, -0xcb0(%rbp)
jne 0x9224d
jmp 0x92410
jmp 0x9224f
jmp 0x9225b
movl $0x0, -0xca0(%rbp)
movl -0xca0(%rbp), %eax
movl %eax, -0xca8(%rbp)
movl %eax, -0xca4(%rbp)
cmpl $0x0, -0xc84(%rbp)
je 0x9237d
cmpl $0x0, -0xd04(%rbp)
jne 0x92288
jmp 0x92410
movq -0x28(%rbp), %rax
movl (%rax), %eax
movq %rax, -0xd18(%rbp)
movq -0xd00(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x0, %eax
je 0x922b6
movq -0xd00(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0xd2c(%rbp)
jmp 0x922c3
movl $0x100, %eax            # imm = 0x100
movl %eax, -0xd2c(%rbp)
jmp 0x922c3
movl -0xd2c(%rbp), %eax
movl %eax, -0xd1c(%rbp)
movl -0xd04(%rbp), %eax
movl -0xd1c(%rbp), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jae 0x922e7
jmp 0x92410
movq -0xcb0(%rbp), %rdi
movl -0xca0(%rbp), %eax
movl %eax, %esi
movq -0xd00(%rbp), %rdx
addq $0x1, %rdx
movslq -0xd1c(%rbp), %rax
addq %rax, %rdx
movl -0xd04(%rbp), %eax
movl -0xd1c(%rbp), %ecx
addl $0x1, %ecx
subl %ecx, %eax
movl %eax, %eax
movl %eax, %ecx
movq -0xd00(%rbp), %r8
addq $0x1, %r8
movl -0xd1c(%rbp), %r9d
movq -0xcb8(%rbp), %r10
leaq -0xd18(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0xc8250
cmpq $0x0, %rax
jne 0x92359
jmp 0x92410
movq -0xd18(%rbp), %rax
movl %eax, -0xca4(%rbp)
movl %eax, -0xca8(%rbp)
movq -0x48(%rbp), %rdi
callq 0x45a0
movq $0x0, -0x48(%rbp)
cmpl $0x0, -0xc80(%rbp)
je 0x923e1
cmpl $0x1, -0xce4(%rbp)
jne 0x9239c
movl -0xca4(%rbp), %eax
movq %rax, -0xcf0(%rbp)
movq -0xcb8(%rbp), %rdi
movl -0xca4(%rbp), %eax
movl %eax, %esi
movq -0xcc0(%rbp), %rdx
movq -0xcf0(%rbp), %rcx
movl -0xce4(%rbp), %r8d
leaq -0xce0(%rbp), %r9
callq 0x8d8b0
cmpq $0x0, %rax
jne 0x923d4
jmp 0x92410
movq -0xcf0(%rbp), %rax
movl %eax, -0xca8(%rbp)
cmpq $0x0, -0xcc8(%rbp)
je 0x923f7
movq -0xcc8(%rbp), %rdi
callq 0x45a0
movl -0xca8(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movq -0xcc0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x92433
movq -0x48(%rbp), %rdi
callq 0x45a0
movq -0x38(%rbp), %rdi
callq 0x45a0
movq -0x40(%rbp), %rdi
callq 0x45a0
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xd40, %rsp            # imm = 0xD40
popq %rbp
retq