LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/martinda3[P]Compiler/src/JVM/JVMgenerateProgram.cpp
// Function: toyc::JVMgenerateProgram::genMainMethod(toyc::ASdefinition**, int, toyc::JVMtargetCode*)
void JVMgenerateProgram::genMainMethod(ASdefinition** statements,int num,JVMtargetCode* tc) {
    gen_main_header(tc);
//    tc->add(new line(LINE_COUNTER)); LINE_COUNTER++;    //  Bookmakr
    for (int i=0; i < num; i++) {
        JVMgenerateStatement::genStatement(statements[i],tc);
        tc->add(new RETURN());
    }
    tc->add(new end());
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movq %rdx, %rdi
callq 0x246b4
testl %ebp, %ebp
jle 0x24221
movl %ebp, %r12d
xorl %r13d, %r13d
movq (%r14,%r13,8), %rdi
movq %rbx, %rsi
callq 0x20d00
movl $0x10, %edi
callq 0x8250
movq %rax, %r15
movq %rax, %rdi
callq 0x1e370
addq $0x8, %r15
movq (%rbx), %rax
movq %rbx, %rdi
movq %r15, %rsi
callq *(%rax)
incq %r13
cmpq %r13, %r12
jne 0x241e9
movl $0x30, %edi
callq 0x8250
movq %rax, %r14
movq %rax, %rdi
callq 0x20794
movq (%rbx), %rax
movq (%rax), %rax
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax
movq %rax, %rbx
movl $0x30, %esi
movq %r14, %rdi
jmp 0x2426a
movq %rax, %rbx
movl $0x10, %esi
movq %r15, %rdi
callq 0x8260
movq %rbx, %rdi
callq 0x8420
nop
// File: /workspace/github_cpp_makefile_star2_O3/martinda3[P]Compiler/src/JVM/JVMgenerateProgram.cpp
// Function: toyc::JVMgenerateProgram::gen_intro_comments(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, toyc::JVMtargetCode*)
void JVMgenerateProgram::gen_intro_comments(std::string s, std::string t, JVMtargetCode *tc) {
    tc->add(new blankComment());
    tc->add(new sourceFileComment(s));
    tc->add(new targetFileComment(t));
    tc->add(new timeAndSourceComment());
    tc->add(new blankComment());
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movl $0x10, %edi
callq 0x8250
leaq 0x8(%rax), %rsi
leaq 0x13e4c(%rip), %r13     # 0x380f0
leaq 0x10(%r13), %rcx
movq %rcx, (%rsp)
movq %rcx, (%rax)
addq $0x28, %r13
movq %r13, 0x8(%rax)
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
movl $0x30, %edi
callq 0x8250
movq %rax, %rbx
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0xabdc
movb $0x1, %r12b
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x1cb8c
movq %rbx, %rsi
addq $0x8, %rsi
movq (%r14), %rax
xorl %r12d, %r12d
movq %r14, %rdi
callq *(%rax)
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x24324
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8260
movl $0x30, %edi
callq 0x8250
movq %rax, %rbx
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0xabdc
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x1c99c
movq %rbx, %rsi
addq $0x8, %rsi
movq (%r14), %rax
xorl %ebp, %ebp
movq %r14, %rdi
callq *(%rax)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x24387
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
movl $0x30, %edi
callq 0x8250
movq %rax, %rbx
movq %rax, %rdi
callq 0x1c832
addq $0x8, %rbx
movq (%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *(%rax)
movl $0x10, %edi
callq 0x8250
leaq 0x8(%rax), %rsi
movq (%rsp), %rcx
movq %rcx, (%rax)
movq %r13, 0x8(%rax)
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x243df
jmp 0x243df
movq %rax, %r14
jmp 0x24424
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x243fe
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
testb %bpl, %bpl
jne 0x24424
jmp 0x24431
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2441f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8260
testb %r12b, %r12b
je 0x24431
movl $0x30, %esi
movq %rbx, %rdi
callq 0x8260
movq %r14, %rdi
callq 0x8420
nop
// File: /workspace/github_cpp_makefile_star2_O3/martinda3[P]Compiler/src/JVM/JVMgenerateProgram.cpp
// Function: toyc::JVMgenerateProgram::gen_main_header(toyc::JVMtargetCode*)
void JVMgenerateProgram::gen_main_header(JVMtargetCode* tc) {
    method *m = new method("main", "V");
    m->addArg("[Ljava/lang/String;");
    m->addAccessSpec("public");
    m->addAccessSpec("static");
    tc->add(m);
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %r14
movl $0x580, %edi            # imm = 0x580
callq 0x8250
movq %rax, %rbx
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x70f6(%rip), %rsi      # 0x2b7d8
leaq 0x70f3(%rip), %rdx      # 0x2b7dc
leaq 0x28(%rsp), %rdi
callq 0xfc2a
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x7214(%rip), %rsi      # 0x2b918
leaq 0x720e(%rip), %rdx      # 0x2b919
leaq 0x8(%rsp), %rdi
callq 0xfc2a
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x1fb60
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2473e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x24755
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8260
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x7074(%rip), %rsi      # 0x2b7dd
leaq 0x7080(%rip), %rdx      # 0x2b7f0
leaq 0x88(%rsp), %r15
movq %r15, %rdi
callq 0xfc2a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1fd64
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x247a8
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x8260
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x7018(%rip), %rsi      # 0x2b7d1
leaq 0x7017(%rip), %rdx      # 0x2b7d7
leaq 0x68(%rsp), %r15
movq %r15, %rdi
callq 0xfc2a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1fd44
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x247ef
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x8260
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x6ff1(%rip), %rsi      # 0x2b7f1
leaq 0x6ff0(%rip), %rdx      # 0x2b7f7
leaq 0x48(%rsp), %r15
movq %r15, %rdi
callq 0xfc2a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1fd44
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x24836
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8260
movq (%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *(%rax)
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x248e1
movq 0x58(%rsp), %rsi
jmp 0x24894
movq %rax, %r14
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x248e1
movq 0x78(%rsp), %rsi
jmp 0x24894
movq %rax, %r14
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x248e1
movq 0x98(%rsp), %rsi
incq %rsi
jmp 0x248dc
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x248b8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x248b8
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x248d4
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x248d4
movq %rax, %r14
movl $0x580, %esi            # imm = 0x580
movq %rbx, %rdi
callq 0x8260
movq %r14, %rdi
callq 0x8420
// File: /workspace/github_cpp_makefile_star2_O3/martinda3[P]Compiler/src/ASdefinition.cpp
// Function: toyc::ASdefinition::toTypeString[abi:cxx11]()
std::string ASdefinition::toTypeString()
	{
		std::string s;
		switch (type)
		{
			case FUNCdef:
				s = "FUNCdef";
				break;
			case VARdef:
				s = "VARdef";
				break;
			default:
				s = "error";
				break;
		}
		return s;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movl 0x8(%rsi), %eax
cmpl $0x1, %eax
je 0x2542e
testl %eax, %eax
jne 0x2543d
movl $0x7, %r8d
leaq 0x6734(%rip), %rcx      # 0x2bb60
jmp 0x2544a
movl $0x6, %r8d
leaq 0x672d(%rip), %rcx      # 0x2bb68
jmp 0x2544a
movl $0x5, %r8d
leaq 0x62e1(%rip), %rcx      # 0x2b72b
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x8390
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x25475
movq (%r15), %rsi
incq %rsi
callq 0x8260
movq %r14, %rdi
callq 0x8420
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/martinda3[P]Compiler/src/ASexpr.cpp
// Function: toyc::ASexpr::ASexpr(toyc::ASoperator*, toyc::ASexpression*, toyc::ASexpression*)
ASexpr::ASexpr(ASoperator* opr, ASexpression* oper1, ASexpression* oper2)
	{
		oper = opr;
		op1 = oper1;
		op2 = oper2;
		setType(EXPRexpr);
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
callq 0x1c478
leaq 0x147ef(%rip), %rax     # 0x39c90
movq %rax, (%rbx)
leaq 0x38(%rbx), %r13
movq %r13, 0x28(%rbx)
movq $0x0, 0x30(%rbx)
movb $0x0, 0x38(%rbx)
movq %r12, 0x10(%rbx)
movq %r15, 0x18(%rbx)
movq %r14, 0x20(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1c48a
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq 0x28(%rbx), %rdi
cmpq %r13, %rdi
je 0x254f3
movq (%r13), %rsi
incq %rsi
callq 0x8260
movq %r14, %rdi
callq 0x8420
nop
// File: /workspace/github_cpp_makefile_star2_O3/martinda3[P]Compiler/src/ASblockState.cpp
// Function: toyc::ASblockState::ASblockState(toyc::ASdefinition**, int, toyc::ASstatement**, int)
ASblockState::ASblockState(ASdefinition* varDef[], int numv, ASstatement* statements[], int nums)
	{
		for (int i = 0; i < numv; i++)
		{
			varDefList[i] = varDef[i];
		}
		numVarDef = numv;
		for (int i = 0; i < nums; i++)
		{
			statementList[i] = statements[i];
		}
		numStatements = nums;
		setType(BLOCKstate);
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %ebx
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, %r12
movq %rdi, %r15
callq 0x1ae1c
leaq 0x140f2(%rip), %rax     # 0x39cc0
movq %rax, (%r15)
testl %ebp, %ebp
jle 0x25bea
movl %ebp, %eax
xorl %ecx, %ecx
movq (%r12,%rcx,8), %rdx
movq %rdx, 0x10(%r15,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x25bd9
movl %ebp, 0xfb0(%r15)
testl %ebx, %ebx
jle 0x25c0d
movl %ebx, %eax
xorl %ecx, %ecx
movq (%r14,%rcx,8), %rdx
movq %rdx, 0xfb8(%r15,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x25bf9
movl %ebx, 0x1f58(%r15)
movq %r15, %rdi
movl $0x2, %esi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1ae2e
nop
// File: /workspace/github_cpp_makefile_star2_O3/martinda3[P]Compiler/src/ASprog.cpp
// Function: toyc::ASprog::ASprog(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, toyc::ASdefinition**, int)
ASprog::ASprog(std::string n, ASdefinition* definitions[], int num)
	{
		for (int i = 0; i < num; i++)
		{
			definitionList[i] = definitions[i];
		}
		numDefinitions = num;
		name = n;
		setType(PROGprog);
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x139b9(%rip), %rax     # 0x39cf0
movq %rax, (%rdi)
leaq 0xfb8(%rdi), %rbx
leaq 0xfc8(%rdi), %r15
movq %r15, 0xfb8(%rdi)
movq $0x0, 0xfc0(%rdi)
movb $0x0, 0xfc8(%rdi)
testl %ecx, %ecx
jle 0x2637a
movl %ecx, %eax
xorl %edi, %edi
movq (%rdx,%rdi,8), %r8
movq %r8, 0x10(%r14,%rdi,8)
incq %rdi
cmpq %rdi, %rax
jne 0x26369
movl %ecx, 0xfb0(%r14)
movq %rbx, %rdi
callq 0x8150
movq %r14, %rdi
xorl %esi, %esi
callq 0x1aab4
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x263af
movq (%r15), %rsi
incq %rsi
callq 0x8260
movq %r14, %rdi
callq 0x8420
nop
// File: /workspace/github_cpp_makefile_star2_O3/martinda3[P]Compiler/src/tc.cpp
// Function: main
int main(int argc, char *argv[]) {
    char buffer[80];
    string ffile(buffer);
    try { processCommandLine(argc, argv, ffile); }
    catch (...) {
        cerr << "ERROR: processCommandLine" << endl;
        exit(EXIT_FAILURE);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x90, %rsp
movq %rsi, %r14
movl %edi, %ebp
leaq 0x30(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x40(%rsp), %r15
movq %r15, %rdi
callq 0x8100
leaq (%rsp,%rax), %rdx
addq $0x40, %rdx
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0xfc2a
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xabdc
movl %ebp, %edi
movq %r14, %rsi
callq 0x26e45
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x26da3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x26dba
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x8260
xorl %eax, %eax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x26dea
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x26dea
movq %rax, %r14
movq %r14, %rdi
callq 0x80e0
movq 0x131f7(%rip), %rdi     # 0x39ff0
leaq 0x4e47(%rip), %rsi      # 0x2bc47
movl $0x19, %edx
callq 0x82c0
movq 0x131df(%rip), %rdi     # 0x39ff0
callq 0x8120
movl $0x1, %edi
callq 0x82e0
movq %rax, %r14
callq 0x83d0
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0x8558
movq %r14, %rdi
callq 0x8420
movq %rax, %rdi
callq 0x28556
// File: /workspace/github_cpp_makefile_star2_O3/martinda3[P]Compiler/src/tc.cpp
// Function: inputFileHandler(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int inputFileHandler(string nameoffile) {
    string line;
    int count = 0;
    inputfile.open(nameoffile);
    if (inputfile.fail()) {
        std::cerr << "ERROR: input file not found" << std::endl;
        exit(EXIT_FAILURE);
    }
    while (!inputfile.eof()) {
        getline(inputfile, line);
        count++;
    }
    inputfile.close();
    return count;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rsi
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
leaq 0x12777(%rip), %r14     # 0x3aa40
movq %r14, %rdi
movl $0x8, %edx
callq 0x8200
movq 0x12763(%rip), %rax     # 0x3aa40
movq -0x18(%rax), %rdi
movl 0x20(%rdi,%r14), %eax
testb $0x5, %al
jne 0x2835c
xorl %ebx, %ebx
testb $0x2, %al
jne 0x2832b
addq %r14, %rdi
xorl %ebx, %ebx
leaq 0x8(%rsp), %r15
movl $0xa, %esi
callq 0x8230
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x8440
incl %ebx
movq 0x12725(%rip), %rax     # 0x3aa40
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
testb $0x2, 0x20(%rax,%r14)
je 0x282fa
leaq 0x1270e(%rip), %rdi     # 0x3aa40
callq 0x8080
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2834e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x11c8d(%rip), %rdi     # 0x39ff0
leaq 0x2216(%rip), %rsi      # 0x2a580
movl $0x1b, %edx
callq 0x82c0
movq 0x11c75(%rip), %rdi     # 0x39ff0
callq 0x8120
movl $0x1, %edi
callq 0x82e0
jmp 0x2838c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x283a6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
movq %rbx, %rdi
callq 0x8420
// File: /workspace/github_cpp_makefile_star2_O3/martinda3[P]Compiler/src/tc.cpp
// Function: split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char)
vector <string> split(const string &s, char delim) {
    vector <string> result;
    stringstream ss(s);
    string item;
    while (getline(ss, item, delim)) {
        result.push_back(item);
    }
    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1b0, %rsp            # imm = 0x1B0
movl %edx, %ebp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x28(%rsp), %rdi
movl $0x18, %edx
callq 0x83b0
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
movsbl %bpl, %ebp
leaq 0x28(%rsp), %r14
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x8440
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2842d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x28562
jmp 0x28405
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x28444
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x11b5d(%rip), %rsi     # 0x39fa8
leaq 0x28(%rsp), %rdi
callq 0x8190
leaq 0xa8(%rsp), %rdi
callq 0x80c0
movq %rbx, %rax
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x284b2
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x28494
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x11b0d(%rip), %rsi     # 0x39fa8
leaq 0x28(%rsp), %rdi
callq 0x8190
leaq 0xa8(%rsp), %rdi
callq 0x80c0
movq %rbx, %rdi
callq 0x285a0
movq %r14, %rdi
callq 0x8420
// File: /workspace/github_cpp_makefile_star2_O3/martinda3[P]Compiler/src/TCsymTable.cpp
// Function: toyc::TCsymTable::add(toyc::TCsymbol*)
int TCsymTable::add(TCsymbol *sym) {
        if (size >= MAX_SYMS) {
            std::cerr << "Error: symbol table overflow" << std::endl;
            exit(EXIT_FAILURE);
        } else {
            symTable[size++] = sym;
            return (size - 1);
        }
    }

// Assembly:
movslq 0x320(%rdi), %rax
cmpq $0x64, %rax
jge 0x28e47
leal 0x1(%rax), %ecx
movl %ecx, 0x320(%rdi)
movq %rsi, (%rdi,%rax,8)
retq
pushq %rax
movq 0x111a1(%rip), %rdi     # 0x39ff0
leaq 0x301c(%rip), %rsi      # 0x2be72
callq 0x8240
movq %rax, %rdi
callq 0x8120
movl $0x1, %edi
callq 0x82e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/prakhar2808[P]DBEngine/clientCode/client.cc
// Function: sendToServerAndGetResponse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
void sendToServerAndGetResponse(std::string data,
                                bool printResponse) {
    memset(buffer, 0, sizeof(buffer));
    strcpy(buffer, data.c_str());
    //unsigned char len = data.length();

    //send(clientSd, &len, 1, 0);
    send(clientSd, buffer, strlen(buffer), 0);
    if(printResponse) {
      std::cout << "Awaiting server response..." 
                << std::endl;
    
      std::cout << "Response from Server: \n";
    }

    if(data == "exit") {
      return;
    }
    
    char bufferSize; //Number of bytes to be read
    while(true){
      memset(buffer, 0, sizeof(buffer));
      // Receiving length of string
      recv(clientSd, &bufferSize, sizeof(bufferSize), 0);
      // Receiving the string
      recv(clientSd, buffer, (int)bufferSize, 0);
      if(strcmp(buffer, "```end```") == 0) {
        break;
      }
      if(printResponse) {
        std::cout << buffer << std::endl;
      }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
leaq 0x33df(%rip), %r15      # 0x61b0
movl $0x1000, %edx           # imm = 0x1000
movq %r15, %rdi
xorl %esi, %esi
callq 0x20e0
movq (%r14), %rsi
movq %r15, %rdi
callq 0x2150
movl 0x43bf(%rip), %ebp      # 0x71b0
movq %r15, %rdi
callq 0x20b0
movl %ebp, %edi
movq %r15, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x20d0
testl %ebx, %ebx
je 0x2e62
movq 0x31bd(%rip), %r15      # 0x5fd0
leaq 0x12dc(%rip), %rsi      # 0x40f6
movl $0x1b, %edx
movq %r15, %rdi
callq 0x21b0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2100
leaq 0x12bd(%rip), %rsi      # 0x4112
movl $0x17, %edx
movq %r15, %rdi
callq 0x21b0
leaq 0x126e(%rip), %rsi      # 0x40d7
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2f31
leaq 0x3330(%rip), %r14      # 0x61b0
leaq 0x7(%rsp), %r15
movabsq $0x6060646e65606060, %r13 # imm = 0x6060646E65606060
movq 0x313a(%rip), %r12      # 0x5fd0
movl $0x1000, %edx           # imm = 0x1000
movq %r14, %rdi
xorl %esi, %esi
callq 0x20e0
movl 0x4305(%rip), %edi      # 0x71b0
movl $0x1, %edx
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x2090
movl 0x42f0(%rip), %edi      # 0x71b0
movsbq 0x7(%rsp), %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x2090
movq 0x32d9(%rip), %rax      # 0x61b0
xorq %r13, %rax
movzwl 0x32d7(%rip), %ecx      # 0x61b8
xorq $0x60, %rcx
orq %rax, %rcx
je 0x2f31
testb %bl, %bl
je 0x2e96
movq %r14, %rdi
callq 0x20b0
movq %r12, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x21b0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2100
jmp 0x2e96
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/ricbit[P]dlx/cover_original.cc
// Function: ExactCover::run()
long run() {
    long count = 0;
    int p, i;
  //d1:
    int l = 0;
  d2:
    if (header[0].rlink == 0) {
      count++;
      goto d8;
    }
  //d3:
    i = header[0].rlink;
  //d4:
    cover(i);
    solution[l] = nodes[i].dlink;
  d5:
    if (solution[l] == i) {
      goto d7;
    }
    p = solution[l] + 1;
    while (p != solution[l]) {
      int j = nodes[p].top;
      if (j <= 0) {
        p = nodes[p].ulink;
      } else {
        cover(j);
        p++;
      }
    }
    l++;
    goto d2;
  d6:
    p = solution[l] - 1;
    while (p != solution[l]) {
      int j = nodes[p].top;
      if (j <= 0) {
        p = nodes[p].dlink;
      } else {
        uncover(j);
        p--;
      }
    }
    i = nodes[solution[l]].top;
    solution[l] = nodes[solution[l]].dlink;
    goto d5;
  d7:
    uncover(i);
  d8:
    if (l == 0) {
      return count;
    }
    l--;
    if (nodes[solution[l]].top == 0) {
      goto d5;
    }
    goto d6;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r13d, %r13d
movq $0x0, (%rsp)
movq (%rbx), %rax
movslq 0x24(%rax), %r12
testq %r12, %r12
je 0x28ad
movq %rbx, %rdi
movl %r12d, %esi
callq 0x3b26
movq 0x18(%rbx), %rdx
leaq (%r12,%r12,2), %rcx
movq 0x30(%rbx), %rax
movslq %r13d, %rbp
movl %r12d, %r14d
movl 0x8(%rdx,%rcx,4), %r15d
jmp 0x2923
incq (%rsp)
testl %r13d, %r13d
je 0x297b
movq 0x30(%rbx), %rax
movslq %r13d, %rbp
movq 0x18(%rbx), %rcx
decl %r13d
movslq -0x4(%rax,%rbp,4), %r15
decq %rbp
leaq (%r15,%r15,2), %rdx
cmpl $0x0, (%rcx,%rdx,4)
je 0x2927
leal -0x1(%r15), %r14d
movq 0x18(%rbx), %rcx
movslq %r14d, %rdx
leaq (%rdx,%rdx,2), %rdx
movl (%rcx,%rdx,4), %esi
testl %esi, %esi
jle 0x2901
movq %rbx, %rdi
callq 0x3b94
movq 0x30(%rbx), %rax
decl %r14d
jmp 0x2909
leaq (%rcx,%rdx,4), %rcx
movl 0x8(%rcx), %r14d
cmpl (%rax,%rbp,4), %r14d
jne 0x28de
movq 0x18(%rbx), %rcx
movslq %r14d, %rdx
leaq (%rdx,%rdx,2), %rdx
movl 0x8(%rcx,%rdx,4), %r15d
movl (%rcx,%rdx,4), %r14d
movl %r15d, (%rax,%rbp,4)
cmpl %r14d, %r15d
jne 0x293f
movq %rbx, %rdi
movl %r15d, %esi
callq 0x3b94
movl %r15d, %r14d
jmp 0x28b1
incl %r15d
movq 0x18(%rbx), %rcx
movslq %r15d, %rdx
leaq (%rdx,%rdx,2), %rdx
movl (%rcx,%rdx,4), %esi
testl %esi, %esi
jle 0x2965
movq %rbx, %rdi
callq 0x3b26
movq 0x30(%rbx), %rax
incl %r15d
jmp 0x296d
leaq (%rcx,%rdx,4), %rcx
movl 0x4(%rcx), %r15d
cmpl (%rax,%rbp,4), %r15d
jne 0x2942
incl %r13d
jmp 0x287d
movq (%rsp), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/ricbit[P]dlx/cover_original.cc
// Function: ExactCover::hide(int)
void hide(int p) {
    for (auto q = p + 1; q != p;) {
      auto x = nodes[q].top;
      auto u = nodes[q].ulink;
      auto d = nodes[q].dlink;
      if (x <= 0) {
        q = u;
      } else {
        nodes[u].dlink = d;
        nodes[d].ulink = u;
        nodes[x].top--;
        q++;
      }
    }
  }

// Assembly:
movq 0x18(%rdi), %rax
leal 0x1(%rsi), %ecx
movslq %ecx, %rdx
leaq (%rdx,%rdx,2), %r8
movslq (%rax,%r8,4), %rdx
movl 0x4(%rax,%r8,4), %edi
testq %rdx, %rdx
jle 0x3c3a
leaq (%rax,%r8,4), %r8
movslq %edi, %rdi
leaq (%rdx,%rdx,2), %rdx
incl %ecx
leaq (%rdi,%rdi,2), %r9
movslq 0x8(%r8), %r8
movl %r8d, 0x8(%rax,%r9,4)
leaq (%r8,%r8,2), %r8
movl %edi, 0x4(%rax,%r8,4)
decl (%rax,%rdx,4)
movl %ecx, %edi
jmp 0x3c3c
movl %edi, %ecx
cmpl %esi, %edi
jne 0x3bfb
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/ricbit[P]dlx/cover_original.cc
// Function: ExactCover::unhide(int)
void unhide(int p) {
    for (auto q = p - 1; q != p;) {
      auto x = nodes[q].top;
      auto u = nodes[q].ulink;
      auto d = nodes[q].dlink;
      if (x <= 0) {
        q = d;
      } else {
        nodes[u].dlink = q;
        nodes[d].ulink = q;
        nodes[x].top++;
        q--;
      }
    }
  }

// Assembly:
movq 0x18(%rdi), %rax
leal -0x1(%rsi), %ecx
movslq %ecx, %rdx
leaq (%rdx,%rdx,2), %r8
movslq (%rax,%r8,4), %rdx
movl 0x8(%rax,%r8,4), %edi
testq %rdx, %rdx
jle 0x3c87
leaq (%rax,%r8,4), %r8
movslq %edi, %rdi
leaq (%rdx,%rdx,2), %rdx
leaq (%rdi,%rdi,2), %rdi
movslq 0x4(%r8), %r8
leaq (%r8,%r8,2), %r8
movl %ecx, 0x8(%rax,%r8,4)
movl %ecx, 0x4(%rax,%rdi,4)
incl (%rax,%rdx,4)
decl %ecx
movl %ecx, %edi
jmp 0x3c89
movl %edi, %ecx
cmpl %esi, %edi
jne 0x3c49
retq
// File: /workspace/github_cpp_makefile_star2_O3/tylerwowen[P]movielens/./movielens/datareader.cpp
// Function: readData(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::unordered_map<int, Ratings, std::hash<int>, std::equal_to<int>, std::allocator<std::pair<int const, Ratings>>>&)
int readData(string const &filename, UsersMap &users) {
  ifstream ifs(filename);
  locale colon(std::locale::classic(), new my_ctype);
  ifs.imbue(colon);
  int ratingCount = 0;
  
  while (true) {
    int userId, itermId, timestamp;
    double rating;
    ifs >>  userId >> itermId >> rating >> timestamp;
    if (ifs.fail()) {
      break;
    }
    Ratings *ratings = &users[userId];
    ratings->insert(itermId, rating);
    ratingCount++;
  }
  for (auto& user: users) {
    user.second.sortList();
  }
  
  return ratingCount;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movq %rsi, %rbx
movq %rdi, %rsi
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x22c0
callq 0x2260
movq %rax, %r15
movl $0x440, %edi            # imm = 0x440
callq 0x21e0
movq %rax, %r12
leaq 0x5fdf(%rip), %rbp      # 0x8d38
movq %rbp, (%rax)
movq %rax, %r13
addq $0x23a, %r13            # imm = 0x23A
movq %rax, %rdi
movq %r13, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x2160
movq %rbp, (%r12)
callq 0x2230
movl $0x200, %edx            # imm = 0x200
movq %r13, %rdi
movq %rax, %rsi
callq 0x22d0
movw $0x2000, %ax            # imm = 0x2000
movw %ax, 0x2ae(%r12)
movw %ax, 0x27a(%r12)
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x2ec4
movq 0x30(%rsp), %rax
addq -0x18(%rax), %r14
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %r14, %rsi
callq 0x2070
leaq 0x20(%rsp), %rdi
callq 0x2270
xorl %ebp, %ebp
leaq 0x2c(%rsp), %r15
leaq 0x14(%rsp), %r12
leaq 0x18(%rsp), %r13
leaq 0x28(%rsp), %r14
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x2120
movq %rax, %rdi
movq %r12, %rsi
callq 0x2120
movq %rax, %rdi
movq %r13, %rsi
callq 0x2130
movq %rax, %rdi
movq %r14, %rsi
callq 0x2120
movq 0x30(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x50(%rsp,%rax)
jne 0x2e4e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2fc4
movl 0x14(%rsp), %esi
movsd 0x18(%rsp), %xmm0
movq %rax, %rdi
callq 0x26a0
incl %ebp
jmp 0x2def
addq $0x10, %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x2e65
leaq 0x10(%rbx), %rdi
callq 0x26fc
jmp 0x2e52
leaq 0x8(%rsp), %rdi
callq 0x2270
leaq 0x30(%rsp), %rdi
callq 0x2060
movl %ebp, %eax
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2ea5
movq %rax, %rbx
movq %r12, %rdi
callq 0x21b0
jmp 0x2eb2
movq %rax, %rbx
jmp 0x2eb2
jmp 0x2ea5
jmp 0x2ea5
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2270
leaq 0x30(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x2320
// File: /workspace/github_cpp_makefile_star2_O3/tylerwowen[P]movielens/./movielens/main.cpp
// Function: getPredication(std::vector<Ratings*, std::allocator<Ratings*>>, int)
double getPredication(UsersPtr neighbors, int itemId) {
  int validRatings = 0;
  double ratingSum = 0;
  for (int i = 0; i < neighbors.size(); i++) {
    Ratings_map::const_iterator ratingItr = neighbors[i]->r_map.find(itemId);
    if (ratingItr != neighbors[i]->r_map.end()) {
      validRatings++;
      ratingSum += ratingItr->second;
    }
  }
  if (validRatings == 0) {
    return 0;
  }
  return ratingSum/validRatings;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %esi, 0xc(%rsp)
movq (%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x33d4
movq %rdi, %rbx
xorl %r15d, %r15d
xorpd %xmm0, %xmm0
leaq 0xc(%rsp), %r14
xorl %ebp, %ebp
movsd %xmm0, 0x10(%rsp)
movq (%rax,%r15,8), %rdi
addq $0x18, %rdi
movq %r14, %rsi
callq 0x3b72
testq %rax, %rax
je 0x33aa
incl %ebp
movsd 0x10(%rsp), %xmm0
addsd 0x10(%rax), %xmm0
jmp 0x33b0
movsd 0x10(%rsp), %xmm0
incq %r15
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
ja 0x3380
testl %ebp, %ebp
je 0x33d4
cvtsi2sd %ebp, %xmm1
divsd %xmm1, %xmm0
jmp 0x33d8
xorpd %xmm0, %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tylerwowen[P]movielens/./movielens/neighborsfinder.cpp
// Function: NeighborsLocator::calculateSortableAllDistances(std::vector<std::pair<int, double>, std::allocator<std::pair<int, double>>>&, double (NeighborsLocator::*)(std::__cxx11::list<std::pair<int, double>, std::allocator<std::pair<int, double>>>&, std::__cxx11::list<std::pair<int, double>, std::allocator<std::pair<int, double>>>&))
void NeighborsLocator::calculateSortableAllDistances(Distances &distances, double (NeighborsLocator::*distanceFunc)(Ratings_list&, Ratings_list&)) {
  int i = 0;
  for (auto& otherUser: *trainUsers) {
    distances[i].first = otherUser.first;
    distances[i].second = (this->*distanceFunc)(otherUser.second.r_list, targetUserRatings->r_list);
    i++;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %rax
movq 0x10(%rax), %r13
testq %r13, %r13
je 0x3fe7
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
addq %rdi, %rbx
movq (%rsi), %rax
xorl %ebp, %ebp
movl 0x8(%r13), %ecx
movl %ecx, (%rax,%rbp)
movq %r14, %rax
testb $0x1, %r14b
je 0x3fc3
movq (%rbx), %rax
movq -0x1(%rax,%r14), %rax
leaq 0x10(%r13), %rsi
movq 0x20(%r12), %rdx
movq %rbx, %rdi
callq *%rax
movq (%r15), %rax
movsd %xmm0, 0x8(%rax,%rbp)
movq (%r13), %r13
addq $0x10, %rbp
testq %r13, %r13
jne 0x3fab
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tylerwowen[P]movielens/./movielens/neighborsfinder.cpp
// Function: sort_nth_elemet(std::vector<std::pair<int, double>, std::allocator<std::pair<int, double>>>&, int, bool)
void sort_nth_elemet(Distances &distances, int k, bool ascending) {
  if (ascending) {
    nth_element(distances.begin(), distances.begin() + k, distances.end(), cmp);
    sort(distances.begin(), distances.begin() + k, cmp);
  }
  else {
    nth_element(distances.begin(), distances.begin() + k, distances.end(), reverseCmp);
    sort(distances.begin(), distances.begin() + k, reverseCmp);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %eax
movl %esi, %ebp
movq %rdi, %r14
movq (%rdi), %rdi
movq 0x8(%r14), %rdx
movslq %esi, %r12
movq %r12, %rbx
shlq $0x4, %rbx
leaq (%rdi,%rbx), %rsi
cmpq %rdx, %rdi
sete %r8b
cmpq %rdx, %rsi
sete %cl
orb %r8b, %cl
testl %eax, %eax
je 0x417f
testb %cl, %cl
jne 0x4172
movq %rdx, %rax
subq %rdi, %rax
sarq $0x4, %rax
bsrq %rax, %rcx
xorl $0x3f, %ecx
addl %ecx, %ecx
xorq $0x7e, %rcx
leaq 0x94f(%rip), %r8        # 0x4abc
callq 0x544d
testl %ebp, %ebp
je 0x41e8
leaq 0x93f(%rip), %r15       # 0x4abc
jmp 0x41b1
testb %cl, %cl
jne 0x41a6
movq %rdx, %rax
subq %rdi, %rax
sarq $0x4, %rax
bsrq %rax, %rcx
xorl $0x3f, %ecx
addl %ecx, %ecx
xorq $0x7e, %rcx
leaq 0x929(%rip), %r8        # 0x4aca
callq 0x544d
testl %ebp, %ebp
je 0x41e8
leaq 0x919(%rip), %r15       # 0x4aca
movq (%r14), %r14
addq %r14, %rbx
bsrq %r12, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rcx
callq 0x59f8
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x5b37
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tylerwowen[P]movielens/./movielens/neighborsfinder.cpp
// Function: NeighborsLocator::calculateDistancesToNeighbors(int)
void NeighborsLocator::calculateDistancesToNeighbors(int numUsers) {
  cachedDistances.assign(numUsers + 1, 0.0);
  switch (method) {
    case COS:
      calculateAllDistances(&NeighborsLocator::cosineSimilarity);
      break;
    case L1:
      calculateAllDistances(&NeighborsLocator::cityBlockDistance);
      break;
    case L2:
      calculateAllDistances(&NeighborsLocator::euclideanDistance);
      break;
    case PCC:
      calculateAllDistances(&NeighborsLocator::pcc);
      break;
    case LLR:
      calculateAllDistances(&NeighborsLocator::llr);
      break;
    default:
      break;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x28, %rdi
incl %esi
movslq %esi, %rsi
movq %rsp, %rdx
movq $0x0, (%rdx)
callq 0x4e1c
movl 0x10(%rbx), %eax
cmpq $0x4, %rax
ja 0x4869
leaq 0x1af7(%rip), %rcx      # 0x624c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rbx), %rax
movq 0x10(%rax), %r15
testq %r15, %r15
je 0x4869
movq 0x20(%rbx), %r14
movq 0x28(%rbx), %rbx
leaq 0x10(%r15), %rsi
movq %r14, %rdx
callq 0x3ff6
movslq 0x8(%r15), %rax
movsd %xmm0, (%rbx,%rax,8)
movq (%r15), %r15
testq %r15, %r15
jne 0x4776
jmp 0x4869
movq (%rbx), %rax
movq 0x10(%rax), %r14
testq %r14, %r14
je 0x4869
leaq 0x10(%r14), %rsi
movq 0x20(%rbx), %rdx
movq %rbx, %rdi
callq 0x4516
movslq 0x8(%r14), %rax
movq 0x28(%rbx), %rcx
movsd %xmm0, (%rcx,%rax,8)
movq (%r14), %r14
jmp 0x479f
movq (%rbx), %rax
movq 0x10(%rax), %r15
testq %r15, %r15
je 0x4869
movq 0x20(%rbx), %r14
movq 0x28(%rbx), %rbx
leaq 0x10(%r15), %rsi
movq %r14, %rdx
callq 0x42ba
movslq 0x8(%r15), %rax
movsd %xmm0, (%rbx,%rax,8)
movq (%r15), %r15
testq %r15, %r15
jne 0x47e2
jmp 0x4869
movq (%rbx), %rax
movq 0x10(%rax), %r15
testq %r15, %r15
je 0x4869
movq 0x20(%rbx), %r14
movq 0x28(%rbx), %r12
leaq 0x10(%r15), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x4376
movslq 0x8(%r15), %rax
movsd %xmm0, (%r12,%rax,8)
movq (%r15), %r15
testq %r15, %r15
jne 0x4815
jmp 0x4869
movq (%rbx), %rax
movq 0x10(%rax), %r15
testq %r15, %r15
je 0x4869
movq 0x20(%rbx), %r14
movq 0x28(%rbx), %rbx
leaq 0x10(%r15), %rsi
movq %r14, %rdx
callq 0x41f2
movslq 0x8(%r15), %rax
movsd %xmm0, (%rbx,%rax,8)
movq (%r15), %r15
testq %r15, %r15
jne 0x484c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tylerwowen[P]movielens/./movielens/neighborsfinder.cpp
// Function: NeighborsLocator::getMatchedKNeighbors(int)
UsersPtr NeighborsLocator::getMatchedKNeighbors(int targetItem) {
  this->targetItemId = targetItem;
  Distances distances;
  distances.reserve(100);
  
  calculateDistances(distances);
  if (distances.size() > k) {
    switch (method) {
      case COS:
      case PCC:
      case LLR:
        sort_nth_elemet(distances, k + 1, false);
        break;
      case L1:
      case L2:
        sort_nth_elemet(distances, k + 1, true);
        break;
      default:
        break;
    }
  }
  
  UsersPtr neighbors;
  int end = k < distances.size() ? k : (int)distances.size();
  for (int i = 0, j = 0; i < end; j++) {
    int userId = distances[j].first;
    if (userId == targetUserId) {
      if (end != k) {
        end--;
      }
      continue;
    }
    neighbors.push_back(&((*trainUsers)[userId]));
    i++;
  }
  return neighbors;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl %edx, 0x40(%rsi)
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movl $0x64, %esi
callq 0x4be8
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x4a32
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
sarq $0x4, %rax
movslq 0xc(%r14), %rsi
cmpq %rsi, %rax
jbe 0x494f
movl 0x10(%r14), %ecx
cmpl $0x5, %ecx
jae 0x494f
movb $0x6, %al
shrb %cl, %al
incl %esi
movzbl %al, %edx
andl $0x1, %edx
leaq 0x10(%rsp), %rdi
callq 0x4113
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movslq 0xc(%r14), %rax
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %r13
subq %rdi, %r13
sarq $0x4, %r13
cmpq %rax, %r13
cmoval %eax, %r13d
testl %r13d, %r13d
jle 0x49ea
xorl %ebp, %ebp
leaq 0xc(%rsp), %r15
xorl %r12d, %r12d
movq 0x10(%rsp), %rax
movl (%rax,%rbp), %eax
movl %eax, 0xc(%rsp)
cmpl 0x18(%r14), %eax
jne 0x49a8
xorl %eax, %eax
cmpl 0xc(%r14), %r13d
setne %al
subl %eax, %r13d
jmp 0x49dc
movq (%r14), %rdi
movq %r15, %rsi
callq 0x2fc4
movq %rax, 0x30(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x49cc
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x49d9
movq %rbx, %rdi
leaq 0x30(%rsp), %rdx
callq 0x51fc
incl %r12d
addq $0x10, %rbp
cmpl %r13d, %r12d
jl 0x4988
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x49f4
callq 0x21b0
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x4a1b
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4a1b
callq 0x21b0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4a2a
callq 0x21b0
movq %r14, %rdi
callq 0x2320
// File: /workspace/github_cpp_makefile_star2_O3/tylerwowen[P]movielens/./movielens/neighborsfinder.cpp
// Function: NeighborsLocator::calculateDistances(std::vector<std::pair<int, double>, std::allocator<std::pair<int, double>>>&)
void NeighborsLocator::calculateDistances(Distances &distances) {
  for (auto& otherUser: *trainUsers) {
    Ratings_map *ratings = &otherUser.second.r_map;
    Ratings_map::const_iterator ratingItr = ratings->find(targetItemId);
    if (ratingItr != ratings->end()) {
      distances.push_back({otherUser.first, cachedDistances[otherUser.first]});
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq (%rdi), %rax
movq 0x10(%rax), %r13
testq %r13, %r13
je 0x4aab
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x40(%rdi), %r15
movq %rsp, %r12
leaq 0x28(%r13), %rdi
movq %r15, %rsi
callq 0x3b72
testq %rax, %rax
je 0x4aa2
movslq 0x8(%r13), %rax
movq 0x28(%r14), %rcx
movl %eax, (%rsp)
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x4a97
movups (%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x4aa2
movq %rbx, %rdi
movq %r12, %rdx
callq 0x5316
movq (%r13), %r13
testq %r13, %r13
jne 0x4a58
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/xelia-it[P]mustache/test/src/../../src/../third-party/json/single_include/nlohmann/json.hpp
// Function: nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::get()
char_int_type get()
    {
        ++position.chars_read_total;
        ++position.chars_read_current_line;

        if (next_unget)
        {
            // just reset the next_unget variable and work with current
            next_unget = false;
        }
        else
        {
            current = ia.get_character();
        }

        if (JSON_HEDLEY_LIKELY(current != std::char_traits<char_type>::eof()))
        {
            token_string.push_back(std::char_traits<char_type>::to_char_type(current));
        }

        if (current == '\n')
        {
            ++position.lines_read;
            position.chars_read_current_line = 0;
        }

        return current;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
incq 0x20(%rdi)
incq 0x28(%rdi)
cmpb $0x1, 0x18(%rdi)
jne 0x1c1f6
movb $0x0, 0x18(%rbx)
movl 0x14(%rbx), %eax
jmp 0x1c20b
movq (%rbx), %rcx
cmpq 0x8(%rbx), %rcx
je 0x1c251
movzbl (%rcx), %eax
incq %rcx
movq %rcx, (%rbx)
movl %eax, 0x14(%rbx)
cmpl $-0x1, %eax
je 0x1c24d
movb %al, -0x9(%rbp)
movq 0x40(%rbx), %rsi
cmpq 0x48(%rbx), %rsi
je 0x1c225
movb %al, (%rsi)
incq 0x40(%rbx)
jmp 0x1c232
leaq 0x38(%rbx), %rdi
leaq -0x9(%rbp), %rdx
callq 0x5603e
movl 0x14(%rbx), %eax
cmpl $0xa, %eax
jne 0x1c246
incq 0x30(%rbx)
andq $0x0, 0x28(%rbx)
pushq $0xa
popq %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
pushq $-0x1
jmp 0x1c245
pushq $-0x1
popq %rax
jmp 0x1c208
// File: /workspace/github_cpp_makefile_star2_O3/xelia-it[P]mustache/third-party/catch2/single_include/catch2/catch.hpp
// Function: Catch::Detail::Approx::equalityComparisonImpl(double) const
bool Approx::equalityComparisonImpl(const double other) const {
        // First try with fixed margin, then compute margin based on epsilon, scale and Approx's value
        // Thanks to Richard Harris for his help refining the scaled margin value
        return marginComparison(m_value, other, m_margin)
            || marginComparison(m_value, other, m_epsilon * (m_scale + std::fabs(std::isinf(m_value)? 0 : m_value)));
    }

// Assembly:
movsd 0x8(%rdi), %xmm2
movsd 0x18(%rdi), %xmm1
movapd %xmm1, %xmm3
addsd %xmm2, %xmm3
ucomisd %xmm0, %xmm3
jb 0x1ce16
addsd %xmm0, %xmm2
movb $0x1, %al
ucomisd %xmm1, %xmm2
jae 0x1ce6b
pushq %rbp
movq %rsp, %rbp
movq %xmm1, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
xorpd %xmm2, %xmm2
cmpq %rcx, %rax
je 0x1ce43
movapd 0x5c1e1(%rip), %xmm2    # 0x79020
andpd %xmm1, %xmm2
addsd 0x10(%rdi), %xmm2
mulsd (%rdi), %xmm2
movapd %xmm1, %xmm3
addsd %xmm2, %xmm3
addsd %xmm0, %xmm2
cmplepd %xmm2, %xmm1
cmplepd %xmm3, %xmm0
andpd %xmm1, %xmm0
movd %xmm0, %eax
popq %rbp
andb $0x1, %al
retq
// File: /workspace/github_cpp_makefile_star2_O3/xelia-it[P]mustache/third-party/catch2/single_include/catch2/catch.hpp
// Function: Catch::Detail::Approx::setMargin(double)
void Approx::setMargin(double newMargin) {
        CATCH_ENFORCE(newMargin >= 0,
            "Invalid Approx::margin: " << newMargin << '.'
            << " Approx::Margin has to be non-negative.");
        m_margin = newMargin;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x48, %rsp
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x1ce8d
movsd %xmm0, 0x8(%rdi)
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
movsd %xmm0, -0x10(%rbp)
leaq -0x28(%rbp), %rbx
movq %rbx, %rdi
callq 0x2d4e2
movq 0x10(%rbx), %rdi
leaq 0x5d85b(%rip), %rsi     # 0x7a704
movl $0x18, %edx
callq 0x1b5e0
movq -0x18(%rbp), %rdi
movsd -0x10(%rbp), %xmm0
callq 0x1b810
movq -0x18(%rbp), %rdi
leaq -0x48(%rbp), %rsi
movb $0x2e, (%rsi)
movl $0x1, %edx
callq 0x1b5e0
movq -0x18(%rbp), %rdi
leaq 0x5d83c(%rip), %rsi     # 0x7a71d
movl $0x27, %edx
callq 0x1b5e0
movq -0x18(%rbp), %rsi
addq $0x8, %rsi
leaq -0x48(%rbp), %rdi
callq 0x1b7f0
leaq -0x48(%rbp), %rdi
callq 0x1cf32
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1cf21
callq 0x1b4d0
jmp 0x1cf21
jmp 0x1cf1e
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x2d528
movq %rbx, %rdi
callq 0x1b910
// File: /workspace/github_cpp_makefile_star2_O3/xelia-it[P]mustache/third-party/catch2/single_include/catch2/catch.hpp
// Function: Catch::Detail::Approx::setEpsilon(double)
void Approx::setEpsilon(double newEpsilon) {
        CATCH_ENFORCE(newEpsilon >= 0 && newEpsilon <= 1.0,
            "Invalid Approx::epsilon: " << newEpsilon << '.'
            << " Approx::epsilon has to be in [0, 1]");
        m_epsilon = newEpsilon;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x48, %rsp
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x1cf92
movsd 0x5c13f(%rip), %xmm1    # 0x790c0
ucomisd %xmm0, %xmm1
jb 0x1cf92
movsd %xmm0, (%rdi)
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
movsd %xmm0, -0x10(%rbp)
leaq -0x28(%rbp), %rbx
movq %rbx, %rdi
callq 0x2d4e2
movq 0x10(%rbx), %rdi
leaq 0x5d797(%rip), %rsi     # 0x7a745
movl $0x19, %edx
callq 0x1b5e0
movq -0x18(%rbp), %rdi
movsd -0x10(%rbp), %xmm0
callq 0x1b810
movq -0x18(%rbp), %rdi
leaq -0x48(%rbp), %rsi
movb $0x2e, (%rsi)
movl $0x1, %edx
callq 0x1b5e0
movq -0x18(%rbp), %rdi
leaq 0x5d779(%rip), %rsi     # 0x7a75f
movl $0x24, %edx
callq 0x1b5e0
movq -0x18(%rbp), %rsi
addq $0x8, %rsi
leaq -0x48(%rbp), %rdi
callq 0x1b7f0
leaq -0x48(%rbp), %rdi
callq 0x1cf32
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d026
callq 0x1b4d0
jmp 0x1d026
jmp 0x1d023
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x2d528
movq %rbx, %rdi
callq 0x1b910
// File: /workspace/github_cpp_makefile_star2_O3/xelia-it[P]mustache/third-party/catch2/single_include/catch2/catch.hpp
// Function: Catch::operator<<(std::ostream&, Catch::LazyExpression const&)
auto operator << ( std::ostream& os, LazyExpression const& lazyExpr ) -> std::ostream& {
        if( lazyExpr.m_isNegated )
            os << "!";

        if( lazyExpr ) {
            if( lazyExpr.m_isNegated && lazyExpr.m_transientExpression->isBinaryExpression() )
                os << "(" << *lazyExpr.m_transientExpression << ")";
            else
                os << *lazyExpr.m_transientExpression;
        }
        else {
            os << "{** error - unchecked empty expression requested **}";
        }
        return os;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x1, 0x8(%rsi)
jne 0x1d112
leaq 0x5e441(%rip), %rsi     # 0x7b546
movl $0x1, %edx
movq %rbx, %rdi
callq 0x1b5e0
movq (%r14), %rdi
testq %rdi, %rdi
je 0x1d15e
cmpb $0x1, 0x8(%r14)
jne 0x1d154
cmpb $0x1, 0x8(%rdi)
jne 0x1d154
leaq 0x5ea4e(%rip), %rsi     # 0x7bb7c
movl $0x1, %edx
movq %rbx, %rdi
callq 0x1b5e0
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *(%rax)
leaq 0x5d5b5(%rip), %rsi     # 0x7a702
movl $0x1, %edx
jmp 0x1d16a
movq (%rdi), %rax
movq %rbx, %rsi
callq *(%rax)
jmp 0x1d172
leaq 0x5d61f(%rip), %rsi     # 0x7a784
movl $0x34, %edx
movq %rbx, %rdi
callq 0x1b5e0
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/xelia-it[P]mustache/third-party/catch2/single_include/catch2/catch.hpp
// Function: Catch::getResultCapture()
IResultCapture& getResultCapture() {
        if (auto* capture = getCurrentContext().getResultCapture())
            return *capture;
        else
            CATCH_INTERNAL_ERROR("No result capture instance");
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x48, %rsp
leaq 0x8d7ea(%rip), %rbx     # 0xaa9b0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x1d1d3
movq (%rdi), %rax
jmp 0x1d204
movl $0x30, %edi
callq 0x1b510
movq %rax, %rdi
leaq 0x88b49(%rip), %rcx     # 0xa5d30
leaq 0x10(%rcx), %rax
movq %rax, (%rdi)
addq $0x60, %rcx
movq %rcx, 0x8(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, 0x20(%rdi)
movq %rdi, (%rbx)
callq *0x10(%rax)
testq %rax, %rax
je 0x1d213
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
leaq -0x20(%rbp), %rbx
movq %rbx, %rdi
callq 0x2d4e2
leaq 0x5dcaf(%rip), %rax     # 0x7aed5
leaq -0x50(%rbp), %rsi
movq %rax, (%rsi)
movq $0x335d, 0x8(%rsi)      # imm = 0x335D
movq 0x10(%rbx), %rdi
callq 0x22e17
movq -0x10(%rbp), %rdi
leaq 0x5df22(%rip), %rsi     # 0x7b16b
movl $0x19, %edx
callq 0x1b5e0
movq -0x10(%rbp), %rdi
leaq 0x5e27a(%rip), %rsi     # 0x7b4d8
movl $0x1a, %edx
callq 0x1b5e0
movq -0x10(%rbp), %rsi
addq $0x8, %rsi
leaq -0x40(%rbp), %rdi
callq 0x1b7f0
leaq -0x40(%rbp), %rdi
callq 0x23e01
movq %rax, %rbx
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d29c
callq 0x1b4d0
jmp 0x1d29c
movq %rax, %rbx
leaq -0x20(%rbp), %rdi
callq 0x2d528
movq %rbx, %rdi
callq 0x1b910
nop
// File: /workspace/github_cpp_makefile_star2_O3/xelia-it[P]mustache/third-party/catch2/single_include/catch2/catch.hpp
// Function: Catch::AssertionHandler::complete()
void AssertionHandler::complete() {
        setCompleted();
        if( m_reaction.shouldDebugBreak ) {

            // If you find your debugger stopping you here then go one level up on the
            // call-stack for the code that caused it (typically a failed assertion)

            // (To go back to the test and change execution, jump over the throw, next)
            CATCH_BREAK_INTO_DEBUGGER();
        }
        if (m_reaction.shouldThrow) {
#if !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS)
            throw Catch::TestFailureException();
#else
            CATCH_ERROR( "Test failure requires aborting test!" );
#endif
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movb $0x1, 0x3a(%rdi)
cmpb $0x1, 0x38(%rdi)
jne 0x1d363
callq 0x23bf0
testb %al, %al
je 0x1d363
int3
cmpb $0x1, 0x39(%rbx)
je 0x1d370
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movl $0x1, %edi
callq 0x1b250
leaq 0x8889f(%rip), %rsi     # 0xa5c20
movq %rax, %rdi
xorl %edx, %edx
callq 0x1b8b0
nop