LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/millanek[P]evo/./process_vcf_stats_utils.h
// Function: pearson_chi_sq_indep(int, int, int, int)
inline double pearson_chi_sq_indep(int a, int b, int c, int d) {
    // Expected values for a,b,c,and d: (RowTotal*ColTotal)/GridTotal
    double n = (double)a+b+c+d;
    double exp_a = (double)((a+b)*(a+c))/n;
    double exp_b = (double)((a+b)*(b+d))/n;
    double exp_c = (double)((c+d)*(a+c))/n;
    double exp_d = (double)((c+d)*(b+d))/n;
    //std::cerr << "exp_a: " << exp_a << "exp_b: " << exp_b << "exp_c: " << exp_c << "exp_d: " << exp_d << std::endl;
    double chi_sq = pow((a-exp_a),2.0)/exp_a + pow((b-exp_b),2.0)/exp_b + pow((c-exp_c),2.0)/exp_c + pow((d-exp_d),2.0)/exp_d;
    //std::cerr << "Chisq stat: " << chi_sq << std::endl;
    double df = 1.0;
    double p = (1-chisq_cdf(df, chi_sq));
    return p;
}

// Assembly:
subq $0x78, %rsp
cvtsi2sd %edi, %xmm3
cvtsi2sd %esi, %xmm2
movapd %xmm3, %xmm4
addsd %xmm2, %xmm4
cvtsi2sd %edx, %xmm1
addsd %xmm1, %xmm4
cvtsi2sd %ecx, %xmm0
addsd %xmm0, %xmm4
leal (%rsi,%rdi), %eax
addl %edx, %edi
movl %edi, %r8d
imull %eax, %r8d
cvtsi2sd %r8d, %xmm5
divsd %xmm4, %xmm5
addl %ecx, %esi
imull %esi, %eax
cvtsi2sd %eax, %xmm6
divsd %xmm4, %xmm6
addl %edx, %ecx
imull %ecx, %edi
cvtsi2sd %edi, %xmm7
divsd %xmm4, %xmm7
imull %esi, %ecx
cvtsi2sd %ecx, %xmm8
divsd %xmm4, %xmm8
subsd %xmm5, %xmm3
mulsd %xmm3, %xmm3
divsd %xmm5, %xmm3
subsd %xmm6, %xmm2
mulsd %xmm2, %xmm2
divsd %xmm6, %xmm2
addsd %xmm3, %xmm2
subsd %xmm7, %xmm1
mulsd %xmm1, %xmm1
divsd %xmm7, %xmm1
addsd %xmm2, %xmm1
subsd %xmm8, %xmm0
mulsd %xmm0, %xmm0
divsd %xmm8, %xmm0
addsd %xmm1, %xmm0
movq %xmm0, %rax
movsd %xmm0, 0x48(%rsp)
leaq -0x1(%rax), %rcx
movabsq $0xfffffffffffff, %rdx  # imm = 0xFFFFFFFFFFFFF
cmpq %rdx, %rcx
setb %cl
movq %rax, %rdx
btrq $0x3f, %rdx
testq %rdx, %rdx
sete %sil
orb %cl, %sil
testq %rax, %rax
setns %al
movabsq $-0x10000000000000, %rcx # imm = 0xFFF0000000000000
addq %rdx, %rcx
shrq $0x35, %rcx
cmpl $0x3ff, %ecx            # imm = 0x3FF
setb %cl
andb %al, %cl
orb %sil, %cl
je 0x99407
mulsd 0x360d6(%rip), %xmm0    # 0xcf450
movsd %xmm0, 0x40(%rsp)
fldl 0x40(%rsp)
flds 0x30c7a(%rip)           # 0xca004
fstpt (%rsp)
fstpt 0x10(%rsp)
leaq 0x2f(%rsp), %rdx
movl $0x1, %edi
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x29040
fld %st(0)
fabs
xorpd %xmm1, %xmm1
fldl 0x3dade(%rip)           # 0xd6e90
fxch %st(1)
fucomi %st(1), %st
jbe 0x993f5
leaq 0x3335c(%rip), %rdi     # 0xcc71b
leaq 0x332e3(%rip), %rsi     # 0xcc6a9
fxch %st(2)
fstpt 0x6c(%rsp)
fxch %st(1)
fstpt 0x60(%rsp)
fstpt 0x54(%rsp)
callq 0x554ea
fldt 0x54(%rsp)
fldt 0x60(%rsp)
fldt 0x6c(%rsp)
fstl 0x38(%rsp)
movsd 0x38(%rsp), %xmm1
fxch %st(2)
fxch %st(1)
fucompi %st(1), %st
fstp %st(0)
fstpl 0x30(%rsp)
ja 0x99427
movsd 0x30(%rsp), %xmm1
jmp 0x99427
movq 0x720ea(%rip), %rdi     # 0x10b4f8
leaq 0x3de0b(%rip), %rsi     # 0xd7220
leaq 0x48(%rsp), %rdx
callq 0x5523c
movsd 0x34c09(%rip), %xmm1    # 0xce030
movsd 0x36011(%rip), %xmm0    # 0xcf440
subsd %xmm1, %xmm0
addq $0x78, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O1/millanek[P]evo/./process_vcf_stats_utils.h
// Function: fisher_exactTable(int, int, int, int)
inline double fisher_exactTable(int a, int b, int c, int d) {
    
    long double numerator = factorial(a+b) * factorial(c+d) * factorial(a+c) * factorial(b+d);
    long double denominator = factorial(a) * factorial(b) * factorial(c) * factorial(d) * factorial(a+b+c+d);
    
    double p = numerator/denominator;
    return p;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %esi, %r12d
addl %edi, %r12d
cvtsi2sd %r12d, %xmm0
js 0x9a1a7
movl %ecx, %ebx
movl %edx, %ebp
movl %esi, %r14d
movl %edi, %r15d
addsd 0x3541f(%rip), %xmm0    # 0xcf440
callq 0x8090
movsd %xmm0, 0x8(%rsp)
movl %ebx, %r13d
addl %ebp, %r13d
xorps %xmm0, %xmm0
cvtsi2sd %r13d, %xmm0
js 0x9a1a7
addsd 0x353f8(%rip), %xmm0    # 0xcf440
callq 0x8090
movsd %xmm0, 0x38(%rsp)
movl %ebp, %eax
addl %r15d, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
js 0x9a1a7
addsd 0x353d3(%rip), %xmm0    # 0xcf440
callq 0x8090
movsd %xmm0, 0x30(%rsp)
movl %ebx, %eax
addl %r14d, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
js 0x9a1a7
addsd 0x353ae(%rip), %xmm0    # 0xcf440
callq 0x8090
movsd %xmm0, 0x28(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %r15d, %xmm0
testl %r15d, %r15d
js 0x9a1a7
addsd 0x3538a(%rip), %xmm0    # 0xcf440
callq 0x8090
movsd %xmm0, (%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
testl %r14d, %r14d
js 0x9a1a7
addsd 0x35367(%rip), %xmm0    # 0xcf440
callq 0x8090
movsd %xmm0, 0x20(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
testl %ebp, %ebp
js 0x9a1a7
addsd 0x35345(%rip), %xmm0    # 0xcf440
callq 0x8090
movsd %xmm0, 0x18(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
testl %ebx, %ebx
js 0x9a1a7
addsd 0x35323(%rip), %xmm0    # 0xcf440
callq 0x8090
addl %r12d, %r13d
cvtsi2sd %r13d, %xmm1
movsd (%rsp), %xmm2
mulsd 0x20(%rsp), %xmm2
mulsd 0x18(%rsp), %xmm2
mulsd %xmm0, %xmm2
movsd %xmm2, (%rsp)
movsd 0x8(%rsp), %xmm0
mulsd 0x38(%rsp), %xmm0
mulsd 0x30(%rsp), %xmm0
mulsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
fldl 0x50(%rsp)
fstpt 0x8(%rsp)
addsd 0x352ce(%rip), %xmm1    # 0xcf440
movapd %xmm1, %xmm0
callq 0x8090
mulsd (%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
fldt 0x8(%rsp)
fdivl 0x48(%rsp)
fstpl 0x40(%rsp)
movsd 0x40(%rsp), %xmm0
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x70e3a(%rip), %rdi     # 0x10afe8
leaq 0x3be1e(%rip), %rsi     # 0xd5fd3
movsd %xmm0, (%rsp)
callq 0x8460
movq %rax, %rdi
movsd (%rsp), %xmm0
callq 0x88b0
movq %rax, %rdi
callq 0x8200
movl $0x1, %edi
callq 0x8530
// File: /workspace/github_cpp_makefile_star2_O1/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 0x30691(%rip), %rcx     # 0xd1c7f
movq %rbx, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x86c0
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
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 0xa167c
cmpq $0x0, 0x10(%rsp)
je 0xa1616
xorl %r12d, %r12d
movq 0x8(%rsp), %rax
movsbl (%rax,%r12), %ebp
movl %ebp, %edi
callq 0x8380
testl %eax, %eax
je 0xa1670
movq %rbx, %rdi
movl %ebp, %esi
callq 0x83d0
incq %r12
cmpq 0x10(%rsp), %r12
jne 0xa1651
jmp 0xa1616
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xa1693
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 0xa16ce
jmp 0xa16b0
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
movq (%rsp), %r15
je 0xa16ce
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0xa16e1
movq (%r15), %rsi
incq %rsi
callq 0x8480
movq %r14, %rdi
callq 0x8840
// File: /workspace/github_cpp_makefile_star2_O1/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 0xbb36a
cmpb $0x23, (%rdi)
je 0xbb2cb
movq %r12, %rdi
movq %r15, %rsi
movl $0x9, %edx
callq 0x50624
movq 0x40(%rsp), %rax
movq %rbp, 0x20(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2e45c
movq %rbx, %rdi
movq %r13, %rsi
callq 0x323c8
movq %rax, %rdi
movq %r12, %rsi
callq 0x32338
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0xbb35d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r12, %rdi
callq 0x3123c
jmp 0xbb2cb
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xbb381
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 0xbb3c0
movq %rax, %r14
jmp 0xbb3b4
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0xbb3b4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x40(%rsp), %rdi
callq 0x3123c
jmp 0xbb3c3
movq %rax, %r14
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xbb3de
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x33302
movq %r14, %rdi
callq 0x8840
// File: /workspace/github_cpp_makefile_star2_O1/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
movq $0x0, 0x8(%rdi)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x10(%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 0x561e6
leaq 0x4(%rsp), %rdx
movl $0x0, (%rdx)
movq %r14, %rdi
movq %rbp, %rsi
callq 0x561e6
leaq 0x4(%rsp), %rdx
movl $0x0, (%rdx)
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
callq 0x561e6
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 0x561e6
leaq 0x4(%rsp), %rdx
movl $0x0, (%rdx)
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x561e6
leaq 0x4(%rsp), %rdx
movl $0xffffffff, (%rdx)     # imm = 0xFFFFFFFF
movq %rbp, %rdi
movq %r13, %rsi
callq 0x561e6
movl %r12d, (%rbx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xbf9f0
jmp 0xbf9f0
jmp 0xbf9f0
jmp 0xbf9f0
jmp 0xbf9f0
movq %rax, %r14
movq 0x8(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xbfa0f
movq 0xa8(%rbx), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x10(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xbfa2b
movq 0x90(%rbx), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x20(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xbfa44
movq 0x78(%rbx), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x30(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xbfa5d
movq 0x60(%rbx), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x18(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xbfa76
movq 0x48(%rbx), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x28(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xbfa8f
movq 0x30(%rbx), %rsi
subq %rdi, %rsi
callq 0x8480
movq %r14, %rdi
callq 0x8840
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0xc3586
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 0xc300e
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x8480
movq %r15, %rdi
callq 0x8840
// File: /workspace/github_cpp_makefile_star2_O1/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)
cmpq $0x0, 0x8(%rsi)
je 0xc56f9
movq %rcx, %r8
movq %rsi, %rbx
leaq 0x8(%rcx), %rbp
movq 0x8(%rsp), %rax
addq $0x108, %rax            # imm = 0x108
movq %rax, 0x28(%rsp)
movslq %edx, %rax
movq %rax, 0x38(%rsp)
xorl %r13d, %r13d
movq %rcx, 0x30(%rsp)
movq 0x38(%rsp), %rax
leaq (%rax,%r13), %r12
movq 0x10(%r8), %rcx
movq %rbp, %rax
testq %rcx, %rcx
je 0xc55db
movq %rbp, %rax
movslq 0x20(%rcx), %rdx
xorl %esi, %esi
cmpq %rdx, %r12
setg %sil
cmovleq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0xc55c0
movq %rbp, %rcx
cmpq %rbp, %rax
je 0xc55f1
movslq 0x20(%rax), %rcx
cmpq %rcx, %r12
cmovlq %rbp, %rax
movq %rax, %rcx
cmpq %rbp, %rcx
je 0xc56ec
movl %r12d, 0x10(%rsp)
movq %r8, %rdi
leaq 0x10(%rsp), %r15
movq %r15, %rsi
callq 0xc5eee
movq (%rax), %r14
leaq 0x8(%r14), %rsi
movq %r15, %rdi
callq 0xc5f3a
movq %rbx, %r15
movq (%rbx), %rax
movb (%rax,%r13), %bl
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(%r14), %xmm0
movl 0x2c(%r14), %edi
movl %r12d, (%rax)
movb %bl, 0x8(%rax)
movl %edx, 0xc(%rax)
movb %cl, 0x10(%rax)
movb %sil, 0x11(%rax)
movsd %xmm0, 0x18(%rax)
movl %edi, 0x4(%rax)
cmpb %cl, %bl
sete %dl
cmpb %sil, %bl
sete %sil
orb %dl, %sil
movl %esi, %edx
xorb $0x1, %dl
movb %dl, 0x24(%rax)
testb $0x1, %sil
je 0xc5697
xorl %edx, %edx
cmpb %cl, %bl
setne %dl
movl %edx, 0x20(%rax)
movq %rax, 0x40(%rsp)
movq 0x8(%rsp), %rcx
movq 0x110(%rcx), %rsi
cmpq 0x118(%rcx), %rsi
je 0xc56be
movq %rax, (%rsi)
addq $0x8, 0x110(%rcx)
jmp 0xc56cd
movq 0x28(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0xc60e0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xc56e4
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x30(%rsp), %r8
movq %r15, %rbx
incq %r13
cmpq %r13, 0x8(%rbx)
ja 0xc55a8
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 0xc5722
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x8840
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1c836(%rip), %rsi     # 0xe22d3
leaq 0x1c830(%rip), %rdx     # 0xe22d4
callq 0x28952
movl (%r14), %eax
addl $-0x41, %eax
roll $0x1d, %eax
cmpl $0x10, %eax
jae 0xc5aee
movl $0xd7d7, %ecx           # imm = 0xD7D7
btl %eax, %ecx
jae 0xc5aee
movl %eax, %eax
leaq 0x246aa(%rip), %rdx     # 0xea174
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 0x454f3(%rip), %rdi     # 0x10afe8
leaq 0x2465f(%rip), %rsi     # 0xea15b
movl $0x16, %edx
callq 0x84e0
movl (%r14), %esi
movq 0x454d8(%rip), %rdi     # 0x10afe8
callq 0x8810
movq %rax, %rdi
callq 0x8200
movl $0x1, %edi
callq 0x8530
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0xc5b3d
movq (%r15), %rsi
incq %rsi
callq 0x8480
movq %r14, %rdi
callq 0x8840
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xc118(%rip), %rdx      # 0xd1c7f
leaq 0x10(%rsp), %rdi
movq %rdx, %rsi
callq 0x28952
cmpq $0x0, 0xa0(%rbx)
je 0xc5ca2
leaq 0xb8(%rbx), %r14
leaq 0xe8(%rbx), %rax
movq %rax, 0x30(%rsp)
leaq 0xd0(%rbx), %r12
xorl %ebp, %ebp
leaq 0x10(%rsp), %r13
leaq 0xc0d5(%rip), %r15      # 0xd1c7f
movq 0x98(%rbx), %rax
movsbl (%rax,%rbp), %eax
leal -0x30(%rax), %ecx
cmpl $0x9, %ecx
ja 0xc5bcd
movsbl %al, %esi
movq %r13, %rdi
callq 0x83d0
jmp 0xc5c92
movq 0x10(%rsp), %rdi
callq 0x86e0
movl %eax, 0xc(%rsp)
movq 0xc0(%rbx), %rsi
cmpq 0xc8(%rbx), %rsi
je 0xc5bfa
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xc0(%rbx)
jmp 0xc5c07
movq %r14, %rdi
leaq 0xc(%rsp), %rdx
callq 0x4bc3a
movq 0x98(%rbx), %rax
movzbl (%rax,%rbp), %eax
cmpl $0x49, %eax
je 0xc5c4e
cmpl $0x53, %eax
je 0xc5c4e
movq 0xf0(%rbx), %rsi
cmpq 0xf8(%rbx), %rsi
je 0xc5c3f
movl 0xc(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xf0(%rbx)
jmp 0xc5c4e
movq 0x30(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x4bc3a
movq 0x98(%rbx), %rdx
addq %rbp, %rdx
movq 0xd8(%rbx), %rsi
cmpq 0xe0(%rbx), %rsi
je 0xc5c75
movb (%rdx), %al
movb %al, (%rsi)
incq 0xd8(%rbx)
jmp 0xc5c7d
movq %r12, %rdi
callq 0x6ed3c
movq 0x18(%rsp), %rdx
movq %r13, %rdi
xorl %esi, %esi
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x86c0
incq %rbp
cmpq %rbp, 0xa0(%rbx)
ja 0xc5baa
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xc5cbe
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc5ccf
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xc5cee
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x8840
// File: /workspace/github_cpp_makefile_star2_O1/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 0xc572a
movq 0x8(%rbx), %rdi
movq %r14, %rsi
callq 0xc572a
movq (%rbx), %rsi
movq 0x110(%rsi), %rax
cmpq 0x108(%rsi), %rax
je 0xc5d37
addq $0x108, %rsi            # imm = 0x108
leaq 0x18(%rbx), %rdi
callq 0xc5fd2
movq 0x8(%rbx), %rsi
movq 0x108(%rsi), %rdx
movq 0x110(%rsi), %rcx
cmpq %rdx, %rcx
je 0xc5d6b
leaq 0x18(%rbx), %rdi
movq 0x20(%rbx), %rax
cmpq 0x18(%rbx), %rax
je 0xc5d73
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc621c
addq $0x8, %rsp
popq %rbx
popq %r14
retq
addq $0x108, %rsi            # imm = 0x108
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc5fd2
// File: /workspace/github_cpp_makefile_star2_O1/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 0xc5de6
movl %esi, %ebp
movq %rsp, %r15
movq (%r14), %rax
cmpl %ebp, 0xc(%rax)
jl 0xc5ddc
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0xc5dd1
movq %rax, (%rsi)
addq $0x8, 0x8(%rsp)
jmp 0xc5ddc
movq %r15, %rdi
movq %r14, %rdx
callq 0xc60e0
addq $0x8, %r14
cmpq 0x20(%rbx), %r14
jne 0xc5db2
addq $0x18, %rbx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xc5fd2
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xc5e0b
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc5e18
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xc5e31
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x8840
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0xc5e9a
movl %esi, %ebp
movq %rsp, %r15
movq (%r14), %rax
cmpl %ebp, 0x4(%rax)
jne 0xc5e90
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0xc5e85
movq %rax, (%rsi)
addq $0x8, 0x8(%rsp)
jmp 0xc5e90
movq %r15, %rdi
movq %r14, %rdx
callq 0xc60e0
addq $0x8, %r14
cmpq 0x20(%rbx), %r14
jne 0xc5e66
addq $0x18, %rbx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xc5fd2
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xc5ebf
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc5ecc
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xc5ee5
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x8840
nop
// File: /workspace/github_cpp_makefile_star2_O1/ColinHarker[P]ltsim/src/test.cpp
// Function: main
int main()
{
   std::cout << "Starting tests..." << std::endl;
   TEST_1();
   TEST_2();
   TEST_3();

   return EXIT_SUCCESS;
}

// Assembly:
pushq %rbx
movq 0xa5c5(%rip), %rbx      # 0xdfd0
leaq 0x664c(%rip), %rsi      # 0xa05e
movl $0x11, %edx
movq %rbx, %rdi
callq 0x3270
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3190
callq 0x36cc
callq 0x373a
callq 0x3936
xorl %eax, %eax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x631b(%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 0x3dda
leaq 0x10(%rsp), %r14
movabsq $0x7fffffffffffffff, %r15 # imm = 0x7FFFFFFFFFFFFFFF
movq %r14, %rdi
movq %r15, %rsi
movl $0xa, %edx
callq 0x3180
decl %ebp
jne 0x3dc6
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 0x3e48
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x3e3b
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x3e06
movq %rbx, %rdi
movq %r15, %rdx
callq 0x3f9e
jmp 0x3e06
leaq 0x10(%rsp), %rdi
callq 0x3070
movq %rbx, %rax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3e65
movq %rax, %r14
jmp 0x3e81
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3e81
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_O1/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 0x3d7c
movq (%r14), %rdi
movq 0x8(%r14), %rcx
movq %rcx, %r14
subq %rdi, %r14
cmpq $0x19, %r14
jb 0x3ee1
movq 0x18(%rdi), %rax
movq %rax, 0x50(%rbx)
xorl %eax, %eax
cmpq %rcx, %rdi
je 0x3edd
movq %rdi, %rdx
addl (%rdx), %eax
addq $0x8, %rdx
cmpq %rcx, %rdx
jne 0x3ed0
cltq
movq %rax, 0x58(%rbx)
testq %rdi, %rdi
je 0x3ef3
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_O1/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 0x3e94
testb %al, %al
je 0x3f27
movq 0x50(%rbx), %rax
movq 0x58(%rbx), %rcx
movq %rax, %rdx
subq 0x40(%rbx), %rdx
js 0x3f31
cvtsi2ss %rdx, %xmm0
jmp 0x3f46
movss 0x616d(%rip), %xmm0     # 0xa09c
jmp 0x3f96
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 0x3f56
cvtsi2ss %rdx, %xmm1
jmp 0x3f6b
movq %rdx, %rsi
shrq %rsi
andl $0x1, %edx
orq %rsi, %rdx
cvtsi2ss %rdx, %xmm1
addss %xmm1, %xmm1
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x6125(%rip), %xmm1     # 0xa0a0
subsd %xmm0, %xmm1
mulsd 0x6121(%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_O1/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 0x4194
movq %rbx, %rdi
callq 0x42aa
callq 0x43d0
movl %eax, 0x68(%rbx)
movq %rbx, %rdi
callq 0x44d6
movq 0x70(%rbx), %r14
movq 0x78(%rbx), %r15
cmpq %r15, %r14
je 0x4162
movl $0x1, %ebp
movq %r14, %rdi
movl %ebp, %esi
callq 0x3f02
incl %ebp
addq $0x68, %r14
cmpq %r15, %r14
jne 0x414d
movq %rbx, %rdi
callq 0x45d0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4177
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_O1/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 0x5f45(%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 0x41dd
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 0x3d70
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x425f
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 0x4294
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4297
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3210
jmp 0x4297
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x3070
movq %rbx, %rdi
callq 0x33f0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x5e54(%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 0x9c8c(%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 0x4354
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x436b
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 0x43a7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3210
jmp 0x43a7
jmp 0x43a4
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x43be
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_O1/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 0x457b
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 0x3f02
movq %r14, %rdi
movq %r15, %rsi
callq 0x477a
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x4560
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3210
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x4576
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3210
cmpl 0x68(%rbx), %ebp
jl 0x4502
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_O1/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 0x5570(%rip), %rsi      # 0xa160
leaq 0x5571(%rip), %rdx      # 0xa168
leaq 0x8(%rsp), %rdi
callq 0x5260
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x4dde
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4c27
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x5533(%rip), %rsi      # 0xa169
leaq 0x5538(%rip), %rdx      # 0xa175
callq 0x5260
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x4dde
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4c6b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x54fc(%rip), %rsi      # 0xa176
leaq 0x54fe(%rip), %rdx      # 0xa17f
callq 0x5260
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movl $0x2, %edx
callq 0x4dde
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4caf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x54c2(%rip), %rsi      # 0xa180
leaq 0x54c3(%rip), %rdx      # 0xa188
callq 0x5260
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movl $0x3, %edx
callq 0x4dde
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4cf3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
movsd 0x8(%rbx), %xmm2
movsd 0x5430(%rip), %xmm0     # 0xa130
unpcklps %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
movapd 0x5435(%rip), %xmm1     # 0xa140
subpd %xmm1, %xmm2
movapd %xmm2, %xmm3
unpckhpd %xmm2, %xmm3            # xmm3 = xmm3[1],xmm2[1]
addsd %xmm2, %xmm3
movsd (%rbx), %xmm2
unpcklps %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
subpd %xmm1, %xmm2
movapd %xmm2, %xmm4
unpckhpd %xmm2, %xmm4            # xmm4 = xmm4[1],xmm2[1]
addsd %xmm2, %xmm4
divsd %xmm4, %xmm3
movsd 0x5362(%rip), %xmm2     # 0xa0a0
movapd %xmm2, %xmm4
subsd %xmm3, %xmm4
movsd 0x535a(%rip), %xmm3     # 0xa0a8
mulsd %xmm3, %xmm4
cvtsd2ss %xmm4, %xmm4
movss %xmm4, 0x20(%rbx)
movsd 0x18(%rbx), %xmm4
unpcklps %xmm0, %xmm4            # xmm4 = xmm4[0],xmm0[0],xmm4[1],xmm0[1]
subpd %xmm1, %xmm4
movapd %xmm4, %xmm5
unpckhpd %xmm4, %xmm5            # xmm5 = xmm5[1],xmm4[1]
addsd %xmm4, %xmm5
movsd 0x10(%rbx), %xmm4
unpcklps %xmm0, %xmm4            # xmm4 = xmm4[0],xmm0[0],xmm4[1],xmm0[1]
subpd %xmm1, %xmm4
movapd %xmm4, %xmm0
unpckhpd %xmm4, %xmm0            # xmm0 = xmm0[1],xmm4[1]
addsd %xmm4, %xmm0
divsd %xmm0, %xmm5
subsd %xmm5, %xmm2
mulsd %xmm3, %xmm2
xorps %xmm0, %xmm0
cvtsd2ss %xmm2, %xmm0
movss %xmm0, 0x24(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r14
retq
jmp 0x4db7
jmp 0x4dd3
jmp 0x4db7
jmp 0x4dd3
jmp 0x4db7
jmp 0x4dd3
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4dd6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
jmp 0x4dd6
movq %rax, %rbx
movq %rbx, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x5abf
movl %edx, %ebp
movl $0x1, %r12d
leaq 0x38(%rsp), %r14
movq %r15, %rdi
callq 0x3d76
movss %xmm0, 0x4(%rsp)
movl $0x1, %ebx
cmpl $0xa, %r12d
jb 0x59d3
movl $0x4, %ebx
movl %r12d, %eax
movl $0xd1b71759, %edx       # imm = 0xD1B71759
cmpl $0x63, %eax
jbe 0x59cc
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x59d1
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x59d3
movl %eax, %ecx
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x599e
addl $-0x3, %ebx
jmp 0x59d3
addl $-0x2, %ebx
jmp 0x59d3
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 0x5d71
movl $0x4, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x479a(%rip), %rcx      # 0xa1ae
callq 0x3250
movq %r14, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5a3c
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x5a43
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 0x5530
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x5a8f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5aab
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
incl %ebp
incl %r12d
addq $0x68, %r15
cmpq 0x48(%rsp), %r15
jne 0x5978
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x5aed
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x5aed
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5b09
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
movq %rbx, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x467e(%rip), %rsi      # 0xa1b3
leaq 0x46a7(%rip), %rdx      # 0xa1e3
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x5260
movq %r15, 0x28(%rsp)
movq %r15, %rdi
movl $0x1, %esi
xorl %edx, %edx
movq %r14, %rcx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x8eb8
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x5b80
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x70(%rsp), %r14
movq %r14, %rdi
callq 0x93be
movq (%r14), %r13
movq 0x8(%r14), %r14
cmpq %r14, %r13
je 0x5c3c
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 0x3c88
movq %rbx, 0x30(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x3c88
movq 0x28(%rsp), %rdi
movl %ebp, %esi
xorl %edx, %edx
movq %r15, %rcx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x8eb8
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x5c16
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5c2d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
addq $0x20, %r13
incl %ebp
cmpq %r14, %r13
jne 0x5bb1
leaq 0x70(%rsp), %rdi
callq 0x5d16
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 0x5cb9
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3210
jmp 0x5cb9
movq %rax, %r14
jmp 0x5caf
movq %rax, %r14
jmp 0x5c98
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x5c98
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5caf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x70(%rsp), %rdi
callq 0x5d16
movq %r14, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x9103
movq %r14, %rdi
xorl %esi, %esi
callq 0x68c4
movq %rsp, %rdi
callq 0x6526
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x65b2
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_O1/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 0x5fdb
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x30a0
jmp 0x5faf
movq 0x7fbe(%rip), %rax      # 0xdfa0
movslq (%rax), %rcx
addq $-0x3f, %rcx
cmpq %rcx, 0x148(%rbx)
jbe 0x602e
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 0x602e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3210
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x6044
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x7f6d(%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 0x607a
movq %rax, %rbx
jmp 0x6093
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x6093
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x7f1e(%rip), %rsi      # 0xdfb8
leaq 0x40(%rsp), %rdi
callq 0x3300
leaq 0xb8(%rsp), %rdi
callq 0x30c0
movq %rbx, %rdi
callq 0x33f0