LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/lluchs[P]sparsearray/./sparsearray.h
// Function: StaticChunkSA<C4PXS, 10000ul, 500ul>::Delete(C4PXS*)
void Delete(T *el)
	{
		size_t i, j;
		for (i = 0; i < MaxChunk; i++)
			if (ChunkFill[i])
				if (el >= &Chunk[i][0] && el < &Chunk[i][ChunkSize])
					break;
		assert(i < MaxChunk);

		j = el - &Chunk[i][0];
		assert(UsedElements[i*ChunkSize + j]);
		UsedElements.reset(i*ChunkSize + j);

		--ChunkFill[i];
	}

// Assembly:
pushq %rbx
leaq 0x30d40(%rdi), %rbx
movq %rsi, %rax
subq %rdi, %rax
xorl %ecx, %ecx
movq $-0x2710, %rdx          # imm = 0xD8F0
movq %rdi, %r8
cmpq $0x0, (%rbx)
je 0x3456
cmpq %rsi, %r8
setbe %r9b
leaq 0x2710(%r8), %r10
cmpq %rsi, %r10
seta %r10b
testb %r10b, %r9b
jne 0x348f
addq $0x8, %rbx
addq $-0x1f4, %rcx           # imm = 0xFE0C
addq %rdx, %rax
addq $0x2710, %r8            # imm = 0x2710
cmpq %rdx, %rcx
jne 0x3436
leaq 0x1e6a(%rip), %rdi      # 0x52e1
leaq 0x1cbe(%rip), %rsi      # 0x513c
leaq 0x1ee5(%rip), %rcx      # 0x536a
movl $0xfb, %edx
callq 0x1080
sarq $0x2, %rax
movabsq $-0x3333333333333333, %rsi # imm = 0xCCCCCCCCCCCCCCCD
imulq %rax, %rsi
subq %rcx, %rsi
movq %rsi, %rax
shrq $0x6, %rax
movq 0x30de0(%rdi,%rax,8), %rax
btq %rsi, %rax
jae 0x34ca
addq $0x30de0, %rdi          # imm = 0x30DE0
callq 0x314a
decq (%rbx)
popq %rbx
retq
leaq 0x1e6d(%rip), %rdi      # 0x533e
leaq 0x1c64(%rip), %rsi      # 0x513c
leaq 0x1e8b(%rip), %rcx      # 0x536a
movl $0xfe, %edx
callq 0x1080
nop
// File: /workspace/github_cpp_makefile_star2_O3/lluchs[P]sparsearray/./sparsearray.h
// Function: LinkedListSA<C4PXS, 10000ul>::Delete(C4PXS*)
void Delete(T *dataEl)
	{
		ListElement *el = reinterpret_cast<ListElement*>(dataEl);
		assert(el >= &array[0] && el < &array[N]);
		assert(el->used);
		el->used = false;

		ListElement *next = el->next;
		bool lookingForUsed = false, lookingForFree = !!firstFree;
		if (el == firstUsed)
			firstUsed = next;
		else
			lookingForUsed = true;

		ListElement *prevEl = el;
		while (--prevEl >= array && (lookingForUsed || lookingForFree))
		{
			if (lookingForUsed && prevEl->used)
			{
				prevEl->next = next;
				lookingForUsed = false;
			}
			if (lookingForFree && !prevEl->used)
			{
				el->next = prevEl->next;
				prevEl->next = el;
				lookingForFree = false;
			}
		}

		if (!!firstFree == lookingForFree)
		{
			if (firstFree)
				el->next = firstFree;
			else
				el->next = nullptr;
			firstFree = el;
		}
	}

// Assembly:
pushq %rax
cmpq %rdi, %rsi
jb 0x38cc
leaq 0x61a80(%rdi), %r8
cmpq %rsi, %r8
jbe 0x38cc
cmpb $0x0, 0x20(%rsi)
je 0x38eb
movb $0x0, 0x20(%rsi)
movq 0x18(%rsi), %rdx
movq 0x61a88(%rdi), %rax
testq %rax, %rax
setne %cl
cmpq %rsi, 0x61a80(%rdi)
setne %r9b
jne 0x3867
movq %rdx, (%r8)
leaq -0x28(%rsi), %r8
cmpq %rdi, %r8
jb 0x38b2
testb $0x1, %r9b
jne 0x387b
testb $0x1, %cl
je 0x38b2
testb $0x1, %r9b
je 0x388f
movb $0x1, %r9b
cmpb $0x1, 0x20(%r8)
jne 0x3892
movq %rdx, 0x18(%r8)
xorl %r9d, %r9d
testb $0x1, %cl
je 0x38ac
cmpb $0x0, 0x20(%r8)
jne 0x38ac
movq 0x18(%r8), %rcx
movq %rcx, 0x18(%rsi)
movq %rsi, 0x18(%r8)
xorl %ecx, %ecx
addq $-0x28, %r8
jmp 0x386b
testq %rax, %rax
setne %dl
xorb %cl, %dl
testb $0x1, %dl
jne 0x38ca
movq %rax, 0x18(%rsi)
movq %rsi, 0x61a88(%rdi)
popq %rax
retq
leaq 0x1aed(%rip), %rdi      # 0x53c0
leaq 0x1862(%rip), %rsi      # 0x513c
leaq 0x1b01(%rip), %rcx      # 0x53e2
movl $0x175, %edx            # imm = 0x175
callq 0x1080
leaq 0x1b34(%rip), %rdi      # 0x5426
leaq 0x1843(%rip), %rsi      # 0x513c
leaq 0x1ae2(%rip), %rcx      # 0x53e2
movl $0x176, %edx            # imm = 0x176
callq 0x1080
// File: /workspace/github_cpp_makefile_star2_O3/lluchs[P]sparsearray/./sparsearray.h
// Function: LinkedListBitmapSA<C4PXS, 10000ul>::New()
T* New()
	{
		if (!firstFree) return nullptr;
		ListElement *el = firstFree;
		firstFree = el->next;
		UsedElements.set(el - array);

		// The hard part is now to insert the element in the right place in the list. We could just
		// put it in the front, but this would destroy cache locality during iteration.
		if (firstUsed)
		{
			ListElement *prevEl = el;
			while (--prevEl >= array)
				if (UsedElements[prevEl - array])
				{
					el->next = prevEl->next;
					prevEl->next = el;
					goto done;
				}
			// We're at the front.
			el->next = firstUsed;
		}
		else
			el->next = nullptr;
		firstUsed = el;
done:
		return &el->data;
	}

// Assembly:
pushq %rax
movq 0x4e208(%rdi), %rax
testq %rax, %rax
je 0x3bea
movq 0x18(%rax), %rcx
movq %rcx, 0x4e208(%rdi)
movq %rax, %rsi
subq %rdi, %rsi
movq %rsi, %rdx
sarq $0x5, %rdx
cmpq $0x2710, %rdx           # imm = 0x2710
jae 0x3bec
movl $0x1, %r8d
movl %edx, %ecx
shlq %cl, %r8
shrq $0x6, %rdx
orq %r8, 0x4e210(%rdi,%rdx,8)
leaq 0x4e200(%rdi), %r8
movq 0x4e200(%rdi), %rcx
testq %rcx, %rcx
je 0x3be0
leaq 0x18(%rax), %rdx
addq $-0x20, %rsi
leaq -0x38(%rdx), %r9
cmpq %rdi, %r9
jb 0x3be0
movq %rsi, %r9
sarq $0x5, %r9
movq %r9, %r10
shrq $0x6, %r10
movq 0x4e210(%rdi,%r10,8), %r10
addq $-0x20, %rdx
addq $-0x20, %rsi
btq %r9, %r10
jae 0x3bae
movq (%rdx), %rcx
jmp 0x3be3
movq %r8, %rdx
movq %rcx, 0x18(%rax)
movq %rax, (%rdx)
popq %rcx
retq
leaq 0x16ba(%rip), %rdi      # 0x52ad
leaq 0x16a7(%rip), %rsi      # 0x52a1
movl $0x2710, %ecx           # imm = 0x2710
xorl %eax, %eax
callq 0x1130
// File: /workspace/github_cpp_makefile_star2_O3/lluchs[P]sparsearray/./sparsearray.h
// Function: LinkedListBitmapSA<C4PXS, 10000ul>::Delete(C4PXS*)
void Delete(T *dataEl)
	{
		ListElement *el = reinterpret_cast<ListElement*>(dataEl);
		assert(el >= &array[0] && el < &array[N]);
		assert(UsedElements[el - array]);
		UsedElements.reset(el - array);

		ListElement *next = el->next;
		bool lookingForUsed = false, lookingForFree = !!firstFree;
		if (el == firstUsed)
			firstUsed = next;
		else
			lookingForUsed = true;

		ListElement *prevEl = el;
		while (--prevEl >= array && (lookingForUsed || lookingForFree))
		{
			if (lookingForUsed && UsedElements[prevEl - array])
			{
				prevEl->next = next;
				lookingForUsed = false;
			}
			if (lookingForFree && !UsedElements[prevEl - array])
			{
				el->next = prevEl->next;
				prevEl->next = el;
				lookingForFree = false;
			}
		}

		if (!!firstFree == lookingForFree)
		{
			if (firstFree)
				el->next = firstFree;
			else
				el->next = nullptr;
			firstFree = el;
		}
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r12
subq %rdi, %r12
jb 0x3d22
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x4e200(%rdi), %r13
cmpq %rsi, %r13
jbe 0x3d22
movq %r12, %rsi
sarq $0x5, %rsi
movq %rsi, %rax
shrq $0x6, %rax
movq 0x4e210(%r14,%rax,8), %rax
btq %rsi, %rax
jae 0x3d41
leaq 0x4e210(%r14), %r15
movq %r15, %rdi
callq 0x314a
movq 0x18(%rbx), %rdx
movq 0x4e208(%r14), %rax
testq %rax, %rax
setne %cl
cmpq %rbx, 0x4e200(%r14)
setne %dil
jne 0x3c82
movq %rdx, (%r13)
leaq -0x20(%rbx), %rsi
cmpq %r14, %rsi
jae 0x3cad
testq %rax, %rax
setne %dl
xorb %cl, %dl
testb $0x1, %dl
jne 0x3ca3
movq %rax, 0x18(%rbx)
movq %rbx, 0x4e208(%r14)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
addq $-0x20, %r12
testb $0x1, %dil
jne 0x3cbc
testb $0x1, %cl
je 0x3c8b
testb $0x1, %dil
je 0x3cde
movq %r12, %rdi
sarq $0x5, %rdi
movq %rdi, %r8
shrq $0x6, %r8
movq (%r15,%r8,8), %r8
btq %rdi, %r8
jae 0x3d1d
movq %rdx, 0x18(%rsi)
xorl %edi, %edi
testb $0x1, %cl
je 0x3d0b
movq %r12, %r8
sarq $0x5, %r8
movq %r8, %r9
shrq $0x6, %r9
movq (%r15,%r9,8), %r9
btq %r8, %r9
jb 0x3d0b
movq 0x18(%rsi), %rcx
movq %rcx, 0x18(%rbx)
movq %rbx, 0x18(%rsi)
xorl %ecx, %ecx
addq $-0x20, %rsi
addq $-0x20, %r12
cmpq %r14, %rsi
jae 0x3cb1
jmp 0x3c8b
movb $0x1, %dil
jmp 0x3ce0
leaq 0x1697(%rip), %rdi      # 0x53c0
leaq 0x140c(%rip), %rsi      # 0x513c
leaq 0x16f8(%rip), %rcx      # 0x542f
movl $0x1f4, %edx            # imm = 0x1F4
callq 0x1080
leaq 0x1731(%rip), %rdi      # 0x5479
leaq 0x13ed(%rip), %rsi      # 0x513c
leaq 0x16d9(%rip), %rcx      # 0x542f
movl $0x1f5, %edx            # imm = 0x1F5
callq 0x1080
// File: /workspace/github_cpp_makefile_star2_O3/lluchs[P]sparsearray/./sparsearray.h
// Function: DoubleLinkedListSA<C4PXS, 10000ul>::New()
T* New()
	{
		if (!firstFree) return nullptr;
		ListElement *el = firstFree;
		firstFree = el->next;
		el->used = true;

		// The hard part is now to insert the element in the right place in the list. We could just
		// put it in the front, but this would destroy cache locality during iteration.
		if (firstUsed)
		{
			ListElement *prevEl = el;
			while (--prevEl >= array)
				if (prevEl->used)
				{
					el->next = prevEl->next;
					el->prev = prevEl;
					prevEl->next = el;
					if (el->next)
						el->next->prev = el;
					goto done;
				}
			// We're at the front.
			el->next = firstUsed;
			el->next->prev = el;
		}
		else
			el->next = nullptr;
		firstUsed = el;
		el->prev = nullptr;
done:
		return &el->data;
	}

// Assembly:
movq 0x75308(%rdi), %rax
testq %rax, %rax
je 0x3fe8
movq 0x18(%rax), %rcx
movq %rcx, 0x75308(%rdi)
movb $0x1, 0x28(%rax)
movq 0x75300(%rdi), %rcx
testq %rcx, %rcx
je 0x3fe9
movq %rax, %rsi
leaq -0x30(%rsi), %rdx
cmpq %rdi, %rdx
jb 0x3ff3
cmpb $0x1, -0x8(%rsi)
movq %rdx, %rsi
jne 0x3fba
movq 0x18(%rdx), %rcx
movq %rcx, 0x18(%rax)
movq %rdx, 0x20(%rax)
movq %rax, 0x18(%rdx)
movq 0x18(%rax), %rcx
movq %rax, %rdx
testq %rcx, %rcx
jne 0x4007
retq
movq $0x0, 0x18(%rax)
jmp 0x3ffb
movq %rcx, 0x18(%rax)
movq %rax, 0x20(%rcx)
movq %rax, 0x75300(%rdi)
xorl %edx, %edx
movq %rax, %rcx
movq %rdx, 0x20(%rcx)
retq
// File: /workspace/github_cpp_makefile_star2_O3/lluchs[P]sparsearray/./sparsearray.h
// Function: DoubleLinkedListSA<C4PXS, 10000ul>::Delete(C4PXS*)
void Delete(T *dataEl)
	{
		ListElement *el = reinterpret_cast<ListElement*>(dataEl);
		assert(el >= &array[0] && el < &array[N]);
		assert(el->used);
		el->used = false;

		ListElement *next = el->next;
		if (el == firstUsed)
			firstUsed = next;
		if (next)
			next->prev = el->prev;
		if (el->prev)
			el->prev->next = next;

		if (firstFree)
		{
			ListElement *prevEl = el;
			while (--prevEl >= array)
			{
				if (!prevEl->used)
				{
					el->next = prevEl->next;
					prevEl->next = el;
					return;
				}
			}
			el->next = firstFree;
		}
		else
			el->next = nullptr;
		firstFree = el;
	}

// Assembly:
pushq %rax
cmpq %rdi, %rsi
jb 0x408d
leaq 0x75300(%rdi), %rcx
cmpq %rsi, %rcx
jbe 0x408d
cmpb $0x0, 0x28(%rsi)
je 0x40ac
movb $0x0, 0x28(%rsi)
movq 0x18(%rsi), %rax
cmpq %rsi, (%rcx)
jne 0x4038
movq %rax, (%rcx)
movq 0x20(%rsi), %rcx
testq %rax, %rax
je 0x4045
movq %rcx, 0x20(%rax)
testq %rcx, %rcx
je 0x404e
movq %rax, 0x18(%rcx)
leaq 0x75308(%rdi), %rcx
movq 0x75308(%rdi), %rax
testq %rax, %rax
je 0x4081
leaq 0x18(%rsi), %r8
leaq -0x48(%r8), %rdx
cmpq %rdi, %rdx
jb 0x4081
leaq -0x30(%r8), %rdx
cmpb $0x0, -0x20(%r8)
movq %rdx, %r8
jne 0x4065
movq (%rdx), %rax
jmp 0x4084
movq %rcx, %rdx
movq %rax, 0x18(%rsi)
movq %rsi, (%rdx)
popq %rax
retq
leaq 0x132c(%rip), %rdi      # 0x53c0
leaq 0x10a1(%rip), %rsi      # 0x513c
leaq 0x13f0(%rip), %rcx      # 0x5492
movl $0x2d6, %edx            # imm = 0x2D6
callq 0x1080
leaq 0x1373(%rip), %rdi      # 0x5426
leaq 0x1082(%rip), %rsi      # 0x513c
leaq 0x13d1(%rip), %rcx      # 0x5492
movl $0x2d7, %edx            # imm = 0x2D7
callq 0x1080
// File: /workspace/github_cpp_makefile_star2_O3/lluchs[P]sparsearray/./sparsearray.h
// Function: UnorderedLinkedListSA<C4PXS, 10000ul>::Delete(C4PXS*)
void Delete(T *dataEl)
	{
		ListElement *el = reinterpret_cast<ListElement*>(dataEl);
		assert(el >= &array[0] && el < &array[N]);
		assert(el->used);
		el->used = false;

		ListElement *next = el->next;
		if (el == firstUsed)
			firstUsed = next;
		else
		{
			for (ListElement *prevEl = firstUsed; prevEl; prevEl = prevEl->next)
				if (prevEl->next == el)
				{
					prevEl->next = next;
					break;
				}
		}
		el->next = firstFree;
		firstFree = el;
	}

// Assembly:
pushq %rax
cmpq %rdi, %rsi
jb 0x437e
leaq 0x61a80(%rdi), %rax
cmpq %rsi, %rax
jbe 0x437e
cmpb $0x0, 0x20(%rsi)
je 0x439d
movb $0x0, 0x20(%rsi)
movq 0x18(%rsi), %rcx
movq (%rax), %rdx
cmpq %rsi, %rdx
je 0x4367
testq %rdx, %rdx
je 0x436a
movq %rdx, %rax
movq 0x18(%rdx), %rdx
cmpq %rsi, %rdx
jne 0x4352
addq $0x18, %rax
movq %rcx, (%rax)
movq 0x61a88(%rdi), %rax
movq %rax, 0x18(%rsi)
movq %rsi, 0x61a88(%rdi)
popq %rax
retq
leaq 0x103b(%rip), %rdi      # 0x53c0
leaq 0xdb0(%rip), %rsi       # 0x513c
leaq 0x1149(%rip), %rcx      # 0x54dc
movl $0x262, %edx            # imm = 0x262
callq 0x1080
leaq 0x1082(%rip), %rdi      # 0x5426
leaq 0xd91(%rip), %rsi       # 0x513c
leaq 0x112a(%rip), %rcx      # 0x54dc
movl $0x263, %edx            # imm = 0x263
callq 0x1080
// File: /workspace/github_cpp_makefile_star2_O3/MUST-Quick-Fry[P]Process-Scheduler/monitor.cpp
// Function: Project::Monitor::cmdSplit(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
char** Monitor::cmdSplit(std::string str)
{
    //string to char*
    std::vector<std::string> buf;
    std::string tmp;
    std::stringstream ss;
    ss<<str;
    
    while(ss>>tmp)
    {
        buf.push_back(tmp + "");
    }
     
    //char* to char**
    char** pList=new char*[buf.size()];
    for(int i=0; i!=buf.size();i++)
    {
        pList[i]=const_cast<char*>(buf[i].c_str());
    }
    //cout<<pList<<endl;

    //delete[] pList;
    return pList;
    
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rsi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
xorl %eax, %eax
movq %rax, -0x30(%rbp)
leaq -0x50(%rbp), %r15
movq %r15, -0x10(%r15)
movq %rax, -0x8(%r15)
movb $0x0, (%r15)
leaq -0x208(%rbp), %rdi
callq 0x21a0
leaq -0x1f8(%rbp), %rdi
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0x22a0
leaq -0x70(%rbp), %rbx
leaq -0x60(%rbp), %r14
leaq -0x80(%rbp), %r15
leaq 0xc989(%rip), %r12      # 0x1029b
leaq -0x40(%rbp), %r13
leaq -0x208(%rbp), %rdi
movq %r14, %rsi
callq 0x22e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3970
movq %rbx, -0x80(%rbp)
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x37e4
movq %r15, %rdi
movq %r12, %rsi
callq 0x2430
movq %r13, %rdi
movq %r15, %rsi
callq 0x477a
movq -0x80(%rbp), %rdi
cmpq %rbx, %rdi
je 0x3916
callq 0x2250
jmp 0x3916
movq -0x40(%rbp), %r14
movq -0x38(%rbp), %r12
movq %r12, %rax
subq %r14, %rax
movq %rax, %r15
sarq $0x5, %r15
movq %r15, %rcx
shrq $0x3d, %rcx
sarq $0x2, %rax
xorl %edi, %edi
negq %rcx
sbbq %rdi, %rdi
orq %rax, %rdi
callq 0x2030
movq %rax, %rbx
cmpq %r14, %r12
je 0x39bd
xorl %eax, %eax
movq (%r14), %rcx
movq %rcx, (%rbx,%rax,8)
incq %rax
addq $0x20, %r14
cmpq %rax, %r15
jne 0x39aa
movq 0x115ec(%rip), %rsi     # 0x14fb0
leaq -0x208(%rbp), %rdi
callq 0x21e0
leaq -0x188(%rbp), %rdi
callq 0x20c0
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x39ee
callq 0x2250
leaq -0x40(%rbp), %rdi
callq 0x4462
movq %rbx, %rax
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3a2c
jmp 0x3a2c
movq %rax, %r14
jmp 0x3a52
jmp 0x3a17
movq %rax, %r14
movq -0x80(%rbp), %rdi
cmpq %rbx, %rdi
je 0x3a2f
callq 0x2250
jmp 0x3a2f
jmp 0x3a2c
movq %rax, %r14
movq 0x1157a(%rip), %rsi     # 0x14fb0
leaq -0x208(%rbp), %rdi
callq 0x21e0
leaq -0x188(%rbp), %rdi
callq 0x20c0
leaq -0x50(%rbp), %r15
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x3a60
callq 0x2250
leaq -0x40(%rbp), %rdi
callq 0x4462
movq %r14, %rdi
callq 0x23e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/MUST-Quick-Fry[P]Process-Scheduler/./project.h
// Function: Project::sig_handler(int)
static void sig_handler(int sig){
        std::cout << std::endl;
        if(sig==SIGTSTP){ 
            std::cout << "\033[34;1mThe Job is suspended ...\033[0m" << std::endl;
            //std::cout << m[getpid()]<< std::endl;
            kill(m[getpid()], SIGTSTP);         
            signal(SIGTSTP, sig_handler);
        }
        else if(sig==SIGCONT){ 
            std::cout << "\033[32;1mThe Job resumes ... \033[0m" << std::endl;
            //std::cout <<m[getpid()] << std::endl;
            kill(m[getpid()], SIGCONT);
            signal(SIGCONT, sig_handler);
        }
        else if(sig==SIGTERM){
            std::cout << "\033[31;1mThe Job terminate ... \033[0m" << std::endl;
            //std::cout <<m[getpid()] << " child " <<std::endl;
            kill(m[getpid()], SIGKILL);
            //signal(SIGTERM, sig_handler);
        }
        
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edi, %r14d
movq 0x11180(%rip), %rbx     # 0x14fc8
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2260
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2190
cmpl $0xf, %r14d
je 0x3f66
cmpl $0x12, %r14d
je 0x3ef5
cmpl $0x14, %r14d
jne 0x3fc4
leaq 0xc2b2(%rip), %rsi      # 0x10142
movl $0x23, %edx
movq %rbx, %rdi
callq 0x22a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2260
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2190
callq 0x2340
leaq -0x1c(%rbp), %rsi
movl %eax, (%rsi)
leaq 0x1188a(%rip), %rdi     # 0x15760
callq 0x44ba
movl (%rax), %edi
movl $0x14, %esi
callq 0x2310
leaq -0xbb(%rip), %rsi       # 0x3e33
movl $0x14, %edi
jmp 0x3f5f
leaq 0xc26a(%rip), %rsi      # 0x10166
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x22a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2260
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2190
callq 0x2340
leaq -0x18(%rbp), %rsi
movl %eax, (%rsi)
leaq 0x1181e(%rip), %rdi     # 0x15760
callq 0x44ba
movl (%rax), %edi
movl $0x12, %esi
callq 0x2310
leaq -0x127(%rip), %rsi      # 0x3e33
movl $0x12, %edi
callq 0x22b0
jmp 0x3fc4
leaq 0xc219(%rip), %rsi      # 0x10186
movl $0x21, %edx
movq %rbx, %rdi
callq 0x22a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2260
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2190
callq 0x2340
leaq -0x14(%rbp), %rsi
movl %eax, (%rsi)
leaq 0x117ad(%rip), %rdi     # 0x15760
callq 0x44ba
movl (%rax), %edi
movl $0x9, %esi
callq 0x2310
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/MUST-Quick-Fry[P]Process-Scheduler/monitor.cpp
// Function: Project::Monitor::print_time()
void Monitor::print_time(){
    cout<<"Job Process "<<setw(6)<<get_pid()<<" : Time Elapsed: "<<get_timeElapsed()<<'\n';
    cout<<setfill(' ')<<setw(35)<<"User Time   : "<<get_userTime()<<'\n';
    cout<<setfill(' ')<<setw(35)<<"System Time : "<<get_systemTime()<<'\n';
    cout << "=================================================" << '\n';
    cout << '\n';
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x10f56(%rip), %rbx     # 0x14fc8
leaq 0xc08c(%rip), %rsi      # 0x10105
movl $0xc, %edx
movq %rbx, %rdi
callq 0x22a0
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq $0x6, 0x10(%rbx,%rax)
movl 0x8(%r14), %esi
movq %rbx, %rdi
callq 0x23d0
movq %rax, %r15
leaq 0xc066(%rip), %rsi      # 0x10112
movl $0x11, %edx
movq %rax, %rdi
callq 0x22a0
movsd 0x70(%r14), %xmm0
movq %r15, %rdi
callq 0x2380
leaq -0x19(%rbp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x22a0
movq (%rbx), %rax
movq -0x18(%rax), %rcx
leaq (%rbx,%rcx), %r15
cmpb $0x0, 0xe1(%rbx,%rcx)
jne 0x4108
movq %r15, %rdi
movl $0x20, %esi
callq 0x2260
movb $0x1, 0xe1(%r15)
movq (%rbx), %rax
movb $0x20, 0xe0(%r15)
movq -0x18(%rax), %rax
movq $0x23, 0x10(%rbx,%rax)
leaq 0xc000(%rip), %rsi      # 0x10124
movl $0xe, %edx
movq %rbx, %rdi
callq 0x22a0
movsd 0x60(%r14), %xmm0
movq %rbx, %rdi
callq 0x2380
leaq -0x1a(%rbp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x22a0
movq (%rbx), %rax
movq -0x18(%rax), %rcx
leaq (%rbx,%rcx), %r15
cmpb $0x0, 0xe1(%rbx,%rcx)
jne 0x4180
movq %r15, %rdi
movl $0x20, %esi
callq 0x2260
movb $0x1, 0xe1(%r15)
movq (%rbx), %rax
movb $0x20, 0xe0(%r15)
movq -0x18(%rax), %rax
movq $0x23, 0x10(%rbx,%rax)
leaq 0xbf97(%rip), %rsi      # 0x10133
movl $0xe, %edx
movq %rbx, %rdi
callq 0x22a0
movsd 0x68(%r14), %xmm0
movq %rbx, %rdi
callq 0x2380
movb $0xa, %r14b
leaq -0x1b(%rbp), %rsi
movb %r14b, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x22a0
leaq 0xc16d(%rip), %rsi      # 0x10342
movl $0x31, %edx
movq %rbx, %rdi
callq 0x22a0
leaq -0x1c(%rbp), %rsi
movb %r14b, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x22a0
leaq -0x1d(%rbp), %rsi
movb %r14b, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x22a0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/MUST-Quick-Fry[P]Process-Scheduler/scheduler.cpp
// Function: Project::Scheduler::normalizeCheck(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Scheduler::normalizeCheck(string cont)
{

    int arg_num = 0;

    for (int i = 0; i < cont.length(); ++i)
    {
        if (cont[i] == '\n')
        {

            if (cont[i - 1] == '\n')
            {
                if (cont[i - 2] == '\t')
                {
                    throw invalid_argument("Argument Error: Empty argument!");
                }
                continue;
            }

            if (cont[i - 1] == '\t')
            {
                throw invalid_argument("Argument Error: Empty argument!");
            }

            arg_num++;
            if (arg_num > 3)
            {
                throw invalid_argument("Argument Error: Job description file has redundant arguments!");
            }
            if (arg_num < 3)
            {
                throw invalid_argument("Argument Error: Job description file has less arguments!");
            }
            arg_num = 0;
        }
        if (cont[i] == '\t')
        {
            arg_num++;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0x4d3b
movq (%rsi), %rcx
xorl %edx, %edx
xorl %esi, %esi
movb (%rcx,%rdx), %dil
cmpb $0xa, %dil
jne 0x4d1c
movzbl -0x1(%rcx,%rdx), %r8d
cmpl $0xa, %r8d
je 0x4d2c
cmpl $0x9, %r8d
je 0x4d7c
cmpl $0x3, %esi
jge 0x4d5e
cmpl $0x2, %esi
movl $0x0, %esi
jne 0x4d40
xorl %r8d, %r8d
cmpb $0x9, %dil
sete %r8b
addl %r8d, %esi
jmp 0x4d33
cmpb $0x9, -0x2(%rcx,%rdx)
je 0x4d9a
incq %rdx
cmpq %rdx, %rax
jne 0x4cf1
popq %rbx
popq %r14
popq %rbp
retq
movl $0x10, %edi
callq 0x2130
movq %rax, %rbx
leaq 0xb50c(%rip), %rsi      # 0x10260
movq %rax, %rdi
callq 0x2420
jmp 0x4db6
movl $0x10, %edi
callq 0x2130
movq %rax, %rbx
leaq 0xb4b0(%rip), %rsi      # 0x10222
movq %rax, %rdi
callq 0x2420
jmp 0x4db6
movl $0x10, %edi
callq 0x2130
movq %rax, %rbx
leaq 0xb472(%rip), %rsi      # 0x10202
movq %rax, %rdi
callq 0x2420
jmp 0x4db6
movl $0x10, %edi
callq 0x2130
movq %rax, %rbx
leaq 0xb454(%rip), %rsi      # 0x10202
movq %rax, %rdi
callq 0x2420
movq 0x10223(%rip), %rsi     # 0x14fe0
movq 0x1020c(%rip), %rdx     # 0x14fd0
movq %rbx, %rdi
callq 0x23c0
jmp 0x4dd2
jmp 0x4dd2
jmp 0x4dd2
movq %rax, %r14
movq %rbx, %rdi
callq 0x21d0
movq %r14, %rdi
callq 0x23e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/MUST-Quick-Fry[P]Process-Scheduler/scheduler.cpp
// Function: Project::Scheduler::choosePolicy()
void Scheduler::choosePolicy()
{
    auto cho = policyMap.find(policyInfo);
    if (cho == policyMap.end())
    {
        throw invalid_argument("Invalid policy!");
        exit(-1);
    }
    switch (cho->second)
    {
    case Policy::FIFO:
        /* FIFO function interface*/
        driveFIFO();
        break;
    case Policy::NONPREEMSJF:
        /*non-preetive SJF function interface*/
        driveSJF1();
        break;
    case Policy::PREESJF:
        /*preetive SJF function interface*/
        driveSJF2();
        break;
    case Policy::RR:
        /*RR function interface*/
        driveRR();
        break;
    default:
        throw invalid_argument("Invalid policy!");
        break;
    }
    //cout << *this;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
addq $0x20, %rdi
movq %rbx, %rsi
callq 0xd65e
testq %rax, %rax
je 0x5170
movl 0x28(%rax), %eax
cmpq $0x3, %rax
ja 0x51a2
leaq 0xb08d(%rip), %rcx      # 0x101c4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x52f6
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x64c6
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x7256
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x5afe
movl $0x10, %edi
callq 0x2130
movq %rax, %rbx
leaq 0xb118(%rip), %rsi      # 0x1029c
movq %rax, %rdi
callq 0x2420
movq 0xfe4d(%rip), %rsi      # 0x14fe0
movq 0xfe36(%rip), %rdx      # 0x14fd0
movq %rbx, %rdi
callq 0x23c0
movl $0x10, %edi
callq 0x2130
movq %rax, %rbx
leaq 0xb0e6(%rip), %rsi      # 0x1029c
movq %rax, %rdi
callq 0x2420
jmp 0x518c
jmp 0x51c2
movq %rax, %r14
movq %rbx, %rdi
callq 0x21d0
movq %r14, %rdi
callq 0x23e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/MUST-Quick-Fry[P]Process-Scheduler/./project.h
// Function: Project::signal_nonpreem(int)
static void signal_nonpreem(int sig){
        
        //std::cout << wait_queue.size() <<std::endl;
        
        if(scheduler.empty() && wait_queue.empty()){stop_flag = true;}
            
        kill(monitor_map[this_job.ID], SIGTERM);  
        
        if(!wait_queue.empty()){
            auto tmp = wait_queue.front();
            wait_queue.pop();

            kill(monitor_map[tmp.ID], SIGCONT);   
            this_job = tmp;

            signal(SIGALRM, signal_nonpreem);
            alarm(tmp.get_dur_time());
        }
        else{allow_preem = true; }

    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq 0xdb62(%rip), %rax      # 0x15878
cmpq 0xdb3b(%rip), %rax      # 0x15858
jne 0x7d36
movq 0xdba2(%rip), %rax      # 0x158c8
cmpq 0xdb7b(%rip), %rax      # 0x158a8
jne 0x7d36
movb $0x1, 0xdc72(%rip)      # 0x159a8
leaq 0xdc33(%rip), %rdi      # 0x15970
leaq 0xdac0(%rip), %rsi      # 0x15804
callq 0xcd2a
movl (%rax), %edi
movl $0xf, %esi
callq 0x2310
movq 0xdb4c(%rip), %r15      # 0x158a8
cmpq %r15, 0xdb65(%rip)      # 0x158c8
je 0x7e42
leaq -0x60(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x37e4
movq 0x4e(%r15), %rax
movq %rax, 0x4e(%rbx)
movups 0x20(%r15), %xmm0
movups 0x30(%r15), %xmm1
movups 0x40(%r15), %xmm2
movups %xmm2, 0x40(%rbx)
movups %xmm1, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
leaq 0xdae7(%rip), %rdi      # 0x15898
callq 0xcdea
leaq -0x44(%rbp), %rsi
leaq 0xdbaf(%rip), %rdi      # 0x15970
callq 0xcd2a
movl (%rax), %edi
movl $0x12, %esi
callq 0x2310
leaq 0xd9ff(%rip), %rdi      # 0x157d8
leaq -0x70(%rbp), %rsi
callq 0x2150
leaq -0x50(%rbp), %rax
movq 0x2e(%rax), %rcx
movq %rcx, 0xda35(%rip)      # 0x15826
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups %xmm2, 0xda15(%rip)     # 0x15818
movups %xmm1, 0xd9fe(%rip)     # 0x15808
movups %xmm0, 0xd9e7(%rip)     # 0x157f8
leaq -0x116(%rip), %rsi      # 0x7d02
movl $0xe, %edi
callq 0x22b0
leaq -0x70(%rbp), %rdi
callq 0x3762
movl %eax, %edi
callq 0x2410
movq -0x70(%rbp), %rdi
cmpq %r14, %rdi
je 0x7e49
callq 0x2250
jmp 0x7e49
movb $0x0, 0xdb60(%rip)      # 0x159a9
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x70(%rbp), %rdi
cmpq %r14, %rdi
je 0x7e65
callq 0x2250
movq %rbx, %rdi
callq 0x23e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/MUST-Quick-Fry[P]Process-Scheduler/./project.h
// Function: Project::signal_RR(int)
static void signal_RR(int sig){
        
        if(scheduler.empty() && wait_queue.empty()){stop_flag = true;}
        
        if(this_job.service_time_left <= QUANT){
            kill(monitor_map[this_job.ID], SIGTERM);  
        }
        else{
            kill(monitor_map[this_job.ID], SIGTSTP);
        }
    
        if(!wait_queue.empty()){
            auto tmp = wait_queue.front();
            wait_queue.pop();

            kill(monitor_map[tmp.ID], SIGCONT);   
            this_job = tmp;

            signal(SIGALRM, signal_RR);
            alarm(tmp.get_dur_time());
        }
        else{allow_preem = true; }

    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq 0xd492(%rip), %rax      # 0x15878
cmpq 0xd46b(%rip), %rax      # 0x15858
jne 0x8406
movq 0xd4d2(%rip), %rax      # 0x158c8
cmpq 0xd4ab(%rip), %rax      # 0x158a8
jne 0x8406
movb $0x1, 0xd5a2(%rip)      # 0x159a8
xorl %ebx, %ebx
cmpl $0x3, 0xd3f9(%rip)      # 0x15808
setge %bl
leaq 0xd557(%rip), %rdi      # 0x15970
leaq 0xd3e4(%rip), %rsi      # 0x15804
callq 0xcd2a
movl (%rax), %edi
leal (%rbx,%rbx,4), %esi
addl $0xf, %esi
callq 0x2310
movq 0xd46f(%rip), %r15      # 0x158a8
cmpq %r15, 0xd488(%rip)      # 0x158c8
je 0x851f
leaq -0x60(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x37e4
movq 0x4e(%r15), %rax
movq %rax, 0x4e(%rbx)
movups 0x20(%r15), %xmm0
movups 0x30(%r15), %xmm1
movups 0x40(%r15), %xmm2
movups %xmm2, 0x40(%rbx)
movups %xmm1, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
leaq 0xd40a(%rip), %rdi      # 0x15898
callq 0xcdea
leaq -0x44(%rbp), %rsi
leaq 0xd4d2(%rip), %rdi      # 0x15970
callq 0xcd2a
movl (%rax), %edi
movl $0x12, %esi
callq 0x2310
leaq 0xd322(%rip), %rdi      # 0x157d8
leaq -0x70(%rbp), %rsi
callq 0x2150
leaq -0x50(%rbp), %rax
movq 0x2e(%rax), %rcx
movq %rcx, 0xd358(%rip)      # 0x15826
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups %xmm2, 0xd338(%rip)     # 0x15818
movups %xmm1, 0xd321(%rip)     # 0x15808
movups %xmm0, 0xd30a(%rip)     # 0x157f8
leaq -0x123(%rip), %rsi      # 0x83d2
movl $0xe, %edi
callq 0x22b0
leaq -0x70(%rbp), %rdi
callq 0x3762
movl %eax, %edi
callq 0x2410
movq -0x70(%rbp), %rdi
cmpq %r14, %rdi
je 0x8526
callq 0x2250
jmp 0x8526
movb $0x0, 0xd483(%rip)      # 0x159a9
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x70(%rbp), %rdi
cmpq %r14, %rdi
je 0x8542
callq 0x2250
movq %rbx, %rdi
callq 0x23e0
// File: /workspace/github_cpp_makefile_star2_O3/MUST-Quick-Fry[P]Process-Scheduler/./project.h
// Function: Project::signal_preemSJF(int)
static void signal_preemSJF(int sig){
        
        if(scheduler.empty() && wait_queue.empty()){stop_flag = true;}
        
        if(this_job.service_time_left == 2){
            kill(monitor_map[this_job.ID], SIGTERM);  
        }
        else{
            kill(monitor_map[this_job.ID], SIGTSTP);
        }
    
        if(!wait_queue.empty()){
            auto tmp = wait_queue.front();
            wait_queue.pop();

            kill(monitor_map[tmp.ID], SIGCONT);   
            this_job = tmp;

            signal(SIGALRM, signal_preemSJF);
            alarm(tmp.get_dur_time());
        }
        else{allow_preem = true; }

    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq 0xd31a(%rip), %rax      # 0x15878
cmpq 0xd2f3(%rip), %rax      # 0x15858
jne 0x857e
movq 0xd35a(%rip), %rax      # 0x158c8
cmpq 0xd333(%rip), %rax      # 0x158a8
jne 0x857e
movb $0x1, 0xd42a(%rip)      # 0x159a8
xorl %ebx, %ebx
cmpl $0x2, 0xd281(%rip)      # 0x15808
setne %bl
leaq 0xd3df(%rip), %rdi      # 0x15970
leaq 0xd26c(%rip), %rsi      # 0x15804
callq 0xcd2a
movl (%rax), %edi
leal (%rbx,%rbx,4), %esi
addl $0xf, %esi
callq 0x2310
movq 0xd2f7(%rip), %r15      # 0x158a8
cmpq %r15, 0xd310(%rip)      # 0x158c8
je 0x8697
leaq -0x60(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x37e4
movq 0x4e(%r15), %rax
movq %rax, 0x4e(%rbx)
movups 0x20(%r15), %xmm0
movups 0x30(%r15), %xmm1
movups 0x40(%r15), %xmm2
movups %xmm2, 0x40(%rbx)
movups %xmm1, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
leaq 0xd292(%rip), %rdi      # 0x15898
callq 0xcdea
leaq -0x44(%rbp), %rsi
leaq 0xd35a(%rip), %rdi      # 0x15970
callq 0xcd2a
movl (%rax), %edi
movl $0x12, %esi
callq 0x2310
leaq 0xd1aa(%rip), %rdi      # 0x157d8
leaq -0x70(%rbp), %rsi
callq 0x2150
leaq -0x50(%rbp), %rax
movq 0x2e(%rax), %rcx
movq %rcx, 0xd1e0(%rip)      # 0x15826
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups %xmm2, 0xd1c0(%rip)     # 0x15818
movups %xmm1, 0xd1a9(%rip)     # 0x15808
movups %xmm0, 0xd192(%rip)     # 0x157f8
leaq -0x123(%rip), %rsi      # 0x854a
movl $0xe, %edi
callq 0x22b0
leaq -0x70(%rbp), %rdi
callq 0x3762
movl %eax, %edi
callq 0x2410
movq -0x70(%rbp), %rdi
cmpq %r14, %rdi
je 0x869e
callq 0x2250
jmp 0x869e
movb $0x0, 0xd30b(%rip)      # 0x159a9
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x70(%rbp), %rdi
cmpq %r14, %rdi
je 0x86ba
callq 0x2250
movq %rbx, %rdi
callq 0x23e0
// File: /workspace/github_cpp_makefile_star2_O3/MUST-Quick-Fry[P]Process-Scheduler/scheduler_main.cpp
// Function: main
int main(int argc, char * argv[]){
    if(argc!=3){
        throw invalid_argument("The number of arguments of Scheduler is nonstandard!");
    }
    Scheduler sc(argv[1],argv[2]);   
    //cout<<sc; 
    //sc.Display();
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x80, %rsp
cmpl $0x3, %edi
jne 0xefa3
movq 0x8(%rsi), %rax
movq 0x10(%rsi), %rdx
leaq -0x88(%rbp), %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4a02
movq %rbx, %rdi
callq 0xefe8
xorl %eax, %eax
addq $0x80, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x10, %edi
callq 0x2130
movq %rax, %rbx
leaq 0x1448(%rip), %rsi      # 0x103ff
movq %rax, %rdi
callq 0x2420
movq 0x601a(%rip), %rsi      # 0x14fe0
movq 0x6003(%rip), %rdx      # 0x14fd0
movq %rbx, %rdi
callq 0x23c0
movq %rax, %r14
movq %rbx, %rdi
callq 0x21d0
movq %r14, %rdi
callq 0x23e0
// File: /workspace/github_cpp_makefile_star2_O3/blak3mill3r[P]mouser/src/mouser.cpp
// Function: Mouser::Mouser()
Mouser::Mouser() : _d(XOpenDisplay(NULL)), _x_fd(ConnectionNumber(_d)) {
  if (_d == NULL) {
    fprintf(stderr, "Cannot open display\n");
    exit(1);
  }
  // TODO(Blake): test whether AutoRepeat is on in the first place; restore its value afterwards
  XAutoRepeatOff(_d);
  XGrabKeyboard(_d, DefaultRootWindow(_d), False, GrabModeAsync, GrabModeAsync, CurrentTime);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x66db(%rip), %rax      # 0xacd8
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movl $0x1, %eax
movl %eax, 0x14(%rdi)
leaq 0x18(%rdi), %rcx
movq %rcx, 0x18(%rdi)
movq %rcx, 0x20(%rdi)
movl %eax, 0x28(%rdi)
leaq 0x30(%rdi), %rax
movq %rax, 0x30(%rdi)
movq %rax, 0x38(%rdi)
leaq 0x80(%rdi), %r14
movl $0x4, %esi
movq %r14, %rdi
callq 0x4f50
leaq 0xd0(%rbx), %r15
movl $0x8, %esi
movq %r15, %rdi
callq 0x50bc
xorl %edi, %edi
callq 0x32b0
movq %rax, 0x120(%rbx)
movl 0x10(%rax), %ecx
movl %ecx, 0x128(%rbx)
movb $0x1, 0x12c(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x130(%rbx)
movq $0x0, 0x140(%rbx)
movabsq $0x3f7eb85240333333, %rcx # imm = 0x3F7EB85240333333
movq %rcx, 0x148(%rbx)
movl $0x3f19999a, 0x150(%rbx) # imm = 0x3F19999A
movb $0x0, 0x154(%rbx)
movq %rax, %rdi
callq 0x30c0
movq 0x120(%rbx), %rdi
movq 0xe8(%rdi), %rax
movslq 0xe0(%rdi), %rcx
shlq $0x7, %rcx
movq 0x10(%rax,%rcx), %rsi
xorl %edx, %edx
movl $0x1, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x3250
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
jmp 0x4705
movq %rax, %r12
jmp 0x470d
movq %rax, %r12
movq %r15, %rdi
callq 0x5260
movq %r14, %rdi
callq 0x530c
addq $0x8, %rbx
movq %rbx, %rdi
callq 0x5372
movq %r12, %rdi
callq 0x3370
nop
// File: /workspace/github_cpp_makefile_star2_O3/blak3mill3r[P]mouser/src/mouser.cpp
// Function: Mouser::~Mouser()
Mouser::~Mouser() {
  XUngrabKeyboard(_d, CurrentTime);
  // TODO(Blake): test whether AutoRepeat is on in the first place; restore its value afterwards
  XAutoRepeatOn(_d);
  XCloseDisplay(_d);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x65a6(%rip), %rax      # 0xacd8
movq %rax, (%rdi)
movq 0x120(%rdi), %rdi
xorl %esi, %esi
callq 0x3270
movq 0x120(%rbx), %rdi
callq 0x32f0
movq 0x120(%rbx), %rdi
callq 0x33b0
leaq 0xd0(%rbx), %rdi
callq 0x5260
leaq 0x80(%rbx), %rdi
callq 0x530c
addq $0x8, %rbx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x5372
movq %rax, %rdi
callq 0x44c8
nop
// File: /workspace/github_cpp_makefile_star2_O3/blak3mill3r[P]mouser/src/mouser.cpp
// Function: Mouser::run()
void Mouser::run() {
  struct timeval tv;
  XEvent ev;
  fd_set in_fds;
  while( _running ) {
    // Create a File Description Set containing x_fd
    FD_ZERO(&in_fds);
    FD_SET(_x_fd, &in_fds);

    // eight milliseconds
    tv.tv_usec = 1000 * 8;
    tv.tv_sec = 0;

    // Wait for X Event or the timeout
    int num_ready_fds = select(_x_fd + 1, &in_fds, NULL, NULL, &tv);
    if (num_ready_fds == 0)
      boost::this_fiber::yield();
    else if (num_ready_fds > 0)
      // Put XEvents onto the channel
      while(XPending(_d)) {
        XNextEvent(_d, &ev);
        _xevent_channel.push(ev);
      }
    else {
      printf("Fatal: select() returned %d\n", num_ready_fds);
      exit(1);
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
cmpb $0x1, 0x12c(%rdi)
jne 0x48b4
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
leaq -0xc0(%rbp), %r15
leaq -0x38(%rbp), %r12
leaq -0x180(%rbp), %r13
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movaps %xmm0, -0x60(%rbp)
movaps %xmm0, -0x70(%rbp)
movaps %xmm0, -0x80(%rbp)
movaps %xmm0, -0x90(%rbp)
movaps %xmm0, -0xa0(%rbp)
movaps %xmm0, -0xb0(%rbp)
movaps %xmm0, -0xc0(%rbp)
movl 0x128(%rbx), %edi
leal 0x3f(%rdi), %eax
testl %edi, %edi
cmovnsl %edi, %eax
movl %eax, %edx
andl $-0x40, %edx
movl %edi, %ecx
subl %edx, %ecx
movl $0x1, %edx
shlq %cl, %rdx
sarl $0x6, %eax
cltq
orq %rdx, -0xc0(%rbp,%rax,8)
movq $0x1f40, -0x30(%rbp)    # imm = 0x1F40
movq $0x0, -0x38(%rbp)
incl %edi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r12, %r8
callq 0x31c0
testl %eax, %eax
je 0x489a
jg 0x4888
jmp 0x48c6
movq 0x120(%rbx), %rdi
movq %r13, %rsi
callq 0x32d0
movq %r14, %rdi
movq %r13, %rsi
callq 0x33f0
movq 0x120(%rbx), %rdi
callq 0x3180
testl %eax, %eax
jne 0x486e
jmp 0x48a7
callq 0x3330
movq %rax, %rdi
callq 0x33d0
cmpb $0x0, 0x12c(%rbx)
jne 0x47ea
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3d8f(%rip), %rdi      # 0x865c
movl %eax, %esi
xorl %eax, %eax
callq 0x3040
movl $0x1, %edi
callq 0x3240
// File: /workspace/github_cpp_makefile_star2_O3/blak3mill3r[P]mouser/src/mouser.cpp
// Function: Mouser::stop()
void Mouser::stop() {
  _running = false;
  _keyboard_action_channel.close();
  _xtest_action_channel.close();
  _xevent_channel.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movb $0x0, 0x12c(%rdi)
addq $0x80, %rdi
callq 0x5a18
leaq 0xd0(%rbx), %rdi
callq 0x5b4c
addq $0x8, %rbx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x5c80
// File: /workspace/github_cpp_makefile_star2_O3/blak3mill3r[P]mouser/src/mouser.cpp
// Function: Mouser::key_handler()
void Mouser::key_handler() {
  KeyboardAction action;
  while (_running && channel_op_status::success == _keyboard_action_channel.pop(action)) {
    switch(action.control_key){
    case k_left:  fx += (action.on_off ? -FORCE : +FORCE); break;
    case k_right: fx += (action.on_off ? +FORCE : -FORCE); break;
    case k_up:    fy += (action.on_off ? -FORCE : +FORCE); break;
    case k_down:  fy += (action.on_off ? +FORCE : -FORCE); break;
    case k_brakes: brakes = action.on_off; break;
    default: break;
    }
  }
}

// Assembly:
cmpb $0x1, 0x12c(%rdi)
jne 0x4cd2
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x80(%rdi), %r14
leaq -0x28(%rbp), %r15
leaq 0x3897(%rip), %r12      # 0x84b0
movq %r14, %rdi
movq %r15, %rsi
callq 0x58a0
testl %eax, %eax
jne 0x4cc6
movl -0x28(%rbp), %eax
cmpq $0x7, %rax
ja 0x4cb9
movslq (%r12,%rax,4), %rax
addq %r12, %rax
jmpq *%rax
movss 0x148(%rbx), %xmm0
cmpb $0x0, -0x24(%rbp)
je 0x4c57
xorps 0x3839(%rip), %xmm0     # 0x8490
addss 0x134(%rbx), %xmm0
movss %xmm0, 0x134(%rbx)
jmp 0x4cb9
movss 0x148(%rbx), %xmm0
cmpb $0x0, -0x24(%rbp)
je 0x4c7e
xorps 0x3812(%rip), %xmm0     # 0x8490
addss 0x130(%rbx), %xmm0
movss %xmm0, 0x130(%rbx)
jmp 0x4cb9
movss 0x148(%rbx), %xmm0
cmpb $0x0, -0x24(%rbp)
je 0x4c50
jmp 0x4c57
movss 0x148(%rbx), %xmm0
cmpb $0x0, -0x24(%rbp)
je 0x4c77
jmp 0x4c7e
movb -0x24(%rbp), %al
movb %al, 0x154(%rbx)
cmpb $0x0, 0x12c(%rbx)
jne 0x4c19
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/blak3mill3r[P]mouser/src/mouser.cpp
// Function: Mouser::physics_handler()
void Mouser::physics_handler() {
  while (_running) {
    vx += fx;
    vy += fy;
    vx *= (brakes ? FRICTION_BRAKES : FRICTION);
    vy *= (brakes ? FRICTION_BRAKES : FRICTION);
    deltax += vx;
    deltay += vy;
    int mx=0, my=0;
    if(abs(deltax) >= 1.0) mx = int(deltax);
    if(abs(deltay) >= 1.0) my = int(deltay);
    if(mx != 0) deltax -= mx;
    if(my != 0) deltay -= my;
    if(mx != 0 || my != 0) _xtest_action_channel.push(make_pair(mx,my));

    boost::this_fiber::sleep_for(std::chrono::milliseconds(8));
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
cmpb $0x1, 0x12c(%rdi)
jne 0x4e1f
movq %rdi, %rbx
leaq 0xd0(%rdi), %r14
movaps 0x37a1(%rip), %xmm3     # 0x84a0
movss 0x37d1(%rip), %xmm4     # 0x84d8
leaq -0x28(%rbp), %r15
movss 0x130(%rbx), %xmm1
movss 0x134(%rbx), %xmm0
addss 0x138(%rbx), %xmm1
addss 0x13c(%rbx), %xmm0
movzbl 0x154(%rbx), %eax
movss 0x14c(%rbx,%rax,4), %xmm2
mulss %xmm2, %xmm1
movss %xmm1, 0x138(%rbx)
mulss %xmm2, %xmm0
movss %xmm0, 0x13c(%rbx)
addss 0x140(%rbx), %xmm1
movss %xmm1, 0x140(%rbx)
addss 0x144(%rbx), %xmm0
movss %xmm0, 0x144(%rbx)
movaps %xmm1, %xmm2
andps %xmm3, %xmm2
xorl %eax, %eax
ucomiss %xmm4, %xmm2
movl $0x0, %ecx
jb 0x4d89
cvttss2si %xmm1, %ecx
movaps %xmm0, %xmm2
andps %xmm3, %xmm2
ucomiss %xmm4, %xmm2
jb 0x4d98
cvttss2si %xmm0, %eax
testl %ecx, %ecx
je 0x4db5
xorps %xmm2, %xmm2
cvtsi2ss %ecx, %xmm2
subss %xmm2, %xmm1
movss %xmm1, 0x140(%rbx)
testl %eax, %eax
jne 0x4db9
jmp 0x4dcc
testl %eax, %eax
je 0x4df3
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x144(%rbx)
shlq $0x20, %rax
movl %ecx, %ecx
orq %rax, %rcx
movq %rcx, -0x20(%rbp)
movl $0x0, -0x28(%rbp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x5596
movq %r15, %rdi
callq 0x6758
movq $0x8, -0x28(%rbp)
movq %r15, %rdi
callq 0x5dfb
cmpb $0x0, 0x12c(%rbx)
movaps 0x368f(%rip), %xmm3     # 0x84a0
movss 0x36bf(%rip), %xmm4     # 0x84d8
jne 0x4d0b
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x6758
movq %rbx, %rdi
callq 0x3370
// File: /workspace/github_cpp_makefile_star2_O3/silverneko[P]Lambda-calculus-interpreter/src/main.cpp
// Function: Context::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
Object& Context::operator [] (const string& str) const {
  if(_env.exist(str)){
    return *_env[str];
  }else{
    cerr << "[Context lookup] Unexpected free variable: " << str << endl;
    exit(1);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
movq (%rdi), %r15
movq (%rsi), %rbx
movq 0x8(%rsi), %r14
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x46a0
testb %al, %al
je 0x467f
testq %r14, %r14
je 0x4643
xorl %r8d, %r8d
movsbq (%rbx,%r8), %rcx
movq (%r15), %rdi
movq 0x8(%r15), %r9
movq %rcx, %rax
xorl %edx, %edx
divq %r9
movq (%rdi,%rdx,8), %rax
testq %rax, %rax
je 0x465a
movq %rdx, %rsi
movq (%rax), %r10
cmpb %cl, 0x8(%r10)
je 0x4637
movq (%r10), %r10
testq %r10, %r10
je 0x465a
movsbq 0x8(%r10), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r9
cmpq %rsi, %rdx
jne 0x465a
cmpb %cl, %dil
jne 0x4618
movq 0x10(%r10), %r15
incq %r8
cmpq %r14, %r8
jne 0x45ef
cmpb $0x0, 0x38(%r15)
je 0x465a
movq 0x40(%r15), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x1098f(%rip), %rdi     # 0x14ff0
leaq 0xaf40(%rip), %rsi      # 0xf5a8
callq 0x31b0
movq %rax, %rdi
callq 0x30d0
movl $0x1, %edi
callq 0x3200
movq 0x1096a(%rip), %rdi     # 0x14ff0
leaq 0xacd7(%rip), %rsi      # 0xf364
callq 0x31b0
movq %rax, %rdi
movq %r12, %rsi
callq 0x3180
jmp 0x466d
nop
// File: /workspace/github_cpp_makefile_star2_O3/silverneko[P]Lambda-calculus-interpreter/src/Dictionary.hpp
// Function: (anonymous namespace)::Dictionary<std::shared_ptr<Object>>::exist(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
bool exist(const string& str, int i = 0) const {
      if(i == str.size()){
        return endHere;
      }
      char c = str[i];
      auto branch = branches.find(c);
      if(branch != branches.end()){
        return branch->second->exist(str, i+1);
      }else{
        return false;
      }
    }

// Assembly:
pushq %r14
pushq %rbx
testq %rdx, %rdx
je 0x4708
movq %rdx, %rcx
xorl %r11d, %r11d
movsbq (%rsi,%r11), %r10
movq (%rdi), %r14
movq 0x8(%rdi), %rbx
xorl %r8d, %r8d
movq %r10, %rax
xorl %edx, %edx
divq %rbx
movq (%r14,%rdx,8), %rax
testq %rax, %rax
je 0x4711
movq %rdx, %r9
movq (%rax), %r14
cmpb %r10b, 0x8(%r14)
je 0x46fc
movq (%r14), %r14
testq %r14, %r14
je 0x470e
movsbq 0x8(%r14), %rdi
xorl %r8d, %r8d
movq %rdi, %rax
xorl %edx, %edx
divq %rbx
cmpq %r9, %rdx
jne 0x4711
cmpb %r10b, %dil
jne 0x46da
movq 0x10(%r14), %rdi
incq %r11
cmpq %rcx, %r11
jne 0x46ae
movb 0x38(%rdi), %r8b
jmp 0x4711
xorl %r8d, %r8d
movl %r8d, %eax
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/silverneko[P]Lambda-calculus-interpreter/src/main.cpp
// Function: Object::call(Expression const&, Context const&) const
Object Object::call(const Expression& expr, const Context& env) const {
  if(type() == Primitive){
    /* TODO */
    return _func(expr, env);
  }else{
    if(_expr.isLam()){
      return Object(*_expr.body, _env.insert(_expr.name, Object(expr, env)));
    }else{
      cerr << "[Object call] Object not callable (not a `Lambda`): " << _expr.type << endl;
      exit(1);
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0x0, (%rsi)
je 0x47f6
cmpl $0x3, 0x8(%r14)
jne 0x481c
movq 0x30(%r14), %r15
leaq 0x40(%r14), %r12
addq $0x10, %r14
leaq 0x10(%rsp), %r13
movq %r13, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x99ea
movq %rsp, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0x43b0
movq %rsp, %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x99ea
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x47b1
callq 0x9e7a
movq 0x70(%rsp), %rax
testq %rax, %rax
je 0x47ca
leaq 0x60(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x47d9
callq 0x9e7a
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4808
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x31d0
jmp 0x4808
cmpq $0x0, 0x60(%r14)
je 0x484d
leaq 0x50(%r14), %rsi
movq %rbx, %rdi
callq *0x68(%r14)
movq %rbx, %rax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x107cd(%rip), %rdi     # 0x14ff0
leaq 0xab66(%rip), %rsi      # 0xf390
callq 0x31b0
movl 0x8(%r14), %esi
movq %rax, %rdi
callq 0x32c0
movq %rax, %rdi
callq 0x30d0
movl $0x1, %edi
callq 0x3200
callq 0x30b0
movq %rax, %rdi
callq 0x9c1b
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x4871
callq 0x9e7a
jmp 0x4871
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x9a64
movq %rbx, %rdi
callq 0x32d0