LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/remove_lowercase.cpp
// Function: removeLcLetters[abi:cxx11](std::basic_ifstream<char, std::char_traits<char>>&, int)
std::string removeLcLetters(std::ifstream& fastaFile, int bytes) {
    std::string filteredSeq; filteredSeq.reserve(bytes); filteredSeq = "";
    string line;
    while (getline(fastaFile, line)) {
        for (int i = 0; i != line.length(); i++) {
            if (isupper(line[i])) {
                filteredSeq += line[i];
            }
        }
    }
    return filteredSeq;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movslq %edx, %rsi
callq 0x86f0
movq 0x8(%rbx), %rdx
leaq 0x2ceb9(%rip), %rcx     # 0xcd9cb
movq %rbx, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x86c0
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x8(%rsp), %r15
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xa0ba3
movq 0x10(%rsp), %r13
testq %r13, %r13
je 0xa0b38
xorl %r12d, %r12d
movq 0x8(%rsp), %rax
movsbl (%rax,%r12), %ebp
movl %ebp, %edi
callq 0x8380
testl %eax, %eax
je 0xa0b99
movq %rbx, %rdi
movl %ebp, %esi
callq 0x83d0
movq 0x10(%rsp), %r13
incq %r12
cmpq %r13, %r12
jne 0xa0b75
jmp 0xa0b38
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xa0bbf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rsp), %r15
jmp 0xa0bff
jmp 0xa0bdc
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
movq (%rsp), %r15
je 0xa0bff
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0xa0c12
movq (%r15), %rsi
incq %rsi
callq 0x8480
movq %r14, %rdi
callq 0x8840
// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/evo_agpToNewFasta.cpp
// Function: readAGPstructureToMap[abi:cxx11](std::istream*)
std::map<string, std::vector<std::vector<string> > > readAGPstructureToMap(std::istream* agpFile) {
    std::map<string, std::vector<std::vector<string> > > newAgpStructure;
    string line;
    while (getline(*agpFile, line)) {
        if (line[0] == '#') { continue; } // Skip over any comment lines
        else {
            std::vector<std::string> fields = split(line, '\t');
            string currentScaffold = fields[0];
            newAgpStructure[currentScaffold].push_back(fields);
        }
    }
    return newAgpStructure;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
movl $0x0, 0x8(%rdi)
xorl %ecx, %ecx
movq %rcx, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rcx, 0x28(%rdi)
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rcx, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x30(%rsp), %rbp
movq %rsp, %r15
leaq 0x40(%rsp), %r12
leaq 0x20(%rsp), %r13
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
movq (%rsp), %rdi
jne 0xba332
cmpb $0x23, (%rdi)
je 0xba293
movq %r12, %rdi
movq %r15, %rsi
movl $0x9, %edx
callq 0x4d650
movq 0x40(%rsp), %rax
movq %rbp, 0x20(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2ba06
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2f908
movq %rax, %rdi
movq %r12, %rsi
callq 0x2f876
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0xba325
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r12, %rdi
callq 0x2e784
jmp 0xba293
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xba349
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xba388
movq %rax, %r14
jmp 0xba37c
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0xba37c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x40(%rsp), %rdi
callq 0x2e784
jmp 0xba38b
movq %rax, %r14
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xba3a6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x30870
movq %r14, %rdi
callq 0x8840
// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/./process_vcf_utils.h
// Function: MultiallelicCounts::MultiallelicCounts(int, int)
MultiallelicCounts(int nSamples, int starPosInput) : inbreedingCoefficient(0), chiSqPvalForInbreeding(1), bPhased(false) {
        individualsHets.assign(nSamples, -1);
        missingIndividualsDot.assign(nSamples, 0);
        missingIndividualsAny.assign(nSamples, 0);
        missingHaplotypesDot.assign(2*nSamples, 0);
        
        missingHaplotypesStar.assign(2*nSamples, 0);
        haplotypeVariants.assign(2*nSamples, -1);
        starPos = starPosInput;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edx, %r12d
movl %esi, %r13d
movq %rdi, %rbx
xorps %xmm0, %xmm0
movhps 0xddf1(%rip), %xmm0     # xmm0 = xmm0[0,1],mem[0,1]
movups %xmm0, 0x8(%rdi)
movb $0x0, 0x18(%rdi)
leaq 0x20(%rdi), %r15
leaq 0x38(%rdi), %rax
movq %rax, 0x18(%rsp)
leaq 0x50(%rdi), %r14
leaq 0x68(%rdi), %rax
movq %rax, 0x20(%rsp)
leaq 0x80(%rdi), %rax
movq %rax, 0x10(%rsp)
leaq 0x98(%rdi), %rax
movq %rax, 0x8(%rsp)
movslq %esi, %rbp
movl $0x90, %edx
movq %r15, %rdi
xorl %esi, %esi
callq 0x8280
leaq 0x4(%rsp), %rdx
movl $0xffffffff, (%rdx)     # imm = 0xFFFFFFFF
movq %r15, 0x28(%rsp)
movq %r15, %rdi
movq %rbp, %rsi
movq %r14, 0x30(%rsp)
callq 0x56106
leaq 0x4(%rsp), %rdx
movl $0x0, (%rdx)
movq %r14, %rdi
movq %rbp, %rsi
callq 0x56106
leaq 0x4(%rsp), %rdx
movl $0x0, (%rdx)
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
callq 0x56106
addl %r13d, %r13d
movslq %r13d, %r13
leaq 0x4(%rsp), %rdx
movl $0x0, (%rdx)
movq 0x10(%rsp), %rdi
movq %r13, %rsi
movq 0x18(%rsp), %rbp
callq 0x56106
leaq 0x4(%rsp), %rdx
movl $0x0, (%rdx)
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x56106
leaq 0x4(%rsp), %rdx
movl $0xffffffff, (%rdx)     # imm = 0xFFFFFFFF
movq %rbp, %rdi
movq %r13, %rsi
callq 0x56106
movl %r12d, (%rbx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xbea26
jmp 0xbea26
jmp 0xbea26
jmp 0xbea26
jmp 0xbea26
movq %rax, %r14
movq 0x8(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xbea45
movq 0xa8(%rbx), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x10(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xbea61
movq 0x90(%rbx), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x20(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xbea7a
movq 0x78(%rbx), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x30(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xbea93
movq 0x60(%rbx), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x18(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xbeaac
movq 0x48(%rbx), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x28(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xbeac5
movq 0x30(%rbx), %rsi
subq %rdi, %rsi
callq 0x8480
movq %r14, %rdi
callq 0x8840
nop
// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/./evo_recombUtils.h
// Function: PhaseInfo::PhaseInfo(int, double, int, std::vector<char, std::allocator<char>>&, int)
PhaseInfo(int position, double qual, int cov, std::vector<char>& phasedVarsIn, int blockNumIn) {
        pos = position; quality = qual;
        coverage = cov;
        phasedVars = phasedVarsIn;
        blockNum = blockNumIn;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %r8d, %ebp
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
xorps %xmm1, %xmm1
movups %xmm1, 0x8(%rdi)
movq $0x0, 0x18(%rdi)
movl %esi, (%rdi)
movsd %xmm0, 0x20(%rdi)
movl %edx, 0x28(%rdi)
movq %r14, %rdi
movq %rcx, %rsi
callq 0xc2948
movl %ebp, 0x2c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq (%r14), %rdi
testq %rdi, %rdi
je 0xc23d8
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x8480
movq %r15, %rdi
callq 0x8840
// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/evo_recombUtils.cpp
// Function: RecombRead::findHetsInMatchingString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, std::map<int, PhaseInfo*, std::less<int>, std::allocator<std::pair<int const, PhaseInfo*>>> const&)
void RecombRead::findHetsInMatchingString(const string& matchSeq, int startPos, const std::map<int,PhaseInfo*>& positionToPhase) {
    for (int i = 0; i < matchSeq.length(); i++) {
        if (positionToPhase.count(startPos + i) == 1) {
            PhaseInfo* thisHetPhase = positionToPhase.at(startPos + i);
            std::vector<char> phasedSNPbases = thisHetPhase->phasedVars;
            char readBase = matchSeq[i];
            int snpPos = startPos + i;
            HetInfo* het = new HetInfo(snpPos, readBase, int(readQual[i])-33, phasedSNPbases[0], phasedSNPbases[1], thisHetPhase->quality, thisHetPhase->blockNum);
            hetSites.push_back(het);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, 0x8(%rsp)
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0xc4a5f
movq %rcx, %r8
movq %rsi, %r12
leaq 0x8(%rcx), %rbp
movq 0x8(%rsp), %rcx
addq $0x108, %rcx            # imm = 0x108
movq %rcx, 0x28(%rsp)
movslq %edx, %r9
xorl %r13d, %r13d
movq %r8, 0x38(%rsp)
movq %r9, 0x30(%rsp)
movq 0x10(%r8), %rcx
testq %rcx, %rcx
je 0xc4a53
leaq (%r9,%r13), %r14
movq %rbp, %rdx
movslq 0x20(%rcx), %rsi
xorl %edi, %edi
cmpq %rsi, %r14
setg %dil
cmovleq %rcx, %rdx
movq 0x10(%rcx,%rdi,8), %rcx
testq %rcx, %rcx
jne 0xc492b
cmpq %rbp, %rdx
je 0xc4a53
movslq 0x20(%rdx), %rcx
cmpq %rcx, %r14
jl 0xc4a53
movl %r14d, 0x10(%rsp)
movq %r8, %rdi
leaq 0x10(%rsp), %rbx
movq %rbx, %rsi
callq 0xc5270
movq (%rax), %r15
leaq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0xc52b6
movq %r12, %rbx
movq (%r12), %rax
movb (%rax,%r13), %r12b
movl $0x28, %edi
callq 0x8470
movq 0x8(%rsp), %rcx
movq 0x70(%rcx), %rcx
movsbl (%rcx,%r13), %edx
addl $-0x21, %edx
movq 0x10(%rsp), %rsi
movb (%rsi), %cl
movb 0x1(%rsi), %sil
movsd 0x20(%r15), %xmm0
movl 0x2c(%r15), %edi
movl %r14d, (%rax)
movb %r12b, 0x8(%rax)
movl %edx, 0xc(%rax)
movb %cl, 0x10(%rax)
movb %sil, 0x11(%rax)
movsd %xmm0, 0x18(%rax)
movl %edi, 0x4(%rax)
cmpb %cl, %r12b
setne %dl
cmpb %sil, %r12b
setne %sil
andb %dl, %sil
movb %sil, 0x24(%rax)
jne 0xc49f5
xorl %edx, %edx
cmpb %cl, %r12b
setne %dl
movl %edx, 0x20(%rax)
movq %rax, 0x40(%rsp)
movq 0x8(%rsp), %rcx
movq 0x110(%rcx), %rsi
cmpq 0x118(%rcx), %rsi
je 0xc4a1c
movq %rax, (%rsi)
addq $0x8, 0x110(%rcx)
jmp 0xc4a2b
movq 0x28(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0xc5464
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xc4a42
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq %rbx, %r12
movq 0x8(%rbx), %rax
movq 0x38(%rsp), %r8
movq 0x30(%rsp), %r9
incq %r13
cmpq %r13, %rax
ja 0xc4917
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xc4a88
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x8840
// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/evo_recombUtils.cpp
// Function: RecombRead::assignStrandFromFlag[abi:cxx11]()
string RecombRead::assignStrandFromFlag() {
    string strand = "?";
    if (flag == 81 || flag == 113 || flag == 145 || flag == 177 || flag == 185 || flag == 121) {
        strand = "-";
    } else if (flag == 65 || flag == 73 || flag == 97 || flag == 129 || flag == 161 || flag == 137) {
        strand = "+";
    } else {
        std::cerr << "Unexpected read flag: " << flag << std::endl;
        exit(1);
    }
    return strand;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
leaq 0x15aa4(%rip), %rsi     # 0xda8b3
leaq 0x15a9e(%rip), %rdx     # 0xda8b4
callq 0x28a52
movl (%r14), %eax
addl $-0x41, %eax
roll $0x1d, %eax
cmpl $0x10, %eax
jae 0xc4e60
movl $0xd7d7, %ecx           # imm = 0xD7D7
btl %eax, %ecx
jae 0xc4e60
movl %eax, %eax
leaq 0x1c3b0(%rip), %rdx     # 0xe11ec
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
movq 0x8(%rbx), %rdx
movl $0x1, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x86c0
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq 0x3d181(%rip), %rdi     # 0x101fe8
leaq 0x1c365(%rip), %rsi     # 0xe11d3
movl $0x16, %edx
callq 0x84e0
movl (%r14), %esi
movq 0x3d166(%rip), %rdi     # 0x101fe8
callq 0x8810
movq %rax, %rdi
callq 0x8200
movl $0x1, %edi
callq 0x8530
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0xc4eaf
movq (%r15), %rsi
incq %rsi
callq 0x8480
movq %r14, %rdi
callq 0x8840
nop
// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/evo_recombUtils.cpp
// Function: RecombRead::generateCIGARvectors()
void RecombRead::generateCIGARvectors() {
    string CIGARnum = "";
    for (int i = 0; i < CIGAR.length(); i++) {
       // std::cout << "CIGAR[i]: " << CIGAR[i] << std::endl;
       // std::cout << "isdigit(CIGAR[i]): " << isdigit(CIGAR[i]) << std::endl;
        if (isdigit(CIGAR[i])) {
            CIGARnum += CIGAR[i];
         //   std::cout << "CIGARnum: " << CIGARnum << std::endl;
        } else {
           // std::cout << "CIGARnum: " << CIGARnum << std::endl;
            int CIGARnumInt = atoi(CIGARnum.c_str());
            GIGARnums.push_back(CIGARnumInt);
            if (CIGAR[i] != SOFT_CLIP_CIGAR && CIGAR[i] != INSERTION_CIGAR) GIGARnumsNoSI.push_back(CIGARnumInt);
            GIGARtypes.push_back(CIGAR[i]);
            CIGARnum = "";
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8af2(%rip), %rdx      # 0xcd9cb
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq 0x28a52
cmpq $0x0, 0xa0(%rbx)
je 0xc5024
leaq 0xb8(%rbx), %rax
movq %rax, 0x30(%rsp)
leaq 0xe8(%rbx), %rax
movq %rax, 0x28(%rsp)
leaq 0xd0(%rbx), %r12
xorl %r14d, %r14d
leaq 0x8(%rsp), %r13
leaq 0x8aa9(%rip), %r15      # 0xcd9cb
movq 0x98(%rbx), %rbp
movsbl (%rbp,%r14), %eax
leal -0x30(%rax), %ecx
cmpl $0x9, %ecx
ja 0xc4f47
movsbl %al, %esi
movq %r13, %rdi
callq 0x83d0
jmp 0xc5014
movq 0x8(%rsp), %rdi
callq 0x86e0
movl %eax, 0x4(%rsp)
movq 0xc0(%rbx), %rsi
cmpq 0xc8(%rbx), %rsi
je 0xc4f74
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xc0(%rbx)
jmp 0xc4f8a
movq 0x30(%rsp), %rdi
leaq 0x4(%rsp), %rdx
callq 0x48c2e
movq 0x98(%rbx), %rbp
movzbl (%rbp,%r14), %eax
cmpl $0x49, %eax
je 0xc4fd3
cmpl $0x53, %eax
je 0xc4fd3
movq 0xf0(%rbx), %rsi
cmpq 0xf8(%rbx), %rsi
je 0xc4fbd
movl 0x4(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xf0(%rbx)
jmp 0xc4fd3
movq 0x28(%rsp), %rdi
leaq 0x4(%rsp), %rdx
callq 0x48c2e
movq 0x98(%rbx), %rbp
addq %r14, %rbp
movq 0xd8(%rbx), %rsi
cmpq 0xe0(%rbx), %rsi
je 0xc4ff4
movb (%rbp), %al
movb %al, (%rsi)
incq 0xd8(%rbx)
jmp 0xc4fff
movq %r12, %rdi
movq %rbp, %rdx
callq 0x6ea22
movq 0x10(%rsp), %rdx
movq %r13, %rdi
xorl %esi, %esi
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x86c0
incq %r14
cmpq %r14, 0xa0(%rbx)
ja 0xc4f22
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xc5040
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc5051
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xc5070
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x8840
// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/evo_recombUtils.cpp
// Function: RecombReadPair::findAndCombinePairHets(std::map<int, PhaseInfo*, std::less<int>, std::allocator<std::pair<int const, PhaseInfo*>>> const&)
void RecombReadPair::findAndCombinePairHets(const std::map<int,PhaseInfo*> & positionToPhase) {
    read1->findHetsInRead(positionToPhase);
    read2->findHetsInRead(positionToPhase);
    
    if (read1->hetSites.size() > 0) hetSites = read1->hetSites;
    
    if (read2->hetSites.size() > 0) {
        if (hetSites.size() == 0) hetSites = read2->hetSites;
        else hetSites.insert(hetSites.end(), read2->hetSites.begin(), read2->hetSites.end());
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0xc4a90
movq 0x8(%rbx), %rdi
movq %r14, %rsi
callq 0xc4a90
movq (%rbx), %rsi
movq 0x110(%rsi), %rax
cmpq 0x108(%rsi), %rax
je 0xc50b9
addq $0x108, %rsi            # imm = 0x108
leaq 0x18(%rbx), %rdi
callq 0xc5348
movq 0x8(%rbx), %rsi
movq 0x108(%rsi), %rdx
movq 0x110(%rsi), %rcx
cmpq %rdx, %rcx
je 0xc50ed
leaq 0x18(%rbx), %rdi
movq 0x20(%rbx), %rax
cmpq 0x18(%rbx), %rax
je 0xc50f5
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc55a0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
addq $0x108, %rsi            # imm = 0x108
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc5348
// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/evo_recombUtils.cpp
// Function: RecombReadPair::filterHetsByQuality(int)
void RecombReadPair::filterHetsByQuality(int minQuality) {
    
    std::vector<HetInfo*> goodHets;
    for (std::vector<HetInfo*>::iterator it = hetSites.begin(); it != hetSites.end(); it++) {
        if ((*it)->thisBaseQuality >= minQuality) {
            goodHets.push_back((*it));
        }
    }
    hetSites = goodHets;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x18(%rdi), %r14
cmpq 0x20(%rdi), %r14
je 0xc5168
movl %esi, %ebp
movq %rsp, %r15
movq (%r14), %rax
cmpl %ebp, 0xc(%rax)
jl 0xc515e
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0xc5153
movq %rax, (%rsi)
addq $0x8, 0x8(%rsp)
jmp 0xc515e
movq %r15, %rdi
movq %r14, %rdx
callq 0xc5464
addq $0x8, %r14
cmpq 0x20(%rbx), %r14
jne 0xc5134
addq $0x18, %rbx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xc5348
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xc518d
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc519a
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xc51b3
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x8840
nop
// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/evo_recombUtils.cpp
// Function: RecombReadPair::filterHetsByBlock(int)
void RecombReadPair::filterHetsByBlock(int blockNum) {
    
    std::vector<HetInfo*> goodHets;
    for (std::vector<HetInfo*>::iterator it = hetSites.begin(); it != hetSites.end(); it++) {
        if ((*it)->phaseBlock == blockNum) {
            goodHets.push_back((*it));
        }
    }
    hetSites = goodHets;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x18(%rdi), %r14
cmpq 0x20(%rdi), %r14
je 0xc521c
movl %esi, %ebp
movq %rsp, %r15
movq (%r14), %rax
cmpl %ebp, 0x4(%rax)
jne 0xc5212
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0xc5207
movq %rax, (%rsi)
addq $0x8, 0x8(%rsp)
jmp 0xc5212
movq %r15, %rdi
movq %r14, %rdx
callq 0xc5464
addq $0x8, %r14
cmpq 0x20(%rbx), %r14
jne 0xc51e8
addq $0x18, %rbx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xc5348
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xc5241
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc524e
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xc5267
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x8840
nop
// File: /workspace/github_cpp_makefile_star2_O3/ColinHarker[P]ltsim/src/cpu-reader.cpp
// Function: CpuReader::retrieveCpuTimes(int) const
vector<size_t> CpuReader::retrieveCpuTimes(int lineNumberTarget) const
{
   std::ifstream proc_stat("/proc/stat");  // opening a filestream at /proc/stat

   proc_stat.seekg(std::ios::beg);

   // skip the first 4 lines of /cpuinfo
   for(int j = 0; j < lineNumberTarget; ++j)
   {
      proc_stat.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
   }

   proc_stat.ignore(5, ' ');  // Skip the 'cpu' prefix.
   vector<size_t> times;

   for(size_t time; proc_stat >> time; times.push_back(time))
      ;

   return times;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movl %edx, %ebp
movq %rdi, %rbx
leaq 0x630f(%rip), %rsi      # 0xa0b0
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x3410
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32b0
testl %ebp, %ebp
jle 0x3de6
leaq 0x10(%rsp), %r14
movabsq $0x7fffffffffffffff, %r15 # imm = 0x7FFFFFFFFFFFFFFF
movq %r14, %rdi
movq %r15, %rsi
movl $0xa, %edx
callq 0x3180
decl %ebp
jne 0x3dd2
leaq 0x10(%rsp), %rdi
movl $0x5, %esi
movl $0x20, %edx
callq 0x3180
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
leaq 0x10(%rsp), %r14
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3160
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3e54
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x3e47
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x3e12
movq %rbx, %rdi
movq %r15, %rdx
callq 0x3faa
jmp 0x3e12
leaq 0x10(%rsp), %rdi
callq 0x3070
movq %rbx, %rax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3e71
movq %rax, %r14
jmp 0x3e8d
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3e8d
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x3210
leaq 0x10(%rsp), %rdi
callq 0x3070
movq %r14, %rdi
callq 0x33f0
nop
// File: /workspace/github_cpp_makefile_star2_O3/ColinHarker[P]ltsim/src/cpu-reader.cpp
// Function: CpuReader::getCpuTimes(int)
bool CpuReader::getCpuTimes(int lineNumberTarget)
{
   const vector<size_t> cpu_times = retrieveCpuTimes(lineNumberTarget);

   if(cpu_times.size() < 4)
      return false;

   m_idleTime  = cpu_times[3];
   m_totalTime = std::accumulate(cpu_times.begin(), cpu_times.end(), 0);

   return true;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %esi, %edx
movq %rdi, %rbx
movq %rsp, %r14
movq %r14, %rdi
callq 0x3d88
movq (%r14), %rdi
movq 0x8(%r14), %rcx
movq %rcx, %r14
subq %rdi, %r14
cmpq $0x19, %r14
jb 0x3eed
movq 0x18(%rdi), %rax
movq %rax, 0x50(%rbx)
xorl %eax, %eax
cmpq %rcx, %rdi
je 0x3ee9
movq %rdi, %rdx
addl (%rdx), %eax
addq $0x8, %rdx
cmpq %rcx, %rdx
jne 0x3edc
cltq
movq %rax, 0x58(%rbx)
testq %rdi, %rdi
je 0x3eff
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x3210
cmpq $0x19, %r14
setae %al
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/ColinHarker[P]ltsim/src/cpu-reader.cpp
// Function: CpuReader::run(int)
void CpuReader::run(int lineNumberTarget)
{
   if(getCpuTimes(lineNumberTarget))
   {
      const float idle_time_delta  = m_idleTime - m_previousIdleTime;
      const float total_time_delta = m_totalTime - m_previousTotalTime;
      const float util             = 100.0 * (1.0 - idle_time_delta / total_time_delta);

      m_previousIdleTime  = m_idleTime;
      m_previousTotalTime = m_totalTime;
      m_utilization       = util;
   }
   else
   {
      m_utilization = -1;
   }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x3ea0
testb %al, %al
je 0x3f33
movq 0x50(%rbx), %rax
movq 0x58(%rbx), %rcx
movq %rax, %rdx
subq 0x40(%rbx), %rdx
js 0x3f3d
cvtsi2ss %rdx, %xmm0
jmp 0x3f52
movss 0x6161(%rip), %xmm0     # 0xa09c
jmp 0x3fa2
movq %rdx, %rsi
shrq %rsi
andl $0x1, %edx
orq %rsi, %rdx
cvtsi2ss %rdx, %xmm0
addss %xmm0, %xmm0
movq %rcx, %rdx
subq 0x48(%rbx), %rdx
js 0x3f62
cvtsi2ss %rdx, %xmm1
jmp 0x3f77
movq %rdx, %rsi
shrq %rsi
andl $0x1, %edx
orq %rsi, %rdx
cvtsi2ss %rdx, %xmm1
addss %xmm1, %xmm1
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x6119(%rip), %xmm1     # 0xa0a0
subsd %xmm0, %xmm1
mulsd 0x6115(%rip), %xmm1     # 0xa0a8
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
movq %rax, 0x40(%rbx)
movq %rcx, 0x48(%rbx)
movss %xmm0, 0x60(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/ColinHarker[P]ltsim/src/cpu.cpp
// Function: Cpu::Cpu()
Cpu::Cpu()
{
   parseModelName();
   parseVersion();
   m_NumCores = getNumberCores();
   addCores();
   parseCores();
   run();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x8(%rdi)
movb %al, 0x10(%rdi)
leaq 0x30(%rdi), %rcx
movq %rcx, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movb %al, 0x30(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rdi)
movl $0xffffffff, 0x68(%rdi) # imm = 0xFFFFFFFF
movups %xmm0, 0x70(%rdi)
movq %rax, 0x80(%rdi)
callq 0x41a0
movq %rbx, %rdi
callq 0x42b6
callq 0x43dc
movl %eax, 0x68(%rbx)
movq %rbx, %rdi
callq 0x44ce
movq 0x70(%rbx), %r14
movq 0x78(%rbx), %r15
cmpq %r15, %r14
je 0x416e
movl $0x1, %ebp
movq %r14, %rdi
movl %ebp, %esi
callq 0x3f0e
incl %ebp
addq $0x68, %r14
cmpq %r15, %r14
jne 0x4159
movq %rbx, %rdi
callq 0x45c8
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4183
movq %rax, %r14
leaq 0x70(%rbx), %rdi
callq 0x3a90
movq %rbx, %rdi
callq 0x3a5a
movq %r14, %rdi
callq 0x33f0
nop
// File: /workspace/github_cpp_makefile_star2_O3/ColinHarker[P]ltsim/src/cpu.cpp
// Function: Cpu::parseModelName()
void Cpu::parseModelName()
{
   std::ifstream proc_cpuinfo("/proc/cpuinfo");
   proc_cpuinfo.seekg(std::ios::beg);
   for(int i = 0; i < 4; ++i)  // skip the first 4 lines of /cpuinfo
   {
      proc_cpuinfo.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
   }
   string mn;

   // skip the first 13 characters of the cpu model name
   proc_cpuinfo.ignore(13);
   std::getline(proc_cpuinfo, mn);

   m_CpuReader.setModelName(mn);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rdi, %rbx
leaq 0x5f39(%rip), %rsi      # 0xa0f0
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x3410
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32b0
movl $0x4, %ebp
leaq 0x20(%rsp), %r14
movabsq $0x7fffffffffffffff, %r15 # imm = 0x7FFFFFFFFFFFFFFF
movq %r14, %rdi
movq %r15, %rsi
movl $0xa, %edx
callq 0x3180
decl %ebp
jne 0x41e9
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
leaq 0x20(%rsp), %r14
movl $0xd, %esi
movq %r14, %rdi
callq 0x3050
movq 0x20(%rsp), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %edx
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x3420
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x3d7c
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x426b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x20(%rsp), %rdi
callq 0x3070
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x42a0
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x42a3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3210
jmp 0x42a3
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x3070
movq %rbx, %rdi
callq 0x33f0
nop
// File: /workspace/github_cpp_makefile_star2_O3/ColinHarker[P]ltsim/src/cpu.cpp
// Function: Cpu::parseVersion()
void Cpu::parseVersion()
{
   std::ifstream proc_cpuinfo("/proc/version");
   string        ret;
   std::getline(proc_cpuinfo, ret);

   // only grabbing the information wanted from /version
   string vers           = ret.substr(0, COLS);
   m_CpuReader.m_version = vers;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x250, %rsp            # imm = 0x250
movq %rdi, %rbx
leaq 0x5e48(%rip), %rsi      # 0xa114
leaq 0x48(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x3410
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %edx
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x3420
movq 0x9c80(%rip), %rax      # 0xdfa0
movslq (%rax), %rcx
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
xorl %edx, %edx
callq 0x3230
addq $0x20, %rbx
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x3150
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4360
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4377
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x48(%rsp), %rdi
callq 0x3070
addq $0x250, %rsp            # imm = 0x250
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x43b3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3210
jmp 0x43b3
jmp 0x43b0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x43ca
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x48(%rsp), %rdi
callq 0x3070
movq %rbx, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O3/ColinHarker[P]ltsim/src/cpu.cpp
// Function: Cpu::addCores()
void Cpu::addCores()
{
   for(int i = 1; i <= m_NumCores; i++)
   {
      CpuReader cpr;
      cpr.run(i);
      m_Cores.emplace_back(cpr);
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
cmpl $0x0, 0x68(%rdi)
jle 0x4573
movq %rdi, %rbx
leaq 0x10(%rsp), %r12
leaq 0x70(%rdi), %r14
xorl %r13d, %r13d
movq %rsp, %r15
xorl %ebp, %ebp
incl %ebp
movq %r12, (%rsp)
movq %r13, 0x8(%rsp)
movb %r13b, 0x10(%rsp)
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq %r13, 0x28(%rsp)
movb %r13b, 0x30(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r12)
movq %r15, %rdi
movl %ebp, %esi
callq 0x3f0e
movq %r14, %rdi
movq %r15, %rsi
callq 0x4772
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x4558
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3210
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x456e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3210
cmpl 0x68(%rbx), %ebp
jl 0x44fa
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x3a5a
movq %rbx, %rdi
callq 0x33f0
nop
// File: /workspace/github_cpp_makefile_star2_O3/ColinHarker[P]ltsim/src/memory.cpp
// Function: RandomAccessMemory::run()
void RandomAccessMemory::run()
{
   parseMemInfo("MemTotal", flag::memType::memTotal);
   parseMemInfo("MemAvailable", flag::memType::memAvailable);
   parseMemInfo("SwapTotal", flag::memType::swapTotal);
   parseMemInfo("SwapFree", flag::memType::swapFree);
   calculateMemSwapUsage();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x55c2(%rip), %rsi      # 0xa1b0
leaq 0x55c3(%rip), %rdx      # 0xa1b8
leaq 0x8(%rsp), %rdi
callq 0x522a
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x4dbe
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4c25
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x5585(%rip), %rsi      # 0xa1b9
leaq 0x558a(%rip), %rdx      # 0xa1c5
callq 0x522a
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x4dbe
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4c69
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x554e(%rip), %rsi      # 0xa1c6
leaq 0x5550(%rip), %rdx      # 0xa1cf
callq 0x522a
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movl $0x2, %edx
callq 0x4dbe
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4cad
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x5514(%rip), %rsi      # 0xa1d0
leaq 0x5515(%rip), %rdx      # 0xa1d8
callq 0x522a
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movl $0x3, %edx
callq 0x4dbe
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4cf1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
movdqu (%rbx), %xmm1
movdqu 0x8(%rbx), %xmm0
movq 0x18(%rbx), %xmm2
punpcklqdq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0]
movdqa 0x5435(%rip), %xmm2     # 0xa140
movdqa %xmm0, %xmm3
pand %xmm2, %xmm3
movdqa 0x5435(%rip), %xmm4     # 0xa150
por %xmm4, %xmm3
psrlq $0x20, %xmm0
movdqa 0x5434(%rip), %xmm5     # 0xa160
por %xmm5, %xmm0
movapd 0x5438(%rip), %xmm6     # 0xa170
subpd %xmm6, %xmm0
addpd %xmm3, %xmm0
movq 0x10(%rbx), %xmm3
punpcklqdq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0]
pand %xmm1, %xmm2
por %xmm4, %xmm2
psrlq $0x20, %xmm1
por %xmm5, %xmm1
subpd %xmm6, %xmm1
addpd %xmm2, %xmm1
divpd %xmm1, %xmm0
movapd 0x5412(%rip), %xmm1     # 0xa180
subpd %xmm0, %xmm1
mulpd 0x5416(%rip), %xmm1     # 0xa190
cvtpd2ps %xmm1, %xmm0
movlpd %xmm0, 0x20(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r14
retq
jmp 0x4d97
jmp 0x4db3
jmp 0x4d97
jmp 0x4db3
jmp 0x4d97
jmp 0x4db3
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4db6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
jmp 0x4db6
movq %rax, %rbx
movq %rbx, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O3/ColinHarker[P]ltsim/src/runtime.cpp
// Function: displayCpuCores(WindowWrap&, std::vector<CpuReader, std::allocator<CpuReader>>, int, flag::displayLength)
void displayCpuCores(WindowWrap& disp, const std::vector<CpuReader> cores, int startRow, flag::displayLength length)
{
   int coreNumber = 1;  // Index 0 is taken up by full CPU
   for(auto& core : cores)
   {
      displayUtilizationLevel(disp, core.getUtilization(), "Core" + std::to_string(coreNumber), startRow, 0, length);
      startRow++;
      coreNumber++;
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %ecx, (%rsp)
movq %rdi, 0x50(%rsp)
movq (%rsi), %r15
movq 0x8(%rsi), %rax
movq %rax, 0x48(%rsp)
cmpq %rax, %r15
je 0x5a8f
movl %edx, %ebp
movl $0x1, %r12d
leaq 0x38(%rsp), %r14
movq %r15, %rdi
callq 0x3d82
movss %xmm0, 0x4(%rsp)
movl $0x1, %ebx
cmpl $0xa, %r12d
jb 0x59a3
movl $0x4, %ebx
movl %r12d, %eax
movl $0xd1b71759, %edx       # imm = 0xD1B71759
cmpl $0x63, %eax
jbe 0x599c
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x59a1
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x59a3
movl %eax, %ecx
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x596e
addl $-0x3, %ebx
jmp 0x59a3
addl $-0x2, %ebx
jmp 0x59a3
decl %ebx
movl %ebx, %esi
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x2d, %edx
callq 0x3280
movq 0x8(%rsp), %rdi
movl %ebx, %esi
movl %r12d, %edx
callq 0x5d44
movl $0x4, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x481a(%rip), %rcx      # 0xa1fe
callq 0x3250
movq %r14, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5a0c
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x5a13
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x50(%rsp), %rdi
movss 0x4(%rsp), %xmm0
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
xorl %ecx, %ecx
movl (%rsp), %r8d
callq 0x5500
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x5a5f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5a7b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
incl %ebp
incl %r12d
addq $0x68, %r15
cmpq 0x48(%rsp), %r15
jne 0x5948
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x5abd
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x5abd
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5ad9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
movq %rbx, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O3/ColinHarker[P]ltsim/src/runtime.cpp
// Function: displayStorageInformation(WindowWrap&)
void displayStorageInformation(WindowWrap& disp)
{
   displayElement(disp, 1, 0, "Filesystem      Size  Used Avail Use% Mounted on", flag::printType::standard, flag::color::none);

   auto storageVector = parseStorageInformation();

   int row = 2;
   for(auto element : storageVector)
   {
      displayElement(disp, row++, 0, element, flag::printType::standard, flag::color::none);
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %r15
leaq 0x60(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x46fe(%rip), %rsi      # 0xa203
leaq 0x4727(%rip), %rdx      # 0xa233
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x522a
movq %r15, 0x28(%rsp)
movq %r15, %rdi
movl $0x1, %esi
xorl %edx, %edx
movq %r14, %rcx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x8e5c
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x5b50
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x70(%rsp), %r14
movq %r14, %rdi
callq 0x9360
movq (%r14), %r13
movq 0x8(%r14), %r14
cmpq %r14, %r13
je 0x5c0c
leaq 0x18(%rsp), %r12
movl $0x2, %ebp
leaq 0x40(%rsp), %rbx
leaq 0x30(%rsp), %r15
movq %r12, 0x8(%rsp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x3c8e
movq %rbx, 0x30(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x3c8e
movq 0x28(%rsp), %rdi
movl %ebp, %esi
xorl %edx, %edx
movq %r15, %rcx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x8e5c
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x5be6
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5bfd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
addq $0x20, %r13
incl %ebp
cmpq %r14, %r13
jne 0x5b81
leaq 0x70(%rsp), %rdi
callq 0x5ce6
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x5c89
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3210
jmp 0x5c89
movq %rax, %r14
jmp 0x5c7f
movq %rax, %r14
jmp 0x5c68
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x5c68
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5c7f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x70(%rsp), %rdi
callq 0x5ce6
movq %r14, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O3/ColinHarker[P]ltsim/src/runtime.cpp
// Function: displaySystemProcesses(WindowWrap&)
void displaySystemProcesses(WindowWrap& disp)
{
   System sys = parseSystemInformation();
   sys.remove(0);  // removing the menu string
   sys.sort();
   sys.display(disp);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq %rsp, %r14
movq %r14, %rdi
callq 0x90a7
movq %r14, %rdi
xorl %esi, %esi
callq 0x6898
movq %rsp, %rdi
callq 0x64fa
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x6586
movq %rsp, %rdi
callq 0x3b00
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x3b00
movq %rbx, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O3/ColinHarker[P]ltsim/src/system-process.cpp
// Function: SystemProcess::parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void SystemProcess::parse(const std::string& buffer)
{
   std::istringstream ss(buffer);

   ss >> user >> pid >> cpu >> mem >> vsz >> rss >> tty >> stat >> start >> time;
   std::string word;
   while(ss >> word)
   {
      command += word;
   }

   size_t bufferSize = COLS - 63;

   if(command.length() > bufferSize)
   {
      command = command.substr(1, bufferSize);
   }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c0, %rsp            # imm = 0x1C0
movq %rdi, %rbx
leaq 0x40(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x33c0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x32c0
leaq 0x20(%rbx), %rsi
movq %rax, %rdi
callq 0x32c0
leaq 0x40(%rbx), %rsi
movq %rax, %rdi
callq 0x32c0
leaq 0x60(%rbx), %rsi
movq %rax, %rdi
callq 0x32c0
leaq 0x80(%rbx), %rsi
movq %rax, %rdi
callq 0x32c0
leaq 0xa0(%rbx), %rsi
movq %rax, %rdi
callq 0x32c0
leaq 0xc0(%rbx), %rsi
movq %rax, %rdi
callq 0x32c0
leaq 0xe0(%rbx), %rsi
movq %rax, %rdi
callq 0x32c0
leaq 0x100(%rbx), %rsi
movq %rax, %rdi
callq 0x32c0
leaq 0x120(%rbx), %rsi
movq %rax, %rdi
callq 0x32c0
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq 0x140(%rbx), %r14
leaq 0x40(%rsp), %r15
movq %rsp, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x32c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x5faf
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x30a0
jmp 0x5f83
movq 0x7fea(%rip), %rax      # 0xdfa0
movslq (%rax), %rcx
addq $-0x3f, %rcx
cmpq %rcx, 0x148(%rbx)
jbe 0x6002
leaq 0x20(%rsp), %rdi
movl $0x1, %edx
movq %r14, %rsi
callq 0x3230
leaq 0x20(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3290
movq (%rbx), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x6002
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3210
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x6018
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x7f99(%rip), %rsi      # 0xdfb8
leaq 0x40(%rsp), %rdi
callq 0x3300
leaq 0xb8(%rsp), %rdi
callq 0x30c0
addq $0x1c0, %rsp            # imm = 0x1C0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x604e
movq %rax, %rbx
jmp 0x6067
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x6067
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x7f4a(%rip), %rsi      # 0xdfb8
leaq 0x40(%rsp), %rdi
callq 0x3300
leaq 0xb8(%rsp), %rdi
callq 0x30c0
movq %rbx, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O3/ColinHarker[P]ltsim/src/utils.cpp
// Function: displayElement(WindowWrap&, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, flag::printType, flag::color)
void displayElement(WindowWrap& disp, int row, int col, string element, flag::printType flag, flag::color c)
{
   switch(flag)
   {
      case flag::printType::use_color:
         wattron(disp.getWin(), COLOR_PAIR(c));
         mvwprintw(disp.getWin(), row, col, element.c_str());
         wattroff(disp.getWin(), COLOR_PAIR(c));
         break;
      case flag::printType::standard:
         mvwprintw(disp.getWin(), row, col, element.c_str());
         break;
      default:
         break;
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r15
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
cmpl $0x1, %r8d
je 0x8ecf
testl %r8d, %r8d
jne 0x8ef0
movl %r9d, %r12d
movq %r14, %rdi
callq 0x960e
shll $0x8, %r12d
movzwl %r12w, %r12d
movq %rax, %rdi
movl %r12d, %esi
xorl %edx, %edx
callq 0x3110
movq %r14, %rdi
callq 0x960e
movq (%r15), %rcx
movq %rax, %rdi
movl %ebp, %esi
movl %ebx, %edx
xorl %eax, %eax
callq 0x3060
movq %r14, %rdi
callq 0x960e
movq %rax, %rdi
movl %r12d, %esi
xorl %edx, %edx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x32d0
movq %r14, %rdi
callq 0x960e
movq (%r15), %rcx
movq %rax, %rdi
movl %ebp, %esi
movl %ebx, %edx
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x3060
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/ColinHarker[P]ltsim/src/utils.cpp
// Function: displayPercentColor(WindowWrap&, float, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int)
void displayPercentColor(WindowWrap& disp, float percent, string str, int row, int col)
{
   if(percent == 0.0)
   {
      displayElement(disp, row, col, str, flag::printType::standard, flag::color::none);
   }
   else if(percent < 60)
   {
      displayElement(disp, row, col, str, flag::printType::use_color, flag::color::green);
   }
   else if(percent >= 60 && percent < 85)
   {
      displayElement(disp, row, col, str, flag::printType::use_color, flag::color::yellow);
   }
   else
   {
      displayElement(disp, row, col, str, flag::printType::use_color, flag::color::red);
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x80, %rsp
movl %ecx, %ebx
movl %edx, %ebp
movq %rdi, %r14
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x8f5b
jp 0x8f5b
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rsp, %rdi
movq %rax, %rsi
callq 0x3c8e
movq %r14, %rdi
callq 0x960e
movq (%rsp), %rcx
movq %rax, %rdi
movl %ebp, %esi
movl %ebx, %edx
xorl %eax, %eax
callq 0x3060
movq (%rsp), %rdi
jmp 0x9048
movss 0x1445(%rip), %xmm1     # 0xa3a8
ucomiss %xmm0, %xmm1
jbe 0x8fae
leaq 0x70(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0x60(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x3c8e
movq %r14, %rdi
movl %ebp, %esi
movl %ebx, %edx
movq %r15, %rcx
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0x8e5c
movq 0x60(%rsp), %rdi
jmp 0x9048
ucomiss 0x13f3(%rip), %xmm0     # 0xa3a8
jb 0x9007
movss 0x13ed(%rip), %xmm1     # 0xa3ac
ucomiss %xmm0, %xmm1
jbe 0x9007
leaq 0x50(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x3c8e
movq %r14, %rdi
movl %ebp, %esi
movl %ebx, %edx
movq %r15, %rcx
xorl %r8d, %r8d
movl $0x2, %r9d
callq 0x8e5c
movq 0x40(%rsp), %rdi
jmp 0x9048
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x3c8e
movq %r14, %rdi
movl %ebp, %esi
movl %ebx, %edx
movq %r15, %rcx
xorl %r8d, %r8d
movl $0x3, %r9d
callq 0x8e5c
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x9059
movq (%r12), %rsi
incq %rsi
callq 0x3210
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x40(%rsp), %rdi
jmp 0x908e
movq %rax, %rbx
movq 0x20(%rsp), %rdi
jmp 0x908e
movq %rax, %rbx
movq 0x60(%rsp), %rdi
jmp 0x908e
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x909f
movq (%r12), %rsi
incq %rsi
callq 0x3210
movq %rbx, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O3/ColinHarker[P]ltsim/src/utils.cpp
// Function: parseSystemInformation()
System parseSystemInformation()
{
   auto   buffer_container = parseCommandLineOutput("ps -aux");
   System sys;

   for(auto buffer : buffer_container)
   {
      SystemProcess sp;
      sp.parse(buffer);
      sys.add(sp);
   }
   return sys;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rdi, %rbx
leaq 0x12ee(%rip), %rsi      # 0xa3b0
leaq 0x20(%rsp), %rdi
callq 0x91b7
movq %rbx, %rdi
callq 0x6408
movq 0x20(%rsp), %r13
movq 0x28(%rsp), %rbp
cmpq %rbp, %r13
je 0x914c
leaq 0x10(%rsp), %r12
movq %rsp, %r14
leaq 0x38(%rsp), %r15
movq %r12, (%rsp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x3c8e
movq %r15, %rdi
callq 0x5db4
movq %r15, %rdi
movq %r14, %rsi
callq 0x5eb0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6418
movq %r15, %rdi
callq 0x3b56
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x9143
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3210
addq $0x20, %r13
cmpq %rbp, %r13
jne 0x90f0
leaq 0x20(%rsp), %rdi
callq 0x5ce6
movq %rbx, %rax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x91a5
movq %rax, %r14
jmp 0x919d
movq %rax, %r14
jmp 0x9187
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0x3b56
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x919d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3210
movq %rbx, %rdi
callq 0x3b00
leaq 0x20(%rsp), %rdi
callq 0x5ce6
movq %r14, %rdi
callq 0x33f0