// File: /workspace/github_cpp_makefile_star2_O1/readmapping[P]alfalfa/src/mapper.cpp
// Function: identifyAndFilter(std::vector<match_t, std::allocator<match_t>>&, bool, int, int, std::vector<lis_t, std::allocator<lis_t>>&, align_opt const&)
void identifyAndFilter(vector<match_t>& matches, bool fw, int qLength, int editDist, vector<lis_t>& lisIntervals, const align_opt & alnOptions){
    if(!matches.empty()){
        size_t emptySize = lisIntervals.size();
        //FIND SMEMS AND REGIONS
        size_t maxSmemOcc = alnOptions.maxSeedCandidates;
        long minMemLength = alnOptions.minMemRegLength;
        size_t maxPossOccIncrease = alnOptions.maxRegionMems;
        //sort according to query offset and len
        sort(matches.begin(),matches.end(), compMatchesSMEM);
        ///////////////////////////////////////////////////
        //TRIAGE: smems and mems to fill candidate regions
        ///////////////////////////////////////////////////
        vector<match_t> smems;
        vector<match_t> reserves;
        smems.reserve(matches.size());
        reserves.reserve(matches.size());
        long previousStart = matches[0].query;
        long previousEnd = matches[0].query + matches[0].len;
        long previousREnd = -1L;
        size_t rangeStart = 0;
        size_t currentSmemRange = 0;
        size_t index = 0;
        ///////////////////////////
        //IDENTIFY SMEMS
        //////////////////////////
        if(alnOptions.print >= 5) cerr << "number of MEMs before calculating regions: " << matches.size() << endl;
        while(index < matches.size()){
            rangeStart = index;
            previousStart = matches[index].query;
            previousEnd = matches[index].query + matches[index].len;
            index++;
            //same mem/smem
            while(index < matches.size() && matches[index].query == previousStart && matches[index].query+matches[index].len == previousEnd)
                index++;
            //region of same query position seeds: insert this region in triage
            assert(index>=rangeStart);
            if(previousEnd > previousREnd)
                currentSmemRange = index-rangeStart;
            else
                currentSmemRange += index-rangeStart;
            if ((previousEnd > previousREnd && currentSmemRange <= maxSmemOcc) || 
                    (currentSmemRange <= maxPossOccIncrease 
                    && previousEnd-previousStart >= minMemLength)){
                        for(size_t j = rangeStart; j < index; j++)
                            smems.push_back(matches[j]);
            }
            else {
                for(size_t j = rangeStart; j < index; j++)
                    reserves.push_back(matches[j]);
            }
            //new values of fields
            previousREnd = previousEnd;
        }
        if(alnOptions.print >= 5){ 
            cerr << "number of SMEMs: " << smems.size() << endl;
            cerr << "number of reserves: " << reserves.size() << endl;
        }
        ///////////////////////////
        //CREATE CANDIDATE REGIONS
        //////////////////////////
        sort(smems.begin(),smems.end(), compMatches);
        int begin, end, longest;
        begin = end = longest = 0;
        long refEnd, refBegin;
        while(begin < (int) smems.size()){
            //left most --> define right most boundary
            refEnd = smems[begin].ref - smems[begin].query + qLength + editDist;
            longest = begin;
            end = begin+1;
            //find right most boundary
            while(end < (int) smems.size() && smems[end].ref + smems[end].len <= refEnd){
                if(smems[longest].len < smems[end].len){
                    longest = end;
                    refEnd = smems[longest].ref - smems[longest].query + qLength + editDist;
                }
                end++;
            }
            //first to left
            refBegin = smems[longest].ref - smems[longest].query - editDist;
            //begin = longest-1;
            begin--;
            int beginFix = begin;//bugfix: merge region contains some seeds twice
            while(begin >= 0 && smems[begin].ref >= refBegin)
                begin--;
            //add interval to list and calculate coverage
            if(emptySize==lisIntervals.size() || lisIntervals.back().refEnd < refBegin){
                //no overlap, calc coverage and push
                lisIntervals.push_back(lis_t(fw));
                lisIntervals.back().addSeeds(smems,begin+1,end-1);
                lisIntervals.back().refBegin = refBegin;
                lisIntervals.back().refEnd = refEnd;
                if(alnOptions.print >= 5) cerr << "region found with " << (end-begin-1) << " seeds" << endl;
            }
            else{//overlap with previous: merge two regions
                lisIntervals.back().addSeeds(smems,beginFix+1,end-1);
                lisIntervals.back().refBegin = min(lisIntervals.back().refBegin,refBegin);
                lisIntervals.back().refEnd = min(lisIntervals.back().refEnd,refEnd);
                if(alnOptions.print >= 5) cerr << "previous region extended with " << (end-beginFix-1) << " seeds" << endl;
            }
            //start new interval
            begin = end;
        }
        if(alnOptions.print >= 5) cerr << (lisIntervals.size() - emptySize) << " regions found" << endl;
        ///////////////////////////
        //FILL CANDIDATE REGIONS
        //////////////////////////
        //region fill: merge reserves in regions fill both matches and lisIntervals
        int reservesAdded = 0;
        if(emptySize < lisIntervals.size()){
            sort(reserves.begin(),reserves.end(), compMatches);
            size_t curReserve = 0;
            size_t curInterval = emptySize;
            while(curReserve < reserves.size() && curInterval < lisIntervals.size()){
                if(reserves[curReserve].ref < lisIntervals[curInterval].refBegin)
                    curReserve++;
                else if(lisIntervals[curInterval].refEnd < reserves[curReserve].ref)
                    curInterval++;
                else{
                    lisIntervals[curInterval].addSeed(reserves[curReserve]);
                    reservesAdded++;
                    curReserve++;
                }
            }
        }
        if(alnOptions.print >= 5) cerr << reservesAdded << " extra seeds added to region" << endl;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movl %esi, 0x7c(%rsp)
movq (%rdi), %r15
movq 0x8(%rdi), %r12
cmpq %r12, %r15
je 0x225b2
movq %r9, %rbx
movq %rdi, %r13
movl %edx, 0x78(%rsp)
movl %ecx, 0x58(%rsp)
movq 0x8(%r8), %rax
movq %r8, 0x10(%rsp)
subq (%r8), %rax
movq %rax, 0x70(%rsp)
movslq 0x40(%r9), %rax
movq %rax, 0x8(%rsp)
movslq 0x48(%r9), %rax
movq %rax, 0x68(%rsp)
movslq 0x4c(%r9), %rax
movq %rax, 0x60(%rsp)
movq %r12, %rax
subq %r15, %rax
sarq $0x4, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
leaq -0x98(%rip), %rbp       # 0x21cc4
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rcx
callq 0x2f235
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x2f368
xorl %eax, %eax
leaq 0x40(%rsp), %rdi
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movq %rax, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movq 0x8(%r13), %rsi
subq (%r13), %rsi
sarq $0x4, %rsi
callq 0x2b9a4
movq 0x8(%r13), %rsi
subq (%r13), %rsi
sarq $0x4, %rsi
leaq 0x20(%rsp), %rdi
callq 0x2b9a4
movq %rbx, 0x18(%rsp)
cmpl $0x5, 0x78(%rbx)
jl 0x21e1f
movq 0x3221c(%rip), %rdi     # 0x53fe8
leaq 0x230cb(%rip), %rsi     # 0x44e9e
movl $0x2b, %edx
callq 0x7340
movq 0x8(%r13), %rsi
subq (%r13), %rsi
sarq $0x4, %rsi
movq 0x321f8(%rip), %rdi     # 0x53fe8
callq 0x71c0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq (%r13), %rdx
movq 0x8(%r13), %rcx
subq %rdx, %rcx
je 0x21f30
sarq $0x4, %rcx
movq $-0x1, %rbp
leaq 0x40(%rsp), %r12
xorl %ebx, %ebx
xorl %r11d, %r11d
movq %rbx, %rax
movq %rbp, %rsi
movq %rbx, %r15
shlq $0x4, %r15
leaq (%rdx,%r15), %rdi
addq $0x1c, %rdi
movslq -0x14(%rdi), %rdx
movslq -0x10(%rdi), %rbp
addq %rdx, %rbp
leaq 0x1(%rbx), %r8
cmpq %r8, %rcx
movq %r8, %r9
cmovaq %rcx, %r9
cmpq %rcx, %r8
jae 0x21e95
movl -0x4(%rdi), %r10d
cmpl %edx, %r10d
jne 0x21e9a
addl (%rdi), %r10d
incq %r8
addq $0x10, %rdi
incq %rbx
cmpl %ebp, %r10d
je 0x21e73
jmp 0x21e9d
movq %r9, %rbx
jmp 0x21e9d
movq %r8, %rbx
movq %rbx, %r14
subq %rax, %r14
cmpq %rbp, %rsi
movl $0x0, %ecx
cmovlq %rcx, %r11
addq %r14, %r11
cmpq %rbp, %rsi
movq %r11, (%rsp)
jge 0x21ec2
cmpq 0x8(%rsp), %r11
jbe 0x21ed6
cmpq 0x60(%rsp), %r11
ja 0x21ef5
movq %rbp, %rcx
subq %rdx, %rcx
cmpq 0x68(%rsp), %rcx
jl 0x21ef5
cmpq %rax, %rbx
jbe 0x21f14
movq (%r13), %rsi
addq %r15, %rsi
movq %r12, %rdi
callq 0x2ba28
addq $0x10, %r15
decq %r14
jne 0x21edb
jmp 0x21f14
cmpq %rax, %rbx
jbe 0x21f14
movq (%r13), %rsi
addq %r15, %rsi
leaq 0x20(%rsp), %rdi
callq 0x2ba28
addq $0x10, %r15
decq %r14
jne 0x21efa
movq (%r13), %rdx
movq 0x8(%r13), %rcx
subq %rdx, %rcx
sarq $0x4, %rcx
cmpq %rcx, %rbx
movq (%rsp), %r11
jb 0x21e45
movq 0x18(%rsp), %rax
cmpl $0x5, 0x78(%rax)
jl 0x21ff7
movq 0x320a2(%rip), %rdi     # 0x53fe8
leaq 0x22f7d(%rip), %rsi     # 0x44eca
movl $0x11, %edx
callq 0x7340
movq 0x48(%rsp), %rsi
subq 0x40(%rsp), %rsi
sarq $0x4, %rsi
movq 0x3207c(%rip), %rdi     # 0x53fe8
callq 0x71c0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq 0x32046(%rip), %rdi     # 0x53fe8
leaq 0x22f33(%rip), %rsi     # 0x44edc
movl $0x14, %edx
callq 0x7340
movq 0x28(%rsp), %rsi
subq 0x20(%rsp), %rsi
sarq $0x4, %rsi
movq 0x32020(%rip), %rdi     # 0x53fe8
callq 0x71c0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq 0x40(%rsp), %r15
movq 0x48(%rsp), %r12
cmpq %r12, %r15
je 0x22041
movq %r12, %rax
subq %r15, %rax
sarq $0x4, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
leaq -0x37c(%rip), %rcx      # 0x21ca8
movq %r15, %rdi
movq %r12, %rsi
callq 0x2f235
leaq -0x38e(%rip), %rdx      # 0x21ca8
movq %r15, %rdi
movq %r12, %rsi
callq 0x2f368
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
subq %rax, %rcx
shrq $0x4, %rcx
testl %ecx, %ecx
jle 0x223d4
movslq 0x78(%rsp), %r15
movslq 0x58(%rsp), %rdx
movq %rdx, 0x68(%rsp)
addq %rdx, %r15
xorl %ebx, %ebx
movq %r15, 0x58(%rsp)
movl %ebx, %r13d
movslq %ebx, %rbp
movq %rbp, %r14
shlq $0x4, %r14
movslq 0x8(%rax,%r14), %rdx
movq (%rax,%r14), %r12
addq %r15, %r12
subq %rdx, %r12
leal 0x1(%rbp), %ebx
cmpl %ecx, %ebx
jge 0x220c5
movslq %r13d, %rdx
leaq 0x1(%rdx), %rdi
movq %rdi, %rsi
shlq $0x4, %rsi
movq (%rax,%rsi), %r8
movslq 0xc(%rax,%rsi), %r10
leaq (%r8,%r10), %rsi
cmpq %r12, %rsi
jle 0x220d2
movq %r12, 0x8(%rsp)
movl %r13d, %r8d
movl %r13d, %esi
movl %edi, %ebx
jmp 0x22143
movq %r12, 0x8(%rsp)
movl %r13d, %r8d
movl %r13d, %esi
jmp 0x22143
movslq %ecx, %rdi
leal -0x1(%rcx), %esi
movl %esi, (%rsp)
movq %rdx, %rsi
shlq $0x4, %rsi
leaq (%rax,%rsi), %r9
addq $0x2c, %r9
addq $-0x2, %rdi
movl %r13d, %esi
movslq %esi, %r11
shlq $0x4, %r11
cmpl %r10d, 0xc(%rax,%r11)
jge 0x2210e
movslq -0x14(%r9), %rsi
addq %r15, %r8
subq %rsi, %r8
movq %r8, %r12
movl %ebx, %esi
cmpq %rdx, %rdi
je 0x22138
movq -0xc(%r9), %r8
movslq (%r9), %r10
movq %r10, %r11
addq %r8, %r11
incq %rdx
addq $0x10, %r9
incl %ebx
cmpq %r12, %r11
jle 0x220f1
movq %r12, 0x8(%rsp)
movl %edx, %r8d
jmp 0x22143
movq %r12, 0x8(%rsp)
movl %ecx, %ebx
movl (%rsp), %r8d
movslq %esi, %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %r12
movslq 0x8(%rax,%rcx), %rcx
addq 0x68(%rsp), %rcx
subq %rcx, %r12
movl %r13d, %ecx
movl %r13d, %edx
sarl $0x1f, %edx
andl %r13d, %edx
movl %edx, (%rsp)
shlq $0x4, %rcx
addq %rax, %rcx
addq $-0x10, %rcx
movl %r13d, %eax
movl %r13d, 0x60(%rsp)
testl %eax, %eax
jle 0x22194
decl %eax
leaq -0x10(%rcx), %rdx
cmpq %r12, (%rcx)
movq %rdx, %rcx
jge 0x2217d
incl %eax
movl %eax, (%rsp)
movq 0x10(%rsp), %rcx
movq 0x8(%rcx), %r13
movq %r13, %rax
subq (%rcx), %rax
cmpq %rax, 0x70(%rsp)
je 0x221b4
cmpq %r12, -0x28(%r13)
jge 0x222ec
movl %r8d, %ebp
movl $0x0, 0x80(%rsp)
movl 0x7c(%rsp), %eax
movb %al, 0x84(%rsp)
leaq 0x88(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rax)
movq $0x0, 0x28(%rax)
movups %xmm0, (%rax)
movb $0x0, 0x10(%rax)
movq 0x10(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x2fbe8
movq 0xa0(%rsp), %rdi
cmpq %rdi, 0xa8(%rsp)
je 0x22217
movq %rdi, 0xa8(%rsp)
testq %rdi, %rdi
je 0x2222c
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x72f0
cmpl %ebp, (%rsp)
ja 0x22268
movslq %ebp, %r14
movslq (%rsp), %r15
movq 0x10(%rsp), %rax
movq 0x8(%rax), %r13
addq $-0x18, %r13
movq %r15, %rbp
shlq $0x4, %rbp
movq 0x40(%rsp), %rsi
addq %rbp, %rsi
movq %r13, %rdi
callq 0x2ba28
incq %r15
addq $0x10, %rbp
cmpq %r14, %r15
jbe 0x2224c
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq %r12, -0x30(%rax)
movq 0x8(%rsp), %rcx
movq %rcx, -0x28(%rax)
movq 0x18(%rsp), %rax
cmpl $0x5, 0x78(%rax)
movq 0x58(%rsp), %r15
jl 0x223bb
movl $0x12, %edx
movq 0x31d4a(%rip), %rdi     # 0x53fe8
leaq 0x22c4c(%rip), %rsi     # 0x44ef1
callq 0x7340
movl %ebx, %esi
subl (%rsp), %esi
movq 0x31d32(%rip), %rdi     # 0x53fe8
callq 0x75d0
movq %rax, %r13
movl $0x6, %edx
movq %rax, %rdi
leaq 0x22f41(%rip), %rsi     # 0x4520e
callq 0x7340
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x72b0
jmp 0x223a8
cmpl %r8d, 0x60(%rsp)
ja 0x22316
movslq %r8d, %r15
addq $-0x18, %r13
movq 0x40(%rsp), %rsi
addq %r14, %rsi
movq %r13, %rdi
callq 0x2ba28
incq %rbp
addq $0x10, %r14
cmpq %r15, %rbp
jbe 0x222fa
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq -0x30(%rax), %rcx
cmpq %rcx, %r12
cmovlq %r12, %rcx
movq -0x28(%rax), %rdx
movq 0x8(%rsp), %rsi
cmpq %rdx, %rsi
cmovlq %rsi, %rdx
movq %rcx, -0x30(%rax)
movq %rdx, -0x28(%rax)
movq 0x18(%rsp), %rax
cmpl $0x5, 0x78(%rax)
movq 0x58(%rsp), %r15
jl 0x223bb
movl $0x1e, %edx
movq 0x31c8a(%rip), %rdi     # 0x53fe8
leaq 0x22b9f(%rip), %rsi     # 0x44f04
callq 0x7340
movl %ebx, %esi
subl 0x60(%rsp), %esi
movq 0x31c71(%rip), %rdi     # 0x53fe8
callq 0x75d0
movq %rax, %r13
movl $0x6, %edx
movq %rax, %rdi
leaq 0x22e80(%rip), %rsi     # 0x4520e
callq 0x7340
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
subq %rax, %rcx
shrq $0x4, %rcx
cmpl %ecx, %ebx
jl 0x22073
movq 0x70(%rsp), %rbx
sarq $0x3, %rbx
movabsq $0x6db6db6db6db6db7, %r13 # imm = 0x6DB6DB6DB6DB6DB7
imulq %r13, %rbx
movq 0x18(%rsp), %rax
cmpl $0x5, 0x78(%rax)
movq 0x10(%rsp), %r14
jl 0x22457
movq 0x8(%r14), %rsi
subq (%r14), %rsi
sarq $0x3, %rsi
imulq %r13, %rsi
subq %rbx, %rsi
movq 0x31bd4(%rip), %rdi     # 0x53fe8
callq 0x71c0
movq %rax, %r15
leaq 0x22b00(%rip), %rsi     # 0x44f23
movl $0xe, %edx
movq %rax, %rdi
callq 0x7340
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq 0x8(%r14), %rax
subq (%r14), %rax
xorl %ebp, %ebp
cmpq %rax, 0x70(%rsp)
jae 0x2252d
movq 0x20(%rsp), %r15
movq 0x28(%rsp), %r12
cmpq %r12, %r15
je 0x224b5
movq %r12, %rax
subq %r15, %rax
sarq $0x4, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
leaq -0x7f0(%rip), %rcx      # 0x21ca8
movq %r15, %rdi
movq %r12, %rsi
callq 0x2f235
leaq -0x802(%rip), %rdx      # 0x21ca8
movq %r15, %rdi
movq %r12, %rsi
callq 0x2f368
movq 0x20(%rsp), %rsi
cmpq %rsi, 0x28(%rsp)
je 0x2252d
xorl %r14d, %r14d
xorl %ebp, %ebp
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rax
subq %rdi, %rax
sarq $0x3, %rax
imulq %r13, %rax
cmpq %rax, %rbx
jae 0x2252d
movq %r14, %rax
shlq $0x4, %rax
movq (%rsi,%rax), %rcx
imulq $0x38, %rbx, %rdx
cmpq 0x8(%rdi,%rdx), %rcx
jl 0x22514
addq %rdx, %rdi
cmpq %rcx, 0x10(%rdi)
jge 0x22506
incq %rbx
jmp 0x22517
addq %rax, %rsi
addq $0x20, %rdi
callq 0x2ba28
incl %ebp
incq %r14
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rax
subq %rsi, %rax
sarq $0x4, %rax
cmpq %rax, %r14
jb 0x224c6
movq 0x18(%rsp), %rax
cmpl $0x5, 0x78(%rax)
jl 0x22584
movq 0x31aa9(%rip), %rdi     # 0x53fe8
movl %ebp, %esi
callq 0x75d0
movq %rax, %rbx
leaq 0x229e2(%rip), %rsi     # 0x44f32
movl $0x1c, %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 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x2259b
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x72f0
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x225b2
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x72f0
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2260a
jmp 0x2260a
jmp 0x2260a
jmp 0x2260a
jmp 0x2260a
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %rdi, 0xa8(%rsp)
je 0x225eb
movq %rdi, 0xa8(%rsp)
testq %rdi, %rdi
je 0x2260d
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x72f0
jmp 0x2260d
jmp 0x2260a
jmp 0x2260a
jmp 0x2260a
jmp 0x2260a
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x22624
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x72f0
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x2263b
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x72f0
movq %rbx, %rdi
callq 0x7600