LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/mniip[P]sandbox/./arch/arch_base.h
// Function: SyscallInfoBase<regs_x86_64, unsigned long>::emplace_array(void*, std::vector<unsigned char, std::allocator<unsigned char>>)
bool emplace_array(void *addr, std::vector<uint8_t> array)
	{
		long word;
		void *write_addr = (void *)((uintptr_t)addr & ~(sizeof word - 1));
		int off = (uintptr_t)addr & (sizeof word - 1);

		if(off)
			if(!thread.ptrace_peekdata(write_addr, word))
				return false;

		size_t i = 0;
		while(write_addr < (char *)addr + array.size())
		{
			((uint8_t *)&word)[off] = array[i++];
			if(++off == sizeof word)
			{
				off = 0;
				if(!thread.ptrace_pokedata(write_addr, word))
					return false;
				write_addr = (void *)((long *)write_addr + 1);
				if(write_addr < (char *)addr + array.size() && write_addr > (char *)addr + array.size() - 8)
					if(!thread.ptrace_peekdata(write_addr, word))
						return false;
			}
		}
		return true;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r13
movq %rdi, %r15
movq %rsi, %r12
andq $-0x8, %r12
movl %r13d, %r14d
andl $0x7, %r14d
je 0x8c9e
movq 0xe0(%r15), %rdi
movq %rsp, %rdx
movq %r12, %rsi
callq 0xa598
testb %al, %al
je 0x8d47
movq (%rbx), %rdi
movq 0x8(%rbx), %rcx
movq %rcx, %rdx
subq %rdi, %rdx
addq %r13, %rdx
movb $0x1, %al
cmpq %r12, %rdx
jbe 0x8d49
xorl %ebp, %ebp
movb (%rdi,%rbp), %dl
movslq %r14d, %r14
movb %dl, (%rsp,%r14)
incl %r14d
cmpl $0x8, %r14d
jne 0x8d2e
movq 0xe0(%r15), %rdi
movq (%rsp), %rdx
movq %r12, %rsi
callq 0xa5e0
xorl %r14d, %r14d
testb %al, %al
je 0x8d47
addq $0x8, %r12
movq (%rbx), %rdi
movq 0x8(%rbx), %rcx
movq %rcx, %rdx
subq %rdi, %rdx
leaq (%rdx,%r13), %rsi
cmpq %rsi, %r12
jae 0x8d2e
addq %r13, %rdx
addq $-0x8, %rdx
cmpq %rdx, %r12
jbe 0x8d2e
movq 0xe0(%r15), %rdi
movq %r12, %rsi
movq %rsp, %rdx
callq 0xa598
xorl %r14d, %r14d
testb %al, %al
je 0x8d47
movq (%rbx), %rdi
movq 0x8(%rbx), %rcx
movq %rcx, %rdx
subq %rdi, %rdx
addq %r13, %rdx
incq %rbp
cmpq %rdx, %r12
jb 0x8cbb
movb $0x1, %al
jmp 0x8d49
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/mniip[P]sandbox/./arch/x86_64.h
// Function: SyscallInfo::save()
bool save()
    {
		if(is_compat_regset)
		{
			struct regs_x86_32 tmp;
			tmp.ebx = regs.rbx;
			tmp.ecx = regs.rcx;
			tmp.edx = regs.rdx;
			tmp.esi = regs.rsi;
			tmp.edi = regs.rdi;
			tmp.ebp = regs.rbp;
			tmp.eax = regs.rax;
			tmp.ds = regs.ds;
			tmp.es = regs.es;
			tmp.fs = regs.fs;
			tmp.gs = regs.gs;
			tmp.orig_eax = regs.orig_rax;
			tmp.eip = regs.rip;
			tmp.cs = regs.cs;
			tmp.eflags = regs.eflags;
			tmp.esp = regs.rsp;
			tmp.ss = regs.ss;
			struct iovec iov = { .iov_base = (void *)&tmp, .iov_len = sizeof tmp };
			return thread.ptrace_setregset(NT_PRSTATUS, iov);
		}
		else
		{
			struct iovec iov = { .iov_base = (void *)&regs, .iov_len = sizeof regs };
			return thread.ptrace_setregset(NT_PRSTATUS, iov);
		}
    }

// Assembly:
subq $0x58, %rsp
cmpb $0x1, 0xe8(%rdi)
jne 0x8e67
movl 0x30(%rdi), %eax
leaq 0x10(%rsp), %rcx
movl %eax, (%rcx)
movups 0x60(%rdi), %xmm0
movups 0x70(%rdi), %xmm1
shufps $0x88, %xmm1, %xmm0     # xmm0 = xmm0[0,2],xmm1[0,2]
movups %xmm0, 0x4(%rcx)
movl 0x28(%rdi), %eax
movl %eax, 0x14(%rcx)
movl 0x58(%rdi), %eax
movl %eax, 0x18(%rcx)
movups 0xc0(%rdi), %xmm0
movups 0xd0(%rdi), %xmm1
shufps $0x88, %xmm1, %xmm0     # xmm0 = xmm0[0,2],xmm1[0,2]
movups %xmm0, 0x1c(%rcx)
movups 0x80(%rdi), %xmm0
movups 0x90(%rdi), %xmm1
shufps $0x88, %xmm1, %xmm0     # xmm0 = xmm0[0,2],xmm1[0,2]
movups %xmm0, 0x2c(%rcx)
movdqu 0xa0(%rdi), %xmm0
pshufd $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3]
movq %xmm0, 0x3c(%rcx)
movq %rsp, %rdx
movq %rcx, (%rdx)
movq $0x44, 0x8(%rdx)
jmp 0x8e7b
leaq 0x8(%rdi), %rax
leaq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq $0xd8, 0x8(%rdx)
movq 0xe0(%rdi), %rdi
movl $0x1, %esi
callq 0xa632
addq $0x58, %rsp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/mniip[P]sandbox/main.cpp
// Function: TracedThread::can_see_path(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int&)
bool can_see_path(std::string path, int at, int &error)
	{
		std::string canon = canon_path_at(tid, at, path);
		for(std::vector<std::string>::const_iterator i = conf_see.begin(), end = conf_see.end(); i != end; i++)
			if(in_dir(*i, canon))
				return true;
//		if(canon == "/")
//			return true;
		if(conf_report)
			if(at == AT_FDCWD)
				printf("[See %s=%s]\n", path.c_str(), canon.c_str());
			else
				printf("[See (%d)%s=%s]\n", at, path.c_str(), canon.c_str());
		return false;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %edx, %ebx
movq %rsi, %r12
movl 0x8(%rdi), %ebp
leaq 0x88(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rsi), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %r15
movq %r15, %rdi
callq 0x8eda
leaq 0x58(%rsp), %rdi
movl %ebp, %esi
movl %ebx, %edx
movq %r15, %rcx
callq 0xa835
movq %r12, 0x30(%rsp)
movl %ebx, 0xc(%rsp)
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x9413
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x43e0
leaq 0xa106(%rip), %rax      # 0x13520
movq (%rax), %rbx
movq 0x8(%rax), %r14
cmpq %r14, %rbx
je 0x94c1
leaq 0x48(%rsp), %r13
leaq 0x10(%rsp), %r15
leaq 0x38(%rsp), %r12
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x8eda
movq %r13, 0x38(%rsp)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x8eda
movq %r15, %rdi
movq %r12, %rsi
callq 0xb096
movl %eax, %ebp
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x9493
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x43e0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x94af
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x43e0
testb %bpl, %bpl
jne 0x94ff
addq $0x20, %rbx
cmpq %r14, %rbx
jne 0x9439
leaq 0xa121(%rip), %rax      # 0x135e9
cmpb $0x1, (%rax)
jne 0x94fb
movq 0x30(%rsp), %rax
movq (%rax), %rdx
movq 0x58(%rsp), %rcx
movl 0xc(%rsp), %esi
cmpl $-0x64, %esi
jne 0x9504
leaq 0x5139(%rip), %rdi      # 0xe623
xorl %ebp, %ebp
movq %rdx, %rsi
movq %rcx, %rdx
xorl %eax, %eax
callq 0x4060
jmp 0x9514
xorl %ebp, %ebp
jmp 0x9514
movb $0x1, %bpl
jmp 0x9514
leaq 0x5125(%rip), %rdi      # 0xe630
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x4060
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x952f
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x43e0
movl %ebp, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x78(%rsp), %rdi
jmp 0x9596
movq %rax, %rbx
jmp 0x956c
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x956c
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x43e0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x958d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x43e0
jmp 0x958d
movq %rax, %rbx
leaq 0x68(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x95a6
movq (%r14), %rsi
incq %rsi
callq 0x43e0
movq %rbx, %rdi
callq 0x4770
// File: /workspace/github_cpp_makefile_star2_O3/mniip[P]sandbox/sandbox.cpp
// Function: ThreadData::ptrace(int, void*, void*)
long ThreadData::ptrace(int request, void *addr, void *data)
{
	errno = 0;
	long result = ::ptrace((enum __ptrace_request)request, tid, addr, data);
	if(errno == ESRCH)
		throw ThreadGone(tid);
	return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
callq 0x4050
movq %rax, %r12
movl $0x0, (%rax)
movl (%rbx), %esi
movl %ebp, %edi
movq %r15, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x4350
cmpl $0x3, (%r12)
je 0xa4ea
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x18, %edi
callq 0x41e0
movq %rax, %r14
movl (%rbx), %esi
movq %rax, %rdi
callq 0xa6cc
leaq 0x87f0(%rip), %rsi      # 0x12cf8
movq 0x8ac1(%rip), %rdx      # 0x12fd0
movq %r14, %rdi
callq 0x4750
movq %rax, %rbx
movq %r14, %rdi
callq 0x42b0
movq %rbx, %rdi
callq 0x4770
// File: /workspace/github_cpp_makefile_star2_O3/mniip[P]sandbox/sandbox.cpp
// Function: ThreadData::set_options()
void ThreadData::set_options()
{
	if(!set_opts)
	{
		if(!ptrace_setoptions(PTRACE_O_EXITKILL | PTRACE_O_TRACECLONE | PTRACE_O_TRACEEXEC | PTRACE_O_TRACEFORK | PTRACE_O_TRACEVFORK))
			panic_errno("ptrace SETOPTIONS");
		set_opts = true;
	}
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
cmpb $0x0, 0x5(%rdi)
jne 0xa676
movq %rdi, %rbx
movl $0x10001e, %ecx         # imm = 0x10001E
movl $0x4200, %esi           # imm = 0x4200
xorl %edx, %edx
callq 0xa4a8
testq %rax, %rax
jne 0xa67e
movb $0x1, 0x5(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r14
retq
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x4235(%rip), %rsi      # 0xe8c3
leaq 0x423f(%rip), %rdx      # 0xe8d4
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x9234
movq %rbx, %rdi
callq 0xa3cc
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0xa6c4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x43e0
movq %rbx, %rdi
callq 0x4770
// File: /workspace/github_cpp_makefile_star2_O3/mniip[P]sandbox/path.cpp
// Function: read_link(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool read_link(std::string path, std::string &out)
{
	int fd = open(path.c_str(), O_PATH | O_NOFOLLOW);
	if(fd < 0)
		return false;
	struct stat stat;
	if(fstat(fd, &stat))
	{
		close(fd);
		return false;
	}
	if((stat.st_mode & S_IFMT) != S_IFLNK)
	{
		close(fd);
		return false;
	}
	size_t size = stat.st_size;
	if(!size)
		size++;
	char *buf = (char *)malloc(size + 1);
	ssize_t sz;
	while(1)
	{
		sz = readlinkat(fd, "", buf, size + 1);
		if(sz < 0)
		{
			close(fd);
			free(buf);
			return false;
		}
		if(sz > size)
		{
			size *= 2;
			buf = (char *)realloc(buf, size + 1);
		}
		else
			break;
	}
	close(fd);
	out.assign(buf, sz);
	free(buf);
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %rbx
movq (%rdi), %rdi
xorl %r14d, %r14d
movl $0x220000, %esi         # imm = 0x220000
xorl %eax, %eax
callq 0x42c0
testl %eax, %eax
js 0xa7f8
movl %eax, %ebp
leaq 0x8(%rsp), %rsi
movl %eax, %edi
callq 0x4720
testl %eax, %eax
jne 0xa7ee
movl $0xf000, %eax           # imm = 0xF000
andl 0x20(%rsp), %eax
cmpl $0xa000, %eax           # imm = 0xA000
jne 0xa7ee
movq 0x38(%rsp), %r13
cmpq $0x1, %r13
adcq $0x0, %r13
leaq 0x1(%r13), %r15
movq %r15, %rdi
callq 0x4510
movq %rax, %r14
leaq 0x3dd8(%rip), %rsi      # 0xe563
movl %ebp, %edi
movq %rax, %rdx
movq %r15, %rcx
callq 0x40c0
testq %rax, %rax
js 0xa7dd
movq %rax, %r12
leaq 0x3dbc(%rip), %r15      # 0xe563
cmpq %r13, %r12
jbe 0xa80d
leaq 0x1(,%r13,2), %r12
addq %r13, %r13
movq %r14, %rdi
movq %r12, %rsi
callq 0x4710
movq %rax, %r14
movl %ebp, %edi
movq %r15, %rsi
movq %rax, %rdx
movq %r12, %rcx
callq 0x40c0
movq %rax, %r12
testq %rax, %rax
jns 0xa7a7
movl %ebp, %edi
callq 0x47e0
movq %r14, %rdi
callq 0x4490
jmp 0xa7f5
movl %ebp, %edi
callq 0x47e0
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ebp, %edi
callq 0x47e0
movq 0x8(%rbx), %rdx
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rcx
movq %r12, %r8
callq 0x4660
movq %r14, %rdi
callq 0x4490
movb $0x1, %r14b
jmp 0xa7f8
// File: /workspace/github_cpp_makefile_star2_O3/mniip[P]sandbox/wakeup.cpp
// Function: feed_data(int, int, bool, bool)
void feed_data(int from, int to, bool track, bool closeeof)
{
	const size_t BLOCK_SIZE = 4096;
	char buffer[BLOCK_SIZE];
	ssize_t bytes_read;
	while(0 < (bytes_read = read(from, buffer, BLOCK_SIZE)))
	{
		size_t done = 0;
		while(done < bytes_read)
		{
			ssize_t bytes_wrote = write(to, buffer + done, bytes_read - done);
			if(bytes_wrote <= 0)
			{
				printf("[Write error]\n");
				exit(0);
			}
			done += bytes_wrote;
			if(track)
				written += bytes_wrote;
		}
	}
	if(bytes_read < 0 && errno != EAGAIN)
	{
		printf("[Read error]\n");
		exit(0);
	}
	if(closeeof)
	{
		close_input = true;
		if(startup_over)
			close(to);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1018, %rsp           # imm = 0x1018
movl %ecx, 0xc(%rsp)
movl %edx, %r14d
movl %esi, %ebx
movl %edi, %r15d
leaq 0x10(%rsp), %rsi
movl $0x1000, %edx           # imm = 0x1000
callq 0x45d0
movq %rax, %r12
testq %rax, %rax
jle 0xb1f8
leaq 0x10(%rsp), %r13
xorl %ebp, %ebp
leaq (%rsp,%rbp), %rsi
addq $0x10, %rsi
movq %r12, %rdx
subq %rbp, %rdx
movl %ebx, %edi
callq 0x4180
testq %rax, %rax
jle 0xb248
testb %r14b, %r14b
je 0xb1d8
addl %eax, 0x82c4(%rip)      # 0x1349c
addq %rax, %rbp
cmpq %r12, %rbp
jb 0xb1b3
movl $0x1000, %edx           # imm = 0x1000
movl %r15d, %edi
movq %r13, %rsi
callq 0x45d0
movq %rax, %r12
testq %rax, %rax
jg 0xb1b1
testq %r12, %r12
jns 0xb207
callq 0x4050
cmpl $0xb, (%rax)
jne 0xb25b
cmpb $0x0, 0xc(%rsp)
je 0xb236
movb $0x1, 0x828b(%rip)      # 0x134a0
cmpb $0x1, 0x827c(%rip)      # 0x13498
jne 0xb236
movl %ebx, %edi
addq $0x1018, %rsp           # imm = 0x1018
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x47e0
addq $0x1018, %rsp           # imm = 0x1018
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x375a(%rip), %rdi      # 0xe9a9
callq 0x4650
xorl %edi, %edi
callq 0x44a0
leaq 0x373a(%rip), %rdi      # 0xe99c
jmp 0xb24f
// File: /workspace/github_cpp_makefile_star2_O3/mniip[P]sandbox/wakeup.cpp
// Function: check_startup()
void check_startup()
{
	if(!startup_over)
	{
		int buffer;
		if(ioctl(in_pipe[1], FIONREAD, &buffer))
			panic_errno("FIONREAD");
		if(buffer - written < 0)
		{
			if(close_input)
				close(in_pipe[1]);
			startup_over = true;
			set_timer();
		}
	}
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
cmpb $0x0, 0x73a5(%rip)      # 0x13498
jne 0xc183
movl 0x737d(%rip), %edi      # 0x1347c
leaq 0x4(%rsp), %rdx
movl $0x541b, %esi           # imm = 0x541B
xorl %eax, %eax
callq 0x4590
testl %eax, %eax
je 0xc157
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x286f(%rip), %rsi      # 0xe993
leaq 0x2870(%rip), %rdx      # 0xe99b
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x9234
movq %rbx, %rdi
callq 0xa3cc
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0xc157
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x43e0
movl 0x4(%rsp), %eax
cmpl 0x733b(%rip), %eax      # 0x1349c
jge 0xc183
cmpb $0x1, 0x7336(%rip)      # 0x134a0
jne 0xc177
movl 0x730a(%rip), %edi      # 0x1347c
callq 0x47e0
movb $0x1, 0x731a(%rip)      # 0x13498
callq 0xb2b6
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0xc1a5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x43e0
movq %rbx, %rdi
callq 0x4770
nop
// File: /workspace/github_cpp_makefile_star2_O3/mniip[P]sandbox/config.cpp
// Function: skip_block_until(std::basic_ifstream<char, std::char_traits<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
static void skip_block_until(std::ifstream &file, std::string until)
{
	std::string line;
	while(std::getline(file, line))
	{
		std::istringstream iss(line);
		std::string key;
		if(!(iss >> key)) continue;
		if(key == until) break;

		if(key == "ident")
			skip_block_until(file, "end");
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rsi, (%rsp)
movq %rdi, %r15
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x18(%rsp), %r14
leaq 0x48(%rsp), %r12
leaq 0x68(%rsp), %r13
leaq 0x28(%rsp), %rbp
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x43c0
movsbl %al, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x47a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xcfd7
movq %r13, %rdi
movq %r12, %rsi
movl $0x8, %edx
callq 0x4730
movq %r14, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq %r13, %rdi
leaq 0x8(%rsp), %rsi
callq 0x44d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xcf9a
movq 0x10(%rsp), %rdx
movq (%rsp), %rax
cmpq 0x8(%rax), %rdx
jne 0xcf3b
movb $0x1, %bl
testq %rdx, %rdx
je 0xcf9c
movq (%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rsp), %rdi
callq 0x43f0
testl %eax, %eax
je 0xcf9c
leaq 0x8(%rsp), %rdi
leaq 0x1b21(%rip), %rsi      # 0xea68
callq 0x4110
testl %eax, %eax
jne 0xcf9a
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq %rbp, %rbx
movq %rbp, %rdi
leaq 0x1b07(%rip), %rsi      # 0xea6e
leaq 0x1b03(%rip), %rdx      # 0xea71
callq 0x9234
movq %r15, %rdi
movq %rbx, %rsi
callq 0xce5a
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xcf9a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x43e0
xorl %ebx, %ebx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0xcfb3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x43e0
movq %r13, %rdi
movq 0x5ffb(%rip), %rsi      # 0x12fb8
callq 0x45b0
leaq 0xe0(%rsp), %rdi
callq 0x4160
testb %bl, %bl
je 0xce9a
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xcff3
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x43e0
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xd02b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x43e0
jmp 0xd02b
jmp 0xd028
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0xd042
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x43e0
movq 0x5f6f(%rip), %rsi      # 0x12fb8
leaq 0x68(%rsp), %rdi
callq 0x45b0
leaq 0xe0(%rsp), %rdi
callq 0x4160
jmp 0xd067
jmp 0xd064
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xd083
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x43e0
movq %rbx, %rdi
callq 0x4770
nop
// File: /workspace/github_cpp_makefile_star2_O3/simap[P]ecctools/make_keys.cpp
// Function: printHex(unsigned char*, int)
void printHex(uint8_t * data, int len) {
  int i;
  printf("{\n\t");
  for(i=0; i<len-1; ++i) {
    printf("0x%02X, ", data[i]);
    if ((i+1) % 11 == 0)
      printf("\n\t");
  }
  printf("0x%02X};\n", data[i]);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x4dc1(%rip), %rdi      # 0x6004
xorl %r13d, %r13d
xorl %eax, %eax
callq 0x1030
cmpl $0x2, %ebp
jl 0x12af
decl %ebp
movl %ebp, %r13d
movl $0x1, %r14d
leaq 0x4da4(%rip), %r15      # 0x6008
xorl %r12d, %r12d
movq %r14, %rax
movabsq $0x2e8ba2e8ba2e8ba3, %rcx # imm = 0x2E8BA2E8BA2E8BA3
mulq %rcx
shrq %rdx
leal (%rdx,%rdx,4), %eax
leal (%rdx,%rax,2), %ebp
decl %ebp
movzbl (%rbx,%r12), %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x1030
cmpl %r12d, %ebp
jne 0x12a4
leaq 0x4d68(%rip), %rdi      # 0x6005
xorl %eax, %eax
callq 0x1030
incq %r12
incq %r14
cmpq %r12, %r13
jne 0x1267
movzbl (%rbx,%r13), %esi
leaq 0x4d56(%rip), %rdi      # 0x6011
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_cpp_makefile_star2_O3/simap[P]ecctools/make_keys.cpp
// Function: main
int main(int argc, char ** argv) {
  if (argc < 2) {
    fprintf(stderr, "Need a key name\n");
    return -1;
  }

  if (uECC_get_rng() == NULL) {
    fprintf(stderr, "Compiled without a random number generator!\n");
    return -1;
  }

  const struct uECC_Curve_t * curve = uECC_secp256k1();
  uint8_t private1[32];
  uint8_t public1[64];
  
  uECC_make_key(public1, private1, curve);


  char tmp[100];
  FILE * fp;

  sprintf(tmp, "%s.pub", argv[1]);
  fp = fopen (tmp, "wb");
  fwrite(public1, 64, 1, fp);
  fclose(fp);

  sprintf(tmp, "%s.key", argv[1]);
  fp = fopen (tmp, "wb");
  fwrite(private1, 32, 1, fp);
  fclose(fp);


  printf("const unsigned char private_key[] = ");
  printHex(private1, 32);

  printf("const unsigned char public_key[] = ");
  printHex(public1, 64);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
cmpl $0x1, %edi
jle 0x13ee
movq %rsi, %r12
callq 0x140c
testq %rax, %rax
je 0x13f5
callq 0x144e
leaq 0x20(%rsp), %rbx
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x1456
movq 0x8(%r12), %rdx
leaq 0x4d37(%rip), %rsi      # 0x6059
leaq 0x60(%rsp), %r13
movq %r13, %rdi
xorl %eax, %eax
callq 0x1040
leaq 0x4d28(%rip), %rbp      # 0x6060
movq %r13, %rdi
movq %rbp, %rsi
callq 0x10a0
movq %rax, %r14
movl $0x40, %esi
movl $0x1, %edx
movq %rbx, %rdi
movq %rax, %rcx
callq 0x10d0
movq %r14, %rdi
callq 0x1080
movq 0x8(%r12), %rdx
leaq 0x4cf4(%rip), %rsi      # 0x6063
movq %r13, %rdi
xorl %eax, %eax
callq 0x1040
movq %r13, %rdi
movq %rbp, %rsi
callq 0x10a0
movq %rax, %r14
movl $0x20, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %rax, %rcx
callq 0x10d0
movq %r14, %rdi
callq 0x1080
leaq 0x4cbf(%rip), %rdi      # 0x606a
xorl %eax, %eax
callq 0x1030
movq %r15, %rdi
movl $0x20, %esi
callq 0x122c
leaq 0x4cc9(%rip), %rdi      # 0x608f
xorl %eax, %eax
callq 0x1030
movq %rbx, %rdi
movl $0x40, %esi
callq 0x122c
xorl %eax, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x111c
jmp 0x13fa
callq 0x1100
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x13dc
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/eecs280staff[P]unit_test_framework/test/char_array.cpp
// Function: string_eq()
TEST(string_eq) {
    char arr[] = "spam";
    ASSERT_SEQUENCE_EQUAL("spam", "spam");
    ASSERT_SEQUENCE_EQUAL("spam", arr);
    ASSERT_SEQUENCE_EQUAL("spam", string("spam"));
    ASSERT_EQUAL("spam", string("spam"));
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
leaq 0x28(%rsp), %rbx
movb $0x0, 0x4(%rbx)
movl $0x6d617073, (%rbx)     # imm = 0x6D617073
leaq 0x488a(%rip), %r14      # 0x70c5
leaq 0x4888(%rip), %rcx      # 0x70ca
movq %r14, %rdi
movq %r14, %rsi
movl $0xb, %edx
callq 0x3762
leaq 0x4897(%rip), %rcx      # 0x70f0
movq %r14, %rdi
movq %rbx, %rsi
movl $0xc, %edx
callq 0x3956
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x4850(%rip), %rdx      # 0x70c9
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x5fac
leaq 0x4838(%rip), %rdi      # 0x70c5
leaq 0x487f(%rip), %rcx      # 0x7113
leaq 0x8(%rsp), %rsi
movl $0xd, %edx
callq 0x3b4a
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x28ba
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x47fc(%rip), %rsi      # 0x70c5
leaq 0x47f9(%rip), %rdx      # 0x70c9
callq 0x5fac
leaq 0x47e9(%rip), %rdi      # 0x70c5
leaq 0x485e(%rip), %rcx      # 0x7141
leaq 0x8(%rsp), %rsi
movl $0xe, %edx
callq 0x3e96
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x2909
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x2917
jmp 0x2933
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x2936
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x2936
movq %rax, %rbx
movq %rbx, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O3/eecs280staff[P]unit_test_framework/./unit_test_framework.hpp
// Function: void unit_test_framework::Assertions::assert_equal<char const (&) [5], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(char const (&) [5], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, int, char const*)
static void assert_equal(First&& first, Second&& second,
                             int line_number,
                             const char* assertion_text) {
      if (safe_equals<First, Second>::equals(first, second)) {
        return;
      }
      std::ostringstream reason;
      Diagnostic::print(reason, first);
      reason << " != ";
      Diagnostic::print(reason, second);
      throw TestFailure(reason.str(), line_number, assertion_text);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
movq %r15, %rsi
callq 0x2080
testl %eax, %eax
jne 0x3ecf
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x28(%rsp), %r12
movq %r12, %rdi
callq 0x2250
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4004
leaq 0x3274(%rip), %rsi      # 0x7166
leaq 0x28(%rsp), %rdi
movl $0x4, %edx
callq 0x2220
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq 0x28(%rsp), %rdi
callq 0x2220
movl $0x30, %edi
callq 0x20f0
movq %rax, %r14
leaq 0x30(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x22b0
movq %r14, %rax
addq $0x10, %rax
movq %rax, (%r14)
leaq 0x18(%rsp), %r15
movq -0x10(%r15), %rcx
cmpq %r15, %rcx
jne 0x3f4f
movups (%r15), %xmm0
movups %xmm0, (%rax)
jmp 0x3f5b
movq %rcx, (%r14)
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r14)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%r14)
movq %r15, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movl %ebp, 0x20(%r14)
movq %rbx, 0x28(%r14)
leaq 0x5dc2(%rip), %rsi      # 0x9d48
leaq 0x5b(%rip), %rdx        # 0x3fe8
movq %r14, %rdi
callq 0x22f0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x3fc1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x3fc1
movq %rax, %rbx
movq %r14, %rdi
callq 0x2170
jmp 0x3fc1
movq %rax, %rbx
movq 0x5ff8(%rip), %rsi      # 0x9fc0
leaq 0x28(%rsp), %rdi
callq 0x2110
leaq 0x98(%rsp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x2310
nop
// File: /workspace/github_cpp_makefile_star2_O3/eecs280staff[P]unit_test_framework/./unit_test_framework.hpp
// Function: std::ostream& unit_test_framework::Diagnostic::print_helper<5ul>(std::ostream&, char const (&) [5ul], int, int)
static std::ostream& print_helper(std::ostream& os, const char (&arr)[N],
                                      int, int) {
      for (std::size_t i = 0; i < N; ++i) {
        if (!arr[i]) {
          return os << arr;
        }
      }
      return print_sequence_helper(os, arr);
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorl %eax, %eax
cmpb $0x0, (%r14,%rax)
je 0x4032
incq %rax
cmpq $0x5, %rax
jne 0x4010
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4054
movq %r14, %rdi
callq 0x20d0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x2220
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tobias93[P]piano/./Midi.hpp
// Function: process_midi(double, std::vector<unsigned char, std::allocator<unsigned char>>*, void*)
void process_midi(double deltatime, std::vector<unsigned char> * message_ptr, void * userData)
{
    if (userData == nullptr)
    {
        return;
    }
    MidiListener& listener = *(MidiListener *) userData;
    
    std::vector<unsigned char>& message = *message_ptr;
    if (message.size() != 3) {
        std::cout << "WARNING: Encountered malformed MIDI message." << std::endl;
        return;
    }

    unsigned char note = message[1];
    unsigned char velocity = message[2];

    if ((message[0] & 0xF0) == 0x80)
    {
        // Note Off
        listener.noteOff(note);
    }

    if ((message[0] & 0xF0) == 0x90)
    {
        // Note On
        listener.noteOn(note, velocity);
    }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x2414
movq %rdi, %r14
movq (%rdi), %rcx
movq 0x8(%rdi), %rax
subq %rcx, %rax
cmpq $0x3, %rax
jne 0x241f
movq %rsi, %rbx
movb (%rcx), %al
movb 0x2(%rcx), %r15b
movl %eax, %edx
andb $-0x10, %dl
negb %dl
movzbl 0x1(%rcx), %ebp
jno 0x23f3
movq (%rbx), %rax
movq %rbx, %rdi
movl %ebp, %esi
callq *0x8(%rax)
movq (%r14), %rax
movb (%rax), %al
andb $-0x10, %al
cmpb $-0x70, %al
jne 0x2414
movq (%rbx), %rax
movq (%rax), %rax
movzbl %r15b, %edx
movq %rbx, %rdi
movl %ebp, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmpq *%rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x2b92(%rip), %rbx      # 0x4fb8
leaq 0xc3e(%rip), %rsi       # 0x306b
movl $0x2c, %edx
movq %rbx, %rdi
callq 0x2170
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x20d0
// File: /workspace/github_cpp_makefile_star2_O3/tobias93[P]piano/./Audio.hpp
// Function: AudioPlayer::AudioPlayer()
AudioPlayer()
    {
        if ( dac.getDeviceCount() < 1 ) {
            throw std::runtime_error("No audio devices found.");
        }

        RtAudio::StreamParameters parameters;
        parameters.deviceId = dac.getDefaultOutputDevice();
        parameters.nChannels = 1;
        parameters.firstChannel = 0;


    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %esi, %esi
callq 0x2180
movabsq $0x10000005622, %rax    # imm = 0x10000005622
movq %rax, 0x8(%rbx)
movl $0x1, 0x10(%rbx)
movq $0x0, 0x18(%rbx)
movq (%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
testl %eax, %eax
je 0x276c
movq (%rbx), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
popq %rbx
popq %r14
popq %r15
retq
movl $0x10, %edi
callq 0x20a0
movq %rax, %r14
leaq 0x98b(%rip), %rsi       # 0x310b
movq %rax, %rdi
callq 0x2080
movq 0x2861(%rip), %rsi      # 0x4ff0
movq 0x2812(%rip), %rdx      # 0x4fa8
movq %r14, %rdi
callq 0x21c0
movq %rax, %r15
jmp 0x27ae
movq %rax, %r15
movq %r14, %rdi
callq 0x20f0
movq %rbx, %rdi
callq 0x20c0
movq %r15, %rdi
callq 0x21e0
jmp 0x27c0
movq %rax, %rdi
callq 0x2b47
// File: /workspace/github_cpp_makefile_star2_O3/tobias93[P]piano/./Midi.hpp
// Function: MidiIn::connect_interactive()
void connect_interactive()
    {
        unsigned int portc = midi_in.getPortCount();
        if (portc == 0)
        {
            throw std::runtime_error("No midi devices found.");
        }
        else if (portc == 1)
        {
            connect(0);
        }
        else 
        {
            std::cout << "Please select a midi device: " << std::endl;
            for (int i=0; i < portc; ++i)
            {
                std::cout << " (" << i << ") " << midi_in.getPortName(i) << std::endl;
            }
            int port=-1;
            while(port < 0 || port >= portc) 
            {
                std::cin >> port;
                std::cin.get();			
            }
            connect(port);          
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
cmpl $0x1, %eax
je 0x2939
movl %eax, %ebp
testl %eax, %eax
je 0x2951
movq 0x27bb(%rip), %r14      # 0x4fb8
leaq 0x936(%rip), %rsi       # 0x313a
movl $0x1d, %edx
movq %r14, %rdi
callq 0x2170
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
xorl %r15d, %r15d
leaq 0x8(%rsp), %r12
movl $0x2, %edx
movq %r14, %rdi
leaq 0x909(%rip), %rsi       # 0x3158
callq 0x2170
movq %r14, %rdi
movl %r15d, %esi
callq 0x21d0
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
leaq 0x8ea(%rip), %rsi       # 0x315b
callq 0x2170
movq 0x8(%rbx), %rsi
movq (%rsi), %rax
movq %r12, %rdi
movl %r15d, %edx
callq *0x38(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r13, %rdi
callq 0x2170
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x28de
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
incl %r15d
cmpl %r15d, %ebp
jne 0x2840
leaq 0x8(%rsp), %r14
movl $0xffffffff, (%r14)     # imm = 0xFFFFFFFF
movq 0x26d3(%rip), %r15      # 0x4fd0
movq %r15, %rdi
movq %r14, %rsi
callq 0x20b0
movq %r15, %rdi
callq 0x2190
movl 0x8(%rsp), %esi
testl %esi, %esi
sets %al
cmpl %ebp, %esi
setae %cl
orb %al, %cl
jne 0x28fd
movq %rbx, %rdi
callq 0x2df6
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
xorl %esi, %esi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2df6
movl $0x10, %edi
callq 0x20a0
movq %rax, %r14
leaq 0x7be(%rip), %rsi       # 0x3123
movq %rax, %rdi
callq 0x2080
movq 0x267c(%rip), %rsi      # 0x4ff0
movq 0x262d(%rip), %rdx      # 0x4fa8
movq %r14, %rdi
callq 0x21c0
movq %rax, %rbx
movq %r14, %rdi
callq 0x20f0
jmp 0x29af
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x29af
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
movq %rbx, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/tobias93[P]piano/./Audio.hpp
// Function: AudioPlayer::play()
void play()
    {
        if (source == nullptr) {
            throw std::logic_error("There is no source to play from.");
        }
        source->injectAudioSettings(&settins);

        if (!dac.isStreamOpen()) 
        {
            RtAudio::StreamParameters parameters;
            parameters.deviceId = dac.getDefaultOutputDevice();
            parameters.nChannels = settins.nrChannels;
            parameters.firstChannel = 0;
            dac.openStream(&parameters, NULL, RTAUDIO_FLOAT64, settins.sampleRate, &(settins.bufferFrames), &playFromSource, (void *)source );
        }

        dac.startStream();

    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0x2a3d
movq %rdi, %rbx
leaq 0x8(%rdi), %rcx
movq %rcx, 0x8(%rax)
movq (%rdi), %rdi
cmpl $-0x32, 0x1bc(%rdi)
jne 0x2a2f
movq (%rdi), %rax
callq *0x30(%rax)
leaq 0x2c(%rsp), %rsi
movl %eax, (%rsi)
movl 0x10(%rbx), %eax
movl %eax, 0x4(%rsi)
movl $0x0, 0x8(%rsi)
movl 0x8(%rbx), %r8d
leaq 0xc(%rbx), %r9
movq 0x18(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
movq %rax, 0x8(%rsp)
leaq -0x6dd(%rip), %rax      # 0x233c
movq %rax, (%rsp)
movl $0x20, %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2070
movq (%rbx), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
addq $0x38, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x20a0
movq %rax, %rbx
leaq 0x71a(%rip), %rsi       # 0x316b
movq %rax, %rdi
callq 0x21a0
movq 0x2568(%rip), %rsi      # 0x4fc8
movq 0x2549(%rip), %rdx      # 0x4fb0
movq %rbx, %rdi
callq 0x21c0
movq %rax, %rdi
callq 0x2b47
movq %rax, %r14
movq %rbx, %rdi
callq 0x20f0
movq %r14, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O3/tobias93[P]piano/./Synth.hpp
// Function: SimpleSynth::fillBuffer(double*, unsigned int)
int fillBuffer(double * buffer, unsigned int nBufferFrames)
        {
            for (int i=0; i < nBufferFrames; ++i) 
            {
                buffer[i] = 0;

                unsigned int t = time_code + i;

                for (int n=0; n<max_concurrency; ++n)
                {
                    Note& note = notes[n];
                    double volume = (double)note.velocity / 256 * getEnvelopeVolume(note, synth, t);
                    double frequency = pow(2, (double)(note.note - 69) / 12) * 441;
                    double a = volume * sin((double)t / audio_settings->sampleRate * frequency * 2 * M_PI);
                    buffer[i] += a;
                }

            }
    
            time_code += nBufferFrames;
            return 0;
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
movl %edx, 0x4(%rsp)
testl %edx, %edx
je 0x2c62
movq %rsi, %r15
leaq 0x1c(%r14), %r12
leaq 0x98(%r14), %r13
movl 0x4(%rsp), %ecx
movq %rcx, 0x10(%rsp)
xorl %ebx, %ebx
movsd 0x488(%rip), %xmm0      # 0x3018
movq $0x0, (%r15,%rbx,8)
movl 0x18(%r14), %ecx
addl %ebx, %ecx
movq %rcx, 0x20(%rsp)
xorps %xmm1, %xmm1
cvtsi2sd %rcx, %xmm1
mulsd 0x45d(%rip), %xmm1      # 0x3010
movsd %xmm1, 0x18(%rsp)
xorl %ebp, %ebp
leaq (%r12,%rbp), %rsi
movzbl 0x25(%r14,%rbp), %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r14, %rdi
movq %r13, %rdx
movq 0x20(%rsp), %rcx
callq 0x2d3a
mulsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movzbl 0x24(%r14,%rbp), %eax
addl $-0x45, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x416(%rip), %xmm0      # 0x3020
callq 0x2140
movq 0x8(%r14), %rax
movl (%rax), %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
mulsd 0x18(%rsp), %xmm0
divsd %xmm1, %xmm0
callq 0x2040
mulsd 0x8(%rsp), %xmm0
addsd (%r15,%rbx,8), %xmm0
movsd %xmm0, (%r15,%rbx,8)
movsd 0x3d2(%rip), %xmm0      # 0x3018
addq $0xc, %rbp
cmpq $0x78, %rbp
jne 0x2bbb
incq %rbx
cmpq 0x10(%rsp), %rbx
jne 0x2b90
movl 0x4(%rsp), %eax
addl %eax, 0x18(%r14)
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tobias93[P]piano/./Synth.hpp
// Function: SimpleSynth::noteOn(unsigned char, unsigned char)
void noteOn(unsigned char note, unsigned char velocity)
        {
            std::size_t oldest_note = 0;
            for (std::size_t i=1; i<max_concurrency; ++i) 
            {
                if (notes[oldest_note].pressed != notes[i].pressed) 
                {
                    if (!notes[i].pressed) {
                        oldest_note = i;
                    }
                }
                else if(notes[oldest_note].last_event_time_code > notes[i].last_event_time_code) 
                {
                    oldest_note = i;
                }
            }
            
            notes[oldest_note].last_event_time_code = time_code;
            notes[oldest_note].note = note;
            notes[oldest_note].velocity = velocity;
            notes[oldest_note].pressed = true;

        }

// Assembly:
leaq 0x1c(%rdi), %rax
leaq 0x2c(%rdi), %rcx
movl $0x1, %r8d
xorl %r9d, %r9d
leaq (%r9,%r9,2), %r10
movb -0x4(%rcx), %r11b
cmpb %r11b, (%rax,%r10,4)
jne 0x2cb3
leaq (%rax,%r10,4), %r10
movl 0x4(%r10), %r11d
movq %r8, %r10
cmpl (%rcx), %r11d
ja 0x2cae
movq %r9, %r10
movq %r10, %r9
jmp 0x2cba
testb %r11b, %r11b
cmoveq %r8, %r9
incq %r8
addq $0xc, %rcx
cmpq $0xa, %r8
jne 0x2c8d
movl 0x18(%rdi), %ecx
leaq (%r9,%r9,2), %rdi
movl %ecx, 0x4(%rax,%rdi,4)
movb %sil, 0x8(%rax,%rdi,4)
movb %dl, 0x9(%rax,%rdi,4)
movb $0x1, (%rax,%rdi,4)
retq
// File: /workspace/github_cpp_makefile_star2_O3/tobias93[P]piano/./Synth.hpp
// Function: SimpleSynth::noteOff(unsigned char)
void noteOff(unsigned char note) 
        {
            for (std::size_t i=0; i<max_concurrency; ++i) 
            {
                if (notes[i].note == note && notes[i].pressed)
                {
                    notes[i].last_event_time_code = time_code;
                    notes[i].pressed = false;
                }
            }	
        }

// Assembly:
movl 0x18(%rdi), %eax
xorl %ecx, %ecx
cmpb %sil, 0x24(%rdi,%rcx)
jne 0x2cfc
cmpb $0x1, 0x1c(%rdi,%rcx)
jne 0x2cfc
movl %eax, 0x20(%rdi,%rcx)
movb $0x0, 0x1c(%rdi,%rcx)
addq $0xc, %rcx
cmpq $0x78, %rcx
jne 0x2ce5
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tobias93[P]piano/./Synth.hpp
// Function: SimpleSynth::getEnvelopeVolume(SimpleSynth::Note const&, Envelope const&, unsigned int)
double getEnvelopeVolume(const Note& note, const Envelope& env, unsigned int t)
    {
        unsigned int time_since_last_event = t - note.last_event_time_code;
        if (note.pressed) 
        {
            unsigned int attack_time = env.attack * audio_settings->sampleRate;
            unsigned int decay_time = env.decay * audio_settings->sampleRate;
            
            if (time_since_last_event <= attack_time)
            {
                // attack
                double pos = (double)time_since_last_event / attack_time;
                return pos * env.amplitude;
            }

            time_since_last_event -= attack_time;
            if (time_since_last_event <= decay_time)
            {
                // decay
                double pos = (double)time_since_last_event / decay_time;
                return (1 - pos) * env.amplitude + pos * env.sustain;
            }

            // sustain
            return env.sustain;
            
        }
        else 
        {
            unsigned int release_time = env.release * audio_settings->sampleRate;
            if (time_since_last_event <= release_time) 
            {
                // release
                double pos = (double)time_since_last_event / release_time;
                return (double)(1 - pos) * env.sustain;
            }
            
            // off
            return 0;
            
        }
    }

// Assembly:
movq 0x8(%rdi), %rax
movl (%rax), %eax
cvtsi2sd %rax, %xmm0
subl 0x4(%rsi), %ecx
cmpb $0x1, (%rsi)
jne 0x2d75
movsd 0x8(%rdx), %xmm1
mulsd %xmm0, %xmm1
cvttsd2si %xmm1, %rsi
movl %ecx, %eax
subl %esi, %eax
jbe 0x2dae
mulsd 0x10(%rdx), %xmm0
cvttsd2si %xmm0, %rcx
cmpl %ecx, %eax
jbe 0x2dcb
movsd 0x18(%rdx), %xmm0
retq
mulsd 0x20(%rdx), %xmm0
cvttsd2si %xmm0, %rax
xorpd %xmm0, %xmm0
cmpl %eax, %ecx
ja 0x2dad
movl %ecx, %ecx
cvtsi2sd %rcx, %xmm1
movl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd %xmm0, %xmm1
movsd 0x264(%rip), %xmm0      # 0x3008
subsd %xmm1, %xmm0
mulsd 0x18(%rdx), %xmm0
retq
movl %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movl %esi, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
mulsd (%rdx), %xmm0
divsd %xmm1, %xmm0
retq
movl %eax, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movl %ecx, %eax
cvtsi2sd %rax, %xmm2
movsd (%rdx), %xmm3
movsd 0x18(%rdx), %xmm0
subsd %xmm3, %xmm0
mulsd %xmm1, %xmm0
divsd %xmm2, %xmm0
addsd %xmm3, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O3/iZhangHui[P]CppPrimer/CH01_GettingStarted/examples/item_io.cc
// Function: main
int main()
{
    Sales_item book;

    // read ISBN, number of copies sold, and sales price
    while(std::cin >> book) {
        // write ISBN, number of copies sold, total revenue, and average price
        std::cout << book << std::endl;
    }

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
leaq -0x40(%rbp), %r12
movq %r12, -0x10(%r12)
xorl %eax, %eax
movq %rax, -0x8(%r12)
movb $0x0, (%r12)
movl $0x0, 0x10(%r12)
movq %rax, 0x18(%r12)
movq 0x2ac8(%rip), %rbx      # 0x3fe0
leaq -0x50(%rbp), %r14
movq 0x2aad(%rip), %r15      # 0x3fd0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12f3
movq (%rbx), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%rbx,%rax)
jne 0x1570
movq %r15, %rdi
movq %r14, %rsi
callq 0x13b5
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x10a0
movsbl %al, %esi
movq %r15, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1060
jmp 0x1523
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x1585
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x10b0
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x15ac
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x10b0
movq %rbx, %rdi
callq 0x1120
// File: /workspace/github_cpp_makefile_star2_O3/IlyaSamoylov45[P]MapReduce-Project/main.cpp
// Function: split_input(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
std::vector<std::string> split_input(std::string file, int maps){
  int word_count = count_words(file);
  //if there are more maps than words return an error
  if(maps > word_count){
    std::cout << "More maps than there are words! You gave " << maps << " maps but there are only " << word_count << " words!" << "\n" << std::endl;
    exit(EXIT_FAILURE);
  }

  std::cout << "Total words: " << word_count << std::endl;
  std::vector<std::string> ary = map_words_to_array(file, maps, word_count);
  //print for error checking
  //for (std::vector<std::string>::const_iterator i = ary.begin(); i != ary.end(); i++){
  //  std::cout << *i << '\n';
  //}
  //
  return ary;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %edx, %r14d
movq %rsi, %r12
movq %rdi, %rbx
leaq -0x58(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rsi), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %r15
movq %r15, %rdi
callq 0x7a0c
movq %r15, %rdi
callq 0x5d83
movl %eax, %r15d
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x4c2d
callq 0x32f0
cmpl %r14d, %r15d
jl 0x4cd7
movq 0x1a393(%rip), %r13     # 0x1efd0
leaq 0x1053e(%rip), %rsi     # 0x15182
movl $0xd, %edx
movq %r13, %rdi
callq 0x3340
movq %r13, %rdi
movl %r15d, %esi
callq 0x3550
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3300
movsbl %al, %esi
movq %r13, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3200
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %r12
movq %r12, %rdi
callq 0x7a0c
movq %rbx, %rdi
movq %r12, %rsi
movl %r14d, %edx
movl %r15d, %ecx
callq 0x5f52
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x4cc5
callq 0x32f0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1a2f2(%rip), %rdi     # 0x1efd0
leaq 0x10451(%rip), %rsi     # 0x15136
callq 0x3310
movq %rax, %rdi
movl %r14d, %esi
callq 0x3550
leaq 0x10464(%rip), %rsi     # 0x15160
movq %rax, %rdi
callq 0x3310
movq %rax, %rdi
movl %r15d, %esi
callq 0x3550
leaq 0x10464(%rip), %rsi     # 0x1517a
movq %rax, %rdi
callq 0x3310
leaq 0x102fb(%rip), %rsi     # 0x15020
movq %rax, %rdi
callq 0x3310
movq %rax, %rdi
callq 0x3170
movl $0x1, %edi
callq 0x3370
movq %rax, %rbx
movq -0x48(%rbp), %rdi
jmp 0x4d4f
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x4d59
callq 0x32f0
movq %rbx, %rdi
callq 0x3560
// File: /workspace/github_cpp_makefile_star2_O3/IlyaSamoylov45[P]MapReduce-Project/main.cpp
// Function: map_threads(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, int, ThreadData*)
void map_threads(std::vector<std::string> array, int maps, ThreadData thread_data[]){
  pthread_t threads[maps];
  int iret;
  for(int i = 0; i < maps; i++){
    //std::cout << "Creating thread: " << std::endl;
    thread_data[i].id = i;
    thread_data[i].line_array= array[i];

    iret = pthread_create(&threads[i], NULL, map_function_thread, (void*) &thread_data[i]);
    if (iret != 0) {
			std::cout << "Error: Creating thread: " << iret << std::endl;
			exit(EXIT_FAILURE);
		}
  }
  for (int i = 0; i < maps; i++) {
		iret = pthread_join(threads[i], NULL);
		if (iret) {
			std::cout << "Error: Joining thread: " << iret << std::endl;
			exit(EXIT_FAILURE);
		}
		/*
		std::map<std::string, int> testMap = thread_data[i].counter;
		for(auto it = testMap.begin(); it != testMap.end(); it++){
		  std::cout << it->first << " " << it->second << std::endl;
		} */
	}

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, -0x50(%rbp)
movl %esi, %ecx
movq %rsp, %r13
leaq 0xf(,%rcx,8), %rax
andq $-0x10, %rax
subq %rax, %r13
movq %r13, %rsp
testl %esi, %esi
jle 0x4e1c
movq %rdx, %r14
movl %esi, -0x2c(%rbp)
movq %rcx, -0x40(%rbp)
shlq $0x5, %rcx
movq %rcx, -0x48(%rbp)
xorl %r15d, %r15d
movq %r13, -0x38(%rbp)
xorl %r12d, %r12d
movl %r12d, (%r14)
movq -0x50(%rbp), %rax
movq (%rax), %rsi
addq %r15, %rsi
leaq 0x8(%r14), %rdi
callq 0x31a0
movq %r13, %rdi
xorl %esi, %esi
leaq 0xa3e(%rip), %rdx       # 0x5811
movq %r14, %rcx
callq 0x3590
testl %eax, %eax
jne 0x4e2b
incl %r12d
addq $0x8, %r13
addq $0x58, %r14
addq $0x20, %r15
cmpq %r15, -0x48(%rbp)
jne 0x4db1
cmpl $0x0, -0x2c(%rbp)
movq -0x40(%rbp), %r15
movq -0x38(%rbp), %r12
jle 0x4e1c
xorl %r14d, %r14d
movq (%r12,%r14,8), %rdi
xorl %esi, %esi
callq 0x32c0
testl %eax, %eax
jne 0x4e3d
incq %r14
cmpq %r14, %r15
jne 0x4e05
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %ebx
movq 0x1a19c(%rip), %rdi     # 0x1efd0
leaq 0x102ca(%rip), %rsi     # 0x15105
jmp 0x4e4d
movl %eax, %ebx
movq 0x1a18a(%rip), %rdi     # 0x1efd0
leaq 0x102d1(%rip), %rsi     # 0x1511e
callq 0x3310
movq %rax, %rdi
movl %ebx, %esi
callq 0x3550
movq %rax, %rdi
callq 0x3170
movl $0x1, %edi
callq 0x3370