// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/vcf.c
// Function: bcf1_sync_info
static inline int bcf1_sync_info(bcf1_t *line, kstring_t *str)
{
    // pairs of typed vectors
    int i, irm = -1, e = 0;
    for (i=0; i<line->n_info; i++)
    {
        bcf_info_t *info = &line->d.info[i];
        if ( !info->vptr )
        {
            // marked for removal
            if ( irm < 0 ) irm = i;
            continue;
        }
        e |= kputsn_(info->vptr - info->vptr_off, info->vptr_len + info->vptr_off, str) < 0;
        if ( irm >=0 )
        {
            bcf_info_t tmp = line->d.info[irm]; line->d.info[irm] = line->d.info[i]; line->d.info[i] = tmp;
            while ( irm<=i && line->d.info[irm].vptr ) irm++;
        }
    }
    if ( irm>=0 ) line->n_info = irm;
    return e == 0 ? 0 : -1;
}

// Assembly:
cmpw $0x0, 0x18(%rdi)
je 0x41968
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r9
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
xorl %r14d, %r14d
movl $0x1, %edx
xorl %r13d, %r13d
movq %rdi, 0x18(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x90(%rdi), %rax
leaq (%r14,%r14,4), %rcx
movq 0x10(%rax,%rcx,8), %r12
testq %r12, %r12
je 0x417ca
leaq (%rax,%rcx,8), %rax
movl 0x1c(%rax), %ebx
andl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
movl 0x18(%rax), %r15d
addl %ebx, %r15d
movq (%r9), %rdi
movq %rdi, %rax
addq %r15, %rax
movl %edx, 0x4(%rsp)
jae 0x417d8
movq %r9, %rbx
callq 0x4050
movq %rbx, %r9
movl $0x4b, (%rax)
movl $0x1, %r15d
jmp 0x41851
testl %ebp, %ebp
cmovsl %r14d, %ebp
movl %r13d, %r15d
jmp 0x418dc
cmpq $0x1, %rax
movq %rax, %rcx
adcq $0x0, %rcx
cmpq %rcx, 0x8(%r9)
jae 0x41830
shrq $0x3e, %rax
movq %rcx, %rdx
shrq %rdx
testq %rax, %rax
movl $0x0, %esi
cmoveq %rdx, %rsi
addq %rcx, %rsi
movq 0x10(%r9), %rdi
movq %rsi, 0x10(%rsp)
callq 0x4860
testq %rax, %rax
je 0x41936
movq 0x8(%rsp), %rcx
movq %rax, 0x10(%rcx)
movq 0x10(%rsp), %rdx
movq %rdx, 0x8(%rcx)
movq (%rcx), %rdi
jmp 0x41834
movq 0x10(%r9), %rax
addq %rax, %rdi
subq %rbx, %r12
movq %r12, %rsi
movq %r15, %rdx
callq 0x43c0
movq 0x8(%rsp), %r9
addq %r15, (%r9)
shrl $0x1f, %r15d
orl %r13d, %r15d
testl %ebp, %ebp
movq 0x18(%rsp), %rdi
js 0x418d8
movq 0x90(%rdi), %rdx
movl %ebp, %eax
leaq (%rax,%rax,4), %rcx
movq 0x20(%rdx,%rcx,8), %rsi
movq %rsi, 0x40(%rsp)
movups (%rdx,%rcx,8), %xmm0
movups 0x10(%rdx,%rcx,8), %xmm1
movaps %xmm1, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
leaq (,%r14,8), %rsi
leaq (%rsi,%rsi,4), %rsi
movups (%rdx,%rsi), %xmm0
movups 0x10(%rdx,%rsi), %xmm1
movups %xmm0, (%rdx,%rcx,8)
movups %xmm1, 0x10(%rdx,%rcx,8)
movq 0x20(%rdx,%rsi), %r8
movq %r8, 0x20(%rdx,%rcx,8)
movq 0x90(%rdi), %rdx
movq 0x40(%rsp), %r8
movq %r8, 0x20(%rdx,%rsi)
movaps 0x20(%rsp), %xmm0
movaps 0x30(%rsp), %xmm1
movups %xmm1, 0x10(%rdx,%rsi)
movups %xmm0, (%rdx,%rsi)
cmpq %rax, %r14
jae 0x418f6
movl 0x4(%rsp), %edx
incq %r14
movq 0x18(%rdi), %rax
movzwl %ax, %ecx
incl %edx
movl %r15d, %r13d
cmpq %rcx, %r14
jb 0x41776
jmp 0x41946
movq 0x90(%rdi), %rdx
shlq $0x20, %rax
leaq (%rdx,%rcx,8), %rcx
addq $0x10, %rcx
movabsq $0x100000000, %rsi      # imm = 0x100000000
cmpq $0x0, (%rcx)
je 0x418d8
movq %rax, %rdx
sarq $0x20, %rdx
incl %ebp
addq %rsi, %rax
addq $0x28, %rcx
cmpq %r14, %rdx
jl 0x41913
movl 0x4(%rsp), %edx
movl %edx, %ebp
jmp 0x418dc
movl $0x1, %r15d
movq 0x8(%rsp), %r9
jmp 0x41851
testl %ebp, %ebp
js 0x4195a
movzwl %bp, %ecx
andq $-0x10000, %rax         # imm = 0xFFFF0000
orq %rcx, %rax
movq %rax, 0x18(%rdi)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq