LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %r14
movl $0x580, %edi            # imm = 0x580
callq 0x8250
movq %rax, %rbx
leaq 0x5355(%rip), %rsi      # 0x1e710
leaq 0x88(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0xd770
leaq 0x547c(%rip), %rsi      # 0x1e850
leaq 0x68(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0xd770
leaq 0x88(%rsp), %rsi
leaq 0x68(%rsp), %rdx
movq %rbx, %rdi
callq 0x15f08
leaq 0x68(%rsp), %rdi
callq 0x8478
leaq 0x88(%rsp), %rdi
callq 0x8478
leaq 0x52ff(%rip), %rsi      # 0x1e715
leaq 0x48(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0xd770
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x16094
leaq 0x48(%rsp), %rdi
callq 0x8478
leaq 0x52c6(%rip), %rsi      # 0x1e709
leaq 0x28(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0xd770
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x16074
leaq 0x28(%rsp), %rdi
callq 0x8478
leaq 0x52b9(%rip), %rsi      # 0x1e729
leaq 0x8(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0xd770
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x16074
leaq 0x8(%rsp), %rdi
callq 0x8478
movq (%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *(%rax)
addq $0xa8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
leaq 0x8(%rsp), %rdi
jmp 0x194cc
jmp 0x194d3
movq %rax, %r14
leaq 0x28(%rsp), %rdi
jmp 0x194cc
jmp 0x194d3
movq %rax, %r14
leaq 0x48(%rsp), %rdi
callq 0x8478
jmp 0x19509
movq %rax, %r14
jmp 0x19509
movq %rax, %r14
leaq 0x68(%rsp), %rdi
callq 0x8478
jmp 0x194ea
movq %rax, %r14
leaq 0x88(%rsp), %rdi
callq 0x8478
jmp 0x194fc
movq %rax, %r14
movl $0x580, %esi            # imm = 0x580
movq %rbx, %rdi
callq 0x8260
movq %r14, %rdi
callq 0x8400
// File: /workspace/github_cpp_makefile_star2_O2/martinda3[P]Compiler/src/JVM/JVMgenerateProgram.cpp
// Function: toyc::JVMgenerateProgram::gen_input_stream_store(toyc::JVMtargetCode*)
void JVMgenerateProgram::gen_input_stream_store(JVMtargetCode *tc) {
      tc->add(new NEW(SCANNER));
      tc->add(new DUP());
      tc->add(new GETSTATIC(INPUT_FIELD_SPEC,INPUT_DESCRIPTOR));
      tc->add(new INVOKESPECIAL(SCANNER_CONSTRUCTOR));
      JVMgenUtils::gen_ASTORE(*symTable->getSym(symTable->find("System.in")),tc);
  }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0xf0, %rsp
movq %rdi, %rbx
pushq $0x30
popq %rdi
callq 0x8250
movq %rax, %r14
leaq 0x14054(%rip), %rsi     # 0x2d748
leaq 0x88(%rsp), %rdi
callq 0x82f0
movb $0x1, %bpl
leaq 0x88(%rsp), %rsi
movq %r14, %rdi
callq 0x15680
movq %r14, %rsi
addq $0x8, %rsi
movq (%rbx), %rax
xorl %ebp, %ebp
movq %rbx, %rdi
callq *(%rax)
leaq 0x88(%rsp), %rdi
callq 0x8478
pushq $0x10
popq %rdi
callq 0x8250
movq %rax, %r14
movq %rax, %rdi
callq 0x15b6c
addq $0x8, %r14
movq (%rbx), %rax
movq %rbx, %rdi
movq %r14, %rsi
callq *(%rax)
pushq $0x50
popq %rdi
callq 0x8250
movq %rax, %r14
leaq 0x140c2(%rip), %rsi     # 0x2d828
leaq 0x68(%rsp), %rdi
callq 0x82f0
leaq 0x140d1(%rip), %rsi     # 0x2d848
leaq 0x48(%rsp), %rdi
callq 0x82f0
movb $0x1, %bpl
leaq 0x68(%rsp), %rsi
leaq 0x48(%rsp), %rdx
movq %r14, %rdi
callq 0x14610
movq %r14, %rsi
addq $0x8, %rsi
movq (%rbx), %rax
xorl %ebp, %ebp
movq %rbx, %rdi
callq *(%rax)
leaq 0x48(%rsp), %rdi
callq 0x8478
leaq 0x68(%rsp), %rdi
callq 0x8478
pushq $0x30
popq %rdi
callq 0x8250
movq %rax, %r14
leaq 0x140fb(%rip), %rsi     # 0x2d8c8
leaq 0x28(%rsp), %rdi
callq 0x82f0
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x15bb4
movq %r14, %rsi
addq $0x8, %rsi
movq (%rbx), %rax
xorl %ebp, %ebp
movq %rbx, %rdi
callq *(%rax)
leaq 0x28(%rsp), %rdi
callq 0x8478
leaq 0x13d5f(%rip), %rax     # 0x2d568
movq (%rax), %r14
leaq 0x3c68(%rip), %rsi      # 0x1d47b
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0xd770
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x1bc3c
movq %r14, %rdi
movl %eax, %esi
callq 0x1bcc6
leaq 0xa8(%rsp), %rdi
movq %rax, %rsi
callq 0x18a12
leaq 0xa8(%rsp), %rdi
movq %rbx, %rsi
callq 0x170e0
leaq 0xa8(%rsp), %rdi
callq 0x18a52
leaq 0x8(%rsp), %rdi
callq 0x8478
addq $0xf0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x18a52
jmp 0x198fd
movq %rax, %rbx
jmp 0x19907
jmp 0x198a9
movq %rax, %rbx
movb $0x1, %bpl
jmp 0x198c5
movq %rax, %rbx
jmp 0x198d4
movq %rax, %rbx
pushq $0x10
jmp 0x198ef
movq %rax, %rbx
jmp 0x198ed
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
jmp 0x198e3
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x8478
leaq 0x68(%rsp), %rdi
callq 0x8478
testb %bpl, %bpl
je 0x19907
pushq $0x50
jmp 0x198ef
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x8478
testb %bpl, %bpl
je 0x19907
pushq $0x30
popq %rsi
movq %r14, %rdi
callq 0x8260
jmp 0x19907
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x8478
movq %rbx, %rdi
callq 0x8400
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movl 0x8(%rsi), %eax
cmpl $0x1, %eax
leaq 0x4f3c(%rip), %rcx      # 0x1eaa0
leaq 0x4af8(%rip), %rdx      # 0x1e663
cmoveq %rcx, %rdx
testl %eax, %eax
leaq 0x4f20(%rip), %rsi      # 0x1ea98
cmovneq %rdx, %rsi
callq 0x8440
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x8478
movq %r14, %rdi
callq 0x8400
nop
// File: /workspace/github_cpp_makefile_star2_O2/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, %r13
callq 0x13d4c
leaq 0x130d7(%rip), %rax     # 0x2cc98
movq %rax, (%r13)
leaq 0x28(%r13), %rbx
leaq 0x38(%r13), %rax
movq %rax, 0x28(%r13)
andq $0x0, 0x30(%r13)
movb $0x0, 0x38(%r13)
movq %r12, 0x10(%r13)
movq %r15, 0x18(%r13)
movq %r14, 0x20(%r13)
pushq $0x1
popq %rsi
movq %r13, %rdi
callq 0x13d5e
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x8478
movq %r14, %rdi
callq 0x8400
nop
// File: /workspace/github_cpp_makefile_star2_O2/martinda3[P]Compiler/src/ASexpr.cpp
// Function: toyc::ASexpr::toString[abi:cxx11]()
std::string ASexpr::toString()
	{
		s = spaces() + "expr(\n";
		indent();
		s += oper->toString() + "\n" +
				op1->toString() + "\n" +
				op2->toString() + "\n";
		outdent();
		s += spaces() + ")";
		return s;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x11921
leaq 0x4e6f(%rip), %rdx      # 0x1eaa7
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0xa06b
leaq 0x28(%r15), %r14
leaq 0x28(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x82d0
movq %r12, %rdi
callq 0x8478
leaq 0x8(%rsp), %rdi
callq 0x8478
callq 0x11935
movq 0x10(%r15), %rsi
movq (%rsi), %rax
leaq 0xe8(%rsp), %r12
movq %r12, %rdi
callq *(%rax)
leaq 0x41dc(%rip), %rdx      # 0x1de67
leaq 0x88(%rsp), %rdi
movq %r12, %rsi
callq 0xa06b
movq 0x18(%r15), %rsi
movq (%rsi), %rax
leaq 0x68(%rsp), %rdi
callq *(%rax)
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0xa559
leaq 0x419d(%rip), %rdx      # 0x1de67
leaq 0xc8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0xa06b
movq 0x20(%r15), %rsi
movq (%rsi), %rax
leaq 0x48(%rsp), %rdi
callq *(%rax)
leaq 0x8(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0xa559
leaq 0x415c(%rip), %rdx      # 0x1de67
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xa06b
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x8450
leaq 0x28(%rsp), %rdi
callq 0x8478
leaq 0x8(%rsp), %rdi
callq 0x8478
leaq 0x48(%rsp), %rdi
callq 0x8478
leaq 0xc8(%rsp), %rdi
callq 0x8478
leaq 0xa8(%rsp), %rdi
callq 0x8478
leaq 0x68(%rsp), %rdi
callq 0x8478
leaq 0x88(%rsp), %rdi
callq 0x8478
leaq 0xe8(%rsp), %rdi
callq 0x8478
callq 0x11942
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x11921
leaq 0x3f89(%rip), %rdx      # 0x1dd25
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0xa06b
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x8450
leaq 0x28(%rsp), %rdi
callq 0x8478
leaq 0x8(%rsp), %rdi
callq 0x8478
movq %rbx, %rdi
movq %r14, %rsi
callq 0x82f0
movq %rbx, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x8478
jmp 0x19e7d
jmp 0x19e7a
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x8478
jmp 0x19e0d
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x8478
jmp 0x19e1c
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x8478
jmp 0x19e2b
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x8478
jmp 0x19e3d
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x8478
leaq 0x68(%rsp), %rdi
callq 0x8478
leaq 0x88(%rsp), %rdi
callq 0x8478
leaq 0xe8(%rsp), %rdi
jmp 0x19e82
movq %rax, %rbx
jmp 0x19e4a
movq %rax, %rbx
jmp 0x19e54
movq %rax, %rbx
jmp 0x19e61
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x8478
movq %rbx, %rdi
callq 0x8400
nop
// File: /workspace/github_cpp_makefile_star2_O2/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, %r15
movl %edx, %ebp
movq %rsi, %r12
movq %rdi, %r14
callq 0x13250
leaq 0x12e02(%rip), %rax     # 0x2ccc8
movq %rax, (%r14)
xorl %eax, %eax
testl %ebp, %ebp
movl $0x0, %ecx
cmovgl %ebp, %ecx
cmpq %rax, %rcx
je 0x19ee8
movq (%r12,%rax,8), %rdx
movq %rdx, 0x10(%r14,%rax,8)
incq %rax
jmp 0x19ed5
movl %ebp, 0xfb0(%r14)
xorl %eax, %eax
testl %ebx, %ebx
movl $0x0, %ecx
cmovgl %ebx, %ecx
cmpq %rax, %rcx
je 0x19f11
movq (%r15,%rax,8), %rdx
movq %rdx, 0xfb8(%r14,%rax,8)
incq %rax
jmp 0x19efb
movl %ebx, 0x1f58(%r14)
pushq $0x2
popq %rsi
movq %r14, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x13262
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x12a62(%rip), %rax     # 0x2ccf8
movq %rax, (%rdi)
leaq 0xfc8(%rdi), %rax
movq %rax, 0xfb8(%rdi)
andq $0x0, 0xfc0(%rdi)
leaq 0xfb8(%rdi), %rbx
movb $0x0, 0xfc8(%rdi)
xorl %eax, %eax
testl %ecx, %ecx
movl $0x0, %edi
cmovgl %ecx, %edi
cmpq %rax, %rdi
je 0x1a2dc
movq (%rdx,%rax,8), %r8
movq %r8, 0x10(%r14,%rax,8)
incq %rax
jmp 0x1a2c9
movl %ecx, 0xfb0(%r14)
movq %rbx, %rdi
callq 0x8160
movq %r14, %rdi
xorl %esi, %esi
callq 0x130c8
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x8478
movq %r14, %rdi
callq 0x8400
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0xa0, %rsp
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x30(%rsp), %r14
leaq 0x50(%rsp), %rsi
leaq 0xf(%rsp), %rdx
movq %r14, %rdi
callq 0xd770
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x82f0
movl %ebp, %edi
movq %rbx, %rsi
callq 0x1a80b
leaq 0x10(%rsp), %rdi
callq 0x8478
leaq 0x30(%rsp), %rdi
callq 0x8478
xorl %eax, %eax
addq $0xa0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x8478
jmp 0x1a7be
movq %rax, %rbx
movq %rbx, %rdi
callq 0x80e0
movq 0x12823(%rip), %rdi     # 0x2cff0
leaq 0x43ab(%rip), %rsi      # 0x1eb7f
callq 0x8240
movq %rax, %rdi
callq 0x8130
pushq $0x1
popq %rdi
callq 0x82c0
movq %rax, %rbx
callq 0x83b0
leaq 0x30(%rsp), %rdi
callq 0x8478
movq %rbx, %rdi
callq 0x8400
movq %rax, %rdi
callq 0x1b749
// File: /workspace/github_cpp_makefile_star2_O2/martinda3[P]Compiler/src/tc.cpp
// Function: printUsageMessage()
void printUsageMessage() {
    cout << "\nUsage: tc [Function] <input_file> " << endl;
    cout << "            -Function      -s        display all Scanner information" << endl;
    cout << "            -Function      -p        display all Parser information" << endl;
    cout << "            -Function      -a        display all abstract information" << endl;
    cout << "            -Function      -c        display all Completed information" << endl;
}

// Assembly:
pushq %rbx
movq 0x11aeb(%rip), %rbx     # 0x2cfc8
leaq 0x3758(%rip), %rsi      # 0x1ec3c
movq %rbx, %rdi
callq 0x8240
movq %rax, %rdi
callq 0x8130
leaq 0x3765(%rip), %rsi      # 0x1ec60
movq %rbx, %rdi
callq 0x8240
movq %rax, %rdi
callq 0x8130
leaq 0x3793(%rip), %rsi      # 0x1eca5
movq %rbx, %rdi
callq 0x8240
movq %rax, %rdi
callq 0x8130
leaq 0x37c0(%rip), %rsi      # 0x1ece9
movq %rbx, %rdi
callq 0x8240
movq %rax, %rdi
callq 0x8130
leaq 0x37ef(%rip), %rsi      # 0x1ed2f
movq %rbx, %rdi
callq 0x8240
movq %rax, %rdi
popq %rbx
jmp 0x8130
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rsi
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x124c4(%rip), %rbx     # 0x2da38
pushq $0x8
popq %rdx
movq %rbx, %rdi
callq 0x81f0
movq 0x124b2(%rip), %rax     # 0x2da38
movq -0x18(%rax), %rax
testb $0x5, 0x20(%rax,%rbx)
jne 0x1b5d6
xorl %ebp, %ebp
movq %rsp, %r14
testb $0x2, 0x20(%rax,%rbx)
jne 0x1b5b7
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8070
incl %ebp
movq 0x12487(%rip), %rax     # 0x2da38
movq -0x18(%rax), %rax
jmp 0x1b596
leaq 0x1247a(%rip), %rdi     # 0x2da38
callq 0x8080
movq %rsp, %rdi
callq 0x8478
movl %ebp, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq 0x11a13(%rip), %rdi     # 0x2cff0
leaq 0x1f9c(%rip), %rsi      # 0x1d580
callq 0x8240
movq %rax, %rdi
callq 0x8130
pushq $0x1
popq %rdi
callq 0x82c0
jmp 0x1b5fb
movq %rax, %rbx
movq %rsp, %rdi
callq 0x8478
movq %rbx, %rdi
callq 0x8400
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movl %edx, %ebp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x20(%rsp), %rdi
pushq $0x18
popq %rdx
callq 0x8380
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movsbl %bpl, %ebp
leaq 0x20(%rsp), %r14
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x8420
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1b67d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1b754
jmp 0x1b655
movq %rsp, %rdi
callq 0x8478
leaq 0x20(%rsp), %rdi
callq 0x81b0
movq %rbx, %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x1b6ba
movq %rax, %r14
movq %rsp, %rdi
callq 0x8478
leaq 0x20(%rsp), %rdi
callq 0x81b0
movq %rbx, %rdi
callq 0x1b780
movq %r14, %rdi
callq 0x8400
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1bc17
leal 0x1(%rax), %ecx
movl %ecx, 0x320(%rdi)
movq %rsi, (%rdi,%rax,8)
retq
pushq %rax
movq 0x113d1(%rip), %rdi     # 0x2cff0
leaq 0x3182(%rip), %rsi      # 0x1eda8
callq 0x8240
movq %rax, %rdi
callq 0x8130
pushq $0x1
popq %rdi
callq 0x82c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2818(%rip), %r15      # 0x51b0
movl $0x1000, %edx           # imm = 0x1000
movq %r15, %rdi
xorl %esi, %esi
callq 0x20e0
movq (%r14), %rsi
movq %r15, %rdi
callq 0x2140
movl 0x37f8(%rip), %ebp      # 0x61b0
movq %r15, %rdi
callq 0x20a0
movl %ebp, %edi
movq %r15, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x20d0
testl %ebx, %ebx
je 0x2a00
movq 0x25f6(%rip), %r15      # 0x4fd0
leaq 0x715(%rip), %rsi       # 0x30f6
movq %r15, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20c0
leaq 0x71a(%rip), %rsi       # 0x3112
movq %r15, %rdi
callq 0x2150
leaq 0x6d0(%rip), %rsi       # 0x30d7
movq %r14, %rdi
callq 0x2b7d
testb %al, %al
je 0x2a22
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2787(%rip), %r14      # 0x51b0
leaq 0x7(%rsp), %r15
pushq $0x1
popq %r12
leaq 0x6f1(%rip), %r13       # 0x312a
pushq $0xa
popq %rbp
movl $0x1000, %edx           # imm = 0x1000
movq %r14, %rdi
xorl %esi, %esi
callq 0x20e0
movl 0x375f(%rip), %edi      # 0x61b0
movq %r15, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x2080
movl 0x374c(%rip), %edi      # 0x61b0
movsbq 0x7(%rsp), %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x2080
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x2170
testl %eax, %eax
je 0x2a13
testb %bl, %bl
je 0x2a3c
movq 0x253f(%rip), %rdi      # 0x4fd0
movq %r14, %rsi
callq 0x2150
movq %rax, %rdi
callq 0x20c0
jmp 0x2a3c
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x26d5
movq %rbx, %rdi
movl %r12d, %esi
callq 0x3862
movq 0x18(%rbx), %rcx
imulq $0xc, %r12, %rax
movq 0x30(%rbx), %rdx
movslq %r13d, %rbp
movl %r12d, %r14d
movl 0x8(%rcx,%rax), %r15d
movl %r15d, (%rdx,%rbp,4)
jmp 0x2752
incq (%rsp)
testl %r13d, %r13d
je 0x27aa
movq 0x30(%rbx), %rax
movslq %r13d, %rbp
movq 0x18(%rbx), %rcx
decl %r13d
movslq -0x4(%rax,%rbp,4), %r15
decq %rbp
imulq $0xc, %r15, %rdx
cmpl $0x0, (%rcx,%rdx)
je 0x2752
movl %r15d, %r14d
movq 0x18(%rbx), %rcx
decl %r14d
cmpl %r15d, %r14d
je 0x273a
movslq %r14d, %rdx
imulq $0xc, %rdx, %rdx
movl (%rcx,%rdx), %esi
testl %esi, %esi
jg 0x2728
addq %rcx, %rdx
movl 0x8(%rdx), %r14d
jmp 0x270c
movq %rbx, %rdi
callq 0x38c0
movq 0x30(%rbx), %rax
movl (%rax,%rbp,4), %r15d
jmp 0x2705
movq 0x18(%rbx), %rdx
movslq %r15d, %rcx
imulq $0xc, %rcx, %rcx
movl 0x8(%rdx,%rcx), %r15d
movl (%rdx,%rcx), %r14d
movl %r15d, (%rax,%rbp,4)
cmpl %r14d, %r15d
jne 0x276a
movq %rbx, %rdi
movl %r15d, %esi
callq 0x38c0
movl %r15d, %r14d
jmp 0x26d9
movl %r15d, %r12d
movq 0x18(%rbx), %rax
incl %r12d
cmpl %r15d, %r12d
je 0x27a2
movslq %r12d, %rcx
imulq $0xc, %rcx, %rcx
movl (%rax,%rcx), %esi
testl %esi, %esi
jg 0x2790
addq %rax, %rcx
movl 0x4(%rcx), %r12d
jmp 0x2774
movq %rbx, %rdi
callq 0x3862
movq 0x30(%rbx), %rax
movl (%rax,%rbp,4), %r15d
jmp 0x276d
incl %r13d
jmp 0x26a1
movq (%rsp), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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), %r8d
cmpl %esi, %r8d
je 0x3965
movslq %r8d, %rdx
movl %r8d, %ecx
imulq $0xc, %rdx, %rdi
movslq (%rax,%rdi), %rdx
movl 0x4(%rax,%rdi), %r8d
testq %rdx, %rdx
jle 0x391e
addq %rax, %rdi
movslq %r8d, %r8
imulq $0xc, %rdx, %rdx
incl %ecx
movslq 0x8(%rdi), %rdi
imulq $0xc, %r8, %r9
movl %edi, 0x8(%rax,%r9)
imulq $0xc, %rdi, %rdi
movl %r8d, 0x4(%rax,%rdi)
decl (%rax,%rdx)
movl %ecx, %r8d
jmp 0x391e
retq
// File: /workspace/github_cpp_makefile_star2_O2/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), %r8d
cmpl %esi, %r8d
je 0x39b3
movslq %r8d, %rdx
movl %r8d, %ecx
imulq $0xc, %rdx, %rdi
movslq (%rax,%rdi), %rdx
movl 0x8(%rax,%rdi), %r8d
testq %rdx, %rdx
jle 0x396e
addq %rax, %rdi
movslq %r8d, %r8
imulq $0xc, %rdx, %rdx
movslq 0x4(%rdi), %rdi
imulq $0xc, %rdi, %rdi
movl %ecx, 0x8(%rax,%rdi)
imulq $0xc, %r8, %rdi
movl %ecx, 0x4(%rax,%rdi)
incl (%rax,%rdx)
decl %ecx
movl %ecx, %r8d
jmp 0x396e
retq
// File: /workspace/github_cpp_makefile_star2_O2/tylerwowen[P]movielens/./movielens/argparser.cpp
// Function: parse_opt(int, char*, argp_state*)
error_t parse_opt (int key, char *arg, struct argp_state *state) {
  /* Get the input argument from argp_parse, which we
   know is a pointer to our arguments structure. */
  struct arguments *arguments = (struct arguments *)state->input;
  
  switch (key) {
    case 'r':
      arguments->trainFile = arg;
      break;
    case 't':
      arguments->testFile = arg;
      break;
    case 'd':
      arguments->method = atoi(arg);
      break;
    case 'm':
      arguments->moiveNum = atoi(arg);
      break;
    case 'u':
      arguments->userNum = atoi(arg);
      break;
    case 'k':
      arguments->k = atoi(arg);
      break;
    case 'o':
      arguments->matchedOnly = true;
      break;
    case 'p':
      arguments->prettyPrint = true;
      break;
    case 'a':
      arguments->maxRating = atoi(arg);
      break;
    case ARGP_KEY_END:
      if (state->argc < 2) {
        /* No inputs. */
        argp_state_help(state, stdout, ARGP_HELP_STD_HELP);
        exit(0);
      }
      break;
    default:
      return ARGP_ERR_UNKNOWN;
  }
  return 0;
}

// Assembly:
pushq %rbx
pushq $0x7
popq %rax
leal -0x61(%rdi), %ecx
cmpl $0x14, %ecx
ja 0x24c9
movq 0x28(%rdx), %rbx
leaq 0x3b51(%rip), %rdx      # 0x6004
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq %rsi, %rdi
callq 0x2270
movl %eax, 0x20(%rbx)
jmp 0x2540
cmpl $0x1000001, %edi        # imm = 0x1000001
jne 0x2542
xorl %eax, %eax
cmpl $0x1, 0x8(%rdx)
jg 0x2542
movq 0x7ad0(%rip), %rax      # 0x9fb0
movq (%rax), %rsi
movq %rdx, %rdi
movl $0x27a, %edx            # imm = 0x27A
callq 0x2080
xorl %edi, %edi
callq 0x21f0
movq %rsi, %rdi
callq 0x2270
movl %eax, 0x10(%rbx)
jmp 0x2540
movb $0x1, 0x24(%rbx)
jmp 0x2540
movq %rsi, (%rbx)
jmp 0x2540
movq %rsi, %rdi
callq 0x2270
movl %eax, 0x1c(%rbx)
jmp 0x2540
movq %rsi, %rdi
callq 0x2270
movl %eax, 0x14(%rbx)
jmp 0x2540
movq %rsi, %rdi
callq 0x2270
movl %eax, 0x18(%rbx)
jmp 0x2540
movb $0x1, 0x25(%rbx)
jmp 0x2540
movq %rsi, 0x8(%rbx)
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $0x8
popq %rdx
movq %r14, %rdi
callq 0x2290
callq 0x2230
movq %rax, %r15
movl $0x440, %edi            # imm = 0x440
callq 0x21c0
movq %rax, %r12
movq %rax, %rdi
xorl %esi, %esi
callq 0x2eda
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x2f30
movq 0x30(%rsp), %rax
addq -0x18(%rax), %r14
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %r14, %rsi
callq 0x2060
leaq 0x20(%rsp), %rdi
callq 0x2240
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 0x2e64
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3054
movl 0x14(%rsp), %esi
movsd 0x18(%rsp), %xmm0
movq %rax, %rdi
callq 0x254c
incl %ebp
jmp 0x2e05
addq $0x10, %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x2e7b
leaq 0x10(%rbx), %rdi
callq 0x25a0
jmp 0x2e68
leaq 0x8(%rsp), %rdi
callq 0x2240
leaq 0x30(%rsp), %rdi
callq 0x2050
movl %ebp, %eax
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2ebb
movq %rax, %rbx
movq %r12, %rdi
callq 0x21a0
jmp 0x2ec8
movq %rax, %rbx
jmp 0x2ec8
jmp 0x2ebb
jmp 0x2ebb
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2240
leaq 0x30(%rsp), %rdi
callq 0x2050
movq %rbx, %rdi
callq 0x22f0
// File: /workspace/github_cpp_makefile_star2_O2/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
movq %rdi, %rbx
leaq 0x14(%rsp), %r14
movl %esi, (%r14)
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
xorl %r15d, %r15d
xorl %ebp, %ebp
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
jbe 0x3564
movq (%rax,%r15,8), %rdi
addq $0x18, %rdi
movq %r14, %rsi
callq 0x3c0a
testq %rax, %rax
je 0x355f
incl %ebp
movsd 0x8(%rsp), %xmm0
addsd 0x10(%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
incq %r15
jmp 0x3524
xorpd %xmm0, %xmm0
testl %ebp, %ebp
je 0x357e
cvtsi2sd %ebp, %xmm0
movsd 0x8(%rsp), %xmm1
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/tylerwowen[P]movielens/./movielens/neighborsfinder.cpp
// Function: NeighborsLocator::getNeighbors()
UsersPtr NeighborsLocator::getNeighbors() {
  Distances distances(trainUsers->size());
  
  switch (method) {
    case COS:
      calculateSortableAllDistances(distances, &NeighborsLocator::cosineSimilarity);
      sort_nth_elemet(distances, k+1, false);
      break;
    case L1:
      calculateSortableAllDistances(distances, &NeighborsLocator::cityBlockDistance);
      sort_nth_elemet(distances, k+1, true);
      break;
    case L2:
      calculateSortableAllDistances(distances, &NeighborsLocator::euclideanDistance);
      sort_nth_elemet(distances, k+1, true);
      break;
    case PCC:
      calculateSortableAllDistances(distances, &NeighborsLocator::pcc);
      sort_nth_elemet(distances, k+1, false);
      break;
    case LLR:
      calculateSortableAllDistances(distances, &NeighborsLocator::llr);
      sort_nth_elemet(distances, k+1, false);
      break;
    default:
      break;
  }
  
  UsersPtr neighbors(k);
  for (int i = 0, j = 0; i < k; j++) {
    int userId = distances[j].first;
    if (userId == targetUserId) {
      continue;
    }
    neighbors[i++] = &((*trainUsers)[userId]);
  }
  return neighbors;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
movq 0x18(%rax), %rsi
leaq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rdx
callq 0x472e
movl 0x10(%r14), %eax
cmpq $0x4, %rax
ja 0x3deb
leaq 0x24b9(%rip), %rcx      # 0x6238
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x15f(%rip), %rdx       # 0x3eee
jmp 0x3daa
leaq 0x536(%rip), %rdx       # 0x42ce
jmp 0x3daa
leaq 0x339(%rip), %rdx       # 0x40da
jmp 0x3dc5
leaq 0x3d4(%rip), %rdx       # 0x417e
xorl %r15d, %r15d
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x3e7a
jmp 0x3dd7
leaq 0x26d(%rip), %rdx       # 0x4032
movb $0x1, %r15b
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x3e7a
movl 0xc(%r14), %esi
incl %esi
movzbl %r15b, %edx
leaq 0x8(%rsp), %rdi
callq 0x3fe3
movslq 0xc(%r14), %rsi
leaq 0x4(%rsp), %rdx
movq %rbx, %rdi
callq 0x4780
xorl %r12d, %r12d
leaq 0x4(%rsp), %r15
xorl %ebp, %ebp
cmpl 0xc(%r14), %ebp
jge 0x3e3c
movq 0x8(%rsp), %rax
movl (%rax,%r12), %eax
movl %eax, 0x4(%rsp)
cmpl 0x18(%r14), %eax
je 0x3e36
movq (%r14), %rdi
movq %r15, %rsi
callq 0x3054
movslq %ebp, %rcx
incl %ebp
movq (%rbx), %rdx
movq %rax, (%rdx,%rcx,8)
addq $0x10, %r12
jmp 0x3e06
leaq 0x8(%rsp), %rdi
callq 0x491e
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3e58
movq %rax, %r14
jmp 0x3e68
movq %rax, %r14
movq %rbx, %rdi
callq 0x3cae
leaq 0x8(%rsp), %rdi
callq 0x491e
movq %r14, %rdi
callq 0x22f0
// File: /workspace/github_cpp_makefile_star2_O2/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 %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq (%rdi), %r13
addq $0x10, %r13
addq %rdi, %rbx
xorl %ebp, %ebp
movq (%r13), %r13
testq %r13, %r13
je 0x3ede
movl 0x8(%r13), %eax
movq (%r15), %rcx
movl %eax, (%rcx,%rbp)
movq %r14, %rax
testb $0x1, %r14b
je 0x3ec1
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)
addq $0x10, %rbp
jmp 0x3e9d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movslq %esi, %r14
shlq $0x4, %r14
movq (%rdi), %rdi
movq 0x8(%rbx), %rax
leaq (%rdi,%r14), %rsi
leaq 0x70d(%rip), %rcx       # 0x4711
leaq 0x714(%rip), %r15       # 0x471f
testl %edx, %edx
cmovneq %rcx, %r15
movq %rax, %rdx
movq %r15, %rcx
callq 0x48c2
movq (%rbx), %rdi
addq %rdi, %r14
movq %r14, %rsi
movq %r15, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x5499
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
subq $0x10, %rsp
movq %rdi, %rbx
addq $0x28, %rdi
incl %esi
movslq %esi, %rsi
leaq 0x8(%rsp), %rdx
andq $0x0, (%rdx)
callq 0x4a1a
movl 0x10(%rbx), %eax
cmpq $0x4, %rax
ja 0x4511
leaq 0x1d79(%rip), %rcx      # 0x624c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq -0x5f5(%rip), %rsi      # 0x3eee
jmp 0x4507
leaq -0x21e(%rip), %rsi      # 0x42ce
jmp 0x4507
leaq -0x41b(%rip), %rsi      # 0x40da
jmp 0x4507
leaq -0x380(%rip), %rsi      # 0x417e
jmp 0x4507
leaq -0x4d5(%rip), %rsi      # 0x4032
movq %rbx, %rdi
xorl %edx, %edx
callq 0x4518
addq $0x10, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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)
andq $0x0, 0x10(%rdi)
pushq $0x64
popq %rsi
callq 0x47d2
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x46a2
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
sarq $0x4, %rax
movslq 0xc(%r14), %rsi
cmpq %rsi, %rax
jbe 0x45ea
movl 0x10(%r14), %ecx
cmpl $0x5, %ecx
jae 0x45ea
movb $0x6, %al
shrb %cl, %al
incl %esi
movzbl %al, %edx
andl $0x1, %edx
leaq 0x10(%rsp), %rdi
callq 0x3fe3
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
movslq 0xc(%r14), %rax
movq 0x18(%rsp), %r13
subq 0x10(%rsp), %r13
sarq $0x4, %r13
cmpq %rax, %r13
cmoval %eax, %r13d
xorl %ebp, %ebp
leaq 0x30(%rsp), %r12
xorl %r15d, %r15d
cmpl %r13d, %r15d
jge 0x4663
movq 0x10(%rsp), %rax
movl (%rax,%rbp), %eax
movl %eax, 0xc(%rsp)
cmpl 0x18(%r14), %eax
jne 0x463d
xorl %eax, %eax
cmpl 0xc(%r14), %r13d
setne %al
subl %eax, %r13d
jmp 0x465d
movq (%r14), %rdi
leaq 0xc(%rsp), %rsi
callq 0x3054
movq %rax, 0x30(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4bc8
incl %r15d
addq $0x10, %rbp
jmp 0x4618
leaq 0x10(%rsp), %rdi
callq 0x491e
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x468f
movq %rax, %r14
movq %rbx, %rdi
callq 0x3cae
leaq 0x10(%rsp), %rdi
callq 0x491e
movq %r14, %rdi
callq 0x22f0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %r13
addq $0x10, %r13
leaq 0x40(%rdi), %r15
movq %rsp, %r12
movq (%r13), %r13
testq %r13, %r13
je 0x4700
leaq 0x28(%r13), %rdi
movq %r15, %rsi
callq 0x3c0a
testq %rax, %rax
je 0x46c3
movslq 0x8(%r13), %rax
movq 0x28(%r14), %rcx
movl %eax, (%rsp)
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4cec
jmp 0x46c3
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x254ca
addsd %xmm0, %xmm2
movb $0x1, %al
ucomisd %xmm1, %xmm2
jae 0x2551f
pushq %rbp
movq %rsp, %rbp
movq %xmm1, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
xorpd %xmm2, %xmm2
cmpq %rcx, %rax
je 0x254f7
movapd 0x4cb2d(%rip), %xmm2    # 0x72020
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_O2/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 0x25541
movsd %xmm0, 0x8(%rdi)
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
movsd %xmm0, -0x10(%rbp)
leaq -0x28(%rbp), %rbx
movq %rbx, %rdi
callq 0x30e18
movq 0x10(%rbx), %rdi
leaq 0x4e17f(%rip), %rsi     # 0x736dc
callq 0x24570
movq -0x18(%rbp), %rdi
movsd -0x10(%rbp), %xmm0
callq 0x24860
movq -0x18(%rbp), %rdi
pushq $0x2e
popq %rsi
callq 0x24670
movq -0x18(%rbp), %rdi
leaq 0x4e16e(%rip), %rsi     # 0x736f5
callq 0x24570
movq -0x18(%rbp), %rsi
addq $0x8, %rsi
leaq -0x48(%rbp), %rdi
callq 0x24830
leaq -0x48(%rbp), %rdi
callq 0x255ca
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x24ad8
jmp 0x255b9
jmp 0x255b6
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x30e5e
movq %rbx, %rdi
callq 0x24950
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2562a
movsd 0x4caa7(%rip), %xmm1    # 0x720c0
ucomisd %xmm0, %xmm1
jb 0x2562a
movsd %xmm0, (%rdi)
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
movsd %xmm0, -0x10(%rbp)
leaq -0x28(%rbp), %rbx
movq %rbx, %rdi
callq 0x30e18
movq 0x10(%rbx), %rdi
leaq 0x4e0d7(%rip), %rsi     # 0x7371d
callq 0x24570
movq -0x18(%rbp), %rdi
movsd -0x10(%rbp), %xmm0
callq 0x24860
movq -0x18(%rbp), %rdi
pushq $0x2e
popq %rsi
callq 0x24670
movq -0x18(%rbp), %rdi
leaq 0x4e0c7(%rip), %rsi     # 0x73737
callq 0x24570
movq -0x18(%rbp), %rsi
addq $0x8, %rsi
leaq -0x48(%rbp), %rdi
callq 0x24830
leaq -0x48(%rbp), %rdi
callq 0x255ca
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x24ad8
jmp 0x256a2
jmp 0x2569f
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x30e5e
movq %rbx, %rdi
callq 0x24950
// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x1, 0x8(%rsi)
jne 0x25784
leaq 0x4eda2(%rip), %rsi     # 0x7451e
movq %rbx, %rdi
callq 0x24570
movq (%r14), %rdi
testq %rdi, %rdi
je 0x257cc
cmpb $0x1, 0x8(%r14)
jne 0x257c2
cmpb $0x1, 0x8(%rdi)
jne 0x257c2
leaq 0x4f3b4(%rip), %rsi     # 0x74b54
movq %rbx, %rdi
callq 0x24570
movq %rax, %r15
movq (%r14), %rdi
movq (%rdi), %rax
movq %r15, %rsi
callq *(%rax)
leaq 0x4df1d(%rip), %rsi     # 0x736da
movq %r15, %rdi
jmp 0x257d6
movq (%rdi), %rax
movq %rbx, %rsi
callq *(%rax)
jmp 0x257db
leaq 0x4df89(%rip), %rsi     # 0x7375c
movq %rbx, %rdi
callq 0x24570
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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
callq 0x3e53f
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
testq %rax, %rax
je 0x25848
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
leaq -0x20(%rbp), %rbx
movq %rbx, %rdi
callq 0x30e18
leaq 0x4e652(%rip), %rax     # 0x73ead
leaq -0x50(%rbp), %rsi
movq %rax, (%rsi)
movq $0x335d, 0x8(%rsi)      # imm = 0x335D
movq 0x10(%rbx), %rdi
callq 0x2921b
movq -0x10(%rbp), %rdi
leaq 0x4e8c5(%rip), %rsi     # 0x74143
callq 0x24570
movq -0x10(%rbp), %rdi
leaq 0x4ec22(%rip), %rsi     # 0x744b0
callq 0x24570
movq -0x10(%rbp), %rsi
addq $0x8, %rsi
leaq -0x40(%rbp), %rdi
callq 0x24830
leaq -0x40(%rbp), %rdi
callq 0x29ee0
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x24ad8
jmp 0x258be
movq %rax, %rbx
leaq -0x20(%rbp), %rdi
callq 0x30e5e
movq %rbx, %rdi
callq 0x24950
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x25943
callq 0x29d26
testb %al, %al
je 0x25943
int3
cmpb $0x1, 0x39(%rbx)
je 0x25950
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
pushq $0x1
popq %rdi
callq 0x242b0
leaq 0x842e1(%rip), %rsi     # 0xa9c40
movq %rax, %rdi
xorl %edx, %edx
callq 0x248f0
nop