// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/sam.c
// Function: bam_plp_push
int bam_plp_push(bam_plp_t iter, const bam1_t *b)
{
    if (iter->error) return -1;
    if (b) {
        if (b->core.tid < 0) { overlap_remove(iter, b); return 0; }
        // Skip only unmapped reads here, any additional filtering must be done in iter->func
        if (b->core.flag & BAM_FUNMAP) { overlap_remove(iter, b); return 0; }
        if (iter->tid == b->core.tid && iter->pos == b->core.pos && iter->mp->cnt > iter->maxcnt)
        {
            overlap_remove(iter, b);
            return 0;
        }
        bam_copy1(&iter->tail->b, b);
        overlap_push(iter, iter->tail);
#ifndef BAM_NO_ID
        iter->tail->b.id = iter->id++;
#endif
        iter->tail->beg = b->core.pos;
        iter->tail->end = bam_endpos(b);
        iter->tail->s = g_cstate_null; iter->tail->s.end = iter->tail->end - 1; // initialize cstate_t
        if (b->core.tid < iter->max_tid) {
            fprintf(stderr, "[bam_pileup_core] the input is not sorted (chromosomes out of order)\n");
            iter->error = 1;
            return -1;
        }
        if ((b->core.tid == iter->max_tid) && (iter->tail->beg < iter->max_pos)) {
            fprintf(stderr, "[bam_pileup_core] the input is not sorted (reads out of order)\n");
            iter->error = 1;
            return -1;
        }
        iter->max_tid = b->core.tid; iter->max_pos = iter->tail->beg;
        if (iter->tail->end > iter->pos || iter->tail->b.core.tid > iter->tid) {
            iter->tail->next = mp_alloc(iter->mp);
            iter->tail = iter->tail->next;
        }
    } else iter->is_eof = 1;
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpl $0x0, 0x38(%rdi)
jne 0x73ec2
movq %rsi, %r12
movq %rdi, %rbx
testq %rsi, %rsi
je 0x7390c
movl (%r12), %eax
testl %eax, %eax
js 0x738fb
testb $0x4, 0xc(%r12)
jne 0x738fb
cmpl %eax, 0x20(%rbx)
jne 0x73918
movl 0x24(%rbx), %eax
cmpl 0x4(%r12), %eax
jne 0x73918
movq (%rbx), %rax
movl (%rax), %eax
cmpl 0x3c(%rbx), %eax
jle 0x73918
movq 0x68(%rbx), %rdi
movq %r12, %rsi
callq 0x7372c
jmp 0x73ec0
movl $0x1, 0x30(%rbx)
jmp 0x73ec0
movq 0x10(%rbx), %rdi
movq %r12, %rsi
callq 0x6d2f8
movq 0x68(%rbx), %rdi
testq %rdi, %rdi
je 0x73e18
movq 0x10(%rbx), %rdx
movq 0x8(%rdx), %rsi
movabsq $0xa00000000, %rax      # imm = 0xA00000000
andq %rsi, %rax
movabsq $0x200000000, %rcx      # imm = 0x200000000
cmpq %rcx, %rax
jne 0x73e18
movl 0x10(%rdx), %r8d
movl 0x1c(%rdx), %eax
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
leal (%r8,%r8), %eax
cmpl %eax, %ecx
jge 0x73e18
movq %rbx, 0x50(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x28(%rdx), %rsi
movl (%rdi), %ecx
testl %ecx, %ecx
movq %rsi, 0x30(%rsp)
movq %rdi, 0x20(%rsp)
movq %r12, 0x58(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x28(%rsp)
movq %r8, 0x48(%rsp)
je 0x739d8
leal -0x1(%rcx), %r9d
movsbl (%rsi), %r13d
testl %r13d, %r13d
je 0x739e0
movb 0x1(%rsi), %al
testb %al, %al
je 0x739e3
leaq 0x2(%rsi), %rcx
movl %r13d, %edx
shll $0x5, %edx
subl %r13d, %edx
movsbl %al, %r13d
addl %edx, %r13d
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0x739bd
jmp 0x739e3
xorl %r12d, %r12d
jmp 0x73a63
xorl %r13d, %r13d
andl %r9d, %r13d
movq 0x10(%rdi), %rbx
movl $0x1, %r14d
movl %r13d, %r12d
movl %r12d, %eax
shrl $0x4, %eax
movl (%rbx,%rax,4), %ebp
leal (%r12,%r12), %r15d
andl $0x1e, %r15d
movl %ebp, %eax
movl %r15d, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x73a51
testb $0x1, %al
jne 0x73a41
movq 0x18(%rdi), %rax
movl %r12d, %ecx
movq (%rax,%rcx,8), %rdi
movq %r12, 0x38(%rsp)
movl %r9d, %r12d
callq 0x6a50
movl %r12d, %r9d
movq 0x38(%rsp), %r12
movq 0x20(%rsp), %rdi
movq 0x30(%rsp), %rsi
testl %eax, %eax
je 0x73a51
addl %r14d, %r12d
andl %r9d, %r12d
incl %r14d
cmpl %r13d, %r12d
jne 0x739f3
jmp 0x73a68
movl %r15d, %ecx
shrl %cl, %ebp
testb $0x3, %bpl
movq 0x28(%rsp), %rcx
cmovnel %ecx, %r12d
cmpl %ecx, %r12d
jne 0x73a92
movl 0x8(%rdi), %eax
cmpl 0xc(%rdi), %eax
jae 0x73c19
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x58(%rsp), %r12
movq 0x40(%rsp), %r9
movq 0x28(%rsp), %r8
movq 0x50(%rsp), %rbx
jmp 0x73c5e
movq 0x20(%rdi), %rax
movl %r12d, %ecx
movq (%rax,%rcx,8), %r13
movq 0x40(%rsp), %rax
movl 0x4(%rax), %r15d
movl 0x4(%r13), %ecx
movl %r15d, 0x20(%rsp)
movq %rcx, 0x28(%rsp)
subl %ecx, %r15d
js 0x73ba8
movabsq $0xffffffffffff, %r10   # imm = 0xFFFFFFFFFFFF
movq 0x8(%r13), %rsi
cmpq %r10, %rsi
jbe 0x73ba8
movl %esi, %edx
shrl $0x18, %edx
addq 0x28(%r13), %rdx
shrq $0x30, %rsi
leaq (%rdx,%rsi,4), %rsi
movq 0x10(%rsp), %rcx
movl %ecx, %edi
shrl $0x18, %edi
movq 0x30(%rsp), %rax
addq %rdi, %rax
movq %rcx, %rdi
shrq $0x30, %rdi
movq %rax, %r8
leaq (%rax,%rdi,4), %rax
movl 0x10(%r13), %edi
incl %edi
sarl %edi
movslq %edi, %rcx
addq %rsi, %rcx
movq %rcx, 0x70(%rsp)
movq 0x48(%rsp), %rcx
incl %ecx
sarl %ecx
movslq %ecx, %rcx
movq %rax, 0x30(%rsp)
addq %rax, %rcx
movq %rcx, 0x48(%rsp)
xorl %ebx, %ebx
xorl %r11d, %r11d
xorl %r9d, %r9d
movl (%rdx), %ebp
movl %ebp, %edi
andl $0xf, %edi
movl %ebp, %r14d
shrl $0x4, %r14d
cmpl $0x4, %edi
jne 0x73b51
addl %r14d, %r11d
jmp 0x73b9f
leal -0x5(%rdi), %eax
cmpl $0x2, %eax
jb 0x73b9f
cmpl $0x7, %edi
setne %al
testb $0x7, %bpl
setne %cl
testb %al, %cl
jne 0x73b81
movl %r15d, %edi
subl %r14d, %edi
js 0x73ee7
addl %r14d, %r11d
addl %r14d, %r9d
movl %edi, %r15d
jmp 0x73b9f
cmpl $0x1, %edi
je 0x73b4c
andl $0xe, %ebp
cmpl $0x2, %ebp
jne 0x74287
subl %r14d, %r15d
testl %r15d, %r15d
cmovlel %ebx, %r15d
addl %r14d, %r9d
addq $0x4, %rdx
cmpq %rsi, %rdx
jb 0x73b39
movq 0x50(%rsp), %rax
movq 0x68(%rax), %rax
cmpl %r12d, (%rax)
je 0x73be3
movq 0x10(%rax), %rdx
movl %r12d, %esi
shrl $0x4, %esi
movl (%rdx,%rsi,4), %edi
addl %r12d, %r12d
andl $0x1e, %r12d
movl %edi, %r8d
movl %r12d, %ecx
shrl %cl, %r8d
testb $0x3, %r8b
jne 0x73be3
btsl %r12d, %edi
movl %edi, (%rdx,%rsi,4)
decl 0x4(%rax)
movl 0x3c(%r13), %eax
decl %eax
cmpl 0x4c(%r13), %eax
jne 0x74268
movq %r13, %rdi
callq 0x6d440
movl %eax, 0x3c(%r13)
decl %eax
movl %eax, 0x4c(%r13)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x58(%rsp), %r12
movq 0x50(%rsp), %rbx
jmp 0x73e18
movl 0x4(%rdi), %eax
addl %eax, %eax
movq 0x28(%rsp), %rsi
cmpl %eax, %esi
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x58(%rsp), %r12
movq 0x50(%rsp), %rbx
jbe 0x73c3a
decl %esi
jmp 0x73c3c
incl %esi
callq 0x746e4
movq 0x20(%rsp), %rdi
movl (%rdi), %r8d
movl %r8d, %r10d
testl %eax, %eax
movq 0x40(%rsp), %r9
movq 0x30(%rsp), %rsi
js 0x73e09
leal -0x1(%r8), %r11d
movsbl (%rsi), %r15d
testl %r15d, %r15d
je 0x73c91
movb 0x1(%rsi), %al
testb %al, %al
je 0x73c94
leaq 0x2(%rsi), %rcx
movl %r15d, %edx
shll $0x5, %edx
subl %r15d, %edx
movsbl %al, %r15d
addl %edx, %r15d
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0x73c76
jmp 0x73c94
xorl %r15d, %r15d
andl %r11d, %r15d
movq 0x10(%rdi), %rdx
movl %r15d, %eax
shrl $0x4, %eax
movl (%rdx,%rax,4), %eax
leal (%r15,%r15), %ecx
shrl %cl, %eax
testb $0x2, %al
movq %rdx, 0x10(%rsp)
je 0x73cbb
movl %r15d, %r10d
jmp 0x73d9b
movl $0x1, %r14d
movl %r15d, %r13d
movq %r8, 0x28(%rsp)
movl %r8d, %r10d
movl %r11d, 0x48(%rsp)
movl %r13d, %eax
shrl $0x4, %eax
movl (%rdx,%rax,4), %ebp
leal (,%r13,2), %r12d
andl $0x1e, %r12d
movl %ebp, %eax
movl %r12d, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x73d61
testb $0x1, %al
jne 0x73d27
movq 0x18(%rdi), %rax
movl %r13d, %ecx
movq (%rax,%rcx,8), %rdi
movq %r10, 0x38(%rsp)
callq 0x6a50
movq 0x10(%rsp), %rdx
movl 0x48(%rsp), %r11d
movq 0x38(%rsp), %r10
movq 0x20(%rsp), %rdi
movq 0x30(%rsp), %rsi
testl %eax, %eax
je 0x73d61
btl %r12d, %ebp
cmovbl %r13d, %r10d
addl %r14d, %r13d
andl %r11d, %r13d
incl %r14d
cmpl %r15d, %r13d
jne 0x73cd1
movb $0x1, %al
movq 0x28(%rsp), %rdx
movl %edx, %ecx
cmpl %edx, %r10d
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x58(%rsp), %r12
movq 0x40(%rsp), %r9
movq 0x50(%rsp), %rbx
je 0x73d8c
jmp 0x73d9b
movl %r12d, %ecx
shrl %cl, %ebp
testb $0x2, %bpl
sete %al
movl %r10d, %ecx
movl %r13d, %r15d
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x58(%rsp), %r12
movq 0x40(%rsp), %r9
movq 0x28(%rsp), %rdx
movq 0x50(%rsp), %rbx
cmpl %edx, %ecx
cmovel %r15d, %ecx
testb %al, %al
cmovnel %r15d, %ecx
movl %ecx, %r10d
movl %r10d, %eax
shrl $0x4, %eax
movq 0x10(%rsp), %rcx
movl (%rcx,%rax,4), %edx
leal (%r10,%r10), %ecx
andl $0x1e, %ecx
shrl %cl, %edx
testb $0x2, %dl
jne 0x73ddc
testb $0x1, %dl
je 0x73e09
movq 0x18(%rdi), %rdx
movl %r10d, %r8d
movq %rsi, (%rdx,%r8,8)
movl $0x3, %edx
shll %cl, %edx
notl %edx
movq 0x10(%rdi), %rcx
andl %edx, (%rcx,%rax,4)
incl 0x4(%rdi)
jmp 0x73e09
movq 0x18(%rdi), %rdx
movl %r10d, %r8d
movq %rsi, (%rdx,%r8,8)
movl $0x3, %edx
shll %cl, %edx
notl %edx
movq 0x10(%rdi), %rcx
andl %edx, (%rcx,%rax,4)
movq 0x4(%rdi), %xmm0
pcmpeqd %xmm1, %xmm1
psubd %xmm1, %xmm0
movq %xmm0, 0x4(%rdi)
movq 0x68(%rbx), %rax
movq 0x20(%rax), %rax
movl %r10d, %ecx
movq %r9, (%rax,%rcx,8)
leaq 0x38(%rbx), %r15
movq 0x10(%rbx), %r14
movq 0x40(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x40(%rbx)
movq %rax, 0x30(%r14)
movl 0x4(%r12), %eax
movl %eax, 0x38(%r14)
movq %r12, %rdi
callq 0x6d440
movl %eax, 0x3c(%r14)
movups 0x26774(%rip), %xmm0    # 0x9a5c0
movups %xmm0, 0x40(%r14)
movq 0x10(%rbx), %r14
movl 0x3c(%r14), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x4c(%r14)
movl (%r12), %ecx
cmpl 0x28(%rbx), %ecx
jl 0x73ed3
movl 0x38(%r14), %edx
jne 0x73e74
cmpl 0x2c(%rbx), %edx
jl 0x73edd
movl %ecx, 0x28(%rbx)
movl %edx, 0x2c(%rbx)
cmpl 0x24(%rbx), %eax
jg 0x73e89
movl (%r14), %eax
xorl %ebp, %ebp
cmpl 0x20(%rbx), %eax
jle 0x73ec2
movq (%rbx), %rax
incl (%rax)
movslq 0x4(%rax), %rcx
testq %rcx, %rcx
je 0x73ea9
movq 0x10(%rax), %rdx
leaq -0x1(%rcx), %rsi
movl %esi, 0x4(%rax)
movq -0x8(%rdx,%rcx,8), %rax
jmp 0x73eb8
movl $0x1, %edi
movl $0x58, %esi
callq 0x6470
movq %rax, 0x50(%r14)
movq %rax, 0x10(%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0x80a8
jmp 0x73ec2
movq %r15, %rdi
callq 0x8080
jmp 0x73ec2
incq %r10
cmpq %r10, 0x10(%rsp)
jb 0x73ba8
addl %r15d, %r11d
addl %r15d, %r9d
xorl %ebx, %ebx
xorl %r14d, %r14d
movl $0x0, 0xc(%rsp)
movl $0x0, 0x10(%rsp)
movl (%r8), %ebp
movl %ebp, %edi
andl $0xf, %edi
movl %ebp, %r10d
shrl $0x4, %r10d
cmpl $0x4, %edi
jne 0x73f29
addl %r10d, %r14d
jmp 0x73f81
leal -0x5(%rdi), %eax
cmpl $0x2, %eax
jb 0x73f81
cmpl $0x7, %edi
setne %al
testb $0x7, %bpl
setne %cl
testb %al, %cl
jne 0x73f5b
movl 0x10(%rsp), %eax
movl %eax, %edi
subl %r10d, %edi
js 0x73f9b
addl %r10d, %r14d
addl %r10d, 0xc(%rsp)
movl %edi, 0x10(%rsp)
jmp 0x73f81
cmpl $0x1, %edi
je 0x73f24
andl $0xe, %ebp
cmpl $0x2, %ebp
jne 0x7428c
movl 0x10(%rsp), %eax
subl %r10d, %eax
testl %eax, %eax
cmovlel %ebx, %eax
movl %eax, 0x10(%rsp)
addl %r10d, 0xc(%rsp)
movq %r8, %rax
addq $0x4, %rax
movq %rax, %r8
cmpq 0x30(%rsp), %rax
jb 0x73f10
jmp 0x73ba8
movq %r12, 0x38(%rsp)
addl %eax, %r14d
movq %r14, 0x18(%rsp)
addl %eax, 0xc(%rsp)
movsd 0x265f4(%rip), %xmm0    # 0x9a5a8
testl %r9d, %r9d
js 0x7406b
movl 0x20(%rsp), %r14d
subl 0x28(%rsp), %r14d
movl %r9d, %r10d
cmpl %r14d, %r10d
jge 0x74068
cmpq %rsi, %rdx
movq 0x38(%rsp), %r12
jae 0x73ba8
movl (%rdx), %r9d
movl %r9d, %edi
andl $0xf, %edi
movl %r9d, %ebp
shrl $0x4, %ebp
cmpl $0x7, %edi
setne %al
testb $0x7, %r9b
setne %cl
testb %al, %cl
jne 0x7400a
decl %ebp
cmpl %ebp, %r15d
jge 0x7403e
jmp 0x7404f
andl $0xe, %r9d
cmpl $0x2, %r9d
jne 0x74019
addl %ebp, %r10d
jmp 0x7403e
cmpl $0x4, %edi
je 0x74023
cmpl $0x1, %edi
jne 0x7402d
addl %ebp, %r11d
movq 0x38(%rsp), %r12
jmp 0x7403e
leal -0x5(%rdi), %eax
cmpl $0x2, %eax
movq 0x38(%rsp), %r12
jae 0x74291
addq $0x4, %rdx
xorl %r15d, %r15d
cmpq %rsi, %rdx
jb 0x73fe1
jmp 0x73ba8
incl %r11d
incl %r15d
leal 0x1(%r10), %r9d
cmpl $-0x2, %r10d
movl %r9d, %r10d
jg 0x73fca
jmp 0x7406b
movl %r10d, %r9d
movq 0x28(%rsp), %rax
leal (%r9,%rax), %ecx
movl 0x20(%rsp), %eax
cmpl %ecx, %eax
movl %ecx, 0x68(%rsp)
cmovlel %ecx, %eax
movl %eax, 0x20(%rsp)
movq 0x40(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, 0x64(%rsp)
cmpl $0x0, 0xc(%rsp)
js 0x7417b
movl 0x20(%rsp), %eax
subl 0x64(%rsp), %eax
movl %eax, 0x6c(%rsp)
movl 0xc(%rsp), %eax
movl %eax, %r10d
cmpl 0x6c(%rsp), %r10d
jge 0x74176
cmpq 0x30(%rsp), %r8
movq 0x18(%rsp), %rcx
movq 0x38(%rsp), %r12
jae 0x73ba8
movq %rcx, 0x18(%rsp)
movl (%r8), %ebp
movl %ebp, %edi
andl $0xf, %edi
movl %ebp, %r14d
shrl $0x4, %r14d
cmpl $0x7, %edi
setne %al
testb $0x7, %bpl
setne %cl
testb %al, %cl
jne 0x74100
decl %r14d
cmpl %r14d, 0x10(%rsp)
jge 0x7410b
jmp 0x7414f
andl $0xe, %ebp
cmpl $0x2, %ebp
jne 0x74129
addl %r14d, %r10d
movq 0x18(%rsp), %rcx
movq %r8, %rax
addq $0x4, %rax
movl $0x0, 0x10(%rsp)
movq %rax, %r8
cmpq 0x30(%rsp), %rax
jmp 0x740c4
cmpl $0x4, %edi
je 0x74133
cmpl $0x1, %edi
jne 0x7413d
movq 0x18(%rsp), %rcx
addl %r14d, %ecx
jmp 0x74110
leal -0x5(%rdi), %eax
cmpl $0x2, %eax
movq 0x18(%rsp), %rcx
jb 0x74110
jmp 0x74296
movq 0x18(%rsp), %rax
incl %eax
movq %rax, 0x18(%rsp)
incl 0x10(%rsp)
leal 0x1(%r10), %eax
cmpl $-0x2, %r10d
movl %eax, 0xc(%rsp)
movl %eax, %r10d
jg 0x740af
jmp 0x7417b
movl %r10d, 0xc(%rsp)
movl 0x64(%rsp), %ecx
addl 0xc(%rsp), %ecx
movl 0x20(%rsp), %eax
cmpl %ecx, %eax
cmovlel %ecx, %eax
incl %eax
movl %eax, 0x20(%rsp)
cmpl %ecx, 0x68(%rsp)
jne 0x73fb4
movl %r11d, %eax
sarl %eax
cltq
movzbl (%rsi,%rax), %eax
leal (,%r11,4), %ecx
notb %cl
andb $0x4, %cl
shrl %cl, %eax
movq 0x18(%rsp), %r10
movl %r10d, %ecx
sarl %ecx
movslq %ecx, %rcx
movq 0x30(%rsp), %rdi
movzbl (%rdi,%rcx), %edi
leal (,%r10,4), %ecx
notb %cl
andb $0x4, %cl
shrl %cl, %edi
xorl %eax, %edi
movslq %r11d, %rax
movq 0x70(%rsp), %r10
leaq (%r10,%rax), %rcx
movzbl (%r10,%rax), %ebp
testb $0xf, %dil
je 0x74222
movslq 0x18(%rsp), %rax
movq 0x48(%rsp), %r10
leaq (%r10,%rax), %rdi
movb (%r10,%rax), %r10b
cmpb %r10b, %bpl
jae 0x74246
movzbl %r10b, %eax
cvtsi2sd %eax, %xmm1
mulsd %xmm0, %xmm1
cvttsd2si %xmm1, %eax
movb %al, (%rdi)
movq %rcx, %rdi
jmp 0x74257
movslq 0x18(%rsp), %rax
movq 0x48(%rsp), %r10
leaq (%r10,%rax), %rdi
movzbl (%r10,%rax), %eax
addl %ebp, %eax
movl $0xc8, %r10d
cmpl %r10d, %eax
cmovael %r10d, %eax
jmp 0x74255
xorps %xmm1, %xmm1
cvtsi2sd %ebp, %xmm1
mulsd %xmm0, %xmm1
cvttsd2si %xmm1, %eax
movb %al, (%rcx)
movb $0x0, (%rdi)
movl 0x4(%r13), %eax
movq %rax, 0x28(%rsp)
jmp 0x73fb4
leaq 0x2697a(%rip), %rdi     # 0x9abe9
leaq 0x26922(%rip), %rsi     # 0x9ab98
leaq 0x26981(%rip), %rcx     # 0x9abfe
movl $0x721, %edx            # imm = 0x721
callq 0x6460
callq 0x7f98
callq 0x7fd2
callq 0x800c
callq 0x8046