// File: /workspace/github_cpp_makefile_star2_O3/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 $0xc8, %rsp
movl %esi, 0x8c(%rsp)
movq (%rdi), %r15
movq 0x8(%rdi), %r12
cmpq %r12, %r15
je 0x2229e
movq %r9, %rbx
movq %rdi, %r13
movl %edx, 0x88(%rsp)
movl %ecx, 0x70(%rsp)
movq 0x8(%r8), %rax
movq %r8, 0x8(%rsp)
subq (%r8), %rax
movq %rax, 0x80(%rsp)
movslq 0x40(%r9), %rax
movq %rax, 0x10(%rsp)
movslq 0x48(%r9), %rax
movq %rax, 0x78(%rsp)
movslq 0x4c(%r9), %rax
movq %rax, 0x28(%rsp)
movq %r12, %rax
subq %r15, %rax
sarq $0x4, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
leaq -0xa1(%rip), %rbp       # 0x21979
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rcx
callq 0x2f0df
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x2f20c
xorl %eax, %eax
leaq 0x50(%rsp), %rdi
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movq %rax, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movq 0x8(%r13), %rsi
subq (%r13), %rsi
sarq $0x4, %rsi
callq 0x2b870
movq 0x8(%r13), %rsi
subq (%r13), %rsi
sarq $0x4, %rsi
leaq 0x30(%rsp), %rdi
callq 0x2b870
cmpl $0x5, 0x78(%rbx)
jl 0x21ad8
movq 0x32563(%rip), %rdi     # 0x53fe8
leaq 0x23412(%rip), %rsi     # 0x44e9e
movl $0x2b, %edx
callq 0x7340
movq 0x8(%r13), %rsi
subq (%r13), %rsi
sarq $0x4, %rsi
movq 0x3253f(%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 %rbx, 0x20(%rsp)
movq (%r13), %rdx
movq 0x8(%r13), %rcx
subq %rdx, %rcx
je 0x21bf5
sarq $0x4, %rcx
movq $-0x1, %rbp
leaq 0x50(%rsp), %r12
xorl %ebx, %ebx
movq $0x0, 0x18(%rsp)
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), %r8
movq %r8, %rbp
addq %rdx, %rbp
leaq 0x1(%rbx), %r9
cmpq %r9, %rcx
movq %r9, %r10
cmovaq %rcx, %r10
cmpq %rcx, %r9
jae 0x21b58
cmpl %edx, -0x4(%rdi)
jne 0x21b5d
incq %r9
leaq 0x10(%rdi), %r11
incq %rbx
cmpl %r8d, (%rdi)
movq %r11, %rdi
je 0x21b3a
jmp 0x21b60
movq %r10, %rbx
jmp 0x21b60
movq %r9, %rbx
movq %rbx, %r14
subq %rax, %r14
cmpq %rbp, %rsi
movl $0x0, %ecx
movq 0x18(%rsp), %rdi
cmovlq %rcx, %rdi
addq %r14, %rdi
cmpq %rbp, %rsi
movq %rdi, 0x18(%rsp)
jge 0x21b8b
cmpq 0x10(%rsp), %rdi
jbe 0x21b9f
cmpq 0x28(%rsp), %rdi
ja 0x21bbe
movq %rbp, %rcx
subq %rdx, %rcx
cmpq 0x78(%rsp), %rcx
jl 0x21bbe
cmpq %rax, %rbx
jbe 0x21bdd
movq (%r13), %rsi
addq %r15, %rsi
movq %r12, %rdi
callq 0x2b8f4
addq $0x10, %r15
decq %r14
jne 0x21ba4
jmp 0x21bdd
cmpq %rax, %rbx
jbe 0x21bdd
movq (%r13), %rsi
addq %r15, %rsi
leaq 0x30(%rsp), %rdi
callq 0x2b8f4
addq $0x10, %r15
decq %r14
jne 0x21bc3
movq (%r13), %rdx
movq 0x8(%r13), %rcx
subq %rdx, %rcx
sarq $0x4, %rcx
cmpq %rcx, %rbx
jb 0x21b09
movq 0x20(%rsp), %rax
cmpl $0x5, 0x78(%rax)
movq 0x8(%rsp), %r14
jl 0x21cc1
movq 0x323d8(%rip), %rdi     # 0x53fe8
leaq 0x232b3(%rip), %rsi     # 0x44eca
movl $0x11, %edx
callq 0x7340
movq 0x58(%rsp), %rsi
subq 0x50(%rsp), %rsi
sarq $0x4, %rsi
movq 0x323b2(%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 0x3237c(%rip), %rdi     # 0x53fe8
leaq 0x23269(%rip), %rsi     # 0x44edc
movl $0x14, %edx
callq 0x7340
movq 0x38(%rsp), %rsi
subq 0x30(%rsp), %rsi
sarq $0x4, %rsi
movq 0x32356(%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 0x50(%rsp), %r13
movq 0x58(%rsp), %r15
cmpq %r15, %r13
je 0x21d17
movq %r15, %rax
subq %r13, %rax
sarq $0x4, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
leaq -0x391(%rip), %rcx      # 0x2195d
movq %r13, %rdi
movq %r15, %rsi
callq 0x2f0df
leaq -0x3a3(%rip), %rdx      # 0x2195d
movq %r13, %rdi
movq %r15, %rsi
callq 0x2f20c
movq 0x50(%rsp), %r13
movq 0x58(%rsp), %rax
jmp 0x21d1a
movq %r13, %rax
subq %r13, %rax
shrq $0x4, %rax
testl %eax, %eax
jle 0x220aa
movslq 0x88(%rsp), %r15
movslq 0x70(%rsp), %rcx
movq %rcx, 0x78(%rsp)
addq %rcx, %r15
xorl %ebx, %ebx
movq %r15, 0x70(%rsp)
movl %ebx, %edx
movslq %ebx, %rbp
movq %rbp, %r14
shlq $0x4, %r14
movq (%r13,%r14), %r12
movslq 0x8(%r13,%r14), %rcx
leaq (%r15,%r12), %r11
subq %rcx, %r11
leal 0x1(%rbp), %ebx
cmpl %eax, %ebx
movl %edx, 0x10(%rsp)
jge 0x21d93
leaq 0x1(%rbp), %rbx
movq %rbx, %rcx
shlq $0x4, %rcx
movq (%r13,%rcx), %rdx
movslq 0xc(%r13,%rcx), %r9
leaq (%rdx,%r9), %rcx
cmpq %r11, %rcx
jle 0x21d97
movl 0x10(%rsp), %esi
movl %esi, %edi
jmp 0x21dff
movl %edx, %edi
jmp 0x21e14
movslq %eax, %rcx
leal -0x1(%rax), %r12d
movq %rbp, %rsi
shlq $0x4, %rsi
leaq (%rsi,%r13), %rdi
addq $0x2c, %rdi
addq $-0x2, %rcx
movq %rbp, %r8
movl 0x10(%rsp), %esi
movslq %esi, %r10
shlq $0x4, %r10
cmpl %r9d, 0xc(%r13,%r10)
jge 0x21dd5
movslq -0x14(%rdi), %rsi
addq %r15, %rdx
subq %rsi, %rdx
movq %rdx, %r11
movl %ebx, %esi
cmpq %r8, %rcx
je 0x21dfa
movq -0xc(%rdi), %rdx
movslq (%rdi), %r9
movq %r9, %r10
addq %rdx, %r10
incq %r8
incl %ebx
addq $0x10, %rdi
cmpq %r11, %r10
jle 0x21db8
movl %r8d, %edi
jmp 0x21dff
movl %eax, %ebx
movl %r12d, %edi
movslq %esi, %rax
shlq $0x4, %rax
movq (%r13,%rax), %r12
movslq 0x8(%r13,%rax), %rcx
movl 0x10(%rsp), %edx
addq 0x78(%rsp), %rcx
subq %rcx, %r12
movl %edx, %eax
movl %edx, %ecx
sarl $0x1f, %ecx
andl %edx, %ecx
movl %ecx, 0x18(%rsp)
shlq $0x4, %rax
leaq (%rax,%r13), %rcx
addq $-0x10, %rcx
movl %edx, %eax
testl %eax, %eax
jle 0x21e4f
decl %eax
leaq -0x10(%rcx), %rdx
cmpq %r12, (%rcx)
movq %rdx, %rcx
jge 0x21e37
incl %eax
movl %eax, 0x18(%rsp)
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %r13
movq %r13, %rax
subq (%rcx), %rax
cmpq %rax, 0x80(%rsp)
je 0x21e75
movq -0x28(%r13), %rax
cmpq %r12, %rax
jge 0x21fb7
movl %edi, %ebp
movq %r11, 0x28(%rsp)
movl $0x0, 0x90(%rsp)
movl 0x8c(%rsp), %eax
movb %al, 0x94(%rsp)
leaq 0x98(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rax)
movq $0x0, 0x28(%rax)
movups %xmm0, (%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x2fa5e
movq 0xb0(%rsp), %rdi
cmpq %rdi, 0xb8(%rsp)
je 0x21edf
movq %rdi, 0xb8(%rsp)
testq %rdi, %rdi
je 0x21ef4
movq 0xc0(%rsp), %rsi
subq %rdi, %rsi
callq 0x72f0
cmpl %ebp, 0x18(%rsp)
ja 0x21f32
movslq %ebp, %r14
movslq 0x18(%rsp), %r15
movq 0x8(%rsp), %rax
movq 0x8(%rax), %r13
addq $-0x18, %r13
movq %r15, %rbp
shlq $0x4, %rbp
movq 0x50(%rsp), %rsi
addq %rbp, %rsi
movq %r13, %rdi
callq 0x2b8f4
incq %r15
addq $0x10, %rbp
cmpq %r14, %r15
jbe 0x21f16
movq 0x8(%rsp), %r14
movq 0x8(%r14), %rax
movq %r12, -0x30(%rax)
movq 0x28(%rsp), %rcx
movq %rcx, -0x28(%rax)
movq 0x20(%rsp), %rax
cmpl $0x5, 0x78(%rax)
movq 0x70(%rsp), %r15
jl 0x22091
movl $0x12, %edx
movq 0x32080(%rip), %rdi     # 0x53fe8
leaq 0x22f82(%rip), %rsi     # 0x44ef1
callq 0x7340
movl %ebx, %esi
subl 0x18(%rsp), %esi
movq 0x32067(%rip), %rdi     # 0x53fe8
callq 0x75d0
movq %rax, %r13
movl $0x6, %edx
movq %rax, %rdi
leaq 0x23276(%rip), %rsi     # 0x4520e
callq 0x7340
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x72b0
jmp 0x2207e
cmpl %edi, 0x10(%rsp)
jbe 0x21fc4
movq 0x8(%rsp), %r14
jmp 0x22003
movq %r11, 0x28(%rsp)
movslq %edi, %r15
addq $-0x18, %r13
movq 0x50(%rsp), %rsi
addq %r14, %rsi
movq %r13, %rdi
callq 0x2b8f4
incq %rbp
addq $0x10, %r14
cmpq %r15, %rbp
jbe 0x21fd0
movq 0x8(%rsp), %r14
movq 0x8(%r14), %r13
movq -0x28(%r13), %rax
movq 0x70(%rsp), %r15
movq 0x28(%rsp), %r11
movq -0x30(%r13), %rcx
cmpq %rcx, %r12
cmovlq %r12, %rcx
cmpq %rax, %r11
cmovlq %r11, %rax
movq %rcx, -0x30(%r13)
movq %rax, -0x28(%r13)
movq 0x20(%rsp), %rax
cmpl $0x5, 0x78(%rax)
jl 0x22091
movl $0x1e, %edx
movq 0x31fb4(%rip), %rdi     # 0x53fe8
leaq 0x22ec9(%rip), %rsi     # 0x44f04
callq 0x7340
movl %ebx, %esi
subl 0x10(%rsp), %esi
movq 0x31f9b(%rip), %rdi     # 0x53fe8
callq 0x75d0
movq %rax, %r13
movl $0x6, %edx
movq %rax, %rdi
leaq 0x231aa(%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 0x50(%rsp), %r13
movq 0x58(%rsp), %rax
subq %r13, %rax
shrq $0x4, %rax
cmpl %eax, %ebx
jl 0x21d45
movq 0x80(%rsp), %rbx
sarq $0x3, %rbx
movabsq $0x6db6db6db6db6db7, %r13 # imm = 0x6DB6DB6DB6DB6DB7
imulq %r13, %rbx
movq 0x20(%rsp), %rax
cmpl $0x5, 0x78(%rax)
movq (%r14), %rax
jl 0x22131
movq 0x8(%r14), %rsi
subq %rax, %rsi
sarq $0x3, %rsi
imulq %r13, %rsi
subq %rbx, %rsi
movq 0x31efd(%rip), %rdi     # 0x53fe8
callq 0x71c0
movq %rax, %r15
leaq 0x22e29(%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 (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
xorl %ebp, %ebp
cmpq %rcx, 0x80(%rsp)
jae 0x22219
movq 0x30(%rsp), %r15
movq 0x38(%rsp), %r12
cmpq %r12, %r15
je 0x22219
movq %r12, %rax
subq %r15, %rax
sarq $0x4, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
leaq -0x81c(%rip), %rcx      # 0x2195d
movq %r15, %rdi
movq %r12, %rsi
callq 0x2f0df
leaq -0x82e(%rip), %rdx      # 0x2195d
movq %r15, %rdi
movq %r12, %rsi
callq 0x2f20c
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rax
cmpq %rsi, %rax
je 0x22219
xorl %r14d, %r14d
xorl %ebp, %ebp
movq 0x8(%rsp), %rcx
movq (%rcx), %rdi
movq 0x8(%rcx), %rcx
subq %rdi, %rcx
sarq $0x3, %rcx
imulq %r13, %rcx
cmpq %rcx, %rbx
jae 0x22219
movq %r14, %rcx
shlq $0x4, %rcx
movq (%rsi,%rcx), %rdx
imulq $0x38, %rbx, %r8
cmpq 0x8(%rdi,%r8), %rdx
jge 0x221e1
incq %r14
jmp 0x2220a
addq %r8, %rdi
cmpq %rdx, 0x10(%rdi)
jge 0x221ef
incq %rbx
jmp 0x2220a
addq %rcx, %rsi
addq $0x20, %rdi
callq 0x2b8f4
incl %ebp
incq %r14
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rax
movq %rax, %rcx
subq %rsi, %rcx
sarq $0x4, %rcx
cmpq %rcx, %r14
jb 0x221aa
movq 0x20(%rsp), %rax
cmpl $0x5, 0x78(%rax)
jl 0x22270
movq 0x31dbd(%rip), %rdi     # 0x53fe8
movl %ebp, %esi
callq 0x75d0
movq %rax, %rbx
leaq 0x22cf6(%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 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x22287
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x72f0
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x2229e
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x72f0
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x222f6
jmp 0x222f6
jmp 0x222f6
jmp 0x222f6
jmp 0x222f6
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %rdi, 0xb8(%rsp)
je 0x222d7
movq %rdi, 0xb8(%rsp)
testq %rdi, %rdi
je 0x222f9
movq 0xc0(%rsp), %rsi
subq %rdi, %rsi
callq 0x72f0
jmp 0x222f9
jmp 0x222f6
jmp 0x222f6
jmp 0x222f6
jmp 0x222f6
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x22310
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x72f0
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x22327
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x72f0
movq %rbx, %rdi
callq 0x7600