// File: /workspace/github_c_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq 0x18(%rdi), %rax
testw %ax, %ax
je 0x42845
movq %rsi, %r9
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
xorl %r14d, %r14d
movl $0x1, %r10d
xorl %r13d, %r13d
movq %rsi, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
movq 0x90(%rdi), %rax
leaq (%r14,%r14,4), %rcx
movq 0x10(%rax,%rcx,8), %r12
testq %r12, %r12
je 0x426c4
movl %r10d, 0x4(%rsp)
leaq (%rax,%rcx,8), %rax
movl 0x1c(%rax), %ebx
andl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
movl 0x18(%rax), %r15d
addl %ebx, %r15d
movq (%r9), %rax
addq %r15, %rax
jae 0x426d2
callq 0x4050
movq 0x8(%rsp), %r9
movl $0x4b, (%rax)
movl $0x1, %r15d
jmp 0x42746
testl %ebp, %ebp
cmovsl %r14d, %ebp
movl %r13d, %r15d
jmp 0x42815
cmpq $0x1, %rax
movq %rax, %rcx
adcq $0x0, %rcx
cmpq %rcx, 0x8(%r9)
jae 0x42725
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, 0x18(%rsp)
callq 0x4860
testq %rax, %rax
je 0x42830
movq 0x8(%rsp), %r9
movq %rax, 0x10(%r9)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%r9)
subq %rbx, %r12
movq 0x10(%r9), %rdi
addq (%r9), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x43c0
movq 0x8(%rsp), %r9
addq %r15, (%r9)
shrl $0x1f, %r15d
movq 0x10(%rsp), %rdi
movl 0x4(%rsp), %r10d
orl %r13d, %r15d
testl %ebp, %ebp
js 0x42815
movq 0x90(%rdi), %rcx
movl %ebp, %eax
leaq (%rax,%rax,4), %rdx
movq 0x20(%rcx,%rdx,8), %rsi
movq %rsi, 0x40(%rsp)
movups (%rcx,%rdx,8), %xmm0
movups 0x10(%rcx,%rdx,8), %xmm1
movaps %xmm1, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
leaq (,%r14,8), %rsi
leaq (%rsi,%rsi,4), %rsi
movups (%rcx,%rsi), %xmm0
movups 0x10(%rcx,%rsi), %xmm1
movups %xmm0, (%rcx,%rdx,8)
movups %xmm1, 0x10(%rcx,%rdx,8)
movq 0x20(%rcx,%rsi), %r8
movq %r8, 0x20(%rcx,%rdx,8)
movq 0x90(%rdi), %rcx
movq 0x40(%rsp), %rdx
movq %rdx, 0x20(%rcx,%rsi)
movaps 0x20(%rsp), %xmm0
movaps 0x30(%rsp), %xmm1
movups %xmm1, 0x10(%rcx,%rsi)
movups %xmm0, (%rcx,%rsi)
cmpq %rax, %r14
jb 0x42815
movq 0x90(%rdi), %rcx
leaq (%rax,%rax,4), %rdx
shlq $0x20, %rax
leaq (%rcx,%rdx,8), %rcx
addq $0x10, %rcx
movabsq $0x100000000, %rsi      # imm = 0x100000000
cmpq $0x0, (%rcx)
je 0x42815
movq %rax, %rdx
sarq $0x20, %rdx
incl %ebp
addq %rsi, %rax
addq $0x28, %rcx
cmpq %r14, %rdx
jl 0x427f7
movl %r10d, %ebp
incq %r14
movq 0x18(%rdi), %rax
movzwl %ax, %ecx
incl %r10d
movl %r15d, %r13d
cmpq %rcx, %r14
jb 0x42673
jmp 0x4284a
movl $0x1, %r15d
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r9
jmp 0x4274b
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %ebp, %ebp
js 0x4285e
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