// File: /workspace/github_c_makefile_star2_O1/samtools[P]htslib/vcf_sweep.c
// Function: bcf_sweep_bwd
bcf1_t *bcf_sweep_bwd(bcf_sweep_t *sw)
{
    if ( sw->direction==SW_FWD ) sw_seek(sw, SW_BWD);
    if ( !sw->nrec ) sw_fill_buffer(sw);
    if ( !sw->nrec ) return NULL;
    return &sw->rec[ --sw->nrec ];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x18(%rdi)
jne 0x62f0
movl $0x1, 0x18(%rbx)
movl 0x5c(%rbx), %eax
movl %eax, 0x58(%rbx)
movl $0x0, 0x28(%rbx)
cmpl $0x0, 0x28(%rbx)
jne 0x64c0
movslq 0x58(%rbx), %rax
testq %rax, %rax
je 0x64c0
leaq -0x1(%rax), %rcx
movl %ecx, 0x58(%rbx)
movq (%rbx), %rdi
movq 0x50(%rbx), %rcx
movq -0x8(%rcx,%rax,8), %rsi
xorl %edx, %edx
callq 0x2a109
testl %eax, %eax
jne 0x64ed
movl $0x0, 0x28(%rbx)
movq 0x20(%rbx), %r12
leaq 0x48(%rbx), %r14
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
movq %r12, %rdx
callq 0xb996
testl %eax, %eax
jne 0x642a
leaq 0x20(%rbx), %r15
movl $0x1, %ebp
leaq 0xa3d6e(%rip), %r13     # 0xaa0cd
movq %r12, %rdi
movl $0x1, %esi
callq 0x13a25
movl 0x58(%rbx), %eax
incl %eax
cmpl 0x5c(%rbx), %eax
jge 0x63cb
movl 0x30(%rbx), %eax
cmpl 0x10(%r12), %eax
jne 0x63cb
movslq 0x34(%rbx), %rax
cmpq %rax, (%r12)
jne 0x63cb
movslq 0x38(%rbx), %rax
movzwl 0x1a(%r12), %ecx
cmpl %ecx, %eax
jne 0x63cb
movq 0x88(%r12), %rdx
movq -0x8(%rdx,%rax,8), %rcx
movq (%rdx), %rsi
movl %ecx, %eax
subl %esi, %eax
incl %eax
cmpb $0x0, (%rcx)
leaq 0x1(%rcx), %rcx
jne 0x63ac
cmpl %eax, 0x3c(%rbx)
jne 0x63cb
movq (%r14), %rdi
movslq %eax, %rdx
callq 0x44e0
testl %eax, %eax
je 0x642a
movl 0x28(%rbx), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x28(%rbx)
leal 0x2(%rax), %edi
movslq 0x2c(%rbx), %rsi
cmpl %esi, %edi
jle 0x6404
cmpl $-0x1, %eax
cmovll %ebp, %edi
movq %r13, (%rsp)
movl $0x4, %edx
movl $0xd0, %ecx
movl $0x1, %r8d
movq %r15, %r9
callq 0x308b8
movl %eax, 0x2c(%rbx)
movslq 0x28(%rbx), %rax
imulq $0xd0, %rax, %r12
addq 0x20(%rbx), %r12
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
movq %r12, %rdx
callq 0xb996
testl %eax, %eax
je 0x635f
movq 0x20(%rbx), %r15
movl 0x10(%r15), %eax
movl %eax, 0x30(%rbx)
movl (%r15), %eax
movl %eax, 0x34(%rbx)
movl 0x18(%r15), %eax
shrl $0x10, %eax
movl %eax, 0x38(%rbx)
movq 0x88(%r15), %rcx
movq -0x8(%rcx,%rax,8), %rax
movl (%rcx), %ecx
movl %eax, %r12d
subl %ecx, %r12d
incl %r12d
cmpb $0x0, (%rax)
leaq 0x1(%rax), %rax
jne 0x6459
movl %r12d, 0x3c(%rbx)
movslq 0x40(%rbx), %rsi
cmpl %esi, %r12d
jle 0x64ab
leal -0x1(%r12), %eax
cmpl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl $0x1, %eax
cmovbl %r12d, %eax
movslq %eax, %rdi
leaq 0xa3c4d(%rip), %rax     # 0xaa0dc
movq %rax, (%rsp)
movl $0x4, %edx
movl $0x1, %ecx
xorl %r8d, %r8d
movq %r14, %r9
callq 0x308b8
movl %eax, 0x40(%rbx)
movq (%r14), %rdi
movq 0x88(%r15), %rax
movq (%rax), %rsi
movslq %r12d, %rdx
callq 0x43d0
movslq 0x28(%rbx), %rax
testq %rax, %rax
je 0x64dc
decq %rax
movl %eax, 0x28(%rbx)
imulq $0xd0, %rax, %rax
addq 0x20(%rbx), %rax
jmp 0x64de
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa3ba4(%rip), %rdi     # 0xaa098
leaq 0xa3ba4(%rip), %rsi     # 0xaa09f
leaq 0xa3ba9(%rip), %rcx     # 0xaa0ab
movl $0x5e, %edx
callq 0x42f0