// File: /workspace/github_cpp_makefile_star2_O1/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, 0x58(%rsp)
movq %rdi, 0x18(%rsp)
movsd 0x30(%rcx), %xmm0
movsd %xmm0, 0x30(%rsp)
movq %rsi, 0x8(%rsp)
movsd 0x28(%rsi), %xmm0
movaps %xmm0, 0xf0(%rsp)
movq %rdx, 0x10(%rsp)
movsd 0x28(%rdx), %xmm0
movapd %xmm0, 0xe0(%rsp)
xorl %eax, %eax
movq %rax, 0x70(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x60(%rsp)
movq %rax, 0xd0(%rsp)
movapd %xmm0, 0xc0(%rsp)
movq %rcx, (%rsp)
cmpl $0x3, 0x78(%rcx)
jl 0x277eb
movq 0x2c83c(%rip), %rbx     # 0x53fe8
leaq 0x1de16(%rip), %rsi     # 0x455c9
movl $0x1b, %edx
movq %rbx, %rdi
callq 0x7340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq 0x2c80a(%rip), %rdi     # 0x53fe8
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq (%rsp), %rdx
movsd 0x30(%rdx), %xmm0
leaq 0x60(%rsp), %rcx
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x24e89
movq (%rsp), %rdx
movsd 0x30(%rdx), %xmm0
leaq 0xc0(%rsp), %rcx
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x24e89
xorpd %xmm0, %xmm0
movapd %xmm0, 0xa0(%rsp)
xorl %eax, %eax
movq %rax, 0xb0(%rsp)
movq %rax, 0x90(%rsp)
movapd %xmm0, 0x80(%rsp)
movq (%rsp), %rax
cmpl $0x3, 0x78(%rax)
jl 0x278a0
movq 0x2c787(%rip), %rbx     # 0x53fe8
leaq 0x1dd7d(%rip), %rsi     # 0x455e5
movl $0x26, %edx
movq %rbx, %rdi
callq 0x7340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq 0x2c755(%rip), %rdi     # 0x53fe8
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movsd 0x1d468(%rip), %xmm1    # 0x44d10
movapd 0xf0(%rsp), %xmm3
unpcklps %xmm1, %xmm3            # xmm3 = xmm3[0],xmm1[0],xmm3[1],xmm1[1]
movapd 0x1d464(%rip), %xmm2    # 0x44d20
subpd %xmm2, %xmm3
movapd %xmm3, %xmm0
unpckhpd %xmm3, %xmm0            # xmm0 = xmm0[1],xmm3[1]
addsd %xmm3, %xmm0
movsd 0x30(%rsp), %xmm3
mulsd %xmm3, %xmm0
cvttsd2si %xmm0, %r12d
incl %r12d
movapd 0xe0(%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, %eax
incl %eax
movl %eax, 0x30(%rsp)
movq 0x68(%rsp), %rax
movabsq $0x6db6db6db6db6db7, %r13 # imm = 0x6DB6DB6DB6DB6DB7
cmpq 0x60(%rsp), %rax
je 0x27a17
xorl %r14d, %r14d
movq 0xc0(%rsp), %rsi
cmpq %rsi, 0xc8(%rsp)
je 0x279f9
imulq $0x38, %r14, %r15
xorl %ebx, %ebx
xorl %ebp, %ebp
movq 0x60(%rsp), %rdi
cmpb $0x1, 0x18(%rdi,%r15)
jne 0x27957
cmpb $0x0, 0x18(%rsi,%rbx)
jne 0x279ce
addq %r15, %rdi
addq %rbx, %rsi
movq (%rsp), %rax
movl 0x78(%rax), %r9d
movl %r12d, %edx
movl 0x30(%rsp), %ecx
movq 0x58(%rsp), %r8
callq 0x27414
testb %al, %al
je 0x279ce
movq 0x60(%rsp), %rsi
cmpb $0x0, 0x18(%rsi,%r15)
jne 0x279a2
addq %r15, %rsi
leaq 0xa0(%rsp), %rdi
callq 0x2c86c
movq 0x60(%rsp), %rax
movb $0x1, 0x18(%rax,%r15)
movq 0xc0(%rsp), %rsi
cmpb $0x0, 0x18(%rsi,%rbx)
jne 0x279ce
addq %rbx, %rsi
leaq 0x80(%rsp), %rdi
callq 0x2c86c
movq 0xc0(%rsp), %rax
movb $0x1, 0x18(%rax,%rbx)
incq %rbp
movq 0xc0(%rsp), %rsi
movq 0xc8(%rsp), %rax
subq %rsi, %rax
sarq $0x3, %rax
imulq %r13, %rax
addq $0x38, %rbx
cmpq %rax, %rbp
jb 0x27943
movq 0x68(%rsp), %rax
subq 0x60(%rsp), %rax
incq %r14
sarq $0x3, %rax
imulq %r13, %rax
cmpq %rax, %r14
jb 0x27925
movq (%rsp), %rax
cmpl $0x2, 0x78(%rax)
jle 0x27a87
movq 0x2c5c0(%rip), %rdi     # 0x53fe8
leaq 0x1dbdd(%rip), %rsi     # 0x4560c
movl $0x1e, %edx
callq 0x7340
movq 0xa8(%rsp), %rsi
subq 0xa0(%rsp), %rsi
sarq $0x3, %rsi
imulq %r13, %rsi
movq 0x2c590(%rip), %rdi     # 0x53fe8
callq 0x71c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq (%rsp), %rax
cmpl $0x3, 0x78(%rax)
jl 0x27af7
movq 0x2c550(%rip), %rdi     # 0x53fe8
leaq 0x1db8c(%rip), %rsi     # 0x4562b
movl $0x1e, %edx
callq 0x7340
movq 0x88(%rsp), %rsi
subq 0x80(%rsp), %rsi
sarq $0x3, %rsi
imulq %r13, %rsi
movq 0x2c520(%rip), %rdi     # 0x53fe8
callq 0x71c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq 0xa0(%rsp), %rax
cmpq 0xa8(%rsp), %rax
jne 0x27b1f
movq 0x80(%rsp), %rax
cmpq 0x88(%rsp), %rax
je 0x2830a
movq (%rsp), %rdx
movslq (%rdx), %rbx
movq 0x8(%rsp), %rsi
movq 0x28(%rsi), %rax
imulq %rbx, %rax
movq %rax, %xmm0
punpckldq 0x1d1d0(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x1d1d8(%rip), %xmm0    # 0x44d20
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movl 0x4(%rdx), %eax
subl %ebx, %eax
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
movl 0x60(%rdx), %r9d
mulsd 0x1d01c(%rip), %xmm0    # 0x44b90
movsd %xmm2, 0xe0(%rsp)
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movq 0x10(%rsp), %rcx
movq 0x28(%rcx), %r14
leaq 0xa0(%rsp), %rcx
movq 0x18(%rsp), %rdi
movl %r12d, %r8d
pushq %rax
pushq $0x0
callq 0x243ca
addq $0x10, %rsp
movl 0x30(%rsp), %r8d
xorps %xmm0, %xmm0
cvtsi2sd %r8d, %xmm0
mulsd 0x1cfcd(%rip), %xmm0    # 0x44b90
imulq %rbx, %r14
movq %r14, %xmm1
punpckldq 0x1d13c(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1d144(%rip), %xmm1    # 0x44d20
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
movsd 0xe0(%rsp), %xmm1
mulsd %xmm0, %xmm1
addsd %xmm2, %xmm1
cvttsd2si %xmm1, %eax
movq (%rsp), %rdx
movl 0x60(%rdx), %r9d
leaq 0x80(%rsp), %rcx
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
pushq %rax
pushq $0x0
callq 0x243ca
addq $0x10, %rsp
movq (%rsp), %rax
cmpl $0x3, 0x78(%rax)
jl 0x27ca6
movq 0x2c3b4(%rip), %rdi     # 0x53fe8
leaq 0x1da22(%rip), %rsi     # 0x4565d
movl $0x18, %edx
callq 0x7340
movq 0x8(%rsp), %rax
movq 0xb8(%rax), %rsi
subq 0xb0(%rax), %rsi
sarq $0x3, %rsi
movq 0x2c385(%rip), %rdi     # 0x53fe8
callq 0x71c0
movq %rax, %rbx
leaq 0x1da15(%rip), %rsi     # 0x45687
movl $0xb, %edx
movq %rax, %rdi
callq 0x7340
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq (%rsp), %rax
cmpl $0x3, 0x78(%rax)
jl 0x27d29
movq 0x2c331(%rip), %rdi     # 0x53fe8
leaq 0x1d802(%rip), %rsi     # 0x454c0
movl $0x18, %edx
callq 0x7340
movq 0x10(%rsp), %rax
movq 0xb8(%rax), %rsi
subq 0xb0(%rax), %rsi
sarq $0x3, %rsi
movq 0x2c302(%rip), %rdi     # 0x53fe8
callq 0x71c0
movq %rax, %rbx
leaq 0x1d992(%rip), %rsi     # 0x45687
movl $0xb, %edx
movq %rax, %rdi
callq 0x7340
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq 0x8(%rsp), %rcx
movq 0xb0(%rcx), %rax
cmpq 0xb8(%rcx), %rax
jne 0x27e3f
movq (%rsp), %rax
cmpb $0x1, 0x71(%rax)
jne 0x27e3f
movq (%rsp), %rax
cmpl $0x2, 0x78(%rax)
jl 0x27da0
movq 0x2c287(%rip), %rbx     # 0x53fe8
leaq 0x1d4ce(%rip), %rsi     # 0x45236
movl $0x7, %edx
movq %rbx, %rdi
callq 0x7340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq 0x2c255(%rip), %rdi     # 0x53fe8
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq 0x8(%rsp), %rsi
movq 0x28(%rsi), %rax
movq (%rsp), %rdx
movslq (%rdx), %rcx
movl 0x4(%rdx), %edi
subl %ecx, %edi
imulq %rax, %rcx
movq %rcx, %xmm0
movq 0x1cf4a(%rip), %xmm3    # 0x44d10
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x1cf4e(%rip), %xmm4    # 0x44d20
subpd %xmm4, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movl 0x60(%rdx), %r9d
xorps %xmm0, %xmm0
cvtsi2sd %edi, %xmm0
mulsd 0x1cd93(%rip), %xmm0    # 0x44b88
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
cmovlel %r10d, %eax
leaq 0xa0(%rsp), %rcx
movq 0x18(%rsp), %rdi
movl %r12d, %r8d
pushq %rax
pushq %r10
callq 0x243ca
addq $0x10, %rsp
movq 0x10(%rsp), %rcx
movq 0xb0(%rcx), %rax
cmpq 0xb8(%rcx), %rax
jne 0x27f57
movq (%rsp), %rax
cmpb $0x1, 0x71(%rax)
jne 0x27f57
movq (%rsp), %rax
cmpl $0x2, 0x78(%rax)
jl 0x27eb6
movq 0x2c171(%rip), %rbx     # 0x53fe8
leaq 0x1d3b8(%rip), %rsi     # 0x45236
movl $0x7, %edx
movq %rbx, %rdi
callq 0x7340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq 0x2c13f(%rip), %rdi     # 0x53fe8
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq 0x10(%rsp), %rsi
movq 0x28(%rsi), %rax
movq (%rsp), %rdx
movslq (%rdx), %rcx
movl 0x4(%rdx), %edi
subl %ecx, %edi
imulq %rax, %rcx
movq %rcx, %xmm0
movq 0x1ce34(%rip), %xmm3    # 0x44d10
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x1ce38(%rip), %xmm4    # 0x44d20
subpd %xmm4, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movl 0x60(%rdx), %r9d
xorps %xmm0, %xmm0
cvtsi2sd %edi, %xmm0
mulsd 0x1cc7d(%rip), %xmm0    # 0x44b88
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
cmovlel %r10d, %eax
leaq 0x80(%rsp), %rcx
movq 0x18(%rsp), %rdi
movl 0x30(%rsp), %r8d
pushq %rax
pushq %r10
callq 0x243ca
addq $0x10, %rsp
movl $0x0, 0x3c(%rsp)
movq 0x8(%rsp), %rax
movq 0xb8(%rax), %r13
subq 0xb0(%rax), %r13
movq (%rsp), %rax
movl 0x50(%rax), %r12d
movq 0x10(%rsp), %rax
movq 0xb8(%rax), %rbp
subq 0xb0(%rax), %rbp
shrq $0x3, %r13
shrq $0x3, %rbp
xorpd %xmm0, %xmm0
leaq 0x40(%rsp), %rdi
movapd %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leal (%rbp,%r13), %eax
movslq %eax, %rsi
callq 0x2c7aa
movq 0x8(%rsp), %rcx
movq 0xb0(%rcx), %rax
cmpq %rax, 0xb8(%rcx)
je 0x2803e
xorl %r14d, %r14d
leaq 0x40(%rsp), %rbx
leaq 0x24(%rsp), %r15
movq (%rax,%r14,8), %rax
movl 0x70(%rax), %eax
movb $0x1, 0x24(%rsp)
movl %r14d, 0x28(%rsp)
movl %eax, 0x2c(%rsp)
movq 0x48(%rsp), %rsi
cmpq 0x50(%rsp), %rsi
je 0x28011
movl 0x2c(%rsp), %eax
movl %eax, 0x8(%rsi)
movq 0x24(%rsp), %rax
movq %rax, (%rsi)
addq $0xc, 0x48(%rsp)
jmp 0x2801c
movq %rbx, %rdi
movq %r15, %rdx
callq 0x319e2
incq %r14
movq 0x8(%rsp), %rcx
movq 0xb0(%rcx), %rax
movq 0xb8(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %r14
jb 0x27fd9
movq 0x10(%rsp), %rcx
movq 0xb0(%rcx), %rax
cmpq %rax, 0xb8(%rcx)
je 0x280c5
xorl %r14d, %r14d
leaq 0x40(%rsp), %rbx
leaq 0x24(%rsp), %r15
movq (%rax,%r14,8), %rax
movl 0x70(%rax), %eax
movb $0x0, 0x24(%rsp)
movl %r14d, 0x28(%rsp)
movl %eax, 0x2c(%rsp)
movq 0x48(%rsp), %rsi
cmpq 0x50(%rsp), %rsi
je 0x28098
movl 0x2c(%rsp), %eax
movl %eax, 0x8(%rsi)
movq 0x24(%rsp), %rax
movq %rax, (%rsi)
addq $0xc, 0x48(%rsp)
jmp 0x280a3
movq %rbx, %rdi
movq %r15, %rdx
callq 0x319e2
incq %r14
movq 0x10(%rsp), %rcx
movq 0xb0(%rcx), %rax
movq 0xb8(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %r14
jb 0x28060
movq 0x40(%rsp), %rbx
movq 0x48(%rsp), %r15
cmpq %r15, %rbx
je 0x2811d
movq %r15, %rax
subq %rbx, %rax
sarq $0x2, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rcx
bsrq %rcx, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
leaq -0x208a(%rip), %rcx     # 0x26076
movq %rbx, %rdi
movq %r15, %rsi
callq 0x31b71
leaq -0x209c(%rip), %rdx     # 0x26076
movq %rbx, %rdi
movq %r15, %rsi
callq 0x31ccc
testl %r13d, %r13d
jle 0x281b1
testl %ebp, %ebp
jle 0x281b1
movq (%rsp), %rax
cmpl $0x3, 0x78(%rax)
jl 0x2817e
movq 0x2bea9(%rip), %rbx     # 0x53fe8
leaq 0x1d530(%rip), %rsi     # 0x45676
movl $0x1c, %edx
movq %rbx, %rdi
callq 0x7340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq 0x2be77(%rip), %rdi     # 0x53fe8
callq 0x7040
movq %rax, %rdi
callq 0x71d0
leal 0x1(%r12), %eax
leaq 0x3c(%rsp), %r10
leaq 0x40(%rsp), %r9
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq (%rsp), %rcx
movq 0x58(%rsp), %r8
pushq %rax
pushq %r10
callq 0x26902
addq $0x10, %rsp
movq 0x8(%rsp), %rax
movl 0xc8(%rax), %ebp
movq (%rsp), %rax
cmpl $0x2, 0x78(%rax)
jl 0x28216
movq 0x2be1b(%rip), %rdi     # 0x53fe8
leaq 0x1d38d(%rip), %rsi     # 0x45561
movl $0x11, %edx
callq 0x7340
movq 0x2be03(%rip), %rdi     # 0x53fe8
movl %ebp, %esi
callq 0x75d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq 0x58(%rsp), %rax
cmpb $0x1, 0x9(%rax)
jne 0x2828c
cmpl %r12d, 0x3c(%rsp)
jg 0x2828c
movq (%rsp), %rax
cmpl $0x3, 0x78(%rax)
jl 0x28278
movq 0x2bdaf(%rip), %rbx     # 0x53fe8
leaq 0x1d453(%rip), %rsi     # 0x45693
movl $0x1c, %edx
movq %rbx, %rdi
callq 0x7340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq 0x2bd7d(%rip), %rdi     # 0x53fe8
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x25b75
movq (%rsp), %rax
cmpl $0x2, 0x78(%rax)
jl 0x282f1
movq 0x2bd4b(%rip), %rdi     # 0x53fe8
leaq 0x1d2cf(%rip), %rsi     # 0x45573
movl $0x11, %edx
callq 0x7340
movq 0x8(%rsp), %rax
movl 0xc8(%rax), %esi
subl %ebp, %esi
movq 0x2bd26(%rip), %rdi     # 0x53fe8
callq 0x75d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x28377
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x72f0
jmp 0x28377
movq (%rsp), %rax
cmpl $0x2, 0x78(%rax)
jl 0x2835a
movq 0x2bccd(%rip), %rbx     # 0x53fe8
leaq 0x1d328(%rip), %rsi     # 0x4564a
movl $0x12, %edx
movq %rbx, %rdi
callq 0x7340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq 0x2bc9b(%rip), %rdi     # 0x53fe8
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq (%rsp), %rcx
movq 0x58(%rsp), %r8
callq 0x26c48
leaq 0x80(%rsp), %rdi
callq 0x2c768
leaq 0xa0(%rsp), %rdi
callq 0x2c768
leaq 0xc0(%rsp), %rdi
callq 0x2c768
leaq 0x60(%rsp), %rdi
callq 0x2c768
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x283c5
movq %rax, %rbx
jmp 0x28402
jmp 0x283c5
jmp 0x283c5
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x283e8
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x72f0
jmp 0x283e8
jmp 0x283e5
jmp 0x283e5
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x2c768
leaq 0xa0(%rsp), %rdi
callq 0x2c768
leaq 0xc0(%rsp), %rdi
callq 0x2c768
leaq 0x60(%rsp), %rdi
callq 0x2c768
movq %rbx, %rdi
callq 0x7600