LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/pixlark[P]Badge/src/vm.cc
// Function: VM::do_halting_tasks()
void do_halting_tasks()
	{
		// Push exported names to export_scope
		for (int i = 0; i < export_queue.size; i++) {
			auto _export = export_queue[i];
			current_assoc = _export.assoc;
			auto val = resolve_binding(_export.symbol);
			export_scope->create_binding(_export.symbol, val);
		}
		// Clear out the stack so that the garbage
		// collector can clean everything up
		size_t remaining = stack.size;
		for (int i = 0; i < remaining; i++) {
			pop();
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, 0x18(%rdi)
je 0x91f2
movl $0x8, %r15d
xorl %r12d, %r12d
cmpq %r12, 0x18(%rbx)
jbe 0x9215
movq 0x10(%rbx), %rax
movq -0x8(%rax,%r15), %r14
movl (%rax,%r15), %eax
movl %eax, 0x88(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9430
movq %rdx, %rcx
movq 0x8(%rbx), %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0x998e
incq %r12
addq $0x10, %r15
cmpq %r12, 0x18(%rbx)
ja 0x91b0
movq 0x40(%rbx), %r14
testq %r14, %r14
je 0x920c
addq $0x38, %rbx
movq %rbx, %rdi
callq 0x9c5e
decq %r14
jne 0x91ff
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x258f(%rip), %rdi      # 0xb7ab
leaq 0x2595(%rip), %rsi      # 0xb7b8
leaq 0x2bc4(%rip), %rcx      # 0xbdee
movl $0x7b, %edx
callq 0x10d0
// File: /workspace/github_cpp_makefile_star2_O1/pixlark[P]Badge/src/vm.cc
// Function: VM::return_function()
void return_function()
	{
		GC::heuristic_return();
		auto frame = call_stack.pop();
		frame->destroy();
		free(frame);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
cvtss2sd 0x7fee(%rip), %xmm0     # 0x11230
addsd 0x1f16(%rip), %xmm0     # 0xb160
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x7fda(%rip)     # 0x11230
addq $0x60, %rdi
callq 0x9b94
movq %rax, %rbx
movq 0x38(%rax), %rdi
callq *0x58(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x11f8
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r15
movl %edx, %r12d
movq %rsi, %rbx
movq %rdi, %r14
callq 0x9132
movq 0x8(%rax), %rdi
movq %rbx, %rsi
movl %r12d, %edx
movq %r15, %rcx
callq 0x998e
testb %al, %al
je 0x92ef
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2c2c(%rip), %rsi      # 0xbf22
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x93bc
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x937e
testq %rax, %rax
setne %r8b
je 0x936d
movq (%rdi), %r10
cmpq %rsi, (%r10)
je 0x934e
leaq -0x1(%rax), %r8
xorl %r11d, %r11d
cmpq %r11, %r8
je 0x936d
leaq 0x1(%r11), %r9
cmpq %rsi, 0x8(%r10,%r11,8)
movq %r9, %r11
jne 0x9332
cmpq %r9, %rax
seta %r8b
jmp 0x9351
xorl %r9d, %r9d
cmpq %r9, 0x30(%rdi)
jbe 0x939d
movq 0x28(%rdi), %rax
shlq $0x4, %r9
movl %edx, (%rax,%r9)
movq %rcx, 0x8(%rax,%r9)
testb %r8b, %r8b
jne 0x937a
movq 0x50(%rdi), %rdi
testq %rdi, %rdi
jne 0x9310
xorl %eax, %eax
jmp 0x937c
movb $0x1, %al
popq %rbp
retq
leaq 0x2a9a(%rip), %rdi      # 0xbe1f
leaq 0x2aad(%rip), %rsi      # 0xbe39
leaq 0x2bce(%rip), %rcx      # 0xbf61
movl $0x36, %edx
callq 0x10d0
leaq 0x2407(%rip), %rdi      # 0xb7ab
leaq 0x240d(%rip), %rsi      # 0xb7b8
leaq 0x2412(%rip), %rcx      # 0xb7c4
movl $0x7b, %edx
callq 0x10d0
// File: /workspace/github_cpp_makefile_star2_O1/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 %rsi, %rbx
movq %rdi, %r14
callq 0x9132
movq 0x8(%rax), %rdi
leaq -0x20(%rbp), %rdx
movq %rbx, %rsi
callq 0x9d2e
testb %al, %al
jne 0x9490
cmpq $0x0, 0x68(%r14)
je 0x94a0
movq 0x60(%r14), %rax
movq (%rax), %rax
movq 0x8(%rax), %rdi
leaq -0x20(%rbp), %rdx
movq %rbx, %rsi
callq 0x9d2e
testb %al, %al
jne 0x9490
movq 0x8(%r14), %rdi
leaq -0x20(%rbp), %rdx
movq %rbx, %rsi
callq 0x9d2e
testb %al, %al
je 0x94bf
movl -0x20(%rbp), %eax
movq -0x18(%rbp), %rdx
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x2304(%rip), %rdi      # 0xb7ab
leaq 0x230a(%rip), %rsi      # 0xb7b8
leaq 0x28fc(%rip), %rcx      # 0xbdb1
movl $0x7b, %edx
callq 0x10d0
leaq 0x2acb(%rip), %rsi      # 0xbf91
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x93bc
leaq 0x1f94(%rip), %rdi      # 0xb46e
leaq 0x2709(%rip), %rsi      # 0xbbea
leaq 0x2ac4(%rip), %rcx      # 0xbfac
movl $0xb8, %edx
callq 0x10d0
// File: /workspace/github_cpp_makefile_star2_O1/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
subq $0x18, %rsp
cmpq $0x0, 0x10(%rdi)
setne %r15b
je 0x97b7
movq %rsi, %r13
movq %rdi, %r12
movl %edx, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl $0x8, %ebx
xorl %r14d, %r14d
cmpq %r14, 0x10(%r12)
jbe 0x97cd
movq 0x8(%r12), %rax
movq (%rax,%r14,8), %rdi
movq %r13, %rsi
callq *(%r12)
testb %al, %al
jne 0x979c
incq %r14
addq $0x10, %rbx
cmpq %r14, 0x10(%r12)
seta %r15b
ja 0x976d
jmp 0x97b7
cmpq %r14, 0x38(%r12)
jbe 0x97ec
movq 0x30(%r12), %rax
movl -0x2c(%rbp), %ecx
movl %ecx, -0x8(%rax,%rbx)
movq -0x38(%rbp), %rcx
movq %rcx, (%rax,%rbx)
andb $0x1, %r15b
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1fd7(%rip), %rdi      # 0xb7ab
leaq 0x1fdd(%rip), %rsi      # 0xb7b8
leaq 0x29d9(%rip), %rcx      # 0xc1bb
movl $0x7b, %edx
callq 0x10d0
leaq 0x1fb8(%rip), %rdi      # 0xb7ab
leaq 0x1fbe(%rip), %rsi      # 0xb7b8
leaq 0x1fc3(%rip), %rcx      # 0xb7c4
jmp 0x97e2
nop
// File: /workspace/github_cpp_makefile_star2_O1/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), %ecx
decq %rcx
leaq -0x30(%rbp), %r15
movq %rcx, %r12
testl %r12d, %r12d
js 0x9979
movl %r12d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, 0x68(%r14)
jbe 0x995a
movq 0x60(%r14), %rcx
movq (%rcx,%rax,8), %rax
movq 0x18(%rax), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x9d2e
leaq -0x1(%r12), %rcx
testb %al, %al
je 0x990b
testl %r12d, %r12d
js 0x9979
movl -0x30(%rbp), %eax
movq -0x28(%rbp), %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1e4a(%rip), %rdi      # 0xb7ab
leaq 0x1e50(%rip), %rsi      # 0xb7b8
leaq 0x2442(%rip), %rcx      # 0xbdb1
movl $0x7b, %edx
callq 0x10d0
leaq 0x276c(%rip), %rsi      # 0xc0ec
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x93bc
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x99f8
movq %rcx, %rbx
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %r13
xorl %edx, %edx
callq 0x9a18
movl %eax, %r12d
testb %al, %al
jne 0x99e2
movq %rbx, -0x30(%rbp)
leaq 0x28(%r13), %rbx
movq %r13, %rdi
movq %r15, %rsi
callq 0x55a2
movq %rbx, %rdi
movl %r14d, %esi
movq -0x30(%rbp), %rdx
callq 0x9a8e
xorb $0x1, %r12b
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2420(%rip), %rdi      # 0xbe1f
leaq 0x2433(%rip), %rsi      # 0xbe39
leaq 0x243f(%rip), %rcx      # 0xbe4c
movl $0x2a, %edx
callq 0x10d0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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), %rcx
cmpq 0x30(%rdi), %rcx
jne 0x9a6f
testq %rcx, %rcx
setne %al
je 0x9a54
movq (%rdi), %r8
cmpq %rsi, (%r8)
je 0x9a54
movl $0x1, %r9d
movq %r9, %rax
cmpq %r9, %rcx
je 0x9a4e
leaq 0x1(%rax), %r9
cmpq %rsi, (%r8,%rax,8)
jne 0x9a3c
cmpq %rax, %rcx
seta %al
testb %al, %al
jne 0x9a6d
xorb $0x1, %dl
testb $0x1, %dl
jne 0x9a6d
movq 0x50(%rdi), %rdi
movb $0x1, %dl
testq %rdi, %rdi
jne 0x9a1c
xorl %eax, %eax
popq %rbp
retq
leaq 0x23a9(%rip), %rdi      # 0xbe1f
leaq 0x23bc(%rip), %rsi      # 0xbe39
leaq 0x23f8(%rip), %rcx      # 0xbe7c
movl $0x1d, %edx
callq 0x10d0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x9d9c
testq %rax, %rax
setne %cl
je 0x9d8b
movq (%rdi), %r9
cmpq %rsi, (%r9)
je 0x9d6e
leaq -0x1(%rax), %rcx
xorl %r10d, %r10d
cmpq %r10, %rcx
je 0x9d8b
leaq 0x1(%r10), %r8
cmpq %rsi, 0x8(%r9,%r10,8)
movq %r8, %r10
jne 0x9d53
cmpq %r8, %rax
seta %cl
jmp 0x9d71
xorl %r8d, %r8d
cmpq %r8, 0x30(%rdi)
jbe 0x9dbb
movq 0x28(%rdi), %rax
shlq $0x4, %r8
movups (%rax,%r8), %xmm0
movups %xmm0, (%rdx)
testb %cl, %cl
jne 0x9d98
movq 0x50(%rdi), %rdi
testq %rdi, %rdi
jne 0x9d32
xorl %eax, %eax
jmp 0x9d9a
movb $0x1, %al
popq %rbp
retq
leaq 0x207c(%rip), %rdi      # 0xbe1f
leaq 0x208f(%rip), %rsi      # 0xbe39
leaq 0x221d(%rip), %rcx      # 0xbfce
movl $0x44, %edx
callq 0x10d0
leaq 0x19e9(%rip), %rdi      # 0xb7ab
leaq 0x19ef(%rip), %rsi      # 0xb7b8
leaq 0x19f4(%rip), %rcx      # 0xb7c4
movl $0x7b, %edx
callq 0x10d0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x9ef6
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 0x9ef6
movb $0x1, -0x1(%rcx)
movq 0x18(%rax), %rdi
callq 0x6cd2
movq 0x8(%rbx), %rax
cmpb $0x0, -0x1(%rax)
jne 0x9f0d
movb $0x1, -0x1(%rax)
movq 0x8(%rbx), %rdi
callq 0x6cd2
movq 0x18(%rbx), %rax
cmpb $0x0, -0x1(%rax)
je 0x9f1e
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movb $0x1, -0x1(%rax)
movq 0x18(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x6cd2
nop
// File: /workspace/github_cpp_makefile_star2_O1/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
movq %rsi, %rbx
movl %edi, %ebp
movl $0x186a0, %eax          # imm = 0x186A0
cmpl $0x2, %edi
jl 0x11d5bc
movq 0x8(%rbx), %rdi
callq 0x118170
cltq
movq %rax, 0x10(%rsp)
movl $0x1, %ecx
cmpl $0x3, %ebp
jne 0x11d5d7
movq 0x10(%rbx), %rdi
callq 0x118170
movslq %eax, %rcx
movq %rcx, 0x8(%rsp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $0x24, %rcx
ja 0x11d5f8
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x11d6a7
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/isovic[P]cigargen/cigargen_main.cc
// Function: main
int main() {
  std::string reference = "ACTGCTGCCTGCAAAAAAAAAAA";
  std::string query = "AGTGTGCCCT";

  std::string cigar;
  std::string alignment = "";
  uint32_t alignment_length = 0;
  int32_t edit_distance = GenerateCigar((char *) query.c_str(), query.size(), (char *) reference.c_str(), reference.size(), &cigar, &alignment_length, &alignment);

  printf ("Reference sequence:\t%s\n", reference.c_str());
  printf ("Query sequence:\t\t%s\n", query.c_str());
  printf ("Returned CIGAR: %s\n", cigar.c_str());
  printf ("Alignment: %s\n", alignment.c_str());
  printf ("Alignment length: %d\n", alignment_length);
  printf ("Edit distance: %d\n", edit_distance);

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
leaq -0x60(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x1ca5(%rip), %rsi      # 0x4004
leaq 0x1cb5(%rip), %rdx      # 0x401b
leaq -0x70(%rbp), %rdi
callq 0x2546
leaq -0x40(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x1c9e(%rip), %rsi      # 0x401c
leaq 0x1ca1(%rip), %rdx      # 0x4026
leaq -0x50(%rbp), %rdi
callq 0x2546
leaq -0xa0(%rbp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
leaq -0x80(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x1d26(%rip), %rdx      # 0x40dd
leaq -0x90(%rbp), %rbx
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x2546
leaq -0x2c(%rbp), %r9
movl $0x0, (%r9)
movq -0x50(%rbp), %rdi
movl -0x48(%rbp), %esi
movq -0x70(%rbp), %rdx
movl -0x68(%rbp), %ecx
movq %rbx, (%rsp)
leaq -0xb0(%rbp), %r8
callq 0x25e0
movl %eax, %ebx
movq -0x70(%rbp), %rsi
leaq 0x1c28(%rip), %rdi      # 0x4027
xorl %eax, %eax
callq 0x2030
movq -0x50(%rbp), %rsi
leaq 0x1c2e(%rip), %rdi      # 0x403f
xorl %eax, %eax
callq 0x2030
movq -0xb0(%rbp), %rsi
leaq 0x1c2e(%rip), %rdi      # 0x4054
xorl %eax, %eax
callq 0x2030
movq -0x90(%rbp), %rsi
leaq 0x1c2d(%rip), %rdi      # 0x4068
xorl %eax, %eax
callq 0x2030
movl -0x2c(%rbp), %esi
leaq 0x1c2b(%rip), %rdi      # 0x4077
xorl %eax, %eax
callq 0x2030
leaq 0x1c33(%rip), %rdi      # 0x408d
movl %ebx, %esi
xorl %eax, %eax
callq 0x2030
movq -0x90(%rbp), %rdi
cmpq %r13, %rdi
je 0x247b
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2130
movq -0xb0(%rbp), %rdi
cmpq %r12, %rdi
je 0x2496
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2130
movq -0x50(%rbp), %rdi
cmpq %r15, %rdi
je 0x24ab
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2130
movq -0x70(%rbp), %rdi
cmpq %r14, %rdi
je 0x24c0
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2130
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x90(%rbp), %rdi
cmpq %r13, %rdi
je 0x24f4
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2130
jmp 0x24f4
movq %rax, %rbx
movq -0xb0(%rbp), %rdi
cmpq %r12, %rdi
je 0x250f
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2130
movq -0x50(%rbp), %rdi
cmpq %r15, %rdi
je 0x2529
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2130
jmp 0x2529
movq %rax, %rbx
movq -0x70(%rbp), %rdi
cmpq %r14, %rdi
je 0x253e
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2130
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O1/XuhuiSun95[P]Ticket-Booking-Service/server/Server.cpp
// Function: Server::Server(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int> const&, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int> const&)
Server::Server(const std::pair<std::string, int> &server,
               const std::pair<std::string, int> &pair) {

    mTickets = 50;
    mServer = new ServerSocket();
    mServerInfo = server;
    mPairInfo = pair;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %r12
leaq 0x10(%rdi), %rax
movq %rax, -0x30(%rbp)
leaq 0x20(%rdi), %rax
movq %rax, -0x40(%rbp)
movq %rax, 0x10(%rdi)
xorl %eax, %eax
movq %rax, 0x18(%rdi)
movb %al, 0x20(%rdi)
movl %eax, 0x30(%rdi)
leaq 0x38(%rdi), %r14
leaq 0x48(%rdi), %rcx
movq %rcx, -0x38(%rbp)
movq %rcx, 0x38(%rdi)
movq %rax, 0x40(%rdi)
movb %al, 0x48(%rdi)
movl %eax, 0x58(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%rdi)
movups %xmm0, 0x70(%rdi)
movq %rax, 0x80(%rdi)
movl $0x32, (%rdi)
movl $0x41c, %edi            # imm = 0x41C
callq 0x21e0
movq %rax, %rbx
movq %rax, %rdi
callq 0x3f30
movq %rbx, 0x8(%r12)
movq -0x30(%rbp), %rdi
movq %r13, %rsi
callq 0x20f0
movl 0x20(%r13), %eax
movl %eax, 0x30(%r12)
movq %r14, %rdi
movq %r15, %rsi
callq 0x20f0
movl 0x20(%r15), %eax
movl %eax, 0x58(%r12)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq %rbx, %rdi
callq 0x21c0
jmp 0x25ca
movq %rax, %r15
movq (%r14), %rdi
cmpq -0x38(%rbp), %rdi
je 0x25d8
callq 0x21c0
movq -0x30(%rbp), %rax
movq (%rax), %rdi
cmpq -0x40(%rbp), %rdi
je 0x25ea
callq 0x21c0
movq %r15, %rdi
callq 0x22f0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x3f6a
leaq -0x38(%rbp), %r15
leaq -0x40(%rbp), %r13
leaq -0x2c(%rbp), %r12
movq 0x8(%r14), %rdi
callq 0x40d8
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_O1/XuhuiSun95[P]Ticket-Booking-Service/server/Server.cpp
// Function: Server::HandleRequest[abi:cxx11](int const&)
std::string Server::HandleRequest(const int &amount) {

    int left = mTickets - amount;

    if(left < 0) {
        return "Not enought ticket to sale!";
    }
    else {
        mTickets = mTickets - amount;
        return "Success!";
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rsi), %eax
subl (%rdx), %eax
js 0x2ad2
movl %eax, (%rsi)
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x25ad(%rip), %rsi      # 0x5076
leaq 0x25ae(%rip), %rdx      # 0x507e
jmp 0x2ae7
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x257a(%rip), %rsi      # 0x505a
leaq 0x258e(%rip), %rdx      # 0x5075
movq %rbx, %rdi
callq 0x2d4c
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4197(%rip), %r14      # 0x6fd0
leaq 0x22f0(%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 0x4165(%rip), %rdi      # 0x6fd0
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq 0x4151(%rip), %r14      # 0x6fd0
leaq 0x22dd(%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 0x229f(%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 0x2263(%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 0x40a5(%rip), %rdi      # 0x6fd0
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq 0x4091(%rip), %r14      # 0x6fd0
leaq 0x21ea(%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 0x405f(%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 0x2fa3
callq 0x21c0
movq 0x28(%rbx), %rdi
cmpq %r12, %rdi
je 0x2fb1
callq 0x21c0
movq 0x8(%rbx), %rdi
cmpq -0x30(%rbp), %rdi
je 0x2fc0
callq 0x21c0
movq %r14, %rdi
callq 0x22f0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x3039
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %rbx
movq 0x3f9d(%rip), %r14      # 0x6fe0
leaq -0x2c(%rbp), %r15
movq 0x3f82(%rip), %r12      # 0x6fd0
leaq 0x2122(%rip), %r13      # 0x5177
cmpq $0x0, 0x10(%rbx)
jne 0x3066
movq %rbx, %rdi
callq 0x3154
jmp 0x3055
callq 0x3636
movq %r14, %rdi
movq %r15, %rsi
callq 0x2120
movq (%r14), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x20(%r14,%rax)
je 0x30ee
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 0x3055
jmp 0x302a
movl -0x2c(%rbp), %eax
cmpl $0x3, %eax
je 0x3114
cmpl $0x2, %eax
je 0x310a
cmpl $0x1, %eax
jne 0x3119
movq %rbx, %rdi
callq 0x3748
jmp 0x30e0
movq %rbx, %rdi
callq 0x3df2
jmp 0x30e0
movb $0x1, (%rbx)
jmp 0x30e0
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 0x30e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x398d(%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 0x1be4(%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 0x1bba(%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 0x1b8e(%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_O1/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 0x31cd(%rip), %r14      # 0x6fd0
leaq 0x14fd(%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_O1/XuhuiSun95[P]Ticket-Booking-Service/server/ServerSocket.cpp
// Function: ServerSocket::Accept()
int ServerSocket::Accept() {

    int addrlen = sizeof(mAddress);
    int new_socket;

    if((new_socket = accept(mSockfd, (struct sockaddr *)&mAddress, (socklen_t*)&addrlen))<0) {
        std::cout << "Accept Failed" << std::endl;
        return -1;
    }

    return new_socket;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq -0xc(%rbp), %rdx
movl $0x10, (%rdx)
movl 0x4(%rdi), %eax
leaq 0xc(%rdi), %rsi
movl %eax, %edi
callq 0x20a0
testl %eax, %eax
jns 0x4141
movq 0x2ecf(%rip), %rbx      # 0x6fd0
leaq 0x136d(%rip), %rsi      # 0x5475
movl $0xd, %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
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/XuhuiSun95[P]Ticket-Booking-Service/server/ServerSocket.cpp
// Function: ServerSocket::GetMessage[abi:cxx11](int const&)
std::string ServerSocket::GetMessage(const int &sock) {

    mValread = read(sock, buffer, 1024);
    std::string message = buffer;
    memset(buffer, 0, sizeof(buffer));
    
    return message;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
movl (%rdx), %edi
leaq 0x1c(%rsi), %r14
movl $0x400, %edx            # imm = 0x400
movq %r14, %rsi
callq 0x2260
movl %eax, 0x8(%r15)
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x20c0
leaq (%r15,%rax), %rdx
addq $0x1c, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2d4c
movl $0x400, %edx            # imm = 0x400
movq %r14, %rdi
xorl %esi, %esi
callq 0x2100
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x41ee
callq 0x2040
cmpl $0x4, (%rax)
je 0x41d4
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_O1/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 0x4257
callq 0x2040
cmpl $0x4, (%rax)
je 0x423d
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 0x2d4c
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2de8
movq %rbx, %rdi
callq 0x3010
movq %rbx, %rdi
callq 0x2fc8
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_O1/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:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testl %edx, %edx
setg %r12b
jle 0x4276
movl %edx, %r14d
movq %rdi, %rbx
movq (%rsi), %r15
movq (%rdi), %rdi
movq (%r15), %rsi
callq 0x2290
testl %eax, %eax
jne 0x4276
movl %r14d, %r14d
addq $0x20, %r15
movl $0x1, %ecx
movq %rcx, %r12
cmpq %rcx, %r14
je 0x426f
movq (%rbx,%r12,8), %rdi
movq (%r15), %rsi
callq 0x2290
leaq 0x1(%r12), %rcx
addq $0x20, %r15
testl %eax, %eax
je 0x424e
cmpq %r14, %r12
setb %r12b
movzbl %r12b, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 $0x68, %rsp
movq %rcx, %rbx
movl %edx, -0x30(%rbp)
movq %rdi, -0x58(%rbp)
leaq -0x60(%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 0x45ee
movq %rsi, %r12
xorl %r15d, %r15d
leaq -0x50(%rbp), %r13
xorl %r14d, %r14d
movq (%rax,%r15), %rsi
movq %r13, %rdi
leaq -0x29(%rbp), %rdx
callq 0x20e0
leaq -0x90(%rbp), %rdi
movq %r13, %rsi
callq 0x6c26
leal 0x1(%r14), %ecx
movl %ecx, (%rax)
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x45d1
callq 0x21d0
incq %r14
movq 0x18(%r12), %rax
movq 0x20(%r12), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %r15
cmpq %r14, %rcx
ja 0x459a
movq %rbx, %r12
movl -0x30(%rbp), %eax
movl %eax, %r15d
testl %eax, %eax
jle 0x4649
xorl %ebx, %ebx
leaq -0x50(%rbp), %r14
leaq -0x90(%rbp), %r13
movq -0x58(%rbp), %rax
movq (%rax,%rbx,8), %rsi
movq %r14, %rdi
leaq -0x29(%rbp), %rdx
callq 0x20e0
movq %r13, %rdi
movq %r14, %rsi
callq 0x6c26
movl (%rax), %eax
decl %eax
movl %eax, (%r12,%rbx,4)
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x4641
callq 0x21d0
incq %rbx
cmpq %rbx, %r15
jne 0x4608
cmpl $0x0, -0x30(%rbp)
setle %al
jle 0x4677
cmpl $-0x1, (%r12)
jne 0x4677
movl $0x1, %ecx
movq %rcx, %rax
cmpq %rcx, %r15
je 0x4671
leaq 0x1(%rax), %rcx
cmpl $-0x1, (%r12,%rax,4)
je 0x465e
cmpq %r15, %rax
setae %al
movzbl %al, %ebx
leaq -0x90(%rbp), %rdi
callq 0x6726
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x469b
jmp 0x46a0
movq %rax, %rbx
jmp 0x46b5
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x46b5
callq 0x21d0
leaq -0x90(%rbp), %rdi
callq 0x6726
movq %rbx, %rdi
callq 0x2380
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4e04
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edx, %ecx
movl %edx, %eax
shrl %eax
cmpl %edx, %eax
jge 0x4df9
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 0x4de4
movl %r8d, %r11d
leal (%r9,%r11), %ebx
movslq %ebx, %rbx
movsd (%rdi,%rbx,8), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x4de4
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 0x4dba
movslq %r11d, %r11
movsd %xmm0, (%rdi,%r11,8)
movl %r10d, (%rsi,%r11,4)
incq %r8
cmpl %edx, %r8d
jl 0x4da5
cmpl $0x3, %ecx
movl %eax, %ecx
ja 0x4d96
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4eb4
pushq %rbp
movq %rsp, %rbp
pushq %rbx
leal -0x1(%rdx), %eax
movslq %eax, %rcx
xorl %r9d, %r9d
movsd 0x3655(%rip), %xmm0     # 0x8478
movslq %r9d, %r10
cmpl %eax, %r10d
movl %eax, %r11d
cmovgl %r10d, %r11d
leal -0x1(%r10), %r8d
movq %r10, %rbx
cmpq %rcx, %rbx
jge 0x4e54
movsd (%rsi,%rbx,8), %xmm1
incl %r8d
ucomisd 0x8(%rsi,%rbx,8), %xmm1
leaq 0x1(%rbx), %rbx
jne 0x4e57
jnp 0x4e37
jmp 0x4e57
movl %r11d, %r8d
cmpl %r8d, %r9d
jne 0x4e6f
incl %r9d
xorps %xmm1, %xmm1
cvtsi2sd %r9d, %xmm1
movsd %xmm1, (%rdi,%r10,8)
jmp 0x4ea3
jg 0x4ea3
leal (%r9,%r8), %r11d
addl $0x2, %r11d
xorps %xmm1, %xmm1
cvtsi2sd %r11d, %xmm1
mulsd %xmm0, %xmm1
leaq (%rdi,%r10,8), %r10
movl %r8d, %r11d
subl %r9d, %r11d
incl %r11d
xorl %r9d, %r9d
movsd %xmm1, (%r10,%r9,8)
incq %r9
cmpl %r9d, %r11d
jne 0x4e95
incl %r8d
movl %r8d, %r9d
cmpl %edx, %r8d
jl 0x4e23
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4f43
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 0x4f37
movq -0x30(%rbp), %rdi
movq %r12, %rsi
movl -0x38(%rbp), %r14d
movl %r14d, %edx
callq 0x4d86
movq %r13, %rdi
movq -0x30(%rbp), %rsi
movl %r14d, %edx
callq 0x4e05
testl %r14d, %r14d
jle 0x4fe0
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 0x34e5(%rip), %xmm0     # 0x8480
cvttsd2si %xmm0, %rax
andq %rdx, %rax
orq %rcx, %rax
ucomisd 0x34da(%rip), %xmm1     # 0x8488
jbe 0x4fc5
movsd -0x8(%rbx,%rax,8), %xmm0
addsd (%rbx,%rax,8), %xmm0
mulsd 0x34b5(%rip), %xmm0     # 0x8478
jmp 0x4fcb
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 0x4f6d
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_O1/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 0x507c
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 0x5029
jnp 0x5057
testl %r8d, %r8d
jle 0x5073
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 0x5031
jmp 0x5073
testl %r8d, %r8d
jle 0x5073
xorl %r10d, %r10d
movq (%rdi,%r10,8), %r11
movq $0x0, (%r11,%r9,8)
incq %r10
cmpq %r10, %rcx
jne 0x505f
incq %r9
cmpq %rax, %r9
jne 0x501b
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x50c2
pushq %rbp
movq %rsp, %rbp
movl %ecx, %eax
movl %r8d, %ecx
xorl %r9d, %r9d
testl %r8d, %r8d
jle 0x50b9
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 0x5095
incq %r9
cmpq %rax, %r9
jne 0x508d
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 $0x28, %rsp
movl %r9d, %ebx
movl %r8d, %r12d
movl %ecx, -0x2c(%rbp)
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r13
movslq %r9d, %rax
leaq (,%rax,8), %rcx
testl %eax, %eax
movq $-0x1, %rdi
cmovnsq %rcx, %rdi
callq 0x2030
movq %r14, %r9
movq %rax, %r14
testl %r12d, %r12d
jle 0x51e3
movq %r15, %r10
movl %ebx, %r8d
movl %ebx, %ebx
leaq (,%rbx,8), %rax
movq %rax, -0x38(%rbp)
movl %r12d, %eax
movq %rax, -0x50(%rbp)
movl -0x2c(%rbp), %r15d
xorl %r12d, %r12d
movl %r8d, -0x30(%rbp)
movq %r9, -0x48(%rbp)
movq %r10, -0x40(%rbp)
testl %r8d, %r8d
jle 0x515f
movq %r14, %rdi
xorl %esi, %esi
movq -0x38(%rbp), %rdx
callq 0x2130
movq -0x40(%rbp), %r10
movq -0x48(%rbp), %r9
movl -0x30(%rbp), %r8d
cmpl $0x0, -0x2c(%rbp)
jle 0x51af
leaq 0x1(%r12), %rax
xorl %ecx, %ecx
xorl %edx, %edx
movl (%r9,%rcx,4), %esi
cmpq %rsi, %rax
jne 0x519e
testl %r8d, %r8d
jle 0x519c
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 0x517e
incl %edx
incq %rcx
cmpq %r15, %rcx
jne 0x516e
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
jmp 0x51b3
xorpd %xmm0, %xmm0
testl %r8d, %r8d
jle 0x51d6
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 0x51ba
incq %r12
cmpq -0x50(%rbp), %r12
jne 0x5140
movq %r14, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2270