// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/vcf.c
// Function: bcf1_sync
static int bcf1_sync(bcf1_t *line)
{
    char *shared_ori = line->shared.s;
    size_t prev_len;

    kstring_t tmp = {0,0,0};
    if ( !line->shared.l )
    {
        // New line created via API, BCF data blocks do not exist. Get it ready for BCF output
        tmp = line->shared;
        bcf1_sync_id(line, &tmp);
        line->unpack_size[0] = tmp.l; prev_len = tmp.l;

        bcf1_sync_alleles(line, &tmp);
        line->unpack_size[1] = tmp.l - prev_len; prev_len = tmp.l;

        bcf1_sync_filter(line, &tmp);
        line->unpack_size[2] = tmp.l - prev_len;

        bcf1_sync_info(line, &tmp);
        line->shared = tmp;
    }
    else if ( line->d.shared_dirty )
    {
        // The line was edited, update the BCF data block.

        if ( !(line->unpacked & BCF_UN_STR) ) bcf_unpack(line,BCF_UN_STR);

        // ptr_ori points to the original unchanged BCF data.
        uint8_t *ptr_ori = (uint8_t *) line->shared.s;

        // ID: single typed string
        if ( line->d.shared_dirty & BCF1_DIRTY_ID )
            bcf1_sync_id(line, &tmp);
        else
            kputsn_(ptr_ori, line->unpack_size[0], &tmp);
        ptr_ori += line->unpack_size[0];
        line->unpack_size[0] = tmp.l; prev_len = tmp.l;

        // REF+ALT: list of typed strings
        if ( line->d.shared_dirty & BCF1_DIRTY_ALS )
            bcf1_sync_alleles(line, &tmp);
        else
        {
            kputsn_(ptr_ori, line->unpack_size[1], &tmp);
            if ( !line->rlen && line->n_allele ) line->rlen = strlen(line->d.allele[0]);
        }
        ptr_ori += line->unpack_size[1];
        line->unpack_size[1] = tmp.l - prev_len; prev_len = tmp.l;

        if ( line->unpacked & BCF_UN_FLT )
        {
            // FILTER: typed vector of integers
            if ( line->d.shared_dirty & BCF1_DIRTY_FLT )
                bcf1_sync_filter(line, &tmp);
            else if ( line->d.n_flt )
                kputsn_(ptr_ori, line->unpack_size[2], &tmp);
            else
                bcf_enc_vint(&tmp, 0, 0, -1);
            ptr_ori += line->unpack_size[2];
            line->unpack_size[2] = tmp.l - prev_len;

            if ( line->unpacked & BCF_UN_INFO )
            {
                // INFO: pairs of typed vectors
                if ( line->d.shared_dirty & BCF1_DIRTY_INF )
                {
                    bcf1_sync_info(line, &tmp);
                    ptr_ori = (uint8_t*)line->shared.s + line->shared.l;
                }
            }
        }

        int size = line->shared.l - (size_t)ptr_ori + (size_t)line->shared.s;
        if ( size ) kputsn_(ptr_ori, size, &tmp);

        free(line->shared.s);
        line->shared = tmp;
    }
    if ( line->shared.s != shared_ori && line->unpacked & BCF_UN_INFO )
    {
        // Reallocated line->shared.s block invalidated line->d.info[].vptr pointers
        size_t off_new = line->unpack_size[0] + line->unpack_size[1] + line->unpack_size[2];
        int i;
        for (i=0; i<line->n_info; i++)
        {
            uint8_t *vptr_free = line->d.info[i].vptr_free ? line->d.info[i].vptr - line->d.info[i].vptr_off : NULL;
            line->d.info[i].vptr = (uint8_t*) line->shared.s + off_new + line->d.info[i].vptr_off;
            off_new += line->d.info[i].vptr_len + line->d.info[i].vptr_off;
            if ( vptr_free )
            {
                free(vptr_free);
                line->d.info[i].vptr_free = 0;
            }
        }
    }

    if ( line->n_sample && line->n_fmt && (!line->indiv.l || line->d.indiv_dirty) )
    {
        // The genotype fields changed or are not present
        tmp.l = tmp.m = 0; tmp.s = NULL;
        int i, irm = -1;
        for (i=0; i<line->n_fmt; i++)
        {
            bcf_fmt_t *fmt = &line->d.fmt[i];
            if ( !fmt->p )
            {
                // marked for removal
                if ( irm < 0 ) irm = i;
                continue;
            }
            kputsn_(fmt->p - fmt->p_off, fmt->p_len + fmt->p_off, &tmp);
            if ( irm >=0 )
            {
                bcf_fmt_t tfmt = line->d.fmt[irm]; line->d.fmt[irm] = line->d.fmt[i]; line->d.fmt[i] = tfmt;
                while ( irm<=i && line->d.fmt[irm].p ) irm++;
            }

        }
        if ( irm>=0 ) line->n_fmt = irm;
        free(line->indiv.s);
        line->indiv = tmp;

        // Reallocated line->indiv.s block invalidated line->d.fmt[].p pointers
        size_t off_new = 0;
        for (i=0; i<line->n_fmt; i++)
        {
            uint8_t *p_free = line->d.fmt[i].p_free ? line->d.fmt[i].p - line->d.fmt[i].p_off : NULL;
            line->d.fmt[i].p = (uint8_t*) line->indiv.s + off_new + line->d.fmt[i].p_off;
            off_new += line->d.fmt[i].p_len + line->d.fmt[i].p_off;
            if ( p_free )
            {
                free(p_free);
                line->d.fmt[i].p_free = 0;
            }
        }
    }
    if ( !line->n_sample ) line->n_fmt = 0;
    line->d.shared_dirty = line->d.indiv_dirty = 0;
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %r8
leaq 0x20(%rdi), %rbp
movq 0x30(%rdi), %r13
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
cmpq $0x0, 0x20(%rdi)
movq %rdi, 0x8(%rsp)
je 0x30bb8
movl 0xb0(%r8), %ebx
testl %ebx, %ebx
je 0x311e9
testb $0x1, 0xbc(%r8)
movq %r13, %r14
jne 0x30b5d
movq %r8, %rdi
movl $0x1, %esi
callq 0x38183
movq 0x8(%rsp), %r8
movq 0x30(%r8), %r14
movl 0xb0(%r8), %ebx
testb $0x1, %bl
jne 0x30c0b
movslq 0xc0(%r8), %r15
cmpq $0x1, %r15
movq %r15, %rax
adcq $0x0, %rax
movq %rax, %r12
shrq %r12
xorl %ecx, %ecx
testq %r15, %r15
cmovsq %rcx, %r12
addq %rax, %r12
movq %r12, %rdi
callq 0x46a0
testq %rax, %rax
je 0x30cd8
movq %rax, 0x20(%rsp)
movq %r12, 0x18(%rsp)
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x43c0
jmp 0x30cd1
movq 0x10(%rbp), %rax
movq %rax, 0x20(%rsp)
movups (%rbp), %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x78(%r8), %r14
testq %r14, %r14
je 0x30c57
cmpb $0x2e, (%r14)
jne 0x30be4
cmpb $0x0, 0x1(%r14)
je 0x30c57
movq %r14, %rdi
callq 0x41c0
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movl %eax, %esi
movq %r14, %rdx
callq 0x32aea
movq 0x8(%rsp), %r8
movq (%r15), %rbx
jmp 0x30ded
movq 0x78(%r8), %r15
testq %r15, %r15
je 0x30caf
cmpb $0x2e, (%r15)
jne 0x30c29
cmpb $0x0, 0x1(%r15)
je 0x30caf
movq %r15, %rdi
callq 0x41c0
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movl %eax, %esi
movq %r15, %rdx
callq 0x32aea
movq (%r12), %r15
movq 0x8(%rsp), %rdx
movl 0xb0(%rdx), %ebx
jmp 0x30ce0
movq 0x10(%rsp), %rbx
leaq 0x1(%rbx), %rax
cmpq %rax, 0x18(%rsp)
jae 0x30dd7
movq %rax, %rcx
shrq $0x3e, %rcx
movq %rax, %rdx
shrq %rdx
xorl %r14d, %r14d
testq %rcx, %rcx
cmoveq %rdx, %r14
addq %rax, %r14
movq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x4860
testq %rax, %rax
je 0x3104e
movq %rax, 0x20(%rsp)
movq %r14, 0x18(%rsp)
movq 0x8(%rsp), %r8
jmp 0x30ddc
movl $0x1, %r15d
movl $0x1, %edi
callq 0x46a0
testq %rax, %rax
je 0x30cd8
movq %rax, 0x20(%rsp)
movq %r15, 0x18(%rsp)
movb $0x7, (%rax)
movq %r15, 0x10(%rsp)
jmp 0x30cdb
xorl %r15d, %r15d
movq 0x8(%rsp), %rdx
movslq 0xc0(%rdx), %rax
addq %rax, %r14
movl %r15d, 0xc0(%rdx)
testb $0x2, %bl
movq %r13, 0x28(%rsp)
jne 0x30d1a
movslq 0xc4(%rdx), %r12
movq %r15, %rbx
addq %r12, %rbx
jae 0x30d7f
callq 0x4050
movl $0x4b, (%rax)
jmp 0x30f31
cmpw $0x0, 0x1a(%rdx)
je 0x30f5c
xorl %ebx, %ebx
leaq 0x10(%rsp), %r12
movq 0x88(%rdx), %rax
movq (%rax,%rbx,8), %r13
movq %r13, %rdi
callq 0x41c0
movq %r12, %rdi
movl %eax, %esi
movq %r13, %rdx
callq 0x32aea
movq 0x8(%rsp), %rdx
incq %rbx
movq 0x18(%rdx), %rax
movl %eax, %ecx
shrl $0x10, %ecx
cmpq %rcx, %rbx
jb 0x30d2c
shrq $0x10, %rax
testw %ax, %ax
je 0x30f5c
cmpq $0x0, 0x8(%rdx)
je 0x30f44
jmp 0x30f5c
cmpq $0x1, %rbx
movq %rbx, %rax
adcq $0x0, %rax
cmpq %rax, 0x18(%rsp)
jae 0x30f19
movq %rbx, %rcx
shrq $0x3e, %rcx
movq %rax, %rdx
shrq %rdx
xorl %r13d, %r13d
testq %rcx, %rcx
cmoveq %rdx, %r13
addq %rax, %r13
movq 0x20(%rsp), %rdi
movq %r13, %rsi
callq 0x4860
testq %rax, %rax
je 0x30f31
movq %rax, %rdi
movq %rax, 0x20(%rsp)
movq %r13, 0x18(%rsp)
jmp 0x30f1e
movq 0x20(%rsp), %rax
movb $0x7, (%rax,%rbx)
movq 0x10(%rsp), %rbx
incq %rbx
movq %rbx, 0x10(%rsp)
movl %ebx, 0xc0(%r8)
cmpw $0x0, 0x1a(%r8)
je 0x30e62
xorl %r12d, %r12d
leaq 0x10(%rsp), %r14
movq 0x88(%r8), %rax
movq (%rax,%r12,8), %r15
movq %r15, %rdi
callq 0x41c0
movq %r14, %rdi
movl %eax, %esi
movq %r15, %rdx
callq 0x32aea
movq 0x8(%rsp), %r8
incq %r12
movq 0x18(%r8), %rax
movl %eax, %ecx
shrl $0x10, %ecx
cmpq %rcx, %r12
jb 0x30e04
shrq $0x10, %rax
testw %ax, %ax
je 0x30e62
cmpq $0x0, 0x8(%r8)
jne 0x30e62
movq 0x88(%r8), %rax
movq (%rax), %rdi
callq 0x41c0
movq 0x8(%rsp), %r8
movq %rax, 0x8(%r8)
movq 0x10(%rsp), %r15
movl %r15d, %eax
subl %ebx, %eax
movl %eax, 0xc4(%r8)
movl 0x68(%r8), %esi
testl %esi, %esi
je 0x30e9b
movq 0x70(%r8), %rdx
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0x32025
movq 0x8(%rsp), %r8
movq (%r14), %rcx
jmp 0x30efd
leaq 0x1(%r15), %rax
cmpq %rax, 0x18(%rsp)
jae 0x30ee6
movq %rax, %rcx
shrq $0x3e, %rcx
movq %rax, %rdx
shrq %rdx
xorl %r14d, %r14d
testq %rcx, %rcx
cmoveq %rdx, %r14
addq %rax, %r14
movq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x4860
movq 0x8(%rsp), %r8
movq %r15, %rcx
testq %rax, %rax
je 0x30efd
movq %rax, 0x20(%rsp)
movq %r14, 0x18(%rsp)
jmp 0x30eeb
movq 0x20(%rsp), %rax
movb $0x0, (%rax,%r15)
movq 0x10(%rsp), %rcx
incq %rcx
movq %rcx, 0x10(%rsp)
subl %r15d, %ecx
movl %ecx, 0xc8(%r8)
leaq 0x10(%rsp), %rsi
movq %r8, %rdi
callq 0x41740
jmp 0x311d2
movq 0x20(%rsp), %rdi
addq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x43c0
movq %rbx, 0x10(%rsp)
movq 0x8(%rsp), %rdx
cmpq $0x0, 0x8(%rdx)
jne 0x30f5c
cmpw $0x0, 0x1a(%rdx)
je 0x30f5c
movq 0x88(%rdx), %rax
movq (%rax), %rdi
callq 0x41c0
movq 0x8(%rsp), %rdx
movq %rax, 0x8(%rdx)
movslq 0xc4(%rdx), %rax
addq %rax, %r14
movq 0x10(%rsp), %r13
movl %r13d, %eax
subl %r15d, %eax
movl %eax, 0xc4(%rdx)
testb $0x2, 0xbc(%rdx)
je 0x310ed
testb $0x4, 0xb0(%rdx)
movl 0x68(%rdx), %esi
jne 0x30fbf
testl %esi, %esi
je 0x30fe6
movslq 0xc8(%rdx), %r15
movq %r13, %rbx
addq %r15, %rbx
jae 0x31058
callq 0x4050
movq 0x8(%rsp), %rdx
movl $0x4b, (%rax)
movq %r13, %rcx
jmp 0x310cd
testl %esi, %esi
je 0x30fe6
movq 0x70(%rdx), %rdx
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0x32025
movq 0x8(%rsp), %rdx
movq (%r15), %rcx
jmp 0x310cd
leaq 0x1(%r13), %rax
cmpq %rax, 0x18(%rsp)
jae 0x31035
movq %rax, %rcx
shrq $0x3e, %rcx
movq %rax, %rdx
shrq %rdx
xorl %r15d, %r15d
testq %rcx, %rcx
cmoveq %rdx, %r15
addq %rax, %r15
movq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x4860
movq 0x8(%rsp), %rdx
movq %r13, %rcx
testq %rax, %rax
je 0x310cd
movq %rax, 0x20(%rsp)
movq %r15, 0x18(%rsp)
jmp 0x3103a
movq 0x20(%rsp), %rax
movb $0x0, (%rax,%r13)
movq 0x10(%rsp), %rcx
incq %rcx
movq %rcx, 0x10(%rsp)
jmp 0x310cd
movq 0x8(%rsp), %r8
jmp 0x30ded
cmpq $0x1, %rbx
movq %rbx, %rax
adcq $0x0, %rax
cmpq %rax, 0x18(%rsp)
jae 0x310ad
movq %rbx, %rcx
shrq $0x3e, %rcx
movq %rax, %rdx
shrq %rdx
xorl %r12d, %r12d
testq %rcx, %rcx
cmoveq %rdx, %r12
addq %rax, %r12
movq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x4860
movq 0x8(%rsp), %rdx
movq %r13, %rcx
testq %rax, %rax
je 0x310cd
movq %rax, %rdi
movq %rax, 0x20(%rsp)
movq %r12, 0x18(%rsp)
jmp 0x310b2
movq 0x20(%rsp), %rdi
addq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x43c0
movq %rbx, 0x10(%rsp)
movq %rbx, %rcx
movq 0x8(%rsp), %rdx
movslq 0xc8(%rdx), %rax
addq %rax, %r14
subl %r13d, %ecx
movl %ecx, 0xc8(%rdx)
testb $0x4, 0xbc(%rdx)
jne 0x3117b
movq 0x28(%rsp), %r13
movq 0x20(%rdx), %rax
subq %r14, %rax
addq 0x30(%rdx), %rax
testl %eax, %eax
je 0x311c9
movslq %eax, %r15
movq 0x10(%rsp), %rdi
movq %rdi, %rax
addq %r15, %rax
jae 0x3112a
callq 0x4050
movq 0x8(%rsp), %rdx
movl $0x4b, (%rax)
jmp 0x311c9
cmpq $0x1, %rax
movq %rax, %rcx
adcq $0x0, %rcx
cmpq %rcx, 0x18(%rsp)
jae 0x311ac
shrq $0x3e, %rax
movq %rcx, %rdx
shrq %rdx
xorl %r12d, %r12d
testq %rax, %rax
cmoveq %rdx, %r12
addq %rcx, %r12
movq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x4860
movq 0x8(%rsp), %rdx
testq %rax, %rax
je 0x311c9
movq %rax, 0x20(%rsp)
movq %r12, 0x18(%rsp)
movq 0x10(%rsp), %rdi
jmp 0x311b1
testb $0x8, 0xb0(%rdx)
movq 0x28(%rsp), %r13
je 0x310f2
leaq 0x10(%rsp), %rsi
movq %rdx, %rdi
callq 0x41740
movq 0x8(%rsp), %rdx
movq 0x30(%rdx), %r14
addq 0x20(%rdx), %r14
jmp 0x310f2
movq 0x20(%rsp), %rax
addq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x43c0
addq %r15, 0x10(%rsp)
movq 0x8(%rsp), %rdx
movq 0x30(%rdx), %rdi
callq 0x45c0
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rbp)
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rsp), %r8
cmpq %r13, 0x30(%r8)
je 0x312ae
testb $0x4, 0xbc(%r8)
je 0x312ae
cmpw $0x0, 0x18(%r8)
je 0x312ae
movslq 0xc4(%r8), %rax
movslq 0xc0(%r8), %rcx
addq %rax, %rcx
movslq 0xc8(%r8), %rbx
addq %rcx, %rbx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x90(%r8), %rcx
movl 0x1c(%rcx,%r14), %eax
testl %eax, %eax
js 0x31256
movq 0x30(%r8), %rdx
addq %rbx, %rdx
addq %rax, %rdx
movq %rdx, 0x10(%rcx,%r14)
movl 0x18(%rcx,%r14), %ebp
addl %eax, %ebp
jmp 0x31298
movq 0x10(%rcx,%r14), %rdi
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq 0x30(%r8), %rdx
addq %rbx, %rdx
addq %rax, %rdx
movq %rdx, 0x10(%rcx,%r14)
movl 0x18(%rcx,%r14), %ebp
addl %eax, %ebp
testq %rdi, %rdi
je 0x31298
subq %rax, %rdi
callq 0x45c0
movq 0x8(%rsp), %r8
movq 0x90(%r8), %rax
andl $0x7fffffff, 0x1c(%rax,%r14) # imm = 0x7FFFFFFF
movl %ebp, %eax
addq %rax, %rbx
incq %r15
movzwl 0x18(%r8), %eax
addq $0x28, %r14
cmpq %rax, %r15
jb 0x3122e
movabsq $0xff00000000, %rdx     # imm = 0xFF00000000
movq 0x18(%r8), %rax
movq %rax, %rcx
shrq $0x28, %rcx
sete %cl
testq %rdx, %rax
sete %dl
orb %cl, %dl
jne 0x31598
cmpq $0x0, 0x38(%r8)
je 0x312e9
cmpl $0x0, 0xb4(%r8)
je 0x315ad
leaq 0x38(%r8), %rax
movq %rax, 0x30(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movl $0x1, %edx
xorl %ebx, %ebx
movq 0x98(%r8), %rax
movq %rbx, %r12
shlq $0x5, %r12
movq 0x10(%rax,%r12), %r14
testq %r14, %r14
je 0x3135c
addq %r12, %rax
movl 0x1c(%rax), %ebp
andl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
movl 0x18(%rax), %r15d
addl %ebp, %r15d
movq 0x10(%rsp), %rdi
movq %rdi, %rax
addq %r15, %rax
movl %edx, 0x28(%rsp)
jae 0x31368
callq 0x4050
movl $0x4b, (%rax)
jmp 0x313de
testl %r13d, %r13d
cmovsl %ebx, %r13d
jmp 0x3148f
cmpq $0x1, %rax
movq %rax, %rcx
adcq $0x0, %rcx
cmpq %rcx, 0x18(%rsp)
jae 0x313c3
movq %rcx, %rdx
shrq %rdx
movabsq $0x3fffffffffffffff, %rsi # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rsi, %rax
movl $0x0, %esi
cmovbeq %rdx, %rsi
addq %rcx, %rsi
movq 0x20(%rsp), %rdi
movq %rsi, 0x38(%rsp)
callq 0x4860
testq %rax, %rax
je 0x313de
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rcx
movq %rcx, 0x18(%rsp)
movq 0x10(%rsp), %rdi
jmp 0x313c8
movq 0x20(%rsp), %rax
addq %rax, %rdi
subq %rbp, %r14
movq %r14, %rsi
movq %r15, %rdx
callq 0x43c0
addq %r15, 0x10(%rsp)
testl %r13d, %r13d
js 0x31486
movq 0x8(%rsp), %r8
movq 0x98(%r8), %rdx
movl %r13d, %eax
movq %rax, %rcx
shlq $0x5, %rcx
movups (%rdx,%rcx), %xmm0
movups 0x10(%rdx,%rcx), %xmm1
movaps %xmm1, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movups (%rdx,%r12), %xmm0
movups 0x10(%rdx,%r12), %xmm1
movups %xmm0, (%rdx,%rcx)
movups %xmm1, 0x10(%rdx,%rcx)
movq 0x98(%r8), %rdx
movaps 0x40(%rsp), %xmm0
movaps 0x50(%rsp), %xmm1
movups %xmm1, 0x10(%rdx,%r12)
movups %xmm0, (%rdx,%r12)
cmpq %rax, %rbx
movabsq $0x100000000, %rsi      # imm = 0x100000000
jb 0x3148b
movq 0x98(%r8), %rdx
shlq $0x20, %rax
addq %rdx, %rcx
addq $0x10, %rcx
cmpq $0x0, (%rcx)
je 0x3148b
movq %rax, %rdx
sarq $0x20, %rdx
incl %r13d
addq %rsi, %rax
addq $0x20, %rcx
cmpq %rbx, %rdx
jl 0x31461
movl 0x28(%rsp), %edx
movl %edx, %r13d
jmp 0x3148f
movq 0x8(%rsp), %r8
movl 0x28(%rsp), %edx
incq %rbx
movq 0x18(%r8), %rax
movq %rax, %rcx
shrq $0x20, %rcx
movzbl %cl, %ecx
incl %edx
cmpq %rcx, %rbx
jb 0x31310
testl %r13d, %r13d
js 0x314cc
movzbl %r13b, %ecx
shlq $0x20, %rcx
movabsq $-0xff00000001, %rdx    # imm = 0xFFFFFF00FFFFFFFF
andq %rdx, %rax
orq %rcx, %rax
movq %rax, 0x18(%r8)
movq 0x48(%r8), %rdi
callq 0x45c0
movq 0x8(%rsp), %r8
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rax, 0x10(%rcx)
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rcx)
movq 0x18(%r8), %rax
movabsq $0xff00000000, %rcx     # imm = 0xFF00000000
testq %rcx, %rax
je 0x31598
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x98(%r8), %rcx
movl 0x1c(%rcx,%rbx), %eax
testl %eax, %eax
js 0x31535
movq 0x48(%r8), %rdx
addq %r15, %rdx
addq %rax, %rdx
movq %rdx, 0x10(%rcx,%rbx)
movl 0x18(%rcx,%rbx), %ebp
addl %eax, %ebp
jmp 0x31575
movq 0x10(%rcx,%rbx), %rdi
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq 0x48(%r8), %rdx
addq %r15, %rdx
addq %rax, %rdx
movq %rdx, 0x10(%rcx,%rbx)
movl 0x18(%rcx,%rbx), %ebp
addl %eax, %ebp
testq %rdi, %rdi
je 0x31575
subq %rax, %rdi
callq 0x45c0
movq 0x8(%rsp), %r8
movq 0x98(%r8), %rax
andl $0x7fffffff, 0x1c(%rax,%rbx) # imm = 0x7FFFFFFF
movl %ebp, %eax
addq %rax, %r15
incq %r14
movq 0x18(%r8), %rax
movq %rax, %rcx
shrq $0x20, %rcx
movzbl %cl, %ecx
addq $0x20, %rbx
cmpq %rcx, %r14
jb 0x3150f
movabsq $0x10000000000, %rcx    # imm = 0x10000000000
cmpq %rcx, %rax
jae 0x315ad
movl %eax, %eax
movq %rax, 0x18(%r8)
movq $0x0, 0xb0(%r8)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq