// File: /workspace/github_c_makefile_star2_O1/samtools[P]htslib/sam.c
// Function: overlap_push
static int overlap_push(bam_plp_t iter, lbnode_t *node)
{
    if ( !iter->overlaps ) return 0;

    // mapped mates and paired reads only
    if ( node->b.core.flag&BAM_FMUNMAP || !(node->b.core.flag&BAM_FPROPER_PAIR) ) return 0;

    // no overlap possible, unless some wild cigar
    if ( (node->b.core.mtid >= 0 && node->b.core.tid != node->b.core.mtid)
         || (llabs(node->b.core.isize) >= 2*node->b.core.l_qseq
         && node->b.core.mpos >= node->end) // for those wild cigars
       ) return 0;

    khiter_t kitr = kh_get(olap_hash, iter->overlaps, bam_get_qname(&node->b));
    if ( kitr==kh_end(iter->overlaps) )
    {
        // Only add reads where the mate is still to arrive
        if (node->b.core.mpos >= node->b.core.pos ||
            ((node->b.core.flag & BAM_FPAIRED) && node->b.core.mpos == -1)) {
            int ret;
            kitr = kh_put(olap_hash, iter->overlaps, bam_get_qname(&node->b), &ret);
            if (ret < 0) return -1;
            kh_value(iter->overlaps, kitr) = node;
        }
    }
    else
    {
        lbnode_t *a = kh_value(iter->overlaps, kitr);
        int err = tweak_overlap_quality(&a->b, &node->b);
        kh_del(olap_hash, iter->overlaps, kitr);
        assert(a->end-1 == a->s.end);
        return err;
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq 0x68(%rdi), %r8
xorl %eax, %eax
testq %r8, %r8
je 0x32595
movq %rsi, %r14
movq %rdi, %rbx
movzwl 0x10(%rsi), %edi
movl %edi, %ecx
andl $0xa, %ecx
cmpw $0x2, %cx
jne 0x32595
movl 0x1c(%r14), %ecx
testl %ecx, %ecx
js 0x315e4
cmpl %ecx, 0x8(%r14)
jne 0x32595
movq 0x28(%r14), %rcx
movq %rcx, %rdx
negq %rdx
cmovsq %rcx, %rdx
movslq 0x18(%r14), %r15
leaq (%r15,%r15), %rcx
cmpq %rcx, %rdx
jl 0x3160d
movq 0x20(%r14), %rcx
cmpq 0x58(%r14), %rcx
jge 0x32595
movq 0x38(%r14), %r9
movl (%r8), %esi
testl %esi, %esi
movq %r9, 0x18(%rsp)
movq %rbx, 0x78(%rsp)
movq %r14, 0x30(%rsp)
je 0x31662
leal -0x1(%rsi), %r13d
movb (%r9), %cl
testb %cl, %cl
movq %r15, 0x48(%rsp)
movl %edi, 0x20(%rsp)
movq %rsi, 0x8(%rsp)
je 0x3166a
leaq 0x1(%r9), %rax
movl $0x811c9dc5, %r14d      # imm = 0x811C9DC5
movzbl %cl, %ecx
xorl %r14d, %ecx
imull $0x1000193, %ecx, %r14d # imm = 0x1000193
movb (%rax), %cl
incq %rax
testb %cl, %cl
jne 0x3164a
jmp 0x31670
xorl %r10d, %r10d
jmp 0x31711
movl $0x811c9dc5, %r14d      # imm = 0x811C9DC5
andl %r13d, %r14d
movq 0x10(%r8), %rsi
movl $0x1, %r12d
movl %r14d, %r10d
movq %r8, (%rsp)
movq %rsi, 0x38(%rsp)
movl %r10d, %eax
shrl $0x4, %eax
movl (%rsi,%rax,4), %r15d
leal (%r10,%r10), %ebx
andl $0x1e, %ebx
movl %r15d, %eax
movl %ebx, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x316ec
testb $0x1, %al
jne 0x316d4
movq 0x18(%r8), %rax
movl %r10d, %ecx
movq (%rax,%rcx,8), %rdi
movq %r9, %rsi
movq %r10, %rbp
callq 0x46c0
movq 0x38(%rsp), %rsi
movq (%rsp), %r8
movq %rbp, %r10
movq 0x18(%rsp), %r9
testl %eax, %eax
je 0x316ec
addl %r12d, %r10d
andl %r13d, %r10d
incl %r12d
cmpl %r14d, %r10d
jne 0x31689
movq 0x8(%rsp), %rsi
movl %esi, %r10d
jmp 0x316fe
movl %ebx, %ecx
shrl %cl, %r15d
testb $0x3, %r15b
movq 0x8(%rsp), %rsi
cmovnel %esi, %r10d
movq 0x78(%rsp), %rbx
movq 0x30(%rsp), %r14
movq 0x48(%rsp), %r15
movl 0x20(%rsp), %edi
cmpl %esi, %r10d
jne 0x3175a
movq 0x20(%r14), %rax
cmpq (%r14), %rax
jge 0x31737
testb $0x1, %dil
sete %cl
cmpq $-0x1, %rax
setne %dl
xorl %eax, %eax
orb %cl, %dl
jne 0x32595
movl 0x8(%r8), %eax
cmpl 0xc(%r8), %eax
jb 0x31b35
movl 0x4(%r8), %eax
addl %eax, %eax
cmpl %eax, %esi
jbe 0x31b18
decl %esi
jmp 0x31b1a
movq 0x20(%r8), %rax
movl %r10d, %ecx
movq (%rax,%rcx,8), %rax
movzwl 0x12(%rax), %ebx
addq 0x38(%rax), %rbx
movl 0x14(%rax), %ebp
movl 0x18(%rax), %ecx
movl %ecx, (%rsp)
leaq (%rbx,%rbp,4), %r11
movzwl 0x12(%r14), %ecx
movq %rcx, 0x28(%rsp)
movl 0x14(%r14), %ecx
movq %rcx, 0x38(%rsp)
movq (%r14), %r13
movq %r13, 0x20(%rsp)
movq %rax, 0x40(%rsp)
subq (%rax), %r13
movq %r10, 0x68(%rsp)
movq %r11, 0x60(%rsp)
movq %rbx, 0x80(%rsp)
js 0x318dd
movq $0x0, 0x10(%rsp)
xorl %r8d, %r8d
xorl %r12d, %r12d
cmpq %r11, %rbx
jae 0x318ee
movl (%rbx), %edx
movl %edx, %ecx
andl $0xf, %ecx
movl %edx, %eax
shrl $0x4, %eax
cmpl $0x4, %ecx
jne 0x317e7
addq $0x4, %rbx
addq %rax, %r8
jmp 0x317f3
leal -0x5(%rcx), %esi
cmpl $0x1, %esi
ja 0x31809
addq $0x4, %rbx
movb $0x1, %r14b
movq $0x0, 0x10(%rsp)
testb %r14b, %r14b
jne 0x317c4
jmp 0x318fd
cmpl $0x7, %ecx
setne %sil
testb $0x7, %dl
setne %dil
testb %sil, %dil
jne 0x31841
movl %eax, %ecx
movq %r13, %rax
subq %rcx, %rax
js 0x31870
addq $0x4, %rbx
addq %rcx, %r8
addq %rcx, %r12
movb $0x1, %r14b
movq $0x0, 0x10(%rsp)
movq %rax, %r13
jmp 0x317ff
cmpl $0x1, %ecx
jne 0x3184e
addq $0x4, %rbx
movl %eax, %eax
jmp 0x317e2
andl $0xe, %edx
cmpl $0x2, %edx
jne 0x3188e
movl %eax, %eax
subq %rax, %r13
testq %r13, %r13
movl $0x0, %ecx
cmovleq %rcx, %r13
addq $0x4, %rbx
addq %rax, %r12
jmp 0x317f3
addq %r13, %r8
addq %r13, %r12
xorl %r14d, %r14d
movq %r13, 0x10(%rsp)
movq %rax, %r13
movl $0x0, 0x8(%rsp)
jmp 0x317ff
xorl %r14d, %r14d
movl $0x1, %edi
leaq 0x6a061(%rip), %rsi     # 0x9b8fe
leaq 0x6a06e(%rip), %rdx     # 0x9b912
xorl %eax, %eax
movq %rbp, 0x70(%rsp)
movq %r12, %rbp
movq %r8, %r12
callq 0x14378
movq %r12, %r8
movq %rbp, %r12
movq 0x70(%rsp), %rbp
movq 0x60(%rsp), %r11
movq 0x68(%rsp), %r10
movq 0x18(%rsp), %r9
movl $0xfffffffe, 0x8(%rsp)  # imm = 0xFFFFFFFE
jmp 0x317ff
movq $0x0, 0x10(%rsp)
xorl %r8d, %r8d
movq %r13, %r12
jmp 0x318f5
movq $-0x1, %r8
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
cmpl $0x0, 0x8(%rsp)
js 0x3253a
shll $0x2, %ebp
movl (%rsp), %edx
incl %edx
movq 0x38(%rsp), %rdi
leal (,%rdi,4), %ecx
incl %r15d
addq 0x28(%rsp), %r9
sarl %edx
sarl %r15d
movq 0x80(%rsp), %rax
addq %rbp, %rax
movslq %edx, %rsi
addq %r9, %rcx
movslq %r15d, %r13
leaq (%r9,%rdi,4), %rdx
movq %rdx, 0x48(%rsp)
movq %rax, 0x80(%rsp)
addq %rax, %rsi
movq %rcx, 0xa8(%rsp)
addq %rcx, %r13
movq $0x0, (%rsp)
xorl %r15d, %r15d
movq $0x0, 0x50(%rsp)
movq $0x0, 0x28(%rsp)
movq %rsi, 0x58(%rsp)
cmpq 0x48(%rsp), %r9
jae 0x31abe
movl (%r9), %esi
movl %esi, %ecx
andl $0xf, %ecx
movl %esi, %eax
shrl $0x4, %eax
cmpl $0x4, %ecx
jne 0x319a4
addq $0x4, %r9
addq %rax, %r15
jmp 0x319b0
leal -0x5(%rcx), %edi
cmpl $0x1, %edi
ja 0x319c0
addq $0x4, %r9
movb $0x1, %r14b
movq $0x0, (%rsp)
jmp 0x31ab3
movq %r13, %rbp
movq %r12, %r13
movq %r8, %r12
cmpl $0x7, %ecx
setne %dil
testb $0x7, %sil
setne %r8b
testb %dil, %r8b
jne 0x31a10
movl %eax, %ecx
movq 0x28(%rsp), %rsi
movq %rsi, %rax
subq %rcx, %rax
movq %r12, %r8
js 0x31a5c
addq $0x4, %r9
addq %rcx, %r15
addq %rcx, 0x50(%rsp)
movb $0x1, %r14b
movq $0x0, (%rsp)
movq %rax, 0x28(%rsp)
jmp 0x31aad
cmpl $0x1, %ecx
movq %r12, %r8
jne 0x31a23
addq $0x4, %r9
movl %eax, %eax
addq %rax, %r15
jmp 0x31a4f
andl $0xe, %esi
cmpl $0x2, %esi
jne 0x31a74
movl %eax, %eax
movq 0x28(%rsp), %rsi
subq %rax, %rsi
testq %rsi, %rsi
movl $0x0, %ecx
cmovleq %rcx, %rsi
movq %rsi, 0x28(%rsp)
addq $0x4, %r9
addq %rax, 0x50(%rsp)
movb $0x1, %r14b
movq $0x0, (%rsp)
jmp 0x31aad
addq %rsi, %r15
addq %rsi, 0x50(%rsp)
xorl %r14d, %r14d
movq %rsi, (%rsp)
movq %rax, 0x28(%rsp)
xorl %edx, %edx
jmp 0x31aad
xorl %r14d, %r14d
movl $0x1, %edi
leaq 0x69e7b(%rip), %rsi     # 0x9b8fe
leaq 0x69e88(%rip), %rdx     # 0x9b912
xorl %eax, %eax
movq %r9, 0x18(%rsp)
callq 0x14378
movq %r12, %r8
movq 0x60(%rsp), %r11
movq 0x68(%rsp), %r10
movq 0x18(%rsp), %r9
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
movq %r13, %r12
movq %rbp, %r13
testb %r14b, %r14b
jne 0x3197e
jmp 0x31aca
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq $-0x1, %r15
testl %edx, %edx
js 0x32528
movq 0x40(%rsp), %rax
movq 0x38(%rax), %rax
movsbl (%rax), %esi
xorl %ebp, %ebp
movl $0x0, %ecx
testl %esi, %esi
je 0x31cd9
movb 0x1(%rax), %dl
testb %dl, %dl
je 0x31cd7
addq $0x2, %rax
movl %esi, %ecx
movl %ecx, %esi
shll $0x5, %esi
subl %ecx, %esi
movsbl %dl, %ecx
addl %esi, %ecx
movb (%rax), %dl
incq %rax
testb %dl, %dl
jne 0x31afe
jmp 0x31cd9
incl %esi
movq %r8, %rdi
movq %r8, %r15
callq 0x34c4f
movq %r15, %r8
testl %eax, %eax
movq 0x18(%rsp), %r9
js 0x31c07
movl (%r8), %edx
leal -0x1(%rdx), %edi
movb (%r9), %cl
testb %cl, %cl
je 0x31b61
leaq 0x1(%r9), %rax
movl $0x811c9dc5, %ebp       # imm = 0x811C9DC5
movzbl %cl, %ecx
xorl %ebp, %ecx
imull $0x1000193, %ecx, %ebp  # imm = 0x1000193
movb (%rax), %cl
incq %rax
testb %cl, %cl
jne 0x31b4b
jmp 0x31b66
movl $0x811c9dc5, %ebp       # imm = 0x811C9DC5
andl %edi, %ebp
movq 0x10(%r8), %rsi
movl %ebp, %eax
shrl $0x4, %eax
movl (%rsi,%rax,4), %eax
leal (,%rbp,2), %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x31c45
movl $0x1, %r13d
movl %ebp, %r14d
movq %rdx, 0x20(%rsp)
movl %edx, %r12d
movq %r8, (%rsp)
movq %rsi, 0x38(%rsp)
movl %edi, 0x48(%rsp)
movl %r14d, %eax
shrl $0x4, %eax
movl (%rsi,%rax,4), %r15d
leal (%r14,%r14), %ebx
andl $0x1e, %ebx
movl %r15d, %eax
movl %ebx, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x31c11
testb $0x1, %al
jne 0x31bec
movq 0x18(%r8), %rax
movl %r14d, %ecx
movq (%rax,%rcx,8), %rdi
movq %r9, %rsi
callq 0x46c0
movl 0x48(%rsp), %edi
movq 0x38(%rsp), %rsi
movq (%rsp), %r8
movq 0x18(%rsp), %r9
testl %eax, %eax
je 0x31c11
btl %ebx, %r15d
cmovbl %r14d, %r12d
addl %r13d, %r14d
andl %edi, %r14d
incl %r13d
movl %r12d, %eax
cmpl %ebp, %r14d
jne 0x31ba3
jmp 0x31c16
movl (%r8), %ebp
xorl %edx, %edx
jmp 0x31cb5
movq 0x20(%rsp), %rax
movl %eax, %ebp
movq 0x20(%rsp), %rdx
cmpl %edx, %eax
movq 0x78(%rsp), %rbx
jne 0x31c45
movl %r14d, %eax
shrl $0x4, %eax
movl (%rsi,%rax,4), %eax
leal (%r14,%r14), %ecx
shrl %cl, %eax
cmpl %edx, %r12d
cmovel %r14d, %r12d
testb $0x2, %al
cmovel %r14d, %r12d
movl %r12d, %ebp
movl %ebp, %eax
shrl $0x4, %eax
movl (%rsi,%rax,4), %esi
leal (,%rbp,2), %ecx
andl $0x1e, %ecx
shrl %cl, %esi
testb $0x2, %sil
jne 0x31c8c
movb $0x1, %dl
testb $0x1, %sil
movq 0x30(%rsp), %r14
je 0x31cb5
movq 0x18(%r8), %rsi
movl %ebp, %edi
movq %r9, (%rsi,%rdi,8)
movl $0x3, %esi
shll %cl, %esi
notl %esi
movq 0x10(%r8), %rcx
andl %esi, (%rcx,%rax,4)
incl 0x4(%r8)
jmp 0x31cb5
movq 0x18(%r8), %rdx
movl %ebp, %esi
movq %r9, (%rdx,%rsi,8)
movl $0x3, %edx
shll %cl, %edx
notl %edx
movq 0x10(%r8), %rcx
andl %edx, (%rcx,%rax,4)
incl 0x4(%r8)
incl 0x8(%r8)
movb $0x1, %dl
movq 0x30(%rsp), %r14
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testb %dl, %dl
je 0x32595
movq 0x68(%rbx), %rax
movq 0x20(%rax), %rax
movl %ebp, %ecx
movq %r14, (%rax,%rcx,8)
xorl %eax, %eax
jmp 0x32595
movl %esi, %ecx
movl %ecx, %eax
shll $0xf, %eax
notl %eax
addl %ecx, %eax
movl %eax, %ecx
shrl $0xa, %ecx
xorl %eax, %ecx
leal (%rcx,%rcx,8), %eax
movl %eax, %ecx
shrl $0x6, %ecx
xorl %eax, %ecx
movl %ecx, %eax
shll $0xb, %eax
notl %eax
addl %ecx, %eax
movl %eax, %ecx
shrl $0x10, %ecx
xorl %eax, %ecx
andl $0x1, %ecx
movl %ecx, %eax
xorl $0x1, %eax
movl %ecx, 0x70(%rsp)
cvtsi2sd %ecx, %xmm0
movsd 0x68915(%rip), %xmm1    # 0x9a630
mulsd %xmm1, %xmm0
movsd %xmm0, 0xa0(%rsp)
movl %eax, 0x8c(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0x98(%rsp)
movq %r13, 0x38(%rsp)
movq %r15, %rdx
movq 0x50(%rsp), %r15
cmpl $0x0, 0x8(%rsp)
js 0x31ec5
testq %r12, %r12
js 0x31ec5
movq 0x20(%rsp), %rax
movq 0x40(%rsp), %rcx
subq (%rcx), %rax
cmpq %rax, %r12
jge 0x31ec5
movl %ebp, 0x28(%rsp)
cmpq %r11, %rbx
jae 0x31dd1
movq %r15, %rbp
movq %rdx, %r15
movl (%rbx), %edx
movl %edx, %ecx
andl $0xf, %ecx
movl %edx, %eax
shrl $0x4, %eax
cmpl $0x7, %ecx
setne %sil
testb $0x7, %dl
setne %dil
testb %sil, %dil
jne 0x31de9
decl %eax
cltq
movq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jge 0x31dfa
incq %r8
incq %rcx
movq %rcx, 0x10(%rsp)
incq %r12
movl $0x0, 0x8(%rsp)
xorl %r14d, %r14d
jmp 0x31e0a
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
movq $-0x1, %r8
movq $-0x1, %r12
jmp 0x31e41
andl $0xe, %edx
cmpl $0x2, %edx
jne 0x31e0f
addq $0x4, %rbx
addq %rax, %r12
jmp 0x31dfe
addq $0x4, %rbx
movb $0x1, %r14b
movq $-0x1, 0x10(%rsp)
movq %r15, %rdx
jmp 0x31e31
cmpl $0x4, %ecx
movq %r15, %rdx
je 0x31e1c
cmpl $0x1, %ecx
jne 0x31e65
addq $0x4, %rbx
movl %eax, %eax
addq %rax, %r8
movb $0x1, %r14b
movq $-0x1, 0x10(%rsp)
testb %r14b, %r14b
movq %rbp, %r15
movl 0x28(%rsp), %ebp
jne 0x31d7e
cmpl $0x0, 0x8(%rsp)
js 0x31ec5
testq %r12, %r12
js 0x31ec5
movq 0x20(%rsp), %rax
movq 0x40(%rsp), %rcx
subq (%rcx), %rax
cmpq %rax, %r12
jl 0x31d7e
jmp 0x31ec5
leal -0x5(%rcx), %eax
cmpl $0x1, %eax
ja 0x31e73
addq $0x4, %rbx
jmp 0x31e25
xorl %r14d, %r14d
movl $0x1, %edi
leaq 0x69aa4(%rip), %rsi     # 0x9b926
leaq 0x69a89(%rip), %rdx     # 0x9b912
xorl %eax, %eax
movq %r9, 0x18(%rsp)
movq %r12, %r13
movq %r8, %r12
callq 0x14378
movq %r15, %rdx
movq %r12, %r8
movq %r13, %r12
movq 0x38(%rsp), %r13
movq 0x60(%rsp), %r11
movq 0x68(%rsp), %r10
movq 0x18(%rsp), %r9
movl $0xfffffffe, 0x8(%rsp)  # imm = 0xFFFFFFFE
jmp 0x31e31
cmpl $0x0, 0x8(%rsp)
js 0x3253a
testl %ebp, %ebp
movq %r12, 0x90(%rsp)
js 0x3203a
testq %r15, %r15
js 0x3203a
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
subq (%rcx), %rax
cmpq %rax, %r15
jge 0x3203a
cmpq 0x48(%rsp), %r9
jae 0x31f53
movq %r15, %r13
movq %rdx, %r15
movl (%r9), %edx
movl %edx, %ecx
andl $0xf, %ecx
movl %edx, %eax
shrl $0x4, %eax
cmpl $0x7, %ecx
setne %sil
testb $0x7, %dl
setne %dil
testb %sil, %dil
jne 0x31f68
decl %eax
cltq
movq (%rsp), %rcx
cmpq %rax, %rcx
jge 0x31f79
movq %r15, %rdx
incq %rdx
incq %rcx
movq %rcx, (%rsp)
movq %r13, %r15
incq %r15
xorl %ebp, %ebp
xorl %r14d, %r14d
jmp 0x31fb1
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq $-0x1, %rdx
movq $-0x1, %r15
jmp 0x31fbf
andl $0xe, %edx
cmpl $0x2, %edx
jne 0x31f8d
addq $0x4, %r9
addq %rax, %r13
jmp 0x31f7d
addq $0x4, %r9
movb $0x1, %r14b
movq $-0x1, (%rsp)
movq %r15, %rdx
jmp 0x31fae
cmpl $0x4, %ecx
movq %r15, %rdx
je 0x31f9a
cmpl $0x1, %ecx
jne 0x31fe0
addq $0x4, %r9
movl %eax, %eax
addq %rax, %rdx
movb $0x1, %r14b
movq $-0x1, (%rsp)
movq %r13, %r15
testb %r14b, %r14b
movq 0x38(%rsp), %r13
jne 0x31eff
testl %ebp, %ebp
js 0x3203a
testq %r15, %r15
js 0x3203a
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
subq (%rcx), %rax
cmpq %rax, %r15
jl 0x31eff
jmp 0x3203a
leal -0x5(%rcx), %eax
cmpl $0x1, %eax
ja 0x31fee
addq $0x4, %r9
jmp 0x31fa3
xorl %r14d, %r14d
movl $0x1, %edi
leaq 0x69929(%rip), %rsi     # 0x9b926
leaq 0x6990e(%rip), %rdx     # 0x9b912
xorl %eax, %eax
movq %r9, 0x18(%rsp)
movq %r8, %r12
callq 0x14378
movq %r15, %rdx
movq %r12, %r8
movq 0x90(%rsp), %r12
movq 0x60(%rsp), %r11
movq 0x68(%rsp), %r10
movq 0x18(%rsp), %r9
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
jmp 0x31fae
testl %ebp, %ebp
js 0x32536
movq %rdx, 0x18(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rax
addq %r12, %rax
movq 0x20(%rsp), %rdx
cmpq %rax, %rdx
cmovleq %rax, %rdx
movq 0x30(%rsp), %rcx
movq (%rcx), %rcx
addq %r15, %rcx
cmpq %rcx, %rdx
cmovleq %rcx, %rdx
incq %rdx
movq %rdx, 0x20(%rsp)
cmpq %rcx, %rax
jne 0x3213f
movq 0x18(%rsp), %rdx
movq 0x40(%rsp), %rax
movslq 0x18(%rax), %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rcx, %r8
jg 0x32546
movq 0x30(%rsp), %rcx
movslq 0x18(%rcx), %rcx
cmpq %rcx, %rdx
jg 0x32546
movq %r8, %rax
sarq %rax
movq 0x80(%rsp), %rcx
movzbl (%rcx,%rax), %eax
leal (,%r8,4), %ecx
notb %cl
andb $0x4, %cl
shrl %cl, %eax
movq %rdx, %rcx
sarq %rcx
movq %rdx, %rsi
movq 0xa8(%rsp), %rdx
movzbl (%rdx,%rcx), %edx
leal (,%rsi,4), %ecx
notb %cl
andb $0x4, %cl
shrl %cl, %edx
xorl %eax, %edx
movq 0x58(%rsp), %rdi
movzbl (%rdi,%r8), %eax
testb $0xf, %dl
je 0x32487
movb (%r13,%rsi), %cl
cmpb %cl, %al
movq %rsi, %rdx
jbe 0x324b9
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x68509(%rip), %xmm0    # 0x9a630
cvttsd2si %xmm0, %eax
movq 0x58(%rsp), %rcx
movb %al, (%rcx,%r8)
movb $0x0, (%r13,%rdx)
jmp 0x31d50
movq 0x18(%rsp), %rdx
jge 0x322e9
movq 0x30(%rsp), %rcx
movzwl 0x12(%rcx), %eax
addq 0x38(%rcx), %rax
cmpq %rax, %r9
jbe 0x322e9
movl -0x4(%r9), %eax
andl $0xf, %eax
cmpl $0x2, %eax
jne 0x322e9
movl %ebp, 0x28(%rsp)
movq 0x10(%rsp), %rbp
movq %r15, 0x50(%rsp)
cmpl $0x0, 0x70(%rsp)
jne 0x3218e
xorl %eax, %eax
movq 0x58(%rsp), %rcx
jmp 0x321ab
movq 0x58(%rsp), %rcx
movzbl (%rcx,%r8), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x68489(%rip), %xmm0    # 0x9a630
cvttsd2si %xmm0, %eax
movb %al, (%rcx,%r8)
cmpq %r11, %rbx
jae 0x32294
movq %r12, %r13
movq %r8, %r12
movl (%rbx), %esi
movl %esi, %ecx
andl $0xf, %ecx
movl %esi, %eax
shrl $0x4, %eax
cmpl $0x7, %ecx
setne %dil
testb $0x7, %sil
setne %r8b
testb %dil, %r8b
jne 0x321fd
decl %eax
cltq
cmpq %rax, %rbp
movq %r12, %r8
jge 0x32234
incq %r8
incq %rbp
movq %r13, %r12
incq %r12
xorl %edx, %edx
xorl %r14d, %r14d
jmp 0x32245
andl $0xe, %esi
cmpl $0x2, %esi
movq %r12, %r8
jne 0x32217
addq $0x4, %rbx
movq %r13, %r12
addq %rax, %r12
movb $0x1, %r14b
jmp 0x3223e
cmpl $0x4, %ecx
je 0x32221
cmpl $0x1, %ecx
jne 0x3222c
addq $0x4, %rbx
movl %eax, %eax
addq %rax, %r8
jmp 0x32238
leal -0x5(%rcx), %eax
cmpl $0x1, %eax
ja 0x32255
addq $0x4, %rbx
movb $0x1, %r14b
movq %r13, %r12
movq $-0x1, %rbp
testb %r14b, %r14b
movq 0x38(%rsp), %r13
jne 0x321af
jmp 0x322a7
xorl %r14d, %r14d
movl $0x1, %edi
leaq 0x696c2(%rip), %rsi     # 0x9b926
leaq 0x696a7(%rip), %rdx     # 0x9b912
xorl %eax, %eax
movq %r9, %r15
callq 0x14378
movq %r12, %r8
movq 0x60(%rsp), %r11
movq 0x68(%rsp), %r10
movq %r15, %r9
movq 0x50(%rsp), %r15
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
movq %r13, %r12
jmp 0x32245
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq $-0x1, %r8
movq $-0x1, %r12
testl %edx, %edx
js 0x32528
movq 0x40(%rsp), %rax
movq (%rax), %rax
addq %r12, %rax
movq 0x30(%rsp), %rcx
movq (%rcx), %rcx
addq %r15, %rcx
cmpq %rcx, %rax
movq 0x18(%rsp), %rdx
jl 0x3217e
movq %rbp, 0x10(%rsp)
movl $0x0, 0x8(%rsp)
movl 0x28(%rsp), %ebp
jmp 0x32086
movq 0x40(%rsp), %rcx
movzwl 0x12(%rcx), %eax
addq 0x38(%rcx), %rax
cmpq %rax, %rbx
jbe 0x31d50
movl -0x4(%rbx), %eax
andl $0xf, %eax
cmpl $0x2, %eax
jne 0x31d50
movq %rbx, 0xb0(%rsp)
cmpl $0x0, 0x70(%rsp)
jne 0x32338
movzbl (%r13,%rdx), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x682fe(%rip), %xmm0    # 0x9a630
cvttsd2si %xmm0, %eax
jmp 0x3233a
xorl %eax, %eax
movb %al, (%r13,%rdx)
cmpq 0x48(%rsp), %r9
jae 0x32448
movq %rdx, %r13
movl (%r9), %edx
movl %edx, %ecx
andl $0xf, %ecx
movl %edx, %eax
shrl $0x4, %eax
cmpl $0x7, %ecx
setne %sil
testb $0x7, %dl
setne %dil
testb %sil, %dil
jne 0x32391
decl %eax
cltq
movq (%rsp), %rcx
cmpq %rax, %rcx
jge 0x323a2
movq %r13, %rdx
incq %rdx
incq %rcx
movq %rcx, (%rsp)
incq %r15
xorl %ebp, %ebp
xorl %r14d, %r14d
jmp 0x323d7
andl $0xe, %edx
cmpl $0x2, %edx
jne 0x323b6
addq $0x4, %r9
addq %rax, %r15
jmp 0x323a6
addq $0x4, %r9
movb $0x1, %r14b
movq $-0x1, (%rsp)
movq %r13, %rdx
jmp 0x323d7
cmpl $0x4, %ecx
movq %r13, %rdx
je 0x323c3
cmpl $0x1, %ecx
jne 0x323e7
addq $0x4, %r9
movl %eax, %eax
addq %rax, %rdx
movb $0x1, %r14b
movq $-0x1, (%rsp)
testb %r14b, %r14b
movq 0x38(%rsp), %r13
jne 0x3233f
jmp 0x3245b
leal -0x5(%rcx), %eax
cmpl $0x1, %eax
ja 0x323f5
addq $0x4, %r9
jmp 0x323cc
xorl %r14d, %r14d
movl $0x1, %edi
leaq 0x69522(%rip), %rsi     # 0x9b926
leaq 0x69507(%rip), %rdx     # 0x9b912
xorl %eax, %eax
movq %r15, %rbp
movq %r9, %r15
movq %r8, %r12
callq 0x14378
movq %r13, %rdx
movq %r12, %r8
movq 0x90(%rsp), %r12
movq 0x60(%rsp), %r11
movq 0x68(%rsp), %r10
movq %r15, %r9
movq %rbp, %r15
movq 0xb0(%rsp), %rbx
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
jmp 0x323d7
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq $-0x1, %rdx
movq $-0x1, %r15
testl %ebp, %ebp
js 0x3252f
movq 0x30(%rsp), %rax
movq (%rax), %rax
addq %r15, %rax
movq 0x40(%rsp), %rcx
movq (%rcx), %rcx
addq %r12, %rcx
cmpq %rcx, %rax
jl 0x32316
jmp 0x32086
movzbl (%r13,%rsi), %ecx
addl %eax, %ecx
movl $0xc8, %eax
cmpl %eax, %ecx
cmovael %eax, %ecx
movl %ecx, %eax
imull 0x70(%rsp), %eax
movb %al, (%rdi,%r8)
imull 0x8c(%rsp), %ecx
movb %cl, (%r13,%rsi)
movq %rsi, %rdx
jmp 0x31d50
cmpb %cl, %al
jae 0x324e7
movzbl %cl, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x68161(%rip), %xmm0    # 0x9a630
cvttsd2si %xmm0, %eax
movb %al, (%r13,%rdx)
movq 0x58(%rsp), %rax
movb $0x0, (%rax,%r8)
jmp 0x31d50
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0xa0(%rsp), %xmm0
cvttsd2si %xmm0, %eax
movq 0x58(%rsp), %rcx
movb %al, (%rcx,%r8)
movzbl (%r13,%rdx), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x98(%rsp), %xmm0
cvttsd2si %xmm0, %eax
movb %al, (%r13,%rdx)
jmp 0x31d50
xorl %eax, %eax
cmpl $-0x1, %edx
jmp 0x32541
xorl %eax, %eax
cmpl $-0x1, %ebp
jmp 0x32541
movl %ebp, 0x8(%rsp)
xorl %eax, %eax
cmpl $-0x1, 0x8(%rsp)
setne %al
negl %eax
movq 0x78(%rsp), %rcx
movq 0x68(%rcx), %rdx
cmpl %r10d, (%rdx)
je 0x32583
movq 0x10(%rdx), %rsi
movl %r10d, %edi
shrl $0x4, %edi
movl (%rsi,%rdi,4), %r8d
addl %r10d, %r10d
andl $0x1e, %r10d
movl %r8d, %r9d
movl %r10d, %ecx
shrl %cl, %r9d
testb $0x3, %r9b
jne 0x32583
btsl %r10d, %r8d
movl %r8d, (%rsi,%rdi,4)
decl 0x4(%rdx)
movq 0x40(%rsp), %rdx
movq 0x58(%rdx), %rcx
decq %rcx
cmpq 0x70(%rdx), %rcx
jne 0x325a7
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x69313(%rip), %rdi     # 0x9b8c1
leaq 0x6875e(%rip), %rsi     # 0x9ad13
leaq 0x6931a(%rip), %rcx     # 0x9b8d6
movl $0x17aa, %edx           # imm = 0x17AA
callq 0x42f0