LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/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 0x24dfe
testl %eax, %eax
jne 0x24e0d
movl $0x7, %r8d
leaq 0x6d64(%rip), %rcx      # 0x2bb60
jmp 0x24e1a
movl $0x6, %r8d
leaq 0x6d5d(%rip), %rcx      # 0x2bb68
jmp 0x24e1a
movl $0x5, %r8d
leaq 0x6911(%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 0x24e45
movq (%r15), %rsi
incq %rsi
callq 0x8260
movq %r14, %rdi
callq 0x8420
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1be54
leaq 0x14e1f(%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 0x1be66
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq 0x28(%rbx), %rdi
cmpq %r13, %rdi
je 0x24ec3
movq (%r13), %rsi
incq %rsi
callq 0x8260
movq %r14, %rdi
callq 0x8420
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1a7e4
leaq 0x1471a(%rip), %rax     # 0x39cc0
movq %rax, (%r15)
testl %ebp, %ebp
jle 0x255c2
movl %ebp, %eax
xorl %ecx, %ecx
movq (%r12,%rcx,8), %rdx
movq %rdx, 0x10(%r15,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x255b1
movl %ebp, 0xfb0(%r15)
testl %ebx, %ebx
jle 0x255e5
movl %ebx, %eax
xorl %ecx, %ecx
movq (%r14,%rcx,8), %rdx
movq %rdx, 0xfb8(%r15,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x255d1
movl %ebx, 0x1f58(%r15)
movq %r15, %rdi
movl $0x2, %esi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1a7f6
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x14001(%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 0x25d32
movl %ecx, %eax
xorl %edi, %edi
movq (%rdx,%rdi,8), %r8
movq %r8, 0x10(%r14,%rdi,8)
incq %rdi
cmpq %rdi, %rax
jne 0x25d21
movl %ecx, 0xfb0(%r14)
movq %rbx, %rdi
callq 0x8150
movq %r14, %rdi
xorl %esi, %esi
callq 0x1a47c
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x25d67
movq (%r15), %rsi
incq %rsi
callq 0x8260
movq %r14, %rdi
callq 0x8420
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0xfc42
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xabf6
movl %ebp, %edi
movq %r14, %rsi
callq 0x267f5
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x26753
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x2676a
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 0x2679a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x2679a
movq %rax, %r14
movq %r14, %rdi
callq 0x80e0
movq 0x13847(%rip), %rdi     # 0x39ff0
leaq 0x5497(%rip), %rsi      # 0x2bc47
movl $0x19, %edx
callq 0x82c0
movq 0x1382f(%rip), %rdi     # 0x39ff0
callq 0x8120
movl $0x1, %edi
callq 0x82e0
movq %rax, %r14
callq 0x83d0
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0x8578
movq %r14, %rdi
callq 0x8420
movq %rax, %rdi
callq 0x27f11
// File: /workspace/github_cpp_makefile_star2_O1/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 0x12dce(%rip), %r14     # 0x3aa40
movq %r14, %rdi
movl $0x8, %edx
callq 0x8200
movq 0x12dba(%rip), %rax     # 0x3aa40
movq -0x18(%rax), %rax
testb $0x5, 0x20(%rax,%r14)
jne 0x27d17
movq 0x12da3(%rip), %rax     # 0x3aa40
movq -0x18(%rax), %rdi
xorl %ebx, %ebx
testb $0x2, 0x20(%rdi,%r14)
jne 0x27ce6
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 0x12d6a(%rip), %rax     # 0x3aa40
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
testb $0x2, 0x20(%rax,%r14)
je 0x27cb5
leaq 0x12d53(%rip), %rdi     # 0x3aa40
callq 0x8080
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x27d09
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x122d2(%rip), %rdi     # 0x39ff0
leaq 0x285b(%rip), %rsi      # 0x2a580
movl $0x1b, %edx
callq 0x82c0
movq 0x122ba(%rip), %rdi     # 0x39ff0
callq 0x8120
movl $0x1, %edi
callq 0x82e0
jmp 0x27d47
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x27d61
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
movq %rbx, %rdi
callq 0x8420
// File: /workspace/github_cpp_makefile_star2_O1/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 0x27de8
movq %rbx, %rdi
movq %r15, %rsi
callq 0x27f1c
jmp 0x27dc0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x27dff
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x121a2(%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 0x27e6d
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x27e4f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x12152(%rip), %rsi     # 0x39fa8
leaq 0x28(%rsp), %rdi
callq 0x8190
leaq 0xa8(%rsp), %rdi
callq 0x80c0
movq %rbx, %rdi
callq 0x27f5a
movq %r14, %rdi
callq 0x8420
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2883b
leal 0x1(%rax), %ecx
movl %ecx, 0x320(%rdi)
movq %rsi, (%rdi,%rax,8)
retq
pushq %rax
movq 0x117ad(%rip), %rdi     # 0x39ff0
leaq 0x3628(%rip), %rsi      # 0x2be72
callq 0x8240
movq %rax, %rdi
callq 0x8120
movl $0x1, %edi
callq 0x82e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x33e4(%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 0x43c4(%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 0x2e5d
movq 0x31c2(%rip), %r15      # 0x5fd0
leaq 0x12e1(%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 0x12c2(%rip), %rsi      # 0x4112
movl $0x17, %edx
movq %r15, %rdi
callq 0x21b0
leaq 0x1273(%rip), %rsi      # 0x40d7
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2f2c
leaq 0x3335(%rip), %r14      # 0x61b0
leaq 0x7(%rsp), %r15
movabsq $0x6060646e65606060, %r13 # imm = 0x6060646E65606060
movq 0x313f(%rip), %r12      # 0x5fd0
movl $0x1000, %edx           # imm = 0x1000
movq %r14, %rdi
xorl %esi, %esi
callq 0x20e0
movl 0x430a(%rip), %edi      # 0x71b0
movl $0x1, %edx
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x2090
movl 0x42f5(%rip), %edi      # 0x71b0
movsbq 0x7(%rsp), %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x2090
movq 0x32de(%rip), %rax      # 0x61b0
xorq %r13, %rax
movzwl 0x32dc(%rip), %ecx      # 0x61b8
xorq $0x60, %rcx
orq %rax, %rcx
je 0x2f2c
testb %bl, %bl
je 0x2e91
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 0x2e91
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %r12d, %r12d
xorl %r14d, %r14d
movq (%rbx), %rax
movslq 0x24(%rax), %r15
testq %r15, %r15
je 0x28a8
movq %rbx, %rdi
movl %r15d, %esi
callq 0x3b1a
leaq (%r15,%r15,2), %rax
movq 0x18(%rbx), %rcx
movq 0x30(%rbx), %rdx
movl 0x8(%rcx,%rax,4), %eax
movslq %r12d, %rcx
movl %eax, (%rdx,%rcx,4)
movl %r15d, %ebp
jmp 0x2921
incq %r14
testl %r12d, %r12d
je 0x297b
movslq %r12d, %r15
decl %r12d
movq 0x18(%rbx), %rax
movq 0x30(%rbx), %rcx
movslq -0x4(%rcx,%r15,4), %r13
leaq (%r13,%r13,2), %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x2921
decq %r15
decl %r13d
movq 0x30(%rbx), %rax
movl (%rax,%r15,4), %ecx
cmpl %ecx, %r13d
je 0x290b
movslq %r13d, %rcx
movq 0x18(%rbx), %rax
leaq (%rcx,%rcx,2), %rcx
movl (%rax,%rcx,4), %esi
testl %esi, %esi
jg 0x2901
leaq (%rax,%rcx,4), %rax
movl 0x8(%rax), %r13d
jmp 0x28d8
movq %rbx, %rdi
callq 0x3b88
jmp 0x28d5
movslq %ecx, %rcx
movq 0x18(%rbx), %rdx
leaq (%rcx,%rcx,2), %rcx
movl (%rdx,%rcx,4), %ebp
movl 0x8(%rdx,%rcx,4), %ecx
movl %ecx, (%rax,%r15,4)
movslq %r12d, %r15
movq 0x30(%rbx), %rax
movl (%rax,%r15,4), %r13d
cmpl %ebp, %r13d
jne 0x2940
movq %rbx, %rdi
movl %ebp, %esi
callq 0x3b88
jmp 0x28ab
incl %r13d
movq 0x30(%rbx), %rax
cmpl (%rax,%r15,4), %r13d
je 0x2973
movslq %r13d, %rcx
movq 0x18(%rbx), %rax
leaq (%rcx,%rcx,2), %rcx
movl (%rax,%rcx,4), %esi
testl %esi, %esi
jg 0x2969
leaq (%rax,%rcx,4), %rax
movl 0x4(%rax), %r13d
jmp 0x2943
movq %rbx, %rdi
callq 0x3b1a
jmp 0x2940
incl %r12d
jmp 0x2876
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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:
leal 0x1(%rsi), %ecx
movq 0x18(%rdi), %rax
movslq %ecx, %rdx
leaq (%rdx,%rdx,2), %r8
movslq (%rax,%r8,4), %rdx
movl 0x4(%rax,%r8,4), %edi
testq %rdx, %rdx
jle 0x3c2e
leaq (%rax,%r8,4), %r8
movslq %edi, %rdi
movslq 0x8(%r8), %r8
leaq (%rdi,%rdi,2), %r9
movl %r8d, 0x8(%rax,%r9,4)
leaq (%r8,%r8,2), %r8
movl %edi, 0x4(%rax,%r8,4)
leaq (%rdx,%rdx,2), %rdx
decl (%rax,%rdx,4)
incl %ecx
movl %ecx, %edi
jmp 0x3c30
movl %edi, %ecx
cmpl %esi, %edi
jne 0x3bef
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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:
leal -0x1(%rsi), %ecx
movq 0x18(%rdi), %rax
movslq %ecx, %rdx
leaq (%rdx,%rdx,2), %r8
movslq (%rax,%r8,4), %rdx
movl 0x8(%rax,%r8,4), %edi
testq %rdx, %rdx
jle 0x3c7b
leaq (%rax,%r8,4), %r8
movslq %edi, %rdi
movslq 0x4(%r8), %r8
leaq (%r8,%r8,2), %r8
movl %ecx, 0x8(%rax,%r8,4)
leaq (%rdi,%rdi,2), %rdi
movl %ecx, 0x4(%rax,%rdi,4)
leaq (%rdx,%rdx,2), %rdx
incl (%rax,%rdx,4)
decl %ecx
movl %ecx, %edi
jmp 0x3c7d
movl %edi, %ecx
cmpl %esi, %edi
jne 0x3c3d
retq
// File: /workspace/github_cpp_makefile_star2_O1/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
movl $0x7, %eax
leal -0x61(%rdi), %ecx
cmpl $0x14, %ecx
ja 0x261b
movq 0x28(%rdx), %rbx
leaq 0x39ff(%rip), %rdx      # 0x6004
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq %rsi, %rdi
callq 0x22a0
movl %eax, 0x20(%rbx)
jmp 0x2692
cmpl $0x1000001, %edi        # imm = 0x1000001
jne 0x2694
xorl %eax, %eax
cmpl $0x1, 0x8(%rdx)
jg 0x2694
movq 0x697e(%rip), %rax      # 0x8fb0
movq (%rax), %rsi
movq %rdx, %rdi
movl $0x27a, %edx            # imm = 0x27A
callq 0x2090
xorl %edi, %edi
callq 0x2220
movq %rsi, %rdi
callq 0x22a0
movl %eax, 0x10(%rbx)
jmp 0x2692
movb $0x1, 0x24(%rbx)
jmp 0x2692
movq %rsi, (%rbx)
jmp 0x2692
movq %rsi, %rdi
callq 0x22a0
movl %eax, 0x1c(%rbx)
jmp 0x2692
movq %rsi, %rdi
callq 0x22a0
movl %eax, 0x14(%rbx)
jmp 0x2692
movq %rsi, %rdi
callq 0x22a0
movl %eax, 0x18(%rbx)
jmp 0x2692
movb $0x1, 0x25(%rbx)
jmp 0x2692
movq %rsi, 0x8(%rbx)
xorl %eax, %eax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x5f8b(%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 0x2f1e
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 0x18(%rsp), %r13
leaq 0x28(%rsp), %r14
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x2120
movq %rax, %rdi
leaq 0x14(%rsp), %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
movl 0x50(%rsp,%rax), %r12d
testb $0x5, %r12b
jne 0x2ea1
movq %rbx, %rdi
movq %r15, %rsi
callq 0x301e
movl 0x14(%rsp), %esi
movsd 0x18(%rsp), %xmm0
movq %rax, %rdi
callq 0x26a0
incl %ebp
testb $0x5, %r12b
je 0x2e3e
addq $0x10, %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x2ebe
leaq 0x10(%rbx), %rdi
callq 0x26fc
jmp 0x2eab
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 0x2efe
movq %rax, %rbx
movq %r12, %rdi
callq 0x21b0
jmp 0x2f0b
movq %rax, %rbx
jmp 0x2f0b
jmp 0x2efe
jmp 0x2efe
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2270
leaq 0x30(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x2320
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %r12
pushq %rbx
movq (%rdi), %r9
movq 0x8(%rdi), %r10
xorpd %xmm0, %xmm0
subq %r9, %r10
je 0x34a0
sarq $0x3, %r10
cmpq $0x1, %r10
adcq $0x0, %r10
movslq %esi, %rcx
xorl %ebx, %ebx
xorpd %xmm1, %xmm1
xorl %r11d, %r11d
movq (%r9,%rbx,8), %rax
movq 0x18(%rax), %r8
movq 0x20(%rax), %r14
movq %rcx, %rax
xorl %edx, %edx
divq %r14
movq %rdx, %rdi
movq (%r8,%rdx,8), %rdx
movl $0x0, %eax
testq %rdx, %rdx
je 0x347d
movq (%rdx), %r15
movq %rdx, %rax
cmpl %esi, 0x8(%r15)
je 0x347d
movq %r15, %r12
movq (%r15), %r15
testq %r15, %r15
je 0x347b
movslq 0x8(%r15), %r8
movq %r8, %rax
xorl %edx, %edx
divq %r14
movl $0x0, %eax
cmpq %rdi, %rdx
jne 0x347d
movq %r12, %rax
cmpl %esi, %r8d
jne 0x3450
jmp 0x347d
xorl %eax, %eax
testq %rax, %rax
je 0x3487
movq (%rax), %rax
jmp 0x3489
xorl %eax, %eax
testq %rax, %rax
je 0x3496
incl %r11d
addsd 0x10(%rax), %xmm1
incq %rbx
cmpq %r10, %rbx
jne 0x341f
jmp 0x34a7
xorl %r11d, %r11d
xorpd %xmm1, %xmm1
testl %r11d, %r11d
je 0x34bc
xorps %xmm0, %xmm0
cvtsi2sd %r11d, %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4091
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
addq %rdi, %rbx
xorl %ebp, %ebp
movl 0x8(%r13), %eax
movq (%r15), %rcx
movl %eax, (%rcx,%rbp)
movq %r14, %rax
testb $0x1, %r14b
je 0x406d
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 0x4052
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4229
testb %cl, %cl
jne 0x421c
movq %rdx, %rax
subq %rdi, %rax
sarq $0x4, %rax
bsrq %rax, %rcx
xorl $0x3f, %ecx
addl %ecx, %ecx
xorq $0x7e, %rcx
leaq 0x982(%rip), %r8        # 0x4b99
callq 0x5523
testl %ebp, %ebp
je 0x4292
leaq 0x972(%rip), %r15       # 0x4b99
jmp 0x425b
testb %cl, %cl
jne 0x4250
movq %rdx, %rax
subq %rdi, %rax
sarq $0x4, %rax
bsrq %rax, %rcx
xorl $0x3f, %ecx
addl %ecx, %ecx
xorq $0x7e, %rcx
leaq 0x95c(%rip), %r8        # 0x4ba7
callq 0x5523
testl %ebp, %ebp
je 0x4292
leaq 0x94c(%rip), %r15       # 0x4ba7
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 0x5ae3
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x5c28
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4eec
movl 0x10(%rbx), %eax
cmpq $0x4, %rax
ja 0x4933
leaq 0x1a2d(%rip), %rcx      # 0x624c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rbx), %rax
movq 0x10(%rax), %r15
testq %r15, %r15
je 0x4933
movq 0x20(%rbx), %r14
movq 0x28(%rbx), %rbx
leaq 0x10(%r15), %rsi
movq %r14, %rdx
callq 0x40a0
movslq 0x8(%r15), %rax
movsd %xmm0, (%rbx,%rax,8)
movq (%r15), %r15
testq %r15, %r15
jne 0x4840
jmp 0x4933
movq (%rbx), %rax
movq 0x10(%rax), %r14
testq %r14, %r14
je 0x4933
leaq 0x10(%r14), %rsi
movq 0x20(%rbx), %rdx
movq %rbx, %rdi
callq 0x45c8
movslq 0x8(%r14), %rax
movq 0x28(%rbx), %rcx
movsd %xmm0, (%rcx,%rax,8)
movq (%r14), %r14
jmp 0x4869
movq (%rbx), %rax
movq 0x10(%rax), %r15
testq %r15, %r15
je 0x4933
movq 0x20(%rbx), %r14
movq 0x28(%rbx), %rbx
leaq 0x10(%r15), %rsi
movq %r14, %rdx
callq 0x4368
movslq 0x8(%r15), %rax
movsd %xmm0, (%rbx,%rax,8)
movq (%r15), %r15
testq %r15, %r15
jne 0x48ac
jmp 0x4933
movq (%rbx), %rax
movq 0x10(%rax), %r15
testq %r15, %r15
je 0x4933
movq 0x20(%rbx), %r14
movq 0x28(%rbx), %r12
leaq 0x10(%r15), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x4428
movslq 0x8(%r15), %rax
movsd %xmm0, (%r12,%rax,8)
movq (%r15), %r15
testq %r15, %r15
jne 0x48df
jmp 0x4933
movq (%rbx), %rax
movq 0x10(%rax), %r15
testq %r15, %r15
je 0x4933
movq 0x20(%rbx), %r14
movq 0x28(%rbx), %rbx
leaq 0x10(%r15), %rsi
movq %r14, %rdx
callq 0x429c
movslq 0x8(%r15), %rax
movsd %xmm0, (%rbx,%rax,8)
movq (%r15), %r15
testq %r15, %r15
jne 0x4916
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4cc0
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x4afa
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
sarq $0x4, %rax
movslq 0xc(%r14), %rsi
cmpq %rsi, %rax
jbe 0x4a19
movl 0x10(%r14), %ecx
cmpl $0x5, %ecx
jae 0x4a19
movb $0x6, %al
shrb %cl, %al
incl %esi
movzbl %al, %edx
andl $0x1, %edx
leaq 0x10(%rsp), %rdi
callq 0x41bd
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movslq 0xc(%r14), %rax
movq 0x18(%rsp), %r13
subq 0x10(%rsp), %r13
sarq $0x4, %r13
cmpq %rax, %r13
cmoval %eax, %r13d
testl %r13d, %r13d
jle 0x4aac
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 0x4a6f
xorl %eax, %eax
cmpl 0xc(%r14), %r13d
setne %al
subl %eax, %r13d
jmp 0x4aa3
movq (%r14), %rdi
movq %r15, %rsi
callq 0x301e
movq %rax, 0x30(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x4a93
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x4aa0
movq %rbx, %rdi
leaq 0x30(%rsp), %rdx
callq 0x52d2
incl %r12d
addq $0x10, %rbp
cmpl %r13d, %r12d
jl 0x4a4f
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4abb
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 0x4ae2
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4ae2
callq 0x21b0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4af1
callq 0x21b0
movq %r14, %rdi
callq 0x2320
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4b88
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x40(%rdi), %r15
movq %rsp, %r12
leaq 0x28(%r13), %rdi
movslq (%r15), %rcx
movq %rcx, %rax
xorl %edx, %edx
divq 0x30(%r13)
movq %rdx, %rsi
movq %r15, %rdx
callq 0x2ad2
testq %rax, %rax
je 0x4b7f
cmpq $0x0, (%rax)
je 0x4b7f
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 0x4b74
movups (%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x4b7f
movq %rbx, %rdi
movq %r12, %rdx
callq 0x53ec
movq (%r13), %r13
testq %r13, %r13
jne 0x4b20
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1c211
movb $0x0, 0x18(%rbx)
jmp 0x1c226
movq (%rbx), %rcx
cmpq 0x8(%rbx), %rcx
je 0x1c268
movzbl (%rcx), %eax
incq %rcx
movq %rcx, (%rbx)
movl %eax, 0x14(%rbx)
movl 0x14(%rbx), %eax
cmpl $-0x1, %eax
je 0x1c250
movb %al, -0x9(%rbp)
movq 0x40(%rbx), %rsi
cmpq 0x48(%rbx), %rsi
je 0x1c243
movb %al, (%rsi)
incq 0x40(%rbx)
jmp 0x1c250
leaq 0x38(%rbx), %rdi
leaq -0x9(%rbp), %rdx
callq 0x5653e
movl 0x14(%rbx), %eax
cmpl $0xa, %eax
jne 0x1c261
incq 0x30(%rbx)
andq $0x0, 0x28(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
pushq $-0x1
popq %rax
jmp 0x1c223
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1ce36
addsd %xmm0, %xmm2
movb $0x1, %al
ucomisd %xmm1, %xmm2
jae 0x1ce8b
pushq %rbp
movq %rsp, %rbp
movq %xmm1, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
xorpd %xmm2, %xmm2
cmpq %rcx, %rax
je 0x1ce63
movapd 0x5d1c1(%rip), %xmm2    # 0x7a020
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_O1/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 0x1cead
movsd %xmm0, 0x8(%rdi)
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
movsd %xmm0, -0x10(%rbp)
leaq -0x28(%rbp), %rbx
movq %rbx, %rdi
callq 0x2d4f4
movq 0x10(%rbx), %rdi
leaq 0x5e83b(%rip), %rsi     # 0x7b704
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 0x5e81c(%rip), %rsi     # 0x7b71d
movl $0x27, %edx
callq 0x1b5e0
movq -0x18(%rbp), %rsi
addq $0x8, %rsi
leaq -0x48(%rbp), %rdi
callq 0x1b7f0
leaq -0x48(%rbp), %rdi
callq 0x1cf52
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1cf41
callq 0x1b4d0
jmp 0x1cf41
jmp 0x1cf3e
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x2d53a
movq %rbx, %rdi
callq 0x1b910
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1cfb2
movsd 0x5d11f(%rip), %xmm1    # 0x7a0c0
ucomisd %xmm0, %xmm1
jb 0x1cfb2
movsd %xmm0, (%rdi)
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
movsd %xmm0, -0x10(%rbp)
leaq -0x28(%rbp), %rbx
movq %rbx, %rdi
callq 0x2d4f4
movq 0x10(%rbx), %rdi
leaq 0x5e777(%rip), %rsi     # 0x7b745
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 0x5e759(%rip), %rsi     # 0x7b75f
movl $0x24, %edx
callq 0x1b5e0
movq -0x18(%rbp), %rsi
addq $0x8, %rsi
leaq -0x48(%rbp), %rdi
callq 0x1b7f0
leaq -0x48(%rbp), %rdi
callq 0x1cf52
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d046
callq 0x1b4d0
jmp 0x1d046
jmp 0x1d043
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x2d53a
movq %rbx, %rdi
callq 0x1b910
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1d132
leaq 0x5f421(%rip), %rsi     # 0x7c546
movl $0x1, %edx
movq %rbx, %rdi
callq 0x1b5e0
movq (%r14), %rdi
testq %rdi, %rdi
je 0x1d17e
cmpb $0x1, 0x8(%r14)
jne 0x1d174
cmpb $0x1, 0x8(%rdi)
jne 0x1d174
leaq 0x5fa2e(%rip), %rsi     # 0x7cb7c
movl $0x1, %edx
movq %rbx, %rdi
callq 0x1b5e0
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *(%rax)
leaq 0x5e595(%rip), %rsi     # 0x7b702
movl $0x1, %edx
jmp 0x1d18a
movq (%rdi), %rax
movq %rbx, %rsi
callq *(%rax)
jmp 0x1d192
leaq 0x5e5ff(%rip), %rsi     # 0x7b784
movl $0x34, %edx
movq %rbx, %rdi
callq 0x1b5e0
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x8f7ca(%rip), %rbx     # 0xac9b0
cmpq $0x0, (%rbx)
jne 0x1d21d
movl $0x30, %edi
callq 0x1b510
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
leaq 0x8a9c5(%rip), %rcx     # 0xa7bd0
leaq 0x10(%rcx), %rdx
movq %rdx, (%rax)
addq $0x60, %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rbx)
movq (%rbx), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
testq %rax, %rax
je 0x1d232
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
leaq -0x20(%rbp), %rbx
movq %rbx, %rdi
callq 0x2d4f4
leaq 0x5ec90(%rip), %rax     # 0x7bed5
leaq -0x50(%rbp), %rsi
movq %rax, (%rsi)
movq $0x335d, 0x8(%rsi)      # imm = 0x335D
movq 0x10(%rbx), %rdi
callq 0x22e23
movq -0x10(%rbp), %rdi
leaq 0x5ef03(%rip), %rsi     # 0x7c16b
movl $0x19, %edx
callq 0x1b5e0
movq -0x10(%rbp), %rdi
leaq 0x5f25b(%rip), %rsi     # 0x7c4d8
movl $0x1a, %edx
callq 0x1b5e0
movq -0x10(%rbp), %rsi
addq $0x8, %rsi
leaq -0x40(%rbp), %rdi
callq 0x1b7f0
leaq -0x40(%rbp), %rdi
callq 0x23e3c
movq %rax, %rbx
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d2bb
callq 0x1b4d0
jmp 0x1d2bb
movq %rax, %rbx
leaq -0x20(%rbp), %rdi
callq 0x2d53a
movq %rbx, %rdi
callq 0x1b910
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1d37f
callq 0x23c3a
testb %al, %al
je 0x1d37f
int3
cmpb $0x1, 0x39(%rbx)
je 0x1d38c
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movl $0x1, %edi
callq 0x1b250
leaq 0x8a723(%rip), %rsi     # 0xa7ac0
movq %rax, %rdi
xorl %edx, %edx
callq 0x1b8b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/xelia-it[P]mustache/third-party/catch2/single_include/catch2/catch.hpp
// Function: Catch::AssertionResultData::reconstructExpression[abi:cxx11]() const
std::string AssertionResultData::reconstructExpression() const {

        if( reconstructedExpression.empty() ) {
            if( lazyExpression ) {
                ReusableStringStream rss;
                rss << lazyExpression;
                reconstructedExpression = rss.str();
            }
        }
        return reconstructedExpression;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x28(%rsi)
jne 0x1d781
cmpq $0x0, 0x40(%r14)
je 0x1d781
leaq 0x40(%r14), %r15
leaq -0x38(%rbp), %r12
movq %r12, %rdi
callq 0x2d4f4
movq 0x10(%r12), %rdi
movq %r15, %rsi
callq 0x1d10b
movq -0x28(%rbp), %rsi
addq $0x8, %rsi
leaq -0x58(%rbp), %rdi
callq 0x1b7f0
leaq 0x20(%r14), %rdi
leaq -0x58(%rbp), %r15
movq %r15, %rsi
callq 0x1b640
movq (%r15), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x1d778
callq 0x1b4d0
leaq -0x38(%rbp), %rdi
callq 0x2d53a
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x4ad3e
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1d7ad
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x2d53a
movq %rbx, %rdi
callq 0x1b910
nop
// File: /workspace/github_cpp_makefile_star2_O1/xelia-it[P]mustache/third-party/catch2/single_include/catch2/catch.hpp
// Function: Catch::AssertionResult::getExpression[abi:cxx11]() const
std::string AssertionResult::getExpression() const {
        // Possibly overallocating by 3 characters should be basically free
        std::string expr; expr.reserve(m_info.capturedExpression.size() + 3);
        if (isFalseTest(m_info.resultDisposition)) {
            expr += "!(";
        }
        expr += m_info.capturedExpression;
        if (isFalseTest(m_info.resultDisposition)) {
            expr += ')';
        }
        return expr;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x28(%rsi), %rsi
addq $0x3, %rsi
callq 0x1b7e0
testb $0x4, 0x30(%r14)
je 0x1d93e
leaq 0x5de83(%rip), %rsi     # 0x7b7b9
movq %rbx, %rdi
callq 0x1b9d0
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
movq %rbx, %rdi
callq 0x1b0c0
testb $0x4, 0x30(%r14)
je 0x1d962
movq %rbx, %rdi
movl $0x29, %esi
callq 0x1b480
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x1d980
callq 0x1b4d0
movq %r14, %rdi
callq 0x1b910
// File: /workspace/github_cpp_makefile_star2_O1/xelia-it[P]mustache/third-party/catch2/single_include/catch2/catch.hpp
// Function: Catch::AssertionResult::getExpressionInMacro[abi:cxx11]() const
std::string AssertionResult::getExpressionInMacro() const {
        std::string expr;
        if( m_info.macroName.empty() )
            expr = static_cast<std::string>(m_info.capturedExpression);
        else {
            expr.reserve( m_info.macroName.size() + m_info.capturedExpression.size() + 4 );
            expr += m_info.macroName;
            expr += "( ";
            expr += m_info.capturedExpression;
            expr += " )";
        }
        return expr;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0x1da2e
movq 0x28(%r14), %rcx
leaq (%rax,%rcx), %rsi
addq $0x4, %rsi
movq %rbx, %rdi
callq 0x1b7e0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x1b0c0
leaq 0x5dcf9(%rip), %rsi     # 0x7b6fe
movq %rbx, %rdi
callq 0x1b9d0
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
movq %rbx, %rdi
callq 0x1b0c0
leaq 0x5dcdd(%rip), %rsi     # 0x7b701
movq %rbx, %rdi
callq 0x1b9d0
jmp 0x1da67
movq 0x20(%r14), %rsi
leaq -0x30(%rbp), %r12
movq 0x28(%r14), %rdx
addq %rsi, %rdx
movq %r12, -0x10(%r12)
leaq -0x40(%rbp), %rdi
callq 0x43438
leaq -0x40(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1b640
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x1da67
callq 0x1b4d0
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1da79
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x1da89
callq 0x1b4d0
movq %r14, %rdi
callq 0x1b910
nop