LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/pixlark[P]Badge/src/vm.cc
// Function: VM::create_binding(char const*, Value)
void create_binding(Symbol symbol, Value value)
	{
		auto frame = frame_reference();
		bool success = frame->environment->create_binding(symbol, value);
		if (!success) {
			error("Can't create new variable '%s' -- already bound in this scope!",
				  symbol);
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x68(%rdi), %rax
testq %rax, %rax
je 0x97d4
movq %rsi, %rbx
movq %rdi, %r14
movq 0x60(%rdi), %rsi
movq -0x8(%rsi,%rax,8), %rax
movq 0x8(%rax), %rdi
movq %rbx, %rsi
callq 0x9e4a
testb %al, %al
je 0x97bc
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x26f7(%rip), %rsi      # 0xbeba
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x9886
leaq 0x2538(%rip), %rdi      # 0xbd13
leaq 0x23a0(%rip), %rsi      # 0xbb82
leaq 0x253e(%rip), %rcx      # 0xbd27
movl $0x99, %edx
callq 0x10d0
nop
// File: /workspace/github_cpp_makefile_star2_O3/pixlark[P]Badge/src/environment.cc
// Function: Environment::update_binding(char const*, Value)
bool update_binding(Symbol symbol, Value value)
	{
		assert(names.size == values.size);
		for (int i = 0; i < names.size; i++) {
			if (symbol == names[i]) {
				values[i] = value;
				return true;
			}
		}
		if (next_env) {
			return next_env->update_binding(symbol, value);
		}
		return false;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rdi), %rax
cmpq 0x30(%rdi), %rax
jne 0x9848
testq %rax, %rax
je 0x9825
movq (%rdi), %r9
movl $0x8, %r8d
xorl %r10d, %r10d
cmpq %rsi, (%r9,%r10,8)
je 0x9832
incq %r10
addq $0x10, %r8
cmpq %r10, %rax
jne 0x9813
movq 0x50(%rdi), %rdi
testq %rdi, %rdi
jne 0x97f8
xorl %eax, %eax
jmp 0x9846
cmpq %r10, %rax
jbe 0x9867
movq 0x28(%rdi), %rax
movl %edx, -0x8(%rax,%r8)
movq %rcx, (%rax,%r8)
movb $0x1, %al
popq %rbp
retq
leaq 0x2568(%rip), %rdi      # 0xbdb7
leaq 0x257b(%rip), %rsi      # 0xbdd1
leaq 0x269c(%rip), %rcx      # 0xbef9
movl $0x36, %edx
callq 0x10d0
leaq 0x1ed5(%rip), %rdi      # 0xb743
leaq 0x1edb(%rip), %rsi      # 0xb750
leaq 0x1ee0(%rip), %rcx      # 0xb75c
movl $0x7b, %edx
callq 0x10d0
// File: /workspace/github_cpp_makefile_star2_O3/pixlark[P]Badge/src/vm.cc
// Function: VM::resolve_binding(char const*)
Value resolve_binding(Symbol symbol)
	{
		auto frame = frame_reference();
		Value value;
		if (frame->environment->resolve_binding(symbol, &value)) {
			return value;
		}
		// TODO(pixlark): Make it so that every environment implicity
		// links to the global environment, thus removing the need for
		// this call frame?
		auto global = call_stack[0];
		if (global->environment->resolve_binding(symbol, &value)) {
			return value;
		}
		// Finally, check in our export scope
		if (export_scope->resolve_binding(symbol, &value)) {
			return value;
		}
		error("Variable '%s' is not bound", symbol);
		assert(false); // @linter
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq 0x68(%rdi), %rax
testq %rax, %rax
je 0x9974
movq %rsi, %rbx
movq %rdi, %r14
movq 0x60(%rdi), %rcx
movq -0x8(%rcx,%rax,8), %rax
movq 0x8(%rax), %rdi
leaq -0x20(%rbp), %rdx
callq 0xa1d4
testb %al, %al
jne 0x9964
cmpq $0x0, 0x68(%r14)
je 0x9993
movq 0x60(%r14), %rax
movq (%rax), %rax
movq 0x8(%rax), %rdi
leaq -0x20(%rbp), %rdx
movq %rbx, %rsi
callq 0xa1d4
testb %al, %al
jne 0x9964
movq 0x8(%r14), %rdi
leaq -0x20(%rbp), %rdx
movq %rbx, %rsi
callq 0xa1d4
testb %al, %al
je 0x99b2
movl -0x20(%rbp), %eax
movq -0x18(%rbp), %rdx
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x2398(%rip), %rdi      # 0xbd13
leaq 0x2200(%rip), %rsi      # 0xbb82
leaq 0x239e(%rip), %rcx      # 0xbd27
movl $0x99, %edx
callq 0x10d0
leaq 0x1da9(%rip), %rdi      # 0xb743
leaq 0x1daf(%rip), %rsi      # 0xb750
leaq 0x23a1(%rip), %rcx      # 0xbd49
movl $0x7b, %edx
callq 0x10d0
leaq 0x2570(%rip), %rsi      # 0xbf29
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x9886
leaq 0x1aa1(%rip), %rdi      # 0xb46e
leaq 0x21ae(%rip), %rsi      # 0xbb82
leaq 0x2569(%rip), %rcx      # 0xbf44
movl $0xb8, %edx
callq 0x10d0
nop
// File: /workspace/github_cpp_makefile_star2_O3/pixlark[P]Badge/src/map.cc
// Function: Map<char const*, Value>::update(char const*, Value)
bool Map<K, V>::update(K key, V value)
{
	for (int i = 0; i < keys.size; i++) {
		if (comparator(keys[i], key)) {
			values[i] = value;
			return true;
		}
	}
	return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x9c65
movl %edx, %r14d
movq %rsi, %r12
movq %rdi, %r15
movq %rcx, -0x30(%rbp)
movl $0x8, %r13d
xorl %ebx, %ebx
cmpq %rbx, %rax
jbe 0x9c91
movq 0x8(%r15), %rax
movq (%rax,%rbx,8), %rdi
movq %r12, %rsi
callq *(%r15)
testb %al, %al
jne 0x9c69
incq %rbx
movq 0x10(%r15), %rax
addq $0x10, %r13
cmpq %rbx, %rax
ja 0x9c3e
xorl %eax, %eax
jmp 0x9c82
cmpq %rbx, 0x38(%r15)
jbe 0x9cb0
movq 0x30(%r15), %rax
movl %r14d, -0x8(%rax,%r13)
movq -0x30(%rbp), %rcx
movq %rcx, (%rax,%r13)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1aab(%rip), %rdi      # 0xb743
leaq 0x1ab1(%rip), %rsi      # 0xb750
leaq 0x24ad(%rip), %rcx      # 0xc153
movl $0x7b, %edx
callq 0x10d0
leaq 0x1a8c(%rip), %rdi      # 0xb743
leaq 0x1a92(%rip), %rsi      # 0xb750
leaq 0x1a97(%rip), %rcx      # 0xb75c
jmp 0x9ca6
nop
// File: /workspace/github_cpp_makefile_star2_O3/pixlark[P]Badge/src/vm.cc
// Function: VM::lookup_call_flag(char const*)
Value lookup_call_flag(Symbol symbol)
	{
		for (int i = call_stack.size - 1; i >= 0; i--) {
			auto frame = call_stack[i];
			Value value;
			if (frame->call_flags->resolve_binding(symbol, &value)) {
				return value;
			}
		}
		error("Call flag '%s' is not bound", symbol);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl 0x68(%rdi), %r12d
decq %r12
leaq -0x30(%rbp), %r15
testl %r12d, %r12d
js 0x9e36
movl %r12d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, 0x68(%r14)
jbe 0x9e17
movq 0x60(%r14), %rcx
movq (%rcx,%rax,8), %rax
movq 0x18(%rax), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xa1d4
decq %r12
testb %al, %al
je 0x9dd2
movl -0x30(%rbp), %eax
movq -0x28(%rbp), %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1925(%rip), %rdi      # 0xb743
leaq 0x192b(%rip), %rsi      # 0xb750
leaq 0x1f1d(%rip), %rcx      # 0xbd49
movl $0x7b, %edx
callq 0x10d0
leaq 0x2247(%rip), %rsi      # 0xc084
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x9886
// File: /workspace/github_cpp_makefile_star2_O3/pixlark[P]Badge/src/environment.cc
// Function: Environment::create_binding(char const*, Value)
bool create_binding(Symbol symbol, Value value)
	{
		assert(names.size == values.size);
		// TODO(pixlark): Do we want to be able to shadow closed
		// variables? Probably...
		if (is_bound(symbol, false)) {
			return false;
		}
		names.push(symbol);
		values.push(value);
		return true;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x8(%rdi), %rax
cmpq 0x30(%rdi), %rax
jne 0x9eb4
movq %rcx, %rbx
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %r13
xorl %edx, %edx
callq 0x9ed4
movl %eax, %r12d
testb %al, %al
jne 0x9e9e
movq %rbx, -0x30(%rbp)
leaq 0x28(%r13), %rbx
movq %r13, %rdi
movq %r15, %rsi
callq 0x5246
movq %rbx, %rdi
movl %r14d, %esi
movq -0x30(%rbp), %rdx
callq 0x9f32
xorb $0x1, %r12b
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1efc(%rip), %rdi      # 0xbdb7
leaq 0x1f0f(%rip), %rsi      # 0xbdd1
leaq 0x1f1b(%rip), %rcx      # 0xbde4
movl $0x2a, %edx
callq 0x10d0
nop
// File: /workspace/github_cpp_makefile_star2_O3/pixlark[P]Badge/src/environment.cc
// Function: Environment::is_bound(char const*, bool)
bool is_bound(Symbol symbol, bool recurse=true)
	{
		assert(names.size == values.size);
		for (int i = 0; i < names.size; i++) {
			if (symbol == names[i]) {
				return true;
			}
		}
		if (recurse && next_env) {
			return next_env->is_bound(symbol);
		}
		return false;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rdi), %rax
cmpq 0x30(%rdi), %rax
jne 0x9f13
testq %rax, %rax
je 0x9efb
movq (%rdi), %rcx
xorl %r8d, %r8d
cmpq %rsi, (%rcx,%r8,8)
je 0x9f0f
incq %r8
cmpq %r8, %rax
jne 0x9eed
testb $0x1, %dl
je 0x9f0b
movq 0x50(%rdi), %rdi
movb $0x1, %dl
testq %rdi, %rdi
jne 0x9ed8
xorl %eax, %eax
jmp 0x9f11
movb $0x1, %al
popq %rbp
retq
leaq 0x1e9d(%rip), %rdi      # 0xbdb7
leaq 0x1eb0(%rip), %rsi      # 0xbdd1
leaq 0x1eec(%rip), %rcx      # 0xbe14
movl $0x1d, %edx
callq 0x10d0
// File: /workspace/github_cpp_makefile_star2_O3/pixlark[P]Badge/src/environment.cc
// Function: Environment::resolve_binding(char const*, Value*)
bool resolve_binding(Symbol symbol, Value * value)
	{
		assert(names.size == values.size);
		for (int i = 0; i < names.size; i++) {
			if (symbol == names[i]) {
				*value = values[i];
				return true;
			}
		}
		if (next_env) {
			return next_env->resolve_binding(symbol, value);
		}
		return false;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rdi), %rax
cmpq 0x30(%rdi), %rax
jne 0xa222
testq %rax, %rax
je 0xa201
movq (%rdi), %r8
xorl %ecx, %ecx
xorl %r9d, %r9d
cmpq %rsi, (%r8,%r9,8)
je 0xa20e
incq %r9
addq $0x10, %rcx
cmpq %r9, %rax
jne 0xa1ef
movq 0x50(%rdi), %rdi
testq %rdi, %rdi
jne 0xa1d8
xorl %eax, %eax
jmp 0xa220
cmpq %r9, %rax
jbe 0xa241
movq 0x28(%rdi), %rax
movups (%rax,%rcx), %xmm0
movups %xmm0, (%rdx)
movb $0x1, %al
popq %rbp
retq
leaq 0x1b8e(%rip), %rdi      # 0xbdb7
leaq 0x1ba1(%rip), %rsi      # 0xbdd1
leaq 0x1d2f(%rip), %rcx      # 0xbf66
movl $0x44, %edx
callq 0x10d0
leaq 0x14fb(%rip), %rdi      # 0xb743
leaq 0x1501(%rip), %rsi      # 0xb750
leaq 0x1506(%rip), %rcx      # 0xb75c
movl $0x7b, %edx
callq 0x10d0
// File: /workspace/github_cpp_makefile_star2_O3/pixlark[P]Badge/src/vm.cc
// Function: Call_Frame::gc_mark()
void gc_mark()
	{
		if (origin) {
			GC::mark_opaque(origin);
			origin->gc_mark();
		}
		// TODO(pixlark): Why do we check if this is marked opaque??
		// The whole point is that we just do it regardless...
		if (!GC::is_marked_opaque(environment)) {
			GC::mark_opaque(environment);
			environment->gc_mark();
		}
		if (!GC::is_marked_opaque(call_flags)) {
			GC::mark_opaque(call_flags);
			call_flags->gc_mark();
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
testq %rax, %rax
je 0xa37c
movb $0x1, %cl
movb %cl, -0x1(%rax)
movq (%rbx), %rax
movq (%rax), %rdx
movb %cl, -0x1(%rdx)
movq 0x18(%rax), %rcx
cmpb $0x0, -0x1(%rcx)
jne 0xa37c
movb $0x1, -0x1(%rcx)
movq 0x18(%rax), %rdi
callq 0x6c04
movq 0x8(%rbx), %rax
cmpb $0x0, -0x1(%rax)
jne 0xa393
movb $0x1, -0x1(%rax)
movq 0x8(%rbx), %rdi
callq 0x6c04
movq 0x18(%rbx), %rax
cmpb $0x0, -0x1(%rax)
je 0xa3a4
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movb $0x1, -0x1(%rax)
movq 0x18(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x6c04
nop
// File: /workspace/github_cpp_makefile_star2_O3/ArashPartow[P]exprtk-extras/exprtk_vector_benchmark_multithreaded.cpp
// Function: main
int main(int argc, char* argv[])
{
   const std::size_t vec_size     = ((argc >= 2) ? atoi(argv[1]) : 100000);
   const std::size_t thread_count = ((argc == 3) ? atoi(argv[2]) : 1     );

   if (thread_count > 36)
      return -1;

   run_threaded_benchmark<double>(vec_size,thread_count);

   return 0;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x18, %rsp
cmpl $0x1, %edi
jle 0x11b58e
movq %rsi, %rbx
movl %edi, %ebp
movq 0x8(%rsi), %rdi
callq 0x116170
cltq
movq %rax, 0x10(%rsp)
cmpl $0x3, %ebp
jne 0x11b597
movq 0x10(%rbx), %rdi
callq 0x116170
movslq %eax, %rcx
movq %rcx, 0x8(%rsp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x24, %ecx
jbe 0x11b5a0
jmp 0x11b5b1
movq $0x186a0, 0x10(%rsp)    # imm = 0x186A0
movq $0x1, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x11b657
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/XuhuiSun95[P]Ticket-Booking-Service/server/Server.cpp
// Function: Server::Run(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void Server::Run(const std::string &type) {

    mServer->Init(mServerInfo.first, mServerInfo.second, true);

    while(true) {

        int sockfd = mServer->Accept();
        std::thread t(&Server::ProcessTicket, this, sockfd, type);
        t.detach();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rdi
leaq 0x10(%r14), %rsi
leaq 0x30(%r14), %rdx
movl $0x1, %ecx
callq 0x3f62
leaq -0x38(%rbp), %r15
leaq -0x40(%rbp), %r13
leaq -0x2c(%rbp), %r12
movq 0x8(%r14), %rdi
callq 0x40d0
movl %eax, -0x2c(%rbp)
leaq 0x4a(%rip), %rax        # 0x26d8
movq %rax, -0x50(%rbp)
movq $0x0, -0x48(%rbp)
movq %r14, -0x40(%rbp)
movq %r15, %rdi
leaq -0x50(%rbp), %rsi
movq %r13, %rdx
movq %r12, %rcx
movq %rbx, %r8
callq 0x2afa
movq %r15, %rdi
callq 0x22e0
cmpq $0x0, -0x38(%rbp)
je 0x267b
jmp 0x26d3
cmpq $0x0, -0x38(%rbp)
jne 0x26d3
movq %rax, %rdi
callq 0x22f0
callq 0x2070
// File: /workspace/github_cpp_makefile_star2_O3/XuhuiSun95[P]Ticket-Booking-Service/server/ServerInterface.cpp
// Function: ServerInterface::ServerInterface()
ServerInterface::ServerInterface() {

    std::cout << "==================================================" << std::endl;
    std::cout << "||"
              << std::setw(31) << std::right << "Server Interface" 
              << std::setw(17) << std::right << "||" << std::endl;
    std::cout << "==================================================" << std::endl;

    mQuit = false;
    mServer = false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x18(%rdi), %rax
movq %rax, -0x30(%rbp)
movq %rax, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
movb %al, 0x18(%rdi)
leaq 0x38(%rdi), %r12
movq %r12, 0x28(%rdi)
movq %rax, 0x30(%rdi)
movb %al, 0x38(%rdi)
movl %eax, 0x48(%rdi)
leaq 0x60(%rdi), %r13
movq %r13, 0x50(%rdi)
movq %rax, 0x58(%rdi)
movb %al, 0x60(%rdi)
movl %eax, 0x70(%rdi)
movq 0x419f(%rip), %r14      # 0x6fd0
leaq 0x22f8(%rip), %rsi      # 0x5130
movl $0x32, %edx
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq 0x416d(%rip), %rdi      # 0x6fd0
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq 0x4159(%rip), %r14      # 0x6fd0
leaq 0x22e5(%rip), %rsi      # 0x5163
movl $0x2, %edx
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rcx
movq $0x1f, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
movl $0xffffff4f, %r15d      # imm = 0xFFFFFF4F
movl 0x18(%r14,%rax), %ecx
andl %r15d, %ecx
orl $0x80, %ecx
movl %ecx, 0x18(%r14,%rax)
leaq 0x22a7(%rip), %rsi      # 0x5166
movl $0x10, %edx
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rcx
movq $0x11, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
andl 0x18(%r14,%rax), %r15d
orl $0x80, %r15d
movl %r15d, 0x18(%r14,%rax)
leaq 0x226b(%rip), %rsi      # 0x5163
movl $0x2, %edx
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq 0x40ad(%rip), %rdi      # 0x6fd0
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq 0x4099(%rip), %r14      # 0x6fd0
leaq 0x21f2(%rip), %rsi      # 0x5130
movl $0x32, %edx
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq 0x4067(%rip), %rdi      # 0x6fd0
callq 0x2030
movq %rax, %rdi
callq 0x2150
movw $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x50(%rbx), %rdi
cmpq %r13, %rdi
je 0x2f9b
callq 0x21c0
movq 0x28(%rbx), %rdi
cmpq %r12, %rdi
je 0x2fa9
callq 0x21c0
movq 0x8(%rbx), %rdi
cmpq -0x30(%rbp), %rdi
je 0x2fb8
callq 0x21c0
movq %r14, %rdi
callq 0x22f0
// File: /workspace/github_cpp_makefile_star2_O3/XuhuiSun95[P]Ticket-Booking-Service/server/ServerInterface.cpp
// Function: ServerInterface::Run()
void ServerInterface::Run() {

    int opt = -1;

    while(!mQuit) {

        while(mServerName.empty())
            Init();

        OptionMessage();
        std::cin >> opt;
        if(!std::cin.good()) {

            std::cout << "Unknow option! Please enter again." << std::endl;
            std::cin.clear();
            std::cin.ignore(INT_MAX, '\n');
            continue;
        }

        switch(opt) {
            case 1:
                PrintStatus();
                break;
            case 2:
                Host();
                break;
            case 3:
                mQuit = true;
                break;
            default:
                std::cout << "Unknow option! Please enter again." << std::endl;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl $0xffffffff, -0x2c(%rbp) # imm = 0xFFFFFFFF
cmpb $0x0, (%rdi)
je 0x3031
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %rbx
movq 0x3fa5(%rip), %r14      # 0x6fe0
leaq -0x2c(%rbp), %r15
movq 0x3f8a(%rip), %r12      # 0x6fd0
leaq 0x212a(%rip), %r13      # 0x5177
cmpq $0x0, 0x10(%rbx)
jne 0x305e
movq %rbx, %rdi
callq 0x314c
jmp 0x304d
callq 0x362e
movq %r14, %rdi
movq %r15, %rsi
callq 0x2120
movq (%r14), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x20(%r14,%rax)
je 0x30e6
movl $0x22, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x2210
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
xorl %esi, %esi
callq 0x22b0
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movq %r14, %rdi
movl $0xa, %edx
callq 0x2130
cmpb $0x0, (%rbx)
je 0x304d
jmp 0x3022
movl -0x2c(%rbp), %eax
cmpl $0x3, %eax
je 0x310c
cmpl $0x2, %eax
je 0x3102
cmpl $0x1, %eax
jne 0x3111
movq %rbx, %rdi
callq 0x3740
jmp 0x30d8
movq %rbx, %rdi
callq 0x3dea
jmp 0x30d8
movb $0x1, (%rbx)
jmp 0x30d8
movl $0x22, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x2210
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
jmp 0x30d8
nop
// File: /workspace/github_cpp_makefile_star2_O3/XuhuiSun95[P]Ticket-Booking-Service/server/ServerInterface.cpp
// Function: ServerInterface::OptionMessage()
void ServerInterface::OptionMessage() {

    std::cout << std::endl;
    std::cout << "1. Server Status" << std::endl;
    std::cout << "2. Host Server" << std::endl;
    std::cout << "3. Quit" << std::endl;
    std::cout << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0x3995(%rip), %rbx      # 0x6fd0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0x1bec(%rip), %rsi      # 0x5255
movl $0x10, %edx
movq %rbx, %rdi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0x1bc2(%rip), %rsi      # 0x5266
movl $0xe, %edx
movq %rbx, %rdi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0x1b96(%rip), %rsi      # 0x5275
movl $0x7, %edx
movq %rbx, %rdi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2150
// File: /workspace/github_cpp_makefile_star2_O3/XuhuiSun95[P]Ticket-Booking-Service/server/ServerInterface.cpp
// Function: ServerInterface::Host()
void ServerInterface::Host() {

    std::cout << "Hosting..." << std::endl;
    mServer = true;
    std::cout << std::endl;

    Server *server = new Server(mServerInfo, mPairInfo);

    server->Run(mServerName);

    delete server;
    mServer = false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x31d5(%rip), %r14      # 0x6fd0
leaq 0x1505(%rip), %rsi      # 0x5307
movl $0xa, %edx
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movb $0x1, 0x1(%rbx)
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movl $0x88, %edi
callq 0x21e0
movq %rax, %r14
leaq 0x28(%rbx), %rsi
leaq 0x50(%rbx), %rdx
movq %rax, %rdi
callq 0x24fc
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x2642
movq %r14, %rdi
callq 0x25f2
movq %r14, %rdi
callq 0x21c0
movb $0x0, 0x1(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq %r14, %rdi
callq 0x21c0
movq %rbx, %rdi
callq 0x22f0
// File: /workspace/github_cpp_makefile_star2_O3/XuhuiSun95[P]Ticket-Booking-Service/server/ServerSocket.cpp
// Function: ServerSocket::SendMessage(int const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void ServerSocket::SendMessage(const int &sock, const std::string &message) {

    //  Delay 5 second to simulate the time for message passing
    std::this_thread::sleep_for(std::chrono::seconds(5));
    send(sock, message.c_str(), message.length(), 0);

    close(sock);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %rbx
leaq -0x28(%rbp), %r15
movq $0x5, (%r15)
movq $0x0, 0x8(%r15)
movq %r15, %rdi
movq %r15, %rsi
callq 0x2090
cmpl $-0x1, %eax
jne 0x41e6
callq 0x2040
cmpl $0x4, (%rax)
je 0x41cc
movl (%rbx), %edi
movq (%r14), %rsi
movq 0x8(%r14), %rdx
xorl %ecx, %ecx
callq 0x20e0
movl (%rbx), %edi
callq 0x2320
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/XuhuiSun95[P]Ticket-Booking-Service/server/ServerSocket.cpp
// Function: ServerSocket::ForwardTicket(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string ServerSocket::ForwardTicket(const std::string &message) {

    //  Delay 5 second to simulate the time for message passing
    std::this_thread::sleep_for(std::chrono::seconds(5));
    send(mSockfd, message.c_str(), message.length(), 0);

    mValread = read(mSockfd, buffer, 1024);

    std::string reply = buffer;

    return reply;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x30(%rbp), %r12
movq $0x5, (%r12)
movq $0x0, 0x8(%r12)
movq %r12, %rdi
movq %r12, %rsi
callq 0x2090
cmpl $-0x1, %eax
jne 0x424f
callq 0x2040
cmpl $0x4, (%rax)
je 0x4235
movl 0x4(%r14), %edi
movq (%r15), %rsi
movq 0x8(%r15), %rdx
xorl %ecx, %ecx
callq 0x20e0
movl 0x4(%r14), %edi
leaq 0x1c(%r14), %r15
movl $0x400, %edx            # imm = 0x400
movq %r15, %rsi
callq 0x2260
movl %eax, 0x8(%r14)
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq %r15, %rdi
callq 0x20c0
leaq (%r14,%rax), %rdx
addq $0x1c, %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2d40
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/XuhuiSun95[P]Ticket-Booking-Service/server/main.cpp
// Function: main
int main(int argc, char* argv[]) {

    ServerInterface* server = new ServerInterface();

    server->Run();

    delete server;

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl $0x78, %edi
callq 0x21e0
movq %rax, %rbx
movq %rax, %rdi
callq 0x2de0
movq %rbx, %rdi
callq 0x3008
movq %rbx, %rdi
callq 0x2fc0
movq %rbx, %rdi
callq 0x21c0
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x21c0
movq %r14, %rdi
callq 0x22f0
// File: /workspace/github_cpp_makefile_star2_O3/WeiqiangZhou[P]BIRD/source/predict_function.cpp
// Function: CheckTCid(char**, 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)
int CheckTCid(char **lib_TC, std::vector<std::string> in_TC, int Length)  
{
	for (int i = 0; i < Length; i++)
	{
		if (strcmp(lib_TC[i], in_TC[i].c_str()) != 0)
		{
			return 1;
		}
	}

	return 0;
}

// Assembly:
testl %edx, %edx
jle 0x4257
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %r14d
movq %rdi, %rbx
movq (%rsi), %r15
movq (%rdi), %rdi
movq (%r15), %rsi
callq 0x2290
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x424e
movl %r14d, %r14d
addq $0x20, %r15
movl $0x1, %ecx
movq %rcx, %r12
cmpq %rcx, %r14
je 0x4246
movq (%rbx,%r12,8), %rdi
movq (%r15), %rsi
callq 0x2290
leaq 0x1(%r12), %rcx
addq $0x20, %r15
testl %eax, %eax
je 0x4225
xorl %eax, %eax
cmpq %r14, %r12
setb %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/WeiqiangZhou[P]BIRD/source/predict_function.cpp
// Function: MatchExon(char**, Exondata*, int, int*)
int MatchExon(char **lib_TC, Exondata *indata, int Length, int *match_idx)
{
    int error_flag = 1;
    std::unordered_map<std::string, int> id_map;
    
    for (int i = 0; i < indata->TC_name.size(); i++)
    {
        id_map[indata->TC_name[i].c_str()] = i+1;
    }
    
    for (int i = 0; i < Length; i++)
    {
        match_idx[i] = id_map[lib_TC[i]] - 1;
    }
    
    for (int i = 0; i < Length; i++)
    {
        if(match_idx[i] != -1)
        {
            error_flag = 0;
            break;
        }
    }
    
    if(error_flag == 1)
    {
        return 1;
    }
    else
    {
        return 0;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rcx, -0x58(%rbp)
movl %edx, %ebx
movq %rdi, -0x60(%rbp)
leaq -0x68(%rbp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
movq 0x18(%rsi), %rax
cmpq %rax, 0x20(%rsi)
je 0x45c4
movq %rsi, %r12
xorl %r14d, %r14d
leaq -0x50(%rbp), %r13
xorl %r15d, %r15d
movq (%rax,%r14), %rsi
movq %r13, %rdi
leaq -0x29(%rbp), %rdx
callq 0x20e0
leaq -0x98(%rbp), %rdi
movq %r13, %rsi
callq 0x6c40
leal 0x1(%r15), %ecx
movl %ecx, (%rax)
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x45a7
callq 0x21d0
incq %r15
movq 0x18(%r12), %rax
movq 0x20(%r12), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %r14
cmpq %r15, %rcx
ja 0x4570
testl %ebx, %ebx
jle 0x464f
movq -0x58(%rbp), %r12
movl %ebx, %r14d
xorl %ebx, %ebx
leaq -0x50(%rbp), %r15
leaq -0x98(%rbp), %r13
movq -0x60(%rbp), %rax
movq (%rax,%rbx,8), %rsi
movq %r15, %rdi
leaq -0x29(%rbp), %rdx
callq 0x20e0
movq %r13, %rdi
movq %r15, %rsi
callq 0x6c40
movl (%rax), %eax
decl %eax
movl %eax, (%r12,%rbx,4)
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x4619
callq 0x21d0
incq %rbx
cmpq %rbx, %r14
jne 0x45e0
xorl %r15d, %r15d
cmpl $-0x1, (%r12)
jne 0x4655
movl $0x1, %ecx
movq %rcx, %rax
cmpq %rcx, %r14
je 0x4643
leaq 0x1(%rax), %rcx
cmpl $-0x1, (%r12,%rax,4)
je 0x4630
xorl %r15d, %r15d
cmpq %r14, %rax
setae %r15b
jmp 0x4655
movl $0x1, %r15d
leaq -0x98(%rbp), %rdi
callq 0x6748
movl %r15d, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4677
jmp 0x467c
movq %rax, %rbx
jmp 0x4691
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x4691
callq 0x21d0
leaq -0x98(%rbp), %rdi
callq 0x6748
movq %rbx, %rdi
callq 0x2380
// File: /workspace/github_cpp_makefile_star2_O3/WeiqiangZhou[P]BIRD/source/predict_function.cpp
// Function: ShellSort(double*, int*, int)
void ShellSort(double *num, int *index, int numLength)    
{
	int i, j, increment, temp_idx;
	double temp;

	for (increment = numLength / 2; increment > 0; increment /= 2)
	{
		for (i = increment; i<numLength; i++)
		{
			temp = num[i];
			temp_idx = index[i];
			for (j = i; j >= increment; j -= increment)
			{

				if (temp > num[j - increment])
				{
					num[j] = num[j - increment];
					index[j] = index[j - increment];
				}
				else
				{
					break;
				}
			}
			num[j] = temp;
			index[j] = temp_idx;
		}
	}
	return;
}

// Assembly:
cmpl $0x2, %edx
jl 0x4ddf
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edx, %ecx
movl %edx, %eax
shrl %eax
cmpl %edx, %eax
jge 0x4dd4
movl %eax, %r8d
movl %eax, %r9d
negl %r9d
movsd (%rdi,%r8,8), %xmm0
movl (%rsi,%r8,4), %r10d
movl %r8d, %r11d
cmpl %r8d, %eax
jg 0x4dbf
leal (%r9,%r11), %ebx
movslq %ebx, %rbx
movsd (%rdi,%rbx,8), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x4dbf
movl %r11d, %r14d
subl %eax, %r11d
movsd %xmm1, (%rdi,%r14,8)
movl (%rsi,%rbx,4), %ebx
movl %ebx, (%rsi,%r14,4)
cmpl %eax, %r11d
jge 0x4d95
movslq %r11d, %r11
movsd %xmm0, (%rdi,%r11,8)
movl %r10d, (%rsi,%r11,4)
incq %r8
cmpl %edx, %r8d
jl 0x4d83
cmpl $0x3, %ecx
movl %eax, %ecx
ja 0x4d74
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/WeiqiangZhou[P]BIRD/source/predict_function.cpp
// Function: GetRank(double*, double*, int)
void GetRank(double *rank, double *num,int numLength)
{
    int i,j,k;
    i = 0;
    while (i < numLength)
    {
        j = i;
        while ((j < numLength - 1) && (num[j]  == num[j + 1]))
        {
            j++;
        }
        if (i != j)
        {
            for (k = i; k <= j; k++)
            {
                rank[k] = (i + j + 2) / 2.0;
            }
        }
        else
        {
            rank[i] = i + 1;
        }
        i = j + 1;
    }
    return;
}

// Assembly:
testl %edx, %edx
jle 0x4e89
pushq %rbp
movq %rsp, %rbp
leal -0x1(%rdx), %eax
xorl %r8d, %r8d
movsd 0x367e(%rip), %xmm0     # 0x8478
movslq %r8d, %r9
cmpl %eax, %r9d
movl %eax, %r10d
cmovgl %r9d, %r10d
leal -0x1(%r9), %ecx
movq %r9, %r11
cmpq %rax, %r11
jge 0x4e2c
movsd (%rsi,%r11,8), %xmm1
incl %ecx
ucomisd 0x8(%rsi,%r11,8), %xmm1
leaq 0x1(%r11), %r11
jne 0x4e2f
jnp 0x4e0e
jmp 0x4e2f
movl %r10d, %ecx
cmpl %ecx, %r8d
jne 0x4e47
incl %r8d
xorps %xmm1, %xmm1
cvtsi2sd %r8d, %xmm1
movsd %xmm1, (%rdi,%r9,8)
jmp 0x4e7b
jg 0x4e7b
leal (%r8,%rcx), %r10d
addl $0x2, %r10d
xorps %xmm1, %xmm1
cvtsi2sd %r10d, %xmm1
mulsd %xmm0, %xmm1
leaq (%rdi,%r9,8), %r9
movl %ecx, %r10d
subl %r8d, %r10d
incl %r10d
xorl %r8d, %r8d
movsd %xmm1, (%r9,%r8,8)
incq %r8
cmpl %r8d, %r10d
jne 0x4e6d
incl %ecx
movl %ecx, %r8d
cmpl %edx, %ecx
jl 0x4dfa
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/WeiqiangZhou[P]BIRD/source/predict_function.cpp
// Function: QuantileNorm(double*, double*, int)
void QuantileNorm(double *indata, double *quantile, int dataLength) 
{
	int *index = new int[dataLength];
	double *indata_copy = new double[dataLength];
    double *ranks = new double[dataLength];

	for (int i = 0; i < dataLength; i++)
	{
		index[i] = i;
		indata_copy[i] = indata[i];
	}

	ShellSort(indata_copy, index, dataLength);
    GetRank(ranks, indata_copy, dataLength);
    
	for (int i = 0; i < dataLength; i++)
	{
        if (ranks[i] - floor(ranks[i]) > 0.4)
        {
            indata[index[i]] = 0.5 * (quantile[(size_t)floor(ranks[i])-1] + quantile[(size_t)floor(ranks[i])]);
        }
        else
        {
            indata[index[i]] = quantile[(size_t)floor(ranks[i])-1];
        }
	}

	delete[] index;
    delete[] ranks;
	delete[] indata_copy;
	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %r15d
movq %rsi, %rbx
movq %rdi, -0x40(%rbp)
movslq %edx, %r14
leaq (,%r14,4), %rdi
testl %r14d, %r14d
movq $-0x1, %rax
cmovsq %rax, %rdi
leaq (,%r14,8), %r13
cmovsq %rax, %r13
callq 0x2030
movq %rax, %r12
movq %r13, %rdi
callq 0x2030
movq %rax, -0x30(%rbp)
movq %r13, %rdi
callq 0x2030
movq %rax, %r13
movl %r15d, -0x38(%rbp)
movl %r15d, %r15d
testl %r14d, %r14d
jle 0x4f18
leaq (,%r15,8), %rdx
movq -0x30(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x2190
xorl %eax, %eax
movl %eax, (%r12,%rax,4)
incq %rax
cmpq %rax, %r15
jne 0x4f0c
movq -0x30(%rbp), %rdi
movq %r12, %rsi
movl -0x38(%rbp), %r14d
movl %r14d, %edx
callq 0x4d64
movq %r13, %rdi
movq -0x30(%rbp), %rsi
movl %r14d, %edx
callq 0x4de0
testl %r14d, %r14d
jle 0x4fb5
xorl %r14d, %r14d
movsd (%r13,%r14,8), %xmm0
movsd %xmm0, -0x38(%rbp)
callq 0x2350
movsd -0x38(%rbp), %xmm1
subsd %xmm0, %xmm1
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd 0x3510(%rip), %xmm0     # 0x8480
cvttsd2si %xmm0, %rax
andq %rdx, %rax
orq %rcx, %rax
ucomisd 0x3505(%rip), %xmm1     # 0x8488
jbe 0x4f9a
movsd -0x8(%rbx,%rax,8), %xmm0
addsd (%rbx,%rax,8), %xmm0
mulsd 0x34e0(%rip), %xmm0     # 0x8478
jmp 0x4fa0
movsd -0x8(%rbx,%rax,8), %xmm0
movslq (%r12,%r14,4), %rax
movq -0x40(%rbp), %rcx
movsd %xmm0, (%rcx,%rax,8)
incq %r14
cmpq %r14, %r15
jne 0x4f42
movq %r12, %rdi
callq 0x2270
movq %r13, %rdi
callq 0x2270
movq -0x30(%rbp), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2270
// File: /workspace/github_cpp_makefile_star2_O3/WeiqiangZhou[P]BIRD/source/predict_function.cpp
// Function: StandardizeRow(double**, double*, double*, int, int)
void StandardizeRow(double **data_in, double *Mean, double *SD, int Length, int sample_size)  
{
	for (int i = 0; i < Length; i++)
	{
		if (SD[i] != 0)
		{
			for (int j = 0; j < sample_size; j++)
			{
				data_in[j][i] = (data_in[j][i] - Mean[i]) / SD[i];
			}
		}
		else
		{
			for (int j = 0; j < sample_size; j++)
			{
				data_in[j][i] = 0;
			}
		}

	}
	return;
}

// Assembly:
testl %ecx, %ecx
jle 0x5051
pushq %rbp
movq %rsp, %rbp
movl %ecx, %eax
movl %r8d, %ecx
xorl %r9d, %r9d
xorpd %xmm0, %xmm0
movsd (%rdx,%r9,8), %xmm1
ucomisd %xmm0, %xmm1
jne 0x4ffe
jnp 0x502c
testl %r8d, %r8d
jle 0x5048
xorl %r10d, %r10d
movq (%rdi,%r10,8), %r11
movsd (%r11,%r9,8), %xmm1
subsd (%rsi,%r9,8), %xmm1
divsd (%rdx,%r9,8), %xmm1
movsd %xmm1, (%r11,%r9,8)
incq %r10
cmpq %r10, %rcx
jne 0x5006
jmp 0x5048
testl %r8d, %r8d
jle 0x5048
xorl %r10d, %r10d
movq (%rdi,%r10,8), %r11
movq $0x0, (%r11,%r9,8)
incq %r10
cmpq %r10, %rcx
jne 0x5034
incq %r9
cmpq %rax, %r9
jne 0x4ff0
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/WeiqiangZhou[P]BIRD/source/predict_function.cpp
// Function: StandardizeRow_r(double**, double*, double*, int, int)
void StandardizeRow_r(double **data_in, double *Mean, double *SD, int Length, int sample_size)  
{
	for (int i = 0; i < Length; i++)
	{
		for (int j = 0; j < sample_size; j++)
		{
			data_in[j][i] = data_in[j][i] * SD[i] + Mean[i];
		}

	}
	return;
}

// Assembly:
testl %ecx, %ecx
jle 0x5097
pushq %rbp
movq %rsp, %rbp
movl %ecx, %eax
movl %r8d, %ecx
xorl %r9d, %r9d
testl %r8d, %r8d
jle 0x508e
xorl %r10d, %r10d
movq (%rdi,%r10,8), %r11
movsd (%r11,%r9,8), %xmm0
mulsd (%rdx,%r9,8), %xmm0
addsd (%rsi,%r9,8), %xmm0
movsd %xmm0, (%r11,%r9,8)
incq %r10
cmpq %r10, %rcx
jne 0x506a
incq %r9
cmpq %rax, %r9
jne 0x5062
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/WeiqiangZhou[P]BIRD/source/predict_function.cpp
// Function: ClusterMean(double**, double**, int*, int, int, int)
void ClusterMean(double **data_matrix, double **data_mean, int *cluster_idx, int p_length, int c_length, int sample_size)
{
	double *data_sum = new double[sample_size];
	int data_count;

	for (int i = 0; i < c_length; i++)
	{
		for (int m = 0; m < sample_size; m++)
		{
			data_sum[m] = 0;
		}
		data_count = 0;
		for (int j = 0; j < p_length; j++)
		{
			if (cluster_idx[j] == i + 1)                      
			{
				for (int k = 0; k < sample_size; k++)
				{
					data_sum[k] += data_matrix[k][j];
				}
				data_count++;
			}
		}
		for (int m = 0; m < sample_size; m++)
		{
			data_mean[m][i] = data_sum[m] / (double)data_count;
		}

	}

	delete[] data_sum;
	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r9d, %r14d
movl %r8d, -0x38(%rbp)
movl %ecx, -0x2c(%rbp)
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movl %r9d, %ebx
leaq (,%rbx,8), %rax
testl %r9d, %r9d
movq $-0x1, %rdi
movq %rax, -0x58(%rbp)
cmovnsq %rax, %rdi
callq 0x2030
movl %r14d, %r8d
movq %rax, %r14
movl -0x38(%rbp), %eax
testl %eax, %eax
jle 0x51b1
movq %r12, %r10
movq %r15, %r9
movl %eax, %eax
movq %rax, -0x38(%rbp)
movl -0x2c(%rbp), %r15d
xorl %r12d, %r12d
movl %r8d, -0x3c(%rbp)
movq %r9, -0x50(%rbp)
movq %r10, -0x48(%rbp)
testl %r8d, %r8d
jle 0x512d
movq %r14, %rdi
xorl %esi, %esi
movq -0x58(%rbp), %rdx
callq 0x2130
movq -0x48(%rbp), %r10
movq -0x50(%rbp), %r9
movl -0x3c(%rbp), %r8d
cmpl $0x0, -0x2c(%rbp)
jle 0x517d
leaq 0x1(%r12), %rax
xorl %ecx, %ecx
xorl %edx, %edx
movl (%r9,%rcx,4), %esi
cmpq %rsi, %rax
jne 0x516c
testl %r8d, %r8d
jle 0x516a
xorl %esi, %esi
movq (%r13,%rsi,8), %rdi
movsd (%rdi,%rcx,8), %xmm0
addsd (%r14,%rsi,8), %xmm0
movsd %xmm0, (%r14,%rsi,8)
incq %rsi
cmpq %rsi, %rbx
jne 0x514c
incl %edx
incq %rcx
cmpq %r15, %rcx
jne 0x513c
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
jmp 0x5181
xorpd %xmm0, %xmm0
testl %r8d, %r8d
jle 0x51a4
xorl %eax, %eax
movsd (%r14,%rax,8), %xmm1
divsd %xmm0, %xmm1
movq (%r10,%rax,8), %rcx
movsd %xmm1, (%rcx,%r12,8)
incq %rax
cmpq %rax, %rbx
jne 0x5188
incq %r12
cmpq -0x38(%rbp), %r12
jne 0x510e
movq %r14, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2270
// File: /workspace/github_cpp_makefile_star2_O3/WeiqiangZhou[P]BIRD/source/predict_function.cpp
// Function: ReadPar(char*, int&, int&, int&, int&, int&, int&, int&, int&)
int ReadPar(char filename[255], int &loci_size, int &predictor_size, int &cluster_size, int &bin_size, int &var_size, int &DH_num1, int &DH_num2, int &DH_num3)
{
	FILE *pFile;
	int param[8];
	pFile = fopen(filename, "rb");
	if (pFile != NULL)
	{
		std::cout << "Reading model parameter..." << std::endl;
		fread(param, sizeof(int), 8, pFile);
		loci_size = param[0];
		predictor_size = param[1];
		cluster_size = param[2];
		bin_size = param[3];
		var_size = param[4];
		DH_num1 = param[5];
		DH_num2 = param[6];
		DH_num3 = param[7];
		fclose(pFile);

	}
	else
	{
		std::cout << "Error! File " << filename << " not found!" << std::endl;
		return 1;
	}
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, -0x38(%rbp)
movq %r8, -0x30(%rbp)
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x2e85(%rip), %rsi      # 0x84ec
callq 0x2240
testq %rax, %rax
je 0x5729
movq %rax, %r15
movq 0x6959(%rip), %r14      # 0xbfd8
leaq 0x2e7f(%rip), %rsi      # 0x8505
movl $0x1a, %edx
movq %r14, %rdi
callq 0x2230
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
leaq -0x60(%rbp), %r14
movl $0x4, %esi
movl $0x8, %edx
movq %r14, %rdi
movq %r15, %rcx
callq 0x22c0
movl (%r14), %eax
movl %eax, (%rbx)
movl 0x4(%r14), %eax
movl %eax, (%r13)
movl 0x8(%r14), %eax
movl %eax, (%r12)
movl 0xc(%r14), %eax
movq -0x30(%rbp), %rcx
movl %eax, (%rcx)
movl 0x10(%r14), %eax
movq -0x38(%rbp), %rcx
movl %eax, (%rcx)
movl 0x14(%r14), %eax
movq 0x10(%rbp), %rcx
movl %eax, (%rcx)
movl 0x18(%r14), %eax
movq 0x18(%rbp), %rcx
movl %eax, (%rcx)
movl 0x1c(%r14), %eax
movq 0x20(%rbp), %rcx
movl %eax, (%rcx)
movq %r15, %rdi
callq 0x21f0
xorl %eax, %eax
jmp 0x57bc
movq 0x68a8(%rip), %rbx      # 0xbfd8
leaq 0x2d9c(%rip), %rsi      # 0x84d3
movl $0xc, %edx
movq %rbx, %rdi
callq 0x2230
testq %r14, %r14
je 0x5765
movq %r14, %rdi
callq 0x2100
movq 0x6880(%rip), %rdi      # 0xbfd8
movq %r14, %rsi
movq %rax, %rdx
callq 0x2230
jmp 0x577c
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x2360
leaq 0x2d5d(%rip), %rsi      # 0x84e0
movl $0xb, %edx
movq %rbx, %rdi
callq 0x2230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movl $0x1, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/WeiqiangZhou[P]BIRD/source/predict_function.cpp
// Function: Regression(double**, double**, double**, int**, int, int, int)
void Regression(double **predictor, double **output, double **coef, int **predictor_idx, int var_length, int loci_length, int sample_size)
{
	for (int i = 0; i < loci_length; i++)
	{
		for (int j = 0; j < sample_size; j++)
		{
			output[j][i] = 0;
			for (int k = 0; k < var_length; k++)
			{
				output[j][i] += coef[k][i] * predictor[j][predictor_idx[k][i] - 1];               //index from 1 in library file.
			}

		}
	}
	return;
}

// Assembly:
testl %r9d, %r9d
jle 0x5856
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %r9d, %r9d
movl 0x10(%rbp), %r10d
movl %r8d, %r11d
xorl %ebx, %ebx
cmpl $0x0, 0x10(%rbp)
jle 0x5844
xorl %r14d, %r14d
movq (%rsi,%r14,8), %r15
movq $0x0, (%r15,%rbx,8)
testl %r8d, %r8d
jle 0x583c
movq (%rdi,%r14,8), %r12
xorpd %xmm0, %xmm0
xorl %r13d, %r13d
movq (%rdx,%r13,8), %rax
movsd (%rax,%rbx,8), %xmm1
movq (%rcx,%r13,8), %rax
movslq (%rax,%rbx,4), %rax
mulsd -0x8(%r12,%rax,8), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, (%r15,%rbx,8)
incq %r13
cmpq %r13, %r11
jne 0x5812
incq %r14
cmpq %r10, %r14
jne 0x57f6
incq %rbx
cmpq %r9, %rbx
jne 0x57ed
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/akw0088[P]openssl/rsync_upload.c
// Function: adler32
unsigned int adler32(unsigned char *data, unsigned int len)
{
	unsigned short a = 1, b = 0;
	unsigned int i;

	// Process each byte of the data in order
	for (i = 0; i < len; i++)
	{
		a = (a + data[i]) % MOD_ADLER;
		b = (b + a) % MOD_ADLER;
	}

	return (b << 16) | a;
}

// Assembly:
testl %esi, %esi
je 0x1401
movl %esi, %eax
movl $0x1, %edx
xorl %esi, %esi
movl $0x80078071, %r8d       # imm = 0x80078071
xorl %ecx, %ecx
movzwl %dx, %edx
movzbl (%rdi,%rsi), %r9d
addl %edx, %r9d
movl %r9d, %edx
subl $0xfff1, %edx           # imm = 0xFFF1
cmovbl %r9d, %edx
addl %edx, %ecx
movq %rcx, %r9
imulq %r8, %r9
shrq $0x2f, %r9
imull $0xfff1, %r9d, %r9d     # imm = 0xFFF1
subl %r9d, %ecx
incq %rsi
cmpq %rsi, %rax
jne 0x13c1
shll $0x10, %ecx
movzwl %dx, %eax
orl %ecx, %eax
retq
movl $0x1, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/akw0088[P]openssl/rsync_upload.c
// Function: Recv
int Recv(SOCKET sock, char *buffer, unsigned int size, int flag)
{
	unsigned int num_read = 0;

	while (num_read < size && num_read >= 0)
	{
		int ret = 0;

		ret = recv(sock, &buffer[num_read], size - num_read, flag);
		if (ret > 0)
		{
			num_read += ret;
			if (size > RECV_PROGRESS)
			{
				printf("Recv %d of %d\r", num_read, size);
			}
		}
		else
		{
			return ret;
		}
	}
	if (size > RECV_PROGRESS)
	{
		printf("\r\n");
	}
	return num_read;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %edx, %edx
je 0x1871
movl %ecx, %r14d
movl %edx, %ebp
movq %rsi, %r15
movl %edi, %r12d
leaq 0x27df(%rip), %r13      # 0x4004
xorl %ebx, %ebx
movl %ebx, %esi
addq %r15, %rsi
movl %ebp, %edx
subl %ebx, %edx
movl %r12d, %edi
movl %r14d, %ecx
callq 0x1040
testl %eax, %eax
jle 0x1875
addl %eax, %ebx
cmpl $0x2001, %ebp           # imm = 0x2001
jb 0x1857
movq %r13, %rdi
movl %ebx, %esi
movl %ebp, %edx
xorl %eax, %eax
callq 0x10e0
cmpl %ebp, %ebx
jb 0x1827
cmpl $0x2001, %ebp           # imm = 0x2001
jb 0x1877
leaq 0x2d07(%rip), %rdi      # 0x4571
callq 0x1070
jmp 0x1877
xorl %ebx, %ebx
jmp 0x1877
movl %eax, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/akw0088[P]openssl/rsync_upload.c
// Function: Send
int Send(SOCKET sock, char *buffer, int size, int flag)
{
	int num_sent = 0;

	while (num_sent < size && num_sent >= 0)
	{
		int ret = 0;

		ret = send(sock, &buffer[num_sent], size - num_sent, flag);
		if (ret > 0)
		{
			num_sent += ret;

			if (size > RECV_PROGRESS)
			{
				printf("Sent %d of %d\r", num_sent, size);
			}
		}
		else
		{
			return ret;
		}
	}
	if (size > RECV_PROGRESS)
	{
		printf("\r\n");
	}
	return num_sent;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %edx, %edx
jle 0x18f8
movl %ecx, %r14d
movl %edx, %ebp
movq %rsi, %r15
movl %edi, %r12d
leaq 0x276a(%rip), %r13      # 0x4013
xorl %ebx, %ebx
movl %ebx, %esi
addq %r15, %rsi
movl %ebp, %eax
subl %ebx, %eax
movslq %eax, %rdx
movl %r12d, %edi
movl %r14d, %ecx
callq 0x10d0
testl %eax, %eax
jle 0x18fc
addl %eax, %ebx
cmpl $0x2001, %ebp           # imm = 0x2001
jb 0x18de
movq %r13, %rdi
movl %ebx, %esi
movl %ebp, %edx
xorl %eax, %eax
callq 0x10e0
cmpl %ebp, %ebx
jl 0x18ab
cmpl $0x2001, %ebp           # imm = 0x2001
jl 0x18fe
leaq 0x2c80(%rip), %rdi      # 0x4571
callq 0x1070
jmp 0x18fe
xorl %ebx, %ebx
jmp 0x18fe
movl %eax, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/akw0088[P]openssl/rsync_upload.c
// Function: write_file
int write_file(char *filename, const char *bytes, int size)
{
    FILE *fp = fopen(filename, "wb");
    int ret;
    
    if (fp == NULL)
    {
        perror("Unable to open file for writing");
        return -1;
    }
    
    ret = fwrite(bytes, sizeof(char), size, fp);
    
    if (ret != size)
    {
		perror("fwrite didnt write all data");
		fclose(fp);
        return -1;
    }
    fclose(fp);
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
leaq 0x265b(%rip), %rsi      # 0x4025
callq 0x11c0
testq %rax, %rax
je 0x1a07
movq %rax, %rbx
movslq %ebp, %r15
movl $0x1, %esi
movq %r14, %rdi
movq %r15, %rdx
movq %rax, %rcx
callq 0x1220
cmpl %r15d, %eax
jne 0x1a15
movq %rbx, %rdi
callq 0x10a0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x261a(%rip), %rdi      # 0x4028
callq 0x11d0
jmp 0x1a29
leaq 0x262c(%rip), %rdi      # 0x4048
callq 0x11d0
movq %rbx, %rdi
callq 0x10a0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x19fc
// File: /workspace/github_cpp_makefile_star2_O3/akw0088[P]openssl/rsync_upload.c
// Function: assemble_download
int assemble_download(char *response, unsigned int rfile_size, char *data, unsigned int file_size, block_t *block_offset, int num_block, unsigned int block_size, char *diff, unsigned int diff_size)
{
	unsigned int diff_pos = 0;

	memset(response, 0, rfile_size);
	for (unsigned int i = 0; i < rfile_size; i++)
	{
		int skip = 0;

		// check if this byte is in a block
		for (int j = 0; j < num_block; j++)
		{
			if (i >= block_offset[j].offset && i < block_offset[j].offset + block_size)
			{
				// we are in this block, memcpy and skip to the end of this block
				memcpy(&response[i], &data[j * block_size], block_offset[j].length);
				i = block_offset[j].offset + block_size - 1;
				skip = 1;
				break;
			}
		}

		if (skip)
		{
			// restart again as we move passed a block
			continue;
		}

		// This byte comes from the downloaded pile
		response[i] = diff[diff_pos++];
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %ebx
movq %r8, %r14
movq %rdx, 0x10(%rsp)
movl %esi, %ebp
movl %esi, %edx
xorl %r12d, %r12d
movq %rdi, 0x8(%rsp)
xorl %esi, %esi
callq 0x1100
testl %ebp, %ebp
je 0x1ae9
movl %ebp, %edx
movl %ebx, %r8d
movq 0x58(%rsp), %rsi
movl 0x50(%rsp), %r15d
movl %ebx, %r13d
xorl %ebx, %ebx
movl %ebp, 0x4(%rsp)
movl %r12d, %edi
testl %r8d, %r8d
jle 0x1aa4
xorl %eax, %eax
xorl %ebp, %ebp
movl (%r14,%rbp,8), %ecx
cmpl %ecx, %r12d
jb 0x1a99
addl %r15d, %ecx
cmpl %ecx, %r12d
jb 0x1ab8
incq %rbp
addl %r15d, %eax
cmpq %rbp, %r13
jne 0x1a88
movl %ebx, %eax
incl %ebx
movb (%rsi,%rax), %al
movq 0x8(%rsp), %rcx
movb %al, (%rcx,%rdi)
incl %r12d
jmp 0x1ae4
addq 0x8(%rsp), %rdi
movl %eax, %esi
addq 0x10(%rsp), %rsi
movl 0x4(%r14,%rbp,8), %edx
movl %r8d, %r12d
callq 0x1160
movq 0x58(%rsp), %rsi
movl 0x4(%rsp), %edx
movl %r12d, %r8d
movl (%r14,%rbp,8), %r12d
addl %r15d, %r12d
cmpl %edx, %r12d
jb 0x1a7c
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq