// File: /workspace/github_cpp_makefile_star2_O2/readmapping[P]alfalfa/src/mapper.cpp
// Function: pairedMatch3(sparseSA const&, read_t&, read_t&, align_opt const&, paired_opt const&)
void pairedMatch3(const sparseSA& sa, read_t & mate1, read_t & mate2, const align_opt & alnOptions, const paired_opt & pairedOpt){
    int editDist1 = (int)(alnOptions.errorPercent*mate1.sequence.length())+1;
    int editDist2 = (int)(alnOptions.errorPercent*mate2.sequence.length())+1;
    //FIND CANDIDATE REGIONS FOR BOTH MATES
    vector<lis_t>  lisIntervals1;
    vector<lis_t>  lisIntervals2;
    if(alnOptions.print >= 3) cerr << "calculate LIS of both mates"  << endl;
    calculateCandRegions(sa, mate1, alnOptions, lisIntervals1, alnOptions.errorPercent);
    calculateCandRegions(sa, mate2, alnOptions, lisIntervals2, alnOptions.errorPercent);
    //FILTER LIS: ONLY THOSE THAT PAIR   
    vector<lis_t>  lisIntervals1Filtered;
    vector<lis_t>  lisIntervals2Filtered;
    if(alnOptions.print >= 3) cerr << "filter LIS of both mates using pairing"  << endl;
    for(size_t i = 0; i < lisIntervals1.size(); i++){
        for(size_t j = 0; j < lisIntervals2.size(); j++){
            if(!(lisIntervals1[i].extended && lisIntervals2[j].extended) && isConcordantLIS(lisIntervals1[i], lisIntervals2[j], editDist1, editDist2, pairedOpt, alnOptions.print)){
                if(!lisIntervals1[i].extended){
                    lisIntervals1Filtered.push_back(lisIntervals1[i]);
                    lisIntervals1[i].extended = true;
                }
                if(!lisIntervals2[j].extended){
                    lisIntervals2Filtered.push_back(lisIntervals2[j]);
                    lisIntervals2[j].extended = true;
                }
            }
        }
    }
    if(alnOptions.print >= 3) cerr << "number of paired LIS in mate1 " << lisIntervals1Filtered.size()  << endl;
    if(alnOptions.print >= 3) cerr << "number of paired LIS in mate2 " << lisIntervals2Filtered.size()  << endl;
    //RESCUE IF NO PAIRED LIS WERE FOUND
    if(lisIntervals1Filtered.empty() && lisIntervals2Filtered.empty()){
        if(alnOptions.print >= 2) cerr << "#EMPTYFILTEREDLIST"  << endl;
        pairedMatch1(sa, mate1, mate2, alnOptions, pairedOpt);
    }
    else{
        //FIND ALIGNMENTS FOR FILTERED LIST OF ALIGNMENTS
        //BE NICE AND GIVE THE OPTION OF LOWER MINSCORE
        int minScore1 = (int) (mate1.sequence.length()*alnOptions.match + (alnOptions.mismatch-alnOptions.match)*(editDist1*1.5));
        int minScore2 = (int) (mate2.sequence.length()*alnOptions.match + (alnOptions.mismatch-alnOptions.match)*(editDist2*1.5));
        processLisIntervals(sa, mate1, alnOptions, lisIntervals1Filtered, editDist1, alnOptions.maxAlnCount, 0, minScore1);
        processLisIntervals(sa, mate2, alnOptions, lisIntervals2Filtered, editDist2, alnOptions.maxAlnCount, 0, minScore2);
        if(alnOptions.print >= 3) cerr << "first  mate resulted in " << mate1.alignments.size() << " alignments" << endl;
        if(alnOptions.print >= 3) cerr << "second mate resulted in " << mate2.alignments.size() << " alignments" << endl;
        //RESCUE
        if(mate1.alignments.empty() && alnOptions.rescue){
            if(alnOptions.print >= 2) cerr << "#RESCUE" << endl;
            minScore1 = max(0,(int)(mate1.sequence.length()*alnOptions.match + (alnOptions.mismatch-alnOptions.match)*0.2*mate1.sequence.length()));
            processLisIntervals(sa, mate1, alnOptions, lisIntervals1Filtered, editDist1, alnOptions.maxAlnCount, 0, minScore1);
        }
        if(mate2.alignments.empty() && alnOptions.rescue){
            if(alnOptions.print >= 2) cerr << "#RESCUE" << endl;
            minScore2 = max(0,(int)(mate2.sequence.length()*alnOptions.match + (alnOptions.mismatch-alnOptions.match)*0.2*mate2.sequence.length()));
            processLisIntervals(sa, mate2, alnOptions, lisIntervals2Filtered, editDist2, alnOptions.maxAlnCount, 0, minScore2);
        }
        //TRY AND PAIR THE ALIGNMENTS
        int alnCount = 0;
        int maxPairedAlignments = alnOptions.alignmentCount+1;
        int alnCount1 = mate1.alignmentCount();
        int alnCount2 = mate2.alignmentCount();
        //ORDER ALIGNMENTS ACCORDING TO SCORE
        vector<alnScoreInfo_t> pairedOrder;
        pairedOrder.reserve(alnCount1+alnCount2);
        for(size_t i = 0; i < mate1.alignments.size(); i++)
            pairedOrder.push_back(alnScoreInfo_t(true, i,mate1.alignments[i]->alignmentScore ));
        for(size_t i = 0; i < mate2.alignments.size(); i++)
            pairedOrder.push_back(alnScoreInfo_t(false, i,mate2.alignments[i]->alignmentScore ));
        sort(pairedOrder.begin(),pairedOrder.end(),compAlnScorePaired);
        //TRY AND PAIR THE ALIGNMENTS
        if(alnCount1>0 && alnCount2>0){
            if(alnOptions.print >= 3) cerr << "search concordant alignments" << endl;
            pairAlignmentsOrdered(sa, mate1, mate2, alnOptions, pairedOpt, 
            pairedOrder, alnCount, maxPairedAlignments);
        }
        //FIND DISCORDANT ALIGNMENTS AMONGST HIGHEST SCORING UNPAIRED ALIGNMENTS
        int pairedAlignments = mate1.pairedAlignmentCount;
        if(alnOptions.print >= 2) cerr << "#CONCORDANTCOUNT " << pairedAlignments << endl;
        if(pairedOpt.discordant && alnCount < maxPairedAlignments){
            if(alnOptions.print >= 3) cerr << "search discordant alignments" << endl;
            calculateDiscordantAlignments(sa, mate1, mate2);
        }
        if(alnOptions.print >= 2) cerr << "#DISCORDANTCOUNT " << mate1.pairedAlignmentCount-pairedAlignments << endl;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %r8, 0x38(%rsp)
movq %rcx, %rbx
movq %rdi, 0x10(%rsp)
movsd 0x30(%rcx), %xmm1
movq %rsi, (%rsp)
movsd 0x28(%rsi), %xmm0
movaps %xmm0, 0xe0(%rsp)
movq %rdx, 0x8(%rsp)
movsd 0x28(%rdx), %xmm0
movaps %xmm0, 0xf0(%rsp)
xorps %xmm0, %xmm0
andq $0x0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
andq $0x0, 0xb0(%rsp)
movaps %xmm0, 0xa0(%rsp)
cmpl $0x3, 0x78(%rcx)
movsd %xmm1, 0x18(%rsp)
movapd %xmm1, %xmm0
jl 0x1f151
movq 0x2aeb0(%rip), %rdi     # 0x49fe8
leaq 0x1844a(%rip), %rsi     # 0x37589
callq 0x72b0
movq %rax, %rdi
callq 0x7160
movsd 0x30(%rbx), %xmm0
leaq 0x80(%rsp), %rcx
movq 0x10(%rsp), %rdi
movq (%rsp), %rsi
movq %rbx, %rdx
callq 0x1d2c7
movsd 0x30(%rbx), %xmm0
leaq 0xa0(%rsp), %rcx
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq 0x1d2c7
andq $0x0, 0x70(%rsp)
xorpd %xmm0, %xmm0
andq $0x0, 0x50(%rsp)
movapd %xmm0, 0x60(%rsp)
movapd %xmm0, 0x40(%rsp)
movq %rbx, 0x20(%rsp)
cmpl $0x3, 0x78(%rbx)
jl 0x1f1cb
movq 0x2ae31(%rip), %rdi     # 0x49fe8
leaq 0x183e7(%rip), %rsi     # 0x375a5
callq 0x72b0
movq %rax, %rdi
callq 0x7160
movsd 0x179dd(%rip), %xmm1    # 0x36bb0
movapd 0xe0(%rsp), %xmm3
unpcklps %xmm1, %xmm3            # xmm3 = xmm3[0],xmm1[0],xmm3[1],xmm1[1]
movapd 0x179d9(%rip), %xmm2    # 0x36bc0
subpd %xmm2, %xmm3
movapd %xmm3, %xmm0
unpckhpd %xmm3, %xmm0            # xmm0 = xmm0[1],xmm3[1]
addsd %xmm3, %xmm0
movsd 0x18(%rsp), %xmm3
mulsd %xmm3, %xmm0
cvttsd2si %xmm0, %r12d
incl %r12d
movapd 0xf0(%rsp), %xmm4
unpcklps %xmm1, %xmm4            # xmm4 = xmm4[0],xmm1[0],xmm4[1],xmm1[1]
subpd %xmm2, %xmm4
movapd %xmm4, %xmm0
unpckhpd %xmm4, %xmm0            # xmm0 = xmm0[1],xmm4[1]
addsd %xmm4, %xmm0
mulsd %xmm3, %xmm0
cvttsd2si %xmm0, %ebp
incl %ebp
xorl %ecx, %ecx
pushq $0x38
popq %r15
movq 0x88(%rsp), %rax
subq 0x80(%rsp), %rax
cqto
idivq %r15
cmpq %rax, %rcx
jae 0x1f32b
movq %rcx, 0x18(%rsp)
imulq $0x38, %rcx, %r14
xorl %r13d, %r13d
xorl %ebx, %ebx
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rax
subq %rsi, %rax
cqto
idivq %r15
cmpq %rax, %rbx
jae 0x1f31e
movq 0x80(%rsp), %rdi
cmpb $0x1, 0x18(%rdi,%r14)
jne 0x1f29a
cmpb $0x0, 0x18(%rsi,%r13)
jne 0x1f312
addq %r14, %rdi
addq %r13, %rsi
movq 0x20(%rsp), %rax
movl 0x78(%rax), %r9d
movl %r12d, %edx
movl %ebp, %ecx
movq 0x38(%rsp), %r8
callq 0x1ee45
testb %al, %al
je 0x1f312
movq 0x80(%rsp), %rsi
cmpb $0x0, 0x18(%rsi,%r14)
jne 0x1f2e7
addq %r14, %rsi
leaq 0x60(%rsp), %rdi
callq 0x22c96
movq 0x80(%rsp), %rax
movb $0x1, 0x18(%rax,%r14)
movq 0xa0(%rsp), %rsi
cmpb $0x0, 0x18(%rsi,%r13)
jne 0x1f312
addq %r13, %rsi
leaq 0x40(%rsp), %rdi
callq 0x22c96
movq 0xa0(%rsp), %rax
movb $0x1, 0x18(%rax,%r13)
incq %rbx
addq $0x38, %r13
jmp 0x1f261
movq 0x18(%rsp), %rcx
incq %rcx
jmp 0x1f235
movq 0x20(%rsp), %rax
cmpl $0x2, 0x78(%rax)
jle 0x1f3ab
movq 0x2acab(%rip), %rdi     # 0x49fe8
leaq 0x18288(%rip), %rsi     # 0x375cc
callq 0x72b0
movq %rax, %rdi
movq 0x68(%rsp), %rax
subq 0x60(%rsp), %rax
cqto
idivq %r15
movq %rax, %rsi
callq 0x71d0
movq %rax, %rdi
callq 0x7160
movq 0x20(%rsp), %rax
cmpl $0x3, 0x78(%rax)
jl 0x1f3ab
movq 0x2ac6b(%rip), %rdi     # 0x49fe8
leaq 0x18267(%rip), %rsi     # 0x375eb
callq 0x72b0
movq %rax, %rdi
movq 0x48(%rsp), %rax
subq 0x40(%rsp), %rax
cqto
idivq %r15
movq %rax, %rsi
callq 0x71d0
movq %rax, %rdi
callq 0x7160
movq 0x60(%rsp), %rax
cmpq 0x68(%rsp), %rax
jne 0x1f3c7
movq 0x40(%rsp), %rax
cmpq 0x48(%rsp), %rax
je 0x1f9a0
movq 0x20(%rsp), %r15
movslq (%r15), %rbx
movq (%rsp), %rsi
movq 0x28(%rsi), %rax
imulq %rbx, %rax
movq %rax, %xmm0
punpckldq 0x177c8(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x177d0(%rip), %xmm0    # 0x36bc0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movl 0x4(%r15), %eax
subl %ebx, %eax
cvtsi2sd %eax, %xmm2
cvtsi2sd %r12d, %xmm0
movl 0x60(%r15), %r9d
mulsd 0x17779(%rip), %xmm0    # 0x36b90
movsd %xmm2, 0x18(%rsp)
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movq 0x8(%rsp), %rcx
movq 0x28(%rcx), %r14
leaq 0x60(%rsp), %rcx
movq 0x10(%rsp), %rdi
movq %r15, %rdx
movl %r12d, %r8d
pushq %rax
pushq $0x0
callq 0x1ca79
popq %rax
popq %rcx
cvtsi2sd %ebp, %xmm0
mulsd 0x17738(%rip), %xmm0    # 0x36b90
imulq %rbx, %r14
movq %r14, %xmm1
punpckldq 0x17747(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1774f(%rip), %xmm1    # 0x36bc0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
movsd 0x18(%rsp), %xmm1
mulsd %xmm0, %xmm1
addsd %xmm2, %xmm1
cvttsd2si %xmm1, %eax
movl 0x60(%r15), %r9d
leaq 0x40(%rsp), %rcx
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
movl %ebp, %r8d
pushq %rax
pushq $0x0
callq 0x1ca79
popq %rax
popq %rcx
cmpl $0x3, 0x78(%r15)
jl 0x1f555
movq 0x2ab24(%rip), %rdi     # 0x49fe8
leaq 0x18152(%rip), %rsi     # 0x3761d
callq 0x72b0
movq (%rsp), %rcx
movq 0xb8(%rcx), %rsi
subq 0xb0(%rcx), %rsi
sarq $0x3, %rsi
movq %rax, %rdi
callq 0x71d0
leaq 0x18152(%rip), %rsi     # 0x37647
movq %rax, %rdi
callq 0x72b0
movq %rax, %rdi
callq 0x7160
cmpl $0x3, 0x78(%r15)
jl 0x1f555
movq 0x2aad5(%rip), %rdi     # 0x49fe8
leaq 0x17f66(%rip), %rsi     # 0x37480
callq 0x72b0
movq 0x8(%rsp), %rcx
movq 0xb8(%rcx), %rsi
subq 0xb0(%rcx), %rsi
sarq $0x3, %rsi
movq %rax, %rdi
callq 0x71d0
leaq 0x18102(%rip), %rsi     # 0x37647
movq %rax, %rdi
callq 0x72b0
movq %rax, %rdi
callq 0x7160
movq (%rsp), %rcx
movq 0xb0(%rcx), %rax
cmpq 0xb8(%rcx), %rax
jne 0x1f631
cmpb $0x1, 0x71(%r15)
jne 0x1f631
cmpl $0x2, 0x78(%r15)
jl 0x1f59a
movq 0x2aa62(%rip), %rdi     # 0x49fe8
leaq 0x17c69(%rip), %rsi     # 0x371f6
callq 0x72b0
movq %rax, %rdi
callq 0x7160
movq (%rsp), %rsi
movq 0x28(%rsi), %rax
movslq (%r15), %rcx
movl 0x4(%r15), %edx
subl %ecx, %edx
imulq %rax, %rcx
movq %rcx, %xmm0
movq 0x175f4(%rip), %xmm3    # 0x36bb0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x175f8(%rip), %xmm4    # 0x36bc0
subpd %xmm4, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movl 0x60(%r15), %r9d
cvtsi2sd %edx, %xmm0
mulsd 0x175a0(%rip), %xmm0    # 0x36b88
movq %rax, %xmm2
punpckldq %xmm3, %xmm2    # xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
subpd %xmm4, %xmm2
movapd %xmm2, %xmm3
unpckhpd %xmm2, %xmm3            # xmm3 = xmm3[1],xmm2[1]
addsd %xmm2, %xmm3
mulsd %xmm0, %xmm3
addsd %xmm1, %xmm3
cvttsd2si %xmm3, %eax
xorl %r10d, %r10d
testl %eax, %eax
cmovgl %eax, %r10d
leaq 0x60(%rsp), %rcx
movq 0x10(%rsp), %rdi
movq %r15, %rdx
movl %r12d, %r8d
pushq %r10
pushq $0x0
callq 0x1ca79
popq %rax
popq %rcx
movq 0x8(%rsp), %rcx
movq 0xb0(%rcx), %rax
movq 0xb8(%rcx), %r12
cmpq %r12, %rax
jne 0x1f728
cmpb $0x1, 0x71(%r15)
movq %rax, %r12
jne 0x1f728
cmpl $0x2, 0x78(%r15)
jl 0x1f67d
movq 0x2a97f(%rip), %rdi     # 0x49fe8
leaq 0x17b86(%rip), %rsi     # 0x371f6
callq 0x72b0
movq %rax, %rdi
callq 0x7160
movq 0x8(%rsp), %rsi
movq 0x28(%rsi), %rax
movslq (%r15), %rcx
movl 0x4(%r15), %edx
subl %ecx, %edx
imulq %rax, %rcx
movq %rcx, %xmm0
movq 0x17510(%rip), %xmm3    # 0x36bb0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x17514(%rip), %xmm4    # 0x36bc0
subpd %xmm4, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movl 0x60(%r15), %r9d
cvtsi2sd %edx, %xmm0
mulsd 0x174bc(%rip), %xmm0    # 0x36b88
movq %rax, %xmm2
punpckldq %xmm3, %xmm2    # xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
subpd %xmm4, %xmm2
movapd %xmm2, %xmm3
unpckhpd %xmm2, %xmm3            # xmm3 = xmm3[1],xmm2[1]
addsd %xmm2, %xmm3
mulsd %xmm0, %xmm3
addsd %xmm1, %xmm3
cvttsd2si %xmm3, %eax
xorl %r10d, %r10d
testl %eax, %eax
cmovgl %eax, %r10d
leaq 0x40(%rsp), %rcx
movq 0x10(%rsp), %rdi
movq %r15, %rdx
movl %ebp, %r8d
pushq %r10
pushq $0x0
callq 0x1ca79
popq %rax
popq %rcx
movq 0x8(%rsp), %rcx
movq 0xb0(%rcx), %rax
movq 0xb8(%rcx), %r12
andl $0x0, 0x28(%rsp)
subq %rax, %r12
movl 0x50(%r15), %r13d
movq (%rsp), %rax
movq 0xb8(%rax), %rbp
subq 0xb0(%rax), %rbp
shrq $0x3, %rbp
shrq $0x3, %r12
leaq 0xc0(%rsp), %rdi
andq $0x0, 0x10(%rdi)
xorpd %xmm0, %xmm0
movapd %xmm0, (%rdi)
leal (%r12,%rbp), %eax
movslq %eax, %rsi
callq 0x22bd0
leal 0x1(%r13), %eax
movq %rax, 0x18(%rsp)
xorl %r14d, %r14d
leaq 0xc0(%rsp), %rbx
leaq 0x2c(%rsp), %r15
movq (%rsp), %rcx
movq 0xb0(%rcx), %rax
movq 0xb8(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %r14
jae 0x1f7cb
movq (%rax,%r14,8), %rax
movl 0x70(%rax), %eax
movb $0x1, 0x2c(%rsp)
movl %r14d, 0x30(%rsp)
movl %eax, 0x34(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x279ba
incq %r14
jmp 0x1f788
xorl %r14d, %r14d
leaq 0xc0(%rsp), %rbx
leaq 0x2c(%rsp), %r15
movq 0x8(%rsp), %rcx
movq 0xb0(%rcx), %rax
movq 0xb8(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %r14
jae 0x1f81f
movq (%rax,%r14,8), %rax
movl 0x70(%rax), %eax
movb $0x0, 0x2c(%rsp)
movl %r14d, 0x30(%rsp)
movl %eax, 0x34(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x279ba
incq %r14
jmp 0x1f7db
movq 0xc0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
leaq -0x189c(%rip), %rdx     # 0x1df9a
callq 0x27b9d
movq 0x20(%rsp), %r14
testl %ebp, %ebp
jle 0x1f89a
testl %r12d, %r12d
jle 0x1f89a
cmpl $0x3, 0x78(%r14)
jl 0x1f86b
movq 0x2a791(%rip), %rdi     # 0x49fe8
leaq 0x17dd8(%rip), %rsi     # 0x37636
callq 0x72b0
movq %rax, %rdi
callq 0x7160
leaq 0x28(%rsp), %rax
leaq 0xc0(%rsp), %r9
movq 0x10(%rsp), %rdi
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rcx
movq 0x38(%rsp), %r8
pushq 0x18(%rsp)
pushq %rax
callq 0x1e6da
popq %rax
popq %rcx
movq (%rsp), %rax
movl 0xc8(%rax), %ebx
movl 0x78(%r14), %eax
cmpl $0x2, %eax
jl 0x1f8d6
movq 0x2a734(%rip), %rdi     # 0x49fe8
leaq 0x17c66(%rip), %rsi     # 0x37521
callq 0x72b0
movq %rax, %rdi
movl %ebx, %esi
callq 0x75c0
movq %rax, %rdi
callq 0x7160
movl 0x78(%r14), %eax
movq 0x38(%rsp), %rcx
cmpb $0x1, 0x9(%rcx)
jne 0x1f91f
cmpl %r13d, 0x28(%rsp)
jg 0x1f91f
cmpl $0x3, %eax
jl 0x1f908
movq 0x2a6f4(%rip), %rdi     # 0x49fe8
leaq 0x17d58(%rip), %rsi     # 0x37653
callq 0x72b0
movq %rax, %rdi
callq 0x7160
movq 0x10(%rsp), %rdi
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x1dd6b
movl 0x78(%r14), %eax
cmpl $0x2, %eax
jl 0x1f953
movq 0x2a6bd(%rip), %rdi     # 0x49fe8
leaq 0x17c01(%rip), %rsi     # 0x37533
callq 0x72b0
movq (%rsp), %rcx
movl 0xc8(%rcx), %esi
subl %ebx, %esi
movq %rax, %rdi
callq 0x75c0
movq %rax, %rdi
callq 0x7160
leaq 0xc0(%rsp), %rdi
callq 0x27b78
leaq 0x40(%rsp), %rdi
callq 0x22b92
leaq 0x60(%rsp), %rdi
callq 0x22b92
leaq 0xa0(%rsp), %rdi
callq 0x22b92
leaq 0x80(%rsp), %rdi
callq 0x22b92
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x20(%rsp), %rax
cmpl $0x2, 0x78(%rax)
jl 0x1f9c6
movq 0x2a636(%rip), %rdi     # 0x49fe8
leaq 0x17c51(%rip), %rsi     # 0x3760a
callq 0x72b0
movq %rax, %rdi
callq 0x7160
movq 0x10(%rsp), %rdi
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq 0x38(%rsp), %r8
callq 0x1e952
jmp 0x1f960
jmp 0x1f9f7
movq %rax, %rbx
jmp 0x1fa20
jmp 0x1f9f7
jmp 0x1fa09
jmp 0x1fa09
jmp 0x1f9f7
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x27b78
jmp 0x1fa0c
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x22b92
leaq 0x60(%rsp), %rdi
callq 0x22b92
leaq 0xa0(%rsp), %rdi
callq 0x22b92
leaq 0x80(%rsp), %rdi
callq 0x22b92
movq %rbx, %rdi
callq 0x75e0