// File: /workspace/github_c_makefile_star2_O1/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 $0x58, %rsp
movq %rdi, %rbx
leaq 0x20(%rdi), %r13
movq 0x30(%rdi), %rbp
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
cmpq $0x0, 0x20(%rdi)
movq %rdi, 0x18(%rsp)
je 0x31d60
cmpl $0x0, 0xb0(%rbx)
je 0x32398
testb $0x1, 0xbc(%rbx)
jne 0x31d2b
movq %rbx, %rdi
movl $0x1, %esi
callq 0x38e9d
movq 0x30(%rbx), %r14
testb $0x1, 0xb0(%rbx)
jne 0x31e6c
movslq 0xc0(%rbx), %r15
movq (%rsp), %rax
addq %r15, %rax
jae 0x31fd0
callq 0x4050
movl $0x4b, (%rax)
jmp 0x3202d
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movups (%r13), %xmm0
movaps %xmm0, (%rsp)
movq 0x78(%rbx), %r14
testq %r14, %r14
je 0x31da5
leaq 0x86570(%rip), %rsi     # 0xb82f2
movq %r14, %rdi
callq 0x46e0
testl %eax, %eax
je 0x31da5
movq %r14, %rdi
callq 0x41c0
movq %rsp, %rdi
movl %eax, %esi
movq %r14, %rdx
callq 0x338fe
jmp 0x31dfa
movq (%rsp), %rax
incq %rax
cmpq %rax, 0x8(%rsp)
jae 0x31de9
movq %rax, %rcx
shrq $0x3e, %rcx
movq %rax, %rdx
shrq %rdx
xorl %r14d, %r14d
testq %rcx, %rcx
cmoveq %rdx, %r14
addq %rax, %r14
movq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x4860
testq %rax, %rax
je 0x31dfa
movq %rax, 0x10(%rsp)
movq %r14, 0x8(%rsp)
movq (%rsp), %rax
movq 0x10(%rsp), %rcx
movb $0x7, (%rcx,%rax)
incq (%rsp)
movq (%rsp), %rbx
movq 0x18(%rsp), %rax
movl %ebx, 0xc0(%rax)
cmpw $0x0, 0x1a(%rax)
je 0x31eaa
movq %rbp, 0x28(%rsp)
movq %r13, %rbp
xorl %r12d, %r12d
movq %rsp, %r14
movq 0x18(%rsp), %r13
movq 0x88(%r13), %rax
movq (%rax,%r12,8), %r15
movq %r15, %rdi
callq 0x41c0
movq %r14, %rdi
movl %eax, %esi
movq %r15, %rdx
callq 0x338fe
incq %r12
movq 0x18(%r13), %rax
movl %eax, %ecx
shrl $0x10, %ecx
cmpq %rcx, %r12
jb 0x31e27
shrq $0x10, %rax
testw %ax, %ax
sete %al
movq %rbp, %r13
movq 0x28(%rsp), %rbp
jmp 0x31eac
movq 0x78(%rbx), %r15
testq %r15, %r15
je 0x31f79
leaq 0x86472(%rip), %rsi     # 0xb82f2
movq %r15, %rdi
callq 0x46e0
testl %eax, %eax
je 0x31f79
movq %r15, %rdi
callq 0x41c0
movq %rsp, %rdi
movl %eax, %esi
movq %r15, %rdx
callq 0x338fe
jmp 0x3202d
movb $0x1, %al
testb %al, %al
movq 0x18(%rsp), %r12
jne 0x31ed2
cmpq $0x0, 0x8(%r12)
jne 0x31ed2
movq 0x88(%r12), %rax
movq (%rax), %rdi
callq 0x41c0
movq %rax, 0x8(%r12)
movq (%rsp), %r15
movl %r15d, %eax
subl %ebx, %eax
movl %eax, 0xc4(%r12)
movl 0x68(%r12), %esi
testl %esi, %esi
je 0x31f00
movq 0x70(%r12), %rdx
movq %rsp, %rdi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0x3321b
jmp 0x31f5c
leaq 0x1(%r15), %rax
cmpq %rax, 0x8(%rsp)
jae 0x31f46
movq %rax, %rcx
shrq $0x3e, %rcx
movq %rax, %rdx
shrq %rdx
xorl %r14d, %r14d
testq %rcx, %rcx
cmoveq %rdx, %r14
addq %rax, %r14
movq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x4860
testq %rax, %rax
movq 0x18(%rsp), %r12
je 0x31f5c
movq %rax, 0x10(%rsp)
movq %r14, 0x8(%rsp)
movq (%rsp), %rax
movq 0x10(%rsp), %rcx
movb $0x0, (%rcx,%rax)
incq (%rsp)
movq 0x18(%rsp), %r12
movq %rsp, %rsi
movl (%rsi), %eax
subl %r15d, %eax
movl %eax, 0xc8(%r12)
movq %r12, %rdi
callq 0x4263a
jmp 0x32381
movq (%rsp), %rax
incq %rax
cmpq %rax, 0x8(%rsp)
jae 0x31fbd
movq %rax, %rcx
shrq $0x3e, %rcx
movq %rax, %rdx
shrq %rdx
xorl %r15d, %r15d
testq %rcx, %rcx
cmoveq %rdx, %r15
addq %rax, %r15
movq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x4860
testq %rax, %rax
je 0x3202d
movq %rax, 0x10(%rsp)
movq %r15, 0x8(%rsp)
movq (%rsp), %rax
movq 0x10(%rsp), %rcx
movb $0x7, (%rcx,%rax)
incq (%rsp)
jmp 0x3202d
cmpq $0x1, %rax
movq %rax, %rcx
adcq $0x0, %rcx
cmpq %rcx, 0x8(%rsp)
jae 0x32015
shrq $0x3e, %rax
movq %rcx, %rdx
shrq %rdx
xorl %r12d, %r12d
testq %rax, %rax
cmoveq %rdx, %r12
addq %rcx, %r12
movq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x4860
testq %rax, %rax
je 0x3202d
movq %rax, 0x10(%rsp)
movq %r12, 0x8(%rsp)
movq 0x10(%rsp), %rdi
addq (%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x43c0
addq %r15, (%rsp)
movq %r13, 0x20(%rsp)
movq 0x18(%rsp), %rcx
movslq 0xc0(%rcx), %rax
addq %rax, %r14
movq (%rsp), %r13
movl %r13d, 0xc0(%rcx)
testb $0x2, 0xb0(%rcx)
jne 0x32074
movslq 0xc4(%rcx), %r15
movq %r13, %rax
addq %r15, %rax
jae 0x320d0
callq 0x4050
movl $0x4b, (%rax)
jmp 0x3212d
cmpw $0x0, 0x1a(%rcx)
je 0x32143
movq %rbp, 0x28(%rsp)
xorl %ebx, %ebx
movq %rsp, %r15
movq 0x18(%rsp), %rbp
movq 0x88(%rbp), %rax
movq (%rax,%rbx,8), %r12
movq %r12, %rdi
callq 0x41c0
movq %r15, %rdi
movl %eax, %esi
movq %r12, %rdx
callq 0x338fe
incq %rbx
movq 0x18(%rbp), %rax
movl %eax, %ecx
shrl $0x10, %ecx
cmpq %rcx, %rbx
jb 0x3208e
shrq $0x10, %rax
testw %ax, %ax
sete %al
movq 0x28(%rsp), %rbp
jmp 0x32145
cmpq $0x1, %rax
movq %rax, %rcx
adcq $0x0, %rcx
cmpq %rcx, 0x8(%rsp)
jae 0x32115
shrq $0x3e, %rax
movq %rcx, %rdx
shrq %rdx
xorl %r12d, %r12d
testq %rax, %rax
cmoveq %rdx, %r12
addq %rcx, %r12
movq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x4860
testq %rax, %rax
je 0x3212d
movq %rax, 0x10(%rsp)
movq %r12, 0x8(%rsp)
movq 0x10(%rsp), %rdi
addq (%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x43c0
addq %r15, (%rsp)
movq 0x18(%rsp), %r15
cmpq $0x0, 0x8(%r15)
jne 0x32168
cmpw $0x0, 0x1a(%r15)
jne 0x32155
jmp 0x32168
movb $0x1, %al
testb %al, %al
movq 0x18(%rsp), %r15
jne 0x32168
cmpq $0x0, 0x8(%r15)
jne 0x32168
movq 0x88(%r15), %rax
movq (%rax), %rdi
callq 0x41c0
movq %rax, 0x8(%r15)
movslq 0xc4(%r15), %rax
addq %rax, %r14
movq (%rsp), %rbx
movl %ebx, %eax
subl %r13d, %eax
movl %eax, 0xc4(%r15)
testb $0x2, 0xbc(%r15)
jne 0x32196
movq 0x20(%rsp), %r13
jmp 0x322e9
testb $0x4, 0xb0(%r15)
movl 0x68(%r15), %esi
movq 0x20(%rsp), %r13
jne 0x321d5
testl %esi, %esi
je 0x321f4
movq 0x18(%rsp), %rax
movslq 0xc8(%rax), %r15
movq %rbx, %rax
addq %r15, %rax
jae 0x32248
callq 0x4050
movl $0x4b, (%rax)
jmp 0x322a5
testl %esi, %esi
je 0x321f4
movq 0x18(%rsp), %rax
movq 0x70(%rax), %rdx
movq %rsp, %rdi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0x3321b
jmp 0x322a5
leaq 0x1(%rbx), %rax
cmpq %rax, 0x8(%rsp)
jae 0x32235
movq %rax, %rcx
shrq $0x3e, %rcx
movq %rax, %rdx
shrq %rdx
xorl %r15d, %r15d
testq %rcx, %rcx
cmoveq %rdx, %r15
addq %rax, %r15
movq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x4860
testq %rax, %rax
je 0x322a5
movq %rax, 0x10(%rsp)
movq %r15, 0x8(%rsp)
movq (%rsp), %rax
movq 0x10(%rsp), %rcx
movb $0x0, (%rcx,%rax)
incq (%rsp)
jmp 0x322a5
cmpq $0x1, %rax
movq %rax, %rcx
adcq $0x0, %rcx
cmpq %rcx, 0x8(%rsp)
jae 0x3228d
shrq $0x3e, %rax
movq %rcx, %rdx
shrq %rdx
xorl %r12d, %r12d
testq %rax, %rax
cmoveq %rdx, %r12
addq %rcx, %r12
movq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x4860
testq %rax, %rax
je 0x322a5
movq %rax, 0x10(%rsp)
movq %r12, 0x8(%rsp)
movq 0x10(%rsp), %rdi
addq (%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x43c0
addq %r15, (%rsp)
movq 0x18(%rsp), %rcx
movslq 0xc8(%rcx), %rax
addq %rax, %r14
movl (%rsp), %eax
subl %ebx, %eax
movl %eax, 0xc8(%rcx)
testb $0x4, 0xbc(%rcx)
je 0x322e9
testb $0x8, 0xb0(%rcx)
je 0x322e9
movq %rsp, %rsi
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x4263a
movq 0x30(%rbx), %r14
addq 0x20(%rbx), %r14
movq 0x18(%rsp), %rcx
movq 0x20(%rcx), %rax
subq %r14, %rax
addq 0x30(%rcx), %rax
testl %eax, %eax
je 0x32373
movslq %eax, %r15
movq (%rsp), %rax
addq %r15, %rax
jae 0x32316
callq 0x4050
movl $0x4b, (%rax)
jmp 0x32373
cmpq $0x1, %rax
movq %rax, %rcx
adcq $0x0, %rcx
cmpq %rcx, 0x8(%rsp)
jae 0x3235b
shrq $0x3e, %rax
movq %rcx, %rdx
shrq %rdx
xorl %r12d, %r12d
testq %rax, %rax
cmoveq %rdx, %r12
addq %rcx, %r12
movq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x4860
testq %rax, %rax
je 0x32373
movq %rax, 0x10(%rsp)
movq %r12, 0x8(%rsp)
movq 0x10(%rsp), %rdi
addq (%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x43c0
addq %r15, (%rsp)
movq 0x18(%rsp), %rax
movq 0x30(%rax), %rdi
callq 0x45c0
movq 0x10(%rsp), %rax
movq %rax, 0x10(%r13)
movaps (%rsp), %xmm0
movups %xmm0, (%r13)
movq 0x18(%rsp), %rbx
cmpq %rbp, 0x30(%rbx)
movq %rbx, %rbp
je 0x3244c
testb $0x4, 0xbc(%rbp)
je 0x3244c
cmpw $0x0, 0x18(%rbp)
je 0x3244c
movslq 0xc4(%rbp), %rax
movslq 0xc0(%rbp), %rcx
addq %rax, %rcx
movslq 0xc8(%rbp), %rbx
addq %rcx, %rbx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x90(%rbp), %rax
movl 0x1c(%rax,%r14), %r12d
testl %r12d, %r12d
js 0x323f3
xorl %edi, %edi
jmp 0x32404
movq 0x10(%rax,%r14), %rdi
movl %r12d, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
subq %rcx, %rdi
movq 0x30(%rbp), %rcx
addq %rbx, %rcx
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
addq %r12, %rcx
movq %rcx, 0x10(%rax,%r14)
addl 0x18(%rax,%r14), %r12d
testq %rdi, %rdi
je 0x32439
callq 0x45c0
movq 0x90(%rbp), %rax
andl $0x7fffffff, 0x1c(%rax,%r14) # imm = 0x7FFFFFFF
addq %r12, %rbx
incq %r15
movzwl 0x18(%rbp), %eax
addq $0x28, %r14
cmpq %rax, %r15
jb 0x323de
movabsq $0x10000000000, %r13    # imm = 0x10000000000
movabsq $0xff00000000, %rdx     # imm = 0xFF00000000
movq 0x18(%rbp), %rax
movq %rax, %rcx
shrq $0x28, %rcx
sete %cl
testq %rdx, %rax
sete %al
orb %cl, %al
jne 0x3271b
cmpq $0x0, 0x38(%rbp)
je 0x32490
cmpl $0x0, 0xb4(%rbp)
je 0x3271b
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x18(%rbp), %rax
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
testq %rdx, %rax
je 0x3264e
movl $0x1, %edx
xorl %ebx, %ebx
movq 0x98(%rbp), %rax
movq %rbx, %r12
shlq $0x5, %r12
movq 0x10(%rax,%r12), %r14
testq %r14, %r14
je 0x324ff
movl %edx, 0x20(%rsp)
addq %r12, %rax
movl 0x1c(%rax), %ebp
andl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
movl 0x18(%rax), %r15d
addl %ebp, %r15d
movq (%rsp), %rax
addq %r15, %rax
jae 0x3250b
callq 0x4050
movl $0x4b, (%rax)
jmp 0x3257a
testl %r13d, %r13d
cmovsl %ebx, %r13d
jmp 0x32632
cmpq $0x1, %rax
movq %rax, %rcx
adcq $0x0, %rcx
cmpq %rcx, 0x8(%rsp)
jae 0x3255f
movq %rcx, %rdx
shrq %rdx
movabsq $0x3fffffffffffffff, %rsi # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rsi, %rax
movl $0x0, %esi
cmovbeq %rdx, %rsi
addq %rcx, %rsi
movq 0x10(%rsp), %rdi
movq %rsi, 0x28(%rsp)
callq 0x4860
testq %rax, %rax
je 0x3257a
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
subq %rbp, %r14
movq 0x10(%rsp), %rdi
addq (%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x43c0
addq %r15, (%rsp)
testl %r13d, %r13d
movabsq $0x100000000, %rsi      # imm = 0x100000000
js 0x32629
movq 0x18(%rsp), %rbp
movq 0x98(%rbp), %rax
movl %r13d, %ecx
movq %rcx, %rdx
shlq $0x5, %rdx
movups (%rax,%rdx), %xmm0
movups 0x10(%rax,%rdx), %xmm1
movaps %xmm1, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movups (%rax,%r12), %xmm0
movups 0x10(%rax,%r12), %xmm1
movups %xmm0, (%rax,%rdx)
movups %xmm1, 0x10(%rax,%rdx)
movq 0x98(%rbp), %rax
movaps 0x30(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movups %xmm1, 0x10(%rax,%r12)
movups %xmm0, (%rax,%r12)
cmpq %rcx, %rbx
jb 0x3262e
movq 0x98(%rbp), %rdx
movq %rcx, %rax
shlq $0x20, %rax
shlq $0x5, %rcx
addq %rdx, %rcx
addq $0x10, %rcx
cmpq $0x0, (%rcx)
je 0x3262e
movq %rax, %rdx
sarq $0x20, %rdx
incl %r13d
addq %rsi, %rax
addq $0x20, %rcx
cmpq %rbx, %rdx
jl 0x32604
movl 0x20(%rsp), %edx
movl %edx, %r13d
jmp 0x32632
movq 0x18(%rsp), %rbp
movl 0x20(%rsp), %edx
incq %rbx
movq 0x18(%rbp), %rax
movq %rax, %rcx
shrq $0x20, %rcx
movzbl %cl, %ecx
incl %edx
cmpq %rcx, %rbx
jb 0x324ba
leaq 0x38(%rbp), %rbx
testl %r13d, %r13d
js 0x32673
movzbl %r13b, %ecx
shlq $0x20, %rcx
movabsq $-0xff00000001, %rdx    # imm = 0xFFFFFF00FFFFFFFF
andq %rdx, %rax
orq %rcx, %rax
movq %rax, 0x18(%rbp)
movq 0x48(%rbp), %rdi
callq 0x45c0
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rbx)
movaps (%rsp), %xmm0
movups %xmm0, (%rbx)
movabsq $0xff00000000, %rax     # imm = 0xFF00000000
testq %rax, 0x18(%rbp)
movabsq $0x10000000000, %r13    # imm = 0x10000000000
je 0x3271b
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x98(%rbp), %rax
movl 0x1c(%rax,%rbx), %r12d
testl %r12d, %r12d
js 0x326c3
xorl %edi, %edi
jmp 0x326d4
movq 0x10(%rax,%rbx), %rdi
movl %r12d, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
subq %rcx, %rdi
movq 0x48(%rbp), %rcx
addq %r15, %rcx
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
addq %r12, %rcx
movq %rcx, 0x10(%rax,%rbx)
addl 0x18(%rax,%rbx), %r12d
testq %rdi, %rdi
je 0x32708
callq 0x45c0
movq 0x98(%rbp), %rax
andl $0x7fffffff, 0x1c(%rax,%rbx) # imm = 0x7FFFFFFF
addq %r12, %r15
incq %r14
movzbl 0x1c(%rbp), %eax
addq $0x20, %rbx
cmpq %rax, %r14
jb 0x326ae
movq 0x18(%rbp), %rax
cmpq %r13, %rax
jae 0x3272a
movl %eax, %eax
movq %rax, 0x18(%rbp)
movq $0x0, 0xb0(%rbp)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq