LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/cooljacket[P]Dormitory-distribution/CSVReader/CSVMapContainer.cpp
// Function: CSVMapContainer::addToRowDone()
void CSVMapContainer::addToRowDone() {
	if (m_indexOfKeyRow >= m_row.size())
		throw logic_error("The key's index is large than the size of row.");
	if (m_table.find(m_row[m_indexOfKeyRow]) != m_table.end())
		throw logic_error("The key is duplicate.");
	m_table[m_row[m_indexOfKeyRow]] = m_row;
	m_row.clear();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x50(%rdi), %rax
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rcx
subq %rsi, %rcx
sarq $0x5, %rcx
cmpq %rcx, %rax
jae 0x8102
movq %rdi, %rbx
leaq 0x20(%rdi), %r14
shlq $0x5, %rax
addq %rax, %rsi
movq %r14, %rdi
callq 0x83f2
leaq 0x28(%rbx), %rcx
cmpq %rcx, %rax
jne 0x811e
leaq 0x8(%rbx), %r15
movq 0x50(%rbx), %rsi
shlq $0x5, %rsi
addq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x82b4
movq %rax, %rdi
movq %r15, %rsi
callq 0x831e
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x7b6e
pushq $0x10
popq %rdi
callq 0x2100
movq %rax, %rbx
leaq 0x1529(%rip), %rsi      # 0x963d
movq %rax, %rdi
callq 0x22c0
jmp 0x8138
pushq $0x10
popq %rdi
callq 0x2100
movq %rax, %rbx
leaq 0x153c(%rip), %rsi      # 0x966c
movq %rax, %rdi
callq 0x22c0
movq 0x6ea1(%rip), %rsi      # 0xefe0
movq 0x6e82(%rip), %rdx      # 0xefc8
movq %rbx, %rdi
callq 0x2330
jmp 0x8150
movq %rax, %r14
movq %rbx, %rdi
callq 0x2170
movq %r14, %rdi
callq 0x2350
nop
// File: /workspace/github_cpp_makefile_star2_O2/cooljacket[P]Dormitory-distribution/CSVReader/CSVMapContainer.cpp
// Function: CSVMapContainer::display() const
void CSVMapContainer::display() const {
	map<string, vector<string> >::const_iterator it = m_table.begin();
	while (it != m_table.end()) {
		const vector<string>& row = it->second;
		for (int i = 0; i < row.size(); ++i)
			cout << row[i] << '\t';
		cout << endl;
		++it;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x38(%rdi), %r14
addq $0x28, %rdi
movq %rdi, -0x30(%rbp)
movq 0x6e4b(%rip), %r15      # 0xefd0
pushq $0x9
popq %r12
cmpq -0x30(%rbp), %r14
je 0x81dc
xorl %r13d, %r13d
xorl %ebx, %ebx
movq 0x40(%r14), %rsi
movq 0x48(%r14), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rbx, %rax
jbe 0x81c7
addq %r13, %rsi
movq %r15, %rdi
callq 0x21d0
movq %rax, %rdi
movl %r12d, %esi
callq 0x2250
incq %rbx
addq $0x20, %r13
jmp 0x8194
movq %r15, %rdi
callq 0x20f0
movq %r14, %rdi
callq 0x2240
movq %rax, %r14
jmp 0x8189
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/cooljacket[P]Dormitory-distribution/CSVReader/CSVMapContainer.cpp
// Function: CSVMapContainer::getColData(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&, unsigned long) const
void CSVMapContainer::getColData(map<string, string>& data, size_t indexOfCol) const {
	map<string, vector<string> >::const_iterator it = m_table.begin();
	while (it != m_table.end()) {
		const vector<string>& row = it->second;
		if (indexOfCol >= row.size())
			throw logic_error("The index of column is large than the row's size.");
		data[it->first] = row[indexOfCol];
		++it;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, -0x30(%rbp)
movq %rdi, %r15
movq 0x38(%rdi), %r12
addq $0x28, %r15
movq %rdx, %rbx
shlq $0x5, %rbx
cmpq %r15, %r12
je 0x8261
movq 0x40(%r12), %r13
movq 0x48(%r12), %rax
subq %r13, %rax
sarq $0x5, %rax
cmpq %r14, %rax
jbe 0x8270
leaq 0x20(%r12), %rsi
addq %rbx, %r13
movq -0x30(%rbp), %rdi
callq 0x6dee
movq %rax, %rdi
movq %r13, %rsi
callq 0x2120
movq %r12, %rdi
callq 0x2240
movq %rax, %r12
jmp 0x821d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x2100
movq %rax, %rbx
leaq 0x135e(%rip), %rsi      # 0x95e0
movq %rax, %rdi
callq 0x22c0
movq 0x6d4f(%rip), %rsi      # 0xefe0
movq 0x6d30(%rip), %rdx      # 0xefc8
movq %rbx, %rdi
callq 0x2330
movq %rax, %r14
movq %rbx, %rdi
callq 0x2170
movq %r14, %rdi
callq 0x2350
nop
// File: /workspace/github_cpp_makefile_star2_O2/sopanpatra160[P]OOO_Superscalar_Processor_Simulator/cache.cc
// Function: cache::lru_update(unsigned int, unsigned int)
void cache::lru_update(unsigned int ind, unsigned int blk){
	unsigned int tmp;
	tmp=lru_store[ind][blk];
	for (unsigned int j=0; j<a; j++){
		if(lru_store[ind][j]<tmp)
			lru_store[ind][j]++;
	}
	lru_store[ind][blk]=0;

}

// Assembly:
movq 0x40(%rdi), %rax
movl %esi, %ecx
movq (%rax,%rcx,8), %rax
movl %edx, %ecx
movl (%rax,%rcx,4), %edx
xorl %esi, %esi
movl 0x18(%rdi), %r8d
cmpq %r8, %rsi
jae 0x1b7f
movl (%rax,%rsi,4), %r8d
cmpl %edx, %r8d
jae 0x1b7a
incl %r8d
movl %r8d, (%rax,%rsi,4)
incq %rsi
jmp 0x1b61
andl $0x0, (%rax,%rcx,4)
retq
// File: /workspace/github_cpp_makefile_star2_O2/sopanpatra160[P]OOO_Superscalar_Processor_Simulator/cache.cc
// Function: cache::swap(unsigned int, unsigned int)
unsigned int cache::swap(unsigned int found_loc,unsigned int writeorread){
	//LRU policy
	if(rp==2){
		ev_blk= lru_block2evict(ind);
	}
	//LFU policy
	else if(rp==3){
		ev_blk= lfu_block2evict(ind);
	}
	
	unsigned int temp_tag = tag_store[ind][ev_blk];
	unsigned int temp_dirty = dirty_store[ind][ev_blk];
	unsigned int reconstr_addr_to_vc = ev_blk_addr(ind,temp_tag);	
	unsigned int reconstr_tag_to_vc = vptr->calc_tag(reconstr_addr_to_vc);

	tag_store[ind][ev_blk] = tag;
	if(writeorread)
		dirty_store[ind][ev_blk] = 1; 
	else
		dirty_store[ind][ev_blk] = vptr->dirty_store[0][found_loc];
	vptr->tag_store[0][found_loc] = reconstr_tag_to_vc;
	vptr->dirty_store[0][found_loc] = temp_dirty;
	//Update Victim Cache counters
	if(vptr->rp==2)
		vptr->lru_update(0,found_loc);
	//Update L1 Cache counters
	if(rp==2)
		lru_update(ind,ev_blk);
	else if(rp==3){
		lfu_update_set(ind,ev_blk);
		lfu_update_block(ind,ev_blk,0);
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %rbx
movl 0x1c(%rdi), %eax
movl 0x68(%rdi), %r15d
cmpl $0x2, %eax
je 0x1bf1
cmpl $0x3, %eax
jne 0x1c01
movq %rbx, %rdi
movl %r15d, %esi
callq 0x1d2a
jmp 0x1bfc
movq %rbx, %rdi
movl %r15d, %esi
callq 0x1cf8
movl %eax, 0x6c(%rbx)
jmp 0x1c04
movl 0x6c(%rbx), %eax
movq 0x8(%rbx), %rdi
movq 0x28(%rbx), %rcx
movq (%rcx,%r15,8), %r8
movl %eax, %r9d
movq 0x38(%rbx), %rsi
movq (%rsi,%r15,8), %rax
movl 0x58(%rbx), %ecx
shll %cl, %r15d
movl (%r8,%r9,4), %edx
movl (%rax,%r9,4), %eax
addl 0x5c(%rbx), %ecx
shll %cl, %edx
orl %r15d, %edx
movl 0x5c(%rdi), %ecx
addl 0x58(%rdi), %ecx
shrl %cl, %edx
movl %edx, 0x64(%rdi)
movl 0x64(%rbx), %ecx
movl %ecx, (%r8,%r9,4)
testl %r14d, %r14d
je 0x1c67
movl 0x68(%rbx), %ecx
movl 0x6c(%rbx), %r8d
movq (%rsi,%rcx,8), %rcx
movl $0x1, (%rcx,%r8,4)
movq 0x38(%rdi), %rcx
movq (%rcx), %rcx
movl %ebp, %r8d
jmp 0x1c85
movq 0x38(%rdi), %rcx
movq (%rcx), %rcx
movl %ebp, %r8d
movl (%rcx,%r8,4), %r9d
movl 0x68(%rbx), %r10d
movl 0x6c(%rbx), %r11d
movq (%rsi,%r10,8), %rsi
movl %r9d, (%rsi,%r11,4)
movq 0x28(%rdi), %rsi
movq (%rsi), %rsi
movl %edx, (%rsi,%r8,4)
movl %eax, (%rcx,%r8,4)
cmpl $0x2, 0x1c(%rdi)
jne 0x1ca3
xorl %esi, %esi
movl %ebp, %edx
callq 0x1b50
movl 0x1c(%rbx), %eax
cmpl $0x3, %eax
je 0x1cc0
cmpl $0x2, %eax
jne 0x1cea
movl 0x68(%rbx), %esi
movl 0x6c(%rbx), %edx
movq %rbx, %rdi
callq 0x1b50
jmp 0x1cea
movl 0x68(%rbx), %eax
movl 0x6c(%rbx), %ecx
movq 0x48(%rbx), %rdx
movq 0x50(%rbx), %rsi
movq (%rdx,%rax,8), %rdi
movl (%rdi,%rcx,4), %ecx
movl %ecx, (%rsi,%rax,4)
movl 0x68(%rbx), %eax
movl 0x6c(%rbx), %ecx
movl (%rsi,%rax,4), %esi
incl %esi
movq (%rdx,%rax,8), %rax
movl %esi, (%rax,%rcx,4)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/sopanpatra160[P]OOO_Superscalar_Processor_Simulator/cache.cc
// Function: cache::lru_block2evict(unsigned int)
unsigned int cache::lru_block2evict(unsigned int ind){

	unsigned int max=0;
	for(unsigned int j=0;j<a; j++){	
		if(lru_store[ind][max]<lru_store[ind][j])
			max=j;
	}
	return max;
}

// Assembly:
movl 0x18(%rdi), %ecx
movq 0x40(%rdi), %rdx
movl %esi, %esi
xorl %edi, %edi
xorl %eax, %eax
cmpq %rdi, %rcx
je 0x1d29
movq (%rdx,%rsi,8), %r9
movl %eax, %r8d
movl (%r9,%r8,4), %r10d
movl %edi, %r8d
cmpl (%r9,%rdi,4), %r10d
jb 0x1d21
movl %eax, %r8d
incq %rdi
movl %r8d, %eax
jmp 0x1d05
retq
// File: /workspace/github_cpp_makefile_star2_O2/sopanpatra160[P]OOO_Superscalar_Processor_Simulator/cache.cc
// Function: cache::lfu_block2evict(unsigned int)
unsigned int cache::lfu_block2evict(unsigned int ind){
	unsigned int min=0;
	for(unsigned int j=0; j<a; j++){	
		if(lfu_block_store[ind][min]>lfu_block_store[ind][j])
			min=j;
	}
	return min;
}

// Assembly:
movl 0x18(%rdi), %ecx
movq 0x48(%rdi), %rdx
movl %esi, %esi
xorl %edi, %edi
xorl %eax, %eax
cmpq %rdi, %rcx
je 0x1d5b
movq (%rdx,%rsi,8), %r9
movl %eax, %r8d
movl (%r9,%r8,4), %r10d
movl %edi, %r8d
cmpl (%r9,%rdi,4), %r10d
ja 0x1d53
movl %eax, %r8d
incq %rdi
movl %r8d, %eax
jmp 0x1d37
retq
// File: /workspace/github_cpp_makefile_star2_O2/sopanpatra160[P]OOO_Superscalar_Processor_Simulator/cache.cc
// Function: cache::insert_vc(unsigned int, unsigned int)
unsigned int cache::insert_vc(unsigned int addr_ev, unsigned int dirty2victim){
	unsigned int  reconstr_tag = calc_tag(addr_ev);
	//unsigned int  addr_ev;	
	
	for (unsigned int j=0; j<a; j++){
		if(valid_store[0][j] == 0){
			tag_store[0][j]=reconstr_tag;
			dirty_store[0][j]=dirty2victim;
			valid_store[0][j]=1;
			if(rp==2)
				lru_update(0,j);
			else 
				lfu_update_block(0,j,0);
			return 0;
		}
	}
	
	//#3. IF ALL VALID
	if(rp==2){
		ev_blk= lru_block2evict(0);
	}
	else if(rp==3){
		ev_blk= lru_block2evict(0);
	}

	if(dirty_store[0][ev_blk]==0){
		tag_store[0][ev_blk]=reconstr_tag;
		dirty_store[0][ev_blk]=dirty2victim;
	}
	else if(dirty_store[0][ev_blk]==1){
		num_wb_v+=1;
		addr_ev = ev_blk_addr(0,tag_store[0][ev_blk]);
		if(next!=NULL){
			next->write(addr_ev);
		}
		tag_store[0][ev_blk]=reconstr_tag;
		dirty_store[0][ev_blk]=dirty2victim;
	}
	if(rp==2)
		lru_update(0,ev_blk);
	else if(rp==3){
		lfu_update_set(0,ev_blk);
		lfu_update_block(0,ev_blk,0);
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movl 0x5c(%rdi), %r15d
addl 0x58(%rdi), %r15d
movl %r15d, %ecx
shrl %cl, %r14d
movl %r14d, 0x64(%rdi)
movl 0x18(%rdi), %eax
movq 0x30(%rdi), %rcx
xorl %edx, %edx
cmpq %rdx, %rax
je 0x1da9
movq (%rcx), %rsi
cmpl $0x0, (%rsi,%rdx,4)
je 0x1dc5
incq %rdx
jmp 0x1d96
movl 0x1c(%rbx), %eax
cmpl $0x2, %eax
je 0x1db6
cmpl $0x3, %eax
jne 0x1e08
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1cf8
movl %eax, 0x6c(%rbx)
jmp 0x1e0b
movq 0x28(%rbx), %rax
movq (%rax), %rax
movl %r14d, (%rax,%rdx,4)
movq 0x38(%rbx), %rax
movq (%rax), %rax
movl %ebp, (%rax,%rdx,4)
movl $0x1, (%rsi,%rdx,4)
cmpl $0x2, 0x1c(%rbx)
jne 0x1df1
movq %rbx, %rdi
xorl %esi, %esi
jmp 0x1e71
movq 0x48(%rbx), %rax
movq 0x50(%rbx), %rcx
movl (%rcx), %ecx
incl %ecx
movq (%rax), %rax
movl %ecx, (%rax,%rdx,4)
jmp 0x1e93
movl 0x6c(%rbx), %eax
movq 0x38(%rbx), %rcx
movq (%rcx), %rcx
movl %eax, %eax
movl (%rcx,%rax,4), %edx
cmpl $0x1, %edx
je 0x1e22
testl %edx, %edx
je 0x1e4b
jmp 0x1e5c
incl 0x78(%rbx)
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x1e4b
movq 0x28(%rbx), %rcx
movq (%rcx), %rcx
movl (%rcx,%rax,4), %esi
movl %r15d, %ecx
shll %cl, %esi
callq 0x1ea0
movl 0x6c(%rbx), %eax
movq 0x38(%rbx), %rcx
movq (%rcx), %rcx
movq 0x28(%rbx), %rdx
movq (%rdx), %rdx
movl %r14d, (%rdx,%rax,4)
movl 0x6c(%rbx), %eax
movl %ebp, (%rcx,%rax,4)
movl 0x1c(%rbx), %eax
cmpl $0x3, %eax
je 0x1e78
cmpl $0x2, %eax
jne 0x1e93
movl 0x6c(%rbx), %edx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1b50
jmp 0x1e93
movl 0x6c(%rbx), %eax
movq 0x48(%rbx), %rcx
movq 0x50(%rbx), %rdx
movq (%rcx), %rcx
movl (%rcx,%rax,4), %eax
movl %eax, (%rdx)
movl 0x6c(%rbx), %edx
incl %eax
movl %eax, (%rcx,%rdx,4)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/sopanpatra160[P]OOO_Superscalar_Processor_Simulator/cache.cc
// Function: cache::print_tag_store()
void cache::print_tag_store(){
//printf("num set = %d \n",num_set);
	for(unsigned int i=0; i<num_set; i++){
	printf("set  %4d:  ",i);
		for(unsigned int j=0; j<a; j++){
			printf ("%8x ",tag_store[i][j]);
			if(wp == 0){
				if(dirty_store[i][j]==1)
					printf ("D");
				else
					printf (" ");
			}
		}
	printf ("\n");
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1cb8(%rip), %r15      # 0x41ed
pushq $0x44
popq %r13
pushq $0x20
popq %r14
xorl %r12d, %r12d
movl 0x70(%rbx), %eax
cmpq %rax, %r12
jae 0x25a8
leaq 0x1c92(%rip), %rdi      # 0x41e1
movl %r12d, %esi
xorl %eax, %eax
callq 0x1040
xorl %ebp, %ebp
movl 0x18(%rbx), %eax
cmpq %rax, %rbp
jae 0x259b
movq 0x28(%rbx), %rax
movq (%rax,%r12,8), %rax
movl (%rax,%rbp,4), %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x1040
cmpl $0x0, 0x20(%rbx)
jne 0x2596
movq 0x38(%rbx), %rax
movq (%rax,%r12,8), %rax
cmpl $0x1, (%rax,%rbp,4)
movl %r14d, %edi
cmovel %r13d, %edi
callq 0x10f0
incq %rbp
jmp 0x255b
pushq $0xa
popq %rdi
callq 0x10f0
incq %r12
jmp 0x2540
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/sopanpatra160[P]OOO_Superscalar_Processor_Simulator/main.cc
// Function: Fetch(_IO_FILE*, unsigned int)
void Fetch(FILE *file, unsigned int n)
{
	unsigned int 	pc;
        unsigned int    op_type;
        int             dest_reg_num;
        int             src1_reg_num;
        int             src2_reg_num;
	unsigned int	fetch_count = 0;
	unsigned int 	mem_address;

	struct instruction instr;
	
	while( !feof(file) && fetch_count<n && dispatch_list.size()<2*n )
        {
	        
        	fscanf (file,"%x %d %d %d %d %x\n",&pc,&op_type,&dest_reg_num,&src1_reg_num,&src2_reg_num,&mem_address);
		instr.operation_type 	= 	op_type;
		instr.dest_regno	=	dest_reg_num;
		instr.src1_regno	=	src1_reg_num;
		instr.src2_regno	=	src2_reg_num;
		instr.src1_regno_new	=	src1_reg_num;
		instr.src2_regno_new	=	src2_reg_num;
		instr.state		=	IF;
		instr.tag		=	tag_num;
		instr.if_begin_cycle	=	cycles;
		instr.ex_latency	=	1;
		instr.mem_latency	=	0;
		if(op_type ==2 )
		{
		instr.mem_addr		=	mem_address;
		}

		dispatch_list.push_back(instr);
		fake_rob.push_back(instr);
		tag_num++;
		fetch_count++;
	
	}
	
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %esi, %ebx
movq %rdi, %r14
leal (%rbx,%rbx), %r15d
leaq 0x20(%rsp), %r13
leaq 0x4da5(%rip), %rbp      # 0x73a0
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x1120
testl %eax, %eax
jne 0x26ea
cmpl %ebx, %r12d
jae 0x26ea
movq 0x4da2(%rip), %rax      # 0x73c0
subq 0x4d93(%rip), %rax      # 0x73b8
cqto
pushq $0x58
popq %rcx
idivq %rcx
cmpq %r15, %rax
jae 0x26ea
movq %r14, %rdi
leaq 0x1be0(%rip), %rsi      # 0x4220
leaq 0x1c(%rsp), %rdx
leaq 0x18(%rsp), %rcx
leaq 0x14(%rsp), %r8
leaq 0x10(%rsp), %r9
xorl %eax, %eax
leaq 0x8(%rsp), %r10
pushq %r10
leaq 0x14(%rsp), %r10
pushq %r10
callq 0x1170
popq %rcx
popq %rdx
movl 0x18(%rsp), %eax
movl %eax, 0x20(%rsp)
movl 0x14(%rsp), %ecx
movl %ecx, 0x28(%rsp)
movl 0x10(%rsp), %ecx
movl %ecx, 0x2c(%rsp)
movl 0xc(%rsp), %edx
movl %edx, 0x30(%rsp)
movl %ecx, 0x34(%rsp)
movl %edx, 0x38(%rsp)
andl $0x0, 0x6c(%rsp)
movl 0x4a56(%rip), %ecx      # 0x70f4
movl %ecx, 0x70(%rsp)
movl 0x4a50(%rip), %ecx      # 0x70f8
movl %ecx, 0x3c(%rsp)
movq $0x1, 0x64(%rsp)
cmpl $0x2, %eax
jne 0x26c2
movl 0x8(%rsp), %eax
movl %eax, 0x74(%rsp)
leaq 0x4cef(%rip), %rdi      # 0x73b8
movq %r13, %rsi
callq 0x31b8
movq %rbp, %rdi
movq %r13, %rsi
callq 0x31b8
incl 0x4a12(%rip)            # 0x70f4
incl %r12d
jmp 0x25fe
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/sopanpatra160[P]OOO_Superscalar_Processor_Simulator/main.cc
// Function: Issue(unsigned int)
void Issue(unsigned int n)
{
	vector<instruction>     temp_issue_list;

	for (vector<instruction>::iterator it = issue_list.begin() ; it != issue_list.end(); ++it)
        {
		if(it->src1_ready && it->src2_ready)
		{
			temp_issue_list.push_back(*it);			
		}
	}

	unsigned int issue_count = 0;
	for (vector<instruction>::iterator it = temp_issue_list.begin() ; it != temp_issue_list.end(); ++it)
        {
	
		if(issue_count < n)
                {

                        it->state=EX;
                        it->is_duration = cycles - it->is_begin_cycle;
                        it->ex_begin_cycle = cycles;
			execute_list.push_back(*it);			

			for(int i = 0; i < issue_list.size(); i++)
                        {
                                if(issue_list[i].tag == it->tag)
                                {
					issue_list.erase(issue_list.begin()+i);
                                }
                        }

			//mp_issue_list.remove(*it);
			//issue_list.erase(issue_list.begin());
			
			issue_count++ ;
		}		
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edi, %ebx
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
movaps %xmm0, (%r14)
andq $0x0, 0x10(%r14)
movq 0x4af5(%rip), %r15      # 0x73d0
cmpq 0x4af6(%rip), %r15      # 0x73d8
je 0x2903
cmpb $0x1, 0x4(%r15)
jne 0x28fd
cmpb $0x1, 0x5(%r15)
jne 0x28fd
movq %r14, %rdi
movq %r15, %rsi
callq 0x31b8
addq $0x58, %r15
jmp 0x28db
xorl %r13d, %r13d
movq 0x10(%rsp), %r14
pushq $0x58
popq %rbp
leaq 0x4abb(%rip), %r12      # 0x73d0
movl %ebx, 0xc(%rsp)
cmpq 0x18(%rsp), %r14
je 0x299f
cmpl %ebx, %r13d
jae 0x2996
movl $0x3, 0x4c(%r14)
movl 0x47c5(%rip), %eax      # 0x70f8
movl %eax, %ecx
subl 0x2c(%r14), %ecx
movl %ecx, 0x30(%r14)
movl %eax, 0x34(%r14)
leaq 0x4aa0(%rip), %rdi      # 0x73e8
movq %r14, %rsi
callq 0x31b8
xorl %r15d, %r15d
xorl %ebx, %ebx
movq 0x4a7c(%rip), %rax      # 0x73d8
movq 0x4a6d(%rip), %rsi      # 0x73d0
subq %rsi, %rax
cqto
idivq %rbp
cmpq %rbx, %rax
jbe 0x298f
movl 0x50(%rsi,%r15), %eax
cmpl 0x50(%r14), %eax
jne 0x2986
addq %r15, %rsi
movq %r12, %rdi
callq 0x31e2
incq %rbx
addq $0x58, %r15
jmp 0x2955
incl %r13d
movl 0xc(%rsp), %ebx
addq $0x58, %r14
jmp 0x2919
leaq 0x10(%rsp), %rdi
callq 0x3246
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x29bc
jmp 0x29bc
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x3246
movq %rbx, %rdi
callq 0x1150
// File: /workspace/github_cpp_makefile_star2_O2/kerolloz[P]os/sum.c
// Function: main
int main() {
  pthread_t threads[N_THREADS];

  pthread_mutex_init(&lock, NULL);

  // create the threads
  for (int i = 0; i < N_THREADS; i++)
    pthread_create(&threads[i], NULL, count, NULL);

  // wait for all the threads to finish executing
  for (int i = 0; i < N_THREADS; i++)
    pthread_join(threads[i], NULL);

  printf("%lld\n", sum);

  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
leaq 0x2e99(%rip), %rdi      # 0x4068
xorl %r14d, %r14d
xorl %esi, %esi
callq 0x1070
leaq -0x54(%rip), %rbx       # 0x118c
cmpq $0x28, %r14
je 0x1200
leaq (%r14,%rbp), %rdi
addq $-0x40, %rdi
xorl %esi, %esi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x1050
addq $0x8, %r14
jmp 0x11e0
xorl %ebx, %ebx
cmpq $0x5, %rbx
je 0x1219
movq -0x40(%rbp,%rbx,8), %rdi
xorl %esi, %esi
callq 0x1060
incq %rbx
jmp 0x1202
movq 0x2e40(%rip), %rsi      # 0x4060
leaq 0xddd(%rip), %rdi       # 0x2004
xorl %eax, %eax
callq 0x1030
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::assign_value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void RealNumber::assign_value(const std::string& str) {
    std::size_t dot_position = str.find('.');
		std::size_t i;
    int integer_part = 0;
    if (dot_position > MAX_DECIMAL_INTEGER_DIGITS) {
        throw std::invalid_argument("Too many digits before decimal!");
    }
    for (i = 0; i < dot_position; ++i) {
        if (0 <= str[i] - '0' && str[i] - '0' <= 9) {
            integer_part = 10 * integer_part + (str[i] - '0');
        }
        else {
            throw std::invalid_argument("Input can contain only decimal digits!");
        }   
    }
    set_integer_part(integer_part);
		std::size_t fractional_digits_len = str.size() - dot_position - 1;
    unsigned char* decimal_digits = array_arithmetic::convert::helpers::to_digit_array(str.substr(dot_position + 1));
    for (i = INTEGER_DIGITS; i < ARRAY_SIZE; ++i) {
        value[i] = array_arithmetic::convert::helpers::times_radix(decimal_digits, fractional_digits_len);
    }
    delete[] decimal_digits;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorl %r12d, %r12d
pushq $0x2e
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x2170
cmpq $0x9, %rax
ja 0x2c82
movq %rax, %r15
movq (%r14), %rax
xorl %ecx, %ecx
cmpq %rcx, %r15
je 0x2bca
movzbl (%rax,%rcx), %edx
leal -0x30(%rdx), %esi
cmpb $0x9, %sil
ja 0x2c52
imull $0xa, %r12d, %esi
leal (%rdx,%rsi), %r12d
addl $-0x30, %r12d
incq %rcx
jmp 0x2ba3
leaq -0x2c(%rbp), %rsi
movl %r12d, (%rsi)
movq %rbx, %rdi
callq 0x3202
movq %r15, %rax
notq %rax
addq 0x8(%r14), %rax
movq %rax, -0x28(%rbp)
incq %r15
leaq -0x50(%rbp), %r12
pushq $-0x1
popq %rcx
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2140
movq %r12, %rdi
callq 0x3a20
movq %rax, %r14
leaq -0x50(%rbp), %rdi
callq 0x2080
pushq $0x4
popq %r12
leaq -0x28(%rbp), %r15
cmpq $0x36, %r12
je 0x2c38
movq %r14, %rdi
movq %r15, %rsi
callq 0x3aa7
movq (%rbx), %rcx
movb %al, (%rcx,%r12)
incq %r12
jmp 0x2c1b
testq %r14, %r14
je 0x2c45
movq %r14, %rdi
callq 0x2160
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x20a0
movq %rax, %r14
leaq 0x2472(%rip), %rsi      # 0x50d6
movq %rax, %rdi
callq 0x21f0
movq 0x536d(%rip), %rsi      # 0x7fe0
movq 0x5356(%rip), %rdx      # 0x7fd0
movq %r14, %rdi
callq 0x21b0
pushq $0x10
popq %rdi
callq 0x20a0
movq %rax, %r14
leaq 0x2422(%rip), %rsi      # 0x50b6
movq %rax, %rdi
callq 0x21f0
jmp 0x2c6c
jmp 0x2cae
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x2080
jmp 0x2cb9
movq %rax, %rbx
movq %r14, %rdi
callq 0x20e0
movq %rbx, %rdi
callq 0x21d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::to_decimal_string[abi:cxx11]() const
std::string RealNumber::to_decimal_string() const {
    std::stringstream result;
    result << get_integer_part() << '.';
    // make a copy of value because we will be changing it
    unsigned char* fractional_part = new unsigned char[PRECISION];
    std::size_t i;
    for (i = 0; i < PRECISION; ++i) { fractional_part[i] = value[i + INTEGER_DIGITS]; }
		for (i = 0; i < DECIMAL_PRECISION; ++i) { 
			result << (int)(array_arithmetic::convert::helpers::times_ten(fractional_part, PRECISION)); 
		}    
    delete[] fractional_part;
    return result.str();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rsi, %r12
movq %rdi, %rbx
leaq -0x1b8(%rbp), %rdi
callq 0x20c0
leaq -0x1a8(%rbp), %r14
movq %r12, %rdi
callq 0x2dfe
movl %eax, %esi
movq %r14, %rdi
callq 0x20b0
pushq $0x2e
popq %rsi
movq %rax, %rdi
callq 0x2150
pushq $0x32
popq %rdi
callq 0x2030
movq %rax, %r15
movq (%r12), %rax
xorl %ecx, %ecx
cmpq $0x32, %rcx
je 0x2d7a
movb 0x4(%rax,%rcx), %dl
movb %dl, (%r15,%rcx)
incq %rcx
jmp 0x2d67
pushq $0x78
popq %r13
leaq -0x30(%rbp), %r12
subq $0x1, %r13
jb 0x2da8
movq $0x32, -0x30(%rbp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x3ada
movzbl %al, %esi
movq %r14, %rdi
callq 0x21c0
jmp 0x2d82
movq %r15, %rdi
callq 0x2160
leaq -0x1a0(%rbp), %rsi
movq %rbx, %rdi
callq 0x2190
leaq -0x1b8(%rbp), %rdi
callq 0x20f0
movq %rbx, %rax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2de6
jmp 0x2de6
jmp 0x2de6
movq %rax, %rbx
leaq -0x1b8(%rbp), %rdi
callq 0x20f0
movq %rbx, %rdi
callq 0x21d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::get_integer_part() const
unsigned int RealNumber::get_integer_part() const {
    unsigned int result = 0;
    for (std::size_t i = 0; i < INTEGER_DIGITS; ++i) {
        result = result * array_arithmetic::RADIX + value[i];
    }
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
xorl %eax, %eax
xorl %edx, %edx
cmpq $0x4, %rdx
je 0x2e1d
shll $0x8, %eax
movzbl (%rcx,%rdx), %esi
orl %esi, %eax
incq %rdx
jmp 0x2e09
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::operator=(RealNumber const&)
RealNumber& RealNumber::operator=(const RealNumber& num) {
    if (this == &num) { return *this; }
    for (std::size_t i = 0; i < ARRAY_SIZE; ++i) {
        this->value[i] = num.value[i];
    }
    return *this;
}

// Assembly:
movq %rdi, %rax
cmpq %rsi, %rdi
je 0x2e46
pushq %rbp
movq %rsp, %rbp
xorl %ecx, %ecx
cmpq $0x36, %rcx
je 0x2e45
movq (%rsi), %rdx
movb (%rdx,%rcx), %dl
movq (%rax), %rdi
movb %dl, (%rdi,%rcx)
incq %rcx
jmp 0x2e2e
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::operator>(RealNumber const&) const
bool RealNumber::operator>(const RealNumber& num_to_compare) const {
    for (std::size_t i = 0; i < ARRAY_SIZE; ++i) {
        if (this->value[i] > num_to_compare.value[i]) { return true; }
        else if (this->value[i] < num_to_compare.value[i]) { return false; }
    }
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movq (%rsi), %rdx
xorl %esi, %esi
movq %rsi, %rax
cmpq $0x36, %rax
je 0x2e7a
movb (%rcx,%rax), %dil
movb (%rdx,%rax), %r8b
cmpb %r8b, %dil
ja 0x2e77
leaq 0x1(%rax), %rsi
cmpb %r8b, %dil
jae 0x2e54
xorl %esi, %esi
jmp 0x2e7a
movb $0x1, %sil
cmpq $0x36, %rax
setb %al
andb %sil, %al
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::operator>=(RealNumber const&) const
bool RealNumber::operator>=(const RealNumber& num_to_compare) const {
    for (std::size_t i = 0; i < ARRAY_SIZE; ++i) {
        if (this->value[i] > num_to_compare.value[i]) { return true; }
        else if (this->value[i] < num_to_compare.value[i]) { return false; }
    }
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movq (%rsi), %rdx
xorl %esi, %esi
movq %rsi, %rax
cmpq $0x36, %rax
je 0x2eb8
movb (%rcx,%rax), %dil
movb (%rdx,%rax), %r8b
cmpb %r8b, %dil
ja 0x2eb5
leaq 0x1(%rax), %rsi
cmpb %r8b, %dil
jae 0x2e92
xorl %esi, %esi
jmp 0x2eb8
movb $0x1, %sil
cmpq $0x36, %rax
setae %al
orb %sil, %al
andb $0x1, %al
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::equals(RealNumber const&) const
bool RealNumber::equals(const RealNumber& num_to_compare) const {
	// get the real number against which to measure difference
	std::size_t total_bits = ARRAY_SIZE * 8;
	std::size_t first_bit_to_set = total_bits - BITS_FOR_EQUALITY;
	RealNumber max_diff;
	for (std::size_t i = first_bit_to_set; i < total_bits; ++i) {
		array_arithmetic::bits::set(max_diff.value, i);
	}
	return this->difference(num_to_compare) <= max_diff;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x30(%rbp), %r15
movq %r15, %rdi
callq 0x2b1a
movl $0x1ac, %eax            # imm = 0x1AC
movq (%r15), %r15
leaq -0x28(%rbp), %r12
movq %rax, -0x28(%rbp)
cmpq $0x1b0, %rax            # imm = 0x1B0
jae 0x2fcb
movq %r15, %rdi
movq %r12, %rsi
callq 0x3dd5
movq -0x28(%rbp), %rax
incq %rax
jmp 0x2fab
leaq -0x28(%rbp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3026
leaq -0x28(%rbp), %rbx
leaq -0x30(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2f04
movl %eax, %r15d
movq %rbx, %rdi
callq 0x2cf8
movq %r14, %rdi
callq 0x2cf8
movl %r15d, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3012
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x2cf8
movq %rbx, %rdi
callq 0x21d0
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::operator+(RealNumber const&) const
RealNumber RealNumber::operator+(const RealNumber& num_to_add) const {
    RealNumber result = RealNumber();
    int carry = 0, tmp_sum = 0;
    for (int i = ARRAY_SIZE - 1; i >= 0; --i) {
        tmp_sum = carry + this->value[i] + num_to_add.value[i];
        result.value[i] = tmp_sum % array_arithmetic::RADIX;
        carry = tmp_sum / array_arithmetic::RADIX;
    }
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
callq 0x2b1a
movq (%r14), %rax
pushq $0x35
popq %rcx
xorl %edx, %edx
testl %ecx, %ecx
js 0x30b1
movq (%r15), %rsi
movl %ecx, %edi
movzbl (%rsi,%rdi), %esi
addl %esi, %edx
movq (%rbx), %rsi
movzbl (%rsi,%rdi), %esi
addl %edx, %esi
movb %sil, (%rax,%rdi)
shrl $0x8, %esi
decl %ecx
movl %esi, %edx
jmp 0x308c
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::operator*(RealNumber const&) const
RealNumber RealNumber::operator*(const RealNumber& multiplier) const {
	unsigned char* result_arr = new unsigned char[2 * ARRAY_SIZE + 1];
	RealNumber result;
	array_arithmetic::school_multiply(this->value, multiplier.value, result_arr, ARRAY_SIZE,
			ARRAY_SIZE);
	std::size_t offset = INTEGER_DIGITS + 1;
	for (std::size_t i = 0; i < ARRAY_SIZE; ++i) {
		result.value[i] = result_arr[i + offset];
	}
	delete[] result_arr;
	return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
pushq $0x6d
popq %rdi
callq 0x2030
movq %rax, %r14
movq %rbx, %rdi
callq 0x2b1a
movq (%r12), %rdi
movq (%r15), %rsi
pushq $0x36
popq %rax
leaq -0x30(%rbp), %rcx
movq %rax, (%rcx)
leaq -0x28(%rbp), %r8
movq %rax, (%r8)
movq %r14, %rdx
callq 0x3df7
movq (%rbx), %rax
pushq $0x5
popq %rcx
cmpq $0x3b, %rcx
je 0x3176
movb (%r14,%rcx), %dl
movb %dl, -0x5(%rax,%rcx)
incq %rcx
jmp 0x3163
movq %r14, %rdi
callq 0x2160
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x2cf8
movq %r14, %rdi
callq 0x21d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::set_integer_part(int const&)
void RealNumber::set_integer_part(const int& integer_part) {
    unsigned int tmp = integer_part;
    for (int i = INTEGER_DIGITS - 1; i >= 0; --i) {
        value[i] = tmp % array_arithmetic::RADIX;
        tmp /= array_arithmetic::RADIX;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl (%rsi), %eax
movl $0x3, %ecx
testl %ecx, %ecx
js 0x3220
movq (%rdi), %rdx
movl %ecx, %esi
movb %al, (%rdx,%rsi)
shrl $0x8, %eax
decl %ecx
jmp 0x320d
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/convergent_series.cpp
// Function: ConvergentSeries::babylonian_sqrt(RealNumber const&, RealNumber const&, unsigned long const&)
RealNumber ConvergentSeries::babylonian_sqrt(const RealNumber& num, const RealNumber& guess,
                                            const std::size_t& iterations) {
    RealNumber result = guess;
    RealNumber two("2.0");
    for (std::size_t i = 0; i < iterations; ++i) {
        result = (result + (num / result)) / two;
    }
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, -0x48(%rbp)
movq %rsi, -0x40(%rbp)
movq %rdi, %rbx
movq %rdx, %rsi
callq 0x2cc2
leaq 0x1e14(%rip), %rsi      # 0x5063
leaq -0x70(%rbp), %rdi
leaq -0x38(%rbp), %rdx
callq 0x2a28
leaq -0x30(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x2b4a
leaq -0x70(%rbp), %r12
movq %r12, %rdi
callq 0x2080
xorl %r14d, %r14d
leaq -0x50(%rbp), %r13
leaq -0x38(%rbp), %r15
movq -0x48(%rbp), %rax
cmpq (%rax), %r14
jae 0x32dd
movq %r13, %rdi
movq -0x40(%rbp), %rsi
movq %rbx, %rdx
callq 0x31a2
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x306c
movq %r12, %rdi
movq %r15, %rsi
leaq -0x30(%rbp), %rdx
callq 0x31a2
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2e20
movq %r12, %rdi
callq 0x2cf8
movq %r15, %rdi
callq 0x2cf8
movq %r13, %rdi
callq 0x2cf8
incq %r14
jmp 0x3280
leaq -0x30(%rbp), %rdi
callq 0x2cf8
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x70(%rbp), %rdi
callq 0x2080
jmp 0x3341
movq %rax, %r14
jmp 0x3341
movq %rax, %r14
leaq -0x70(%rbp), %rdi
callq 0x2cf8
jmp 0x331c
movq %rax, %r14
leaq -0x38(%rbp), %rdi
callq 0x2cf8
jmp 0x332f
movq %rax, %r14
jmp 0x3338
movq %rax, %r14
leaq -0x50(%rbp), %rdi
callq 0x2cf8
leaq -0x30(%rbp), %rdi
callq 0x2cf8
movq %rbx, %rdi
callq 0x2cf8
movq %r14, %rdi
callq 0x21d0
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::convert::from_int(unsigned int const&, unsigned char*, unsigned long const&)
void from_int(const unsigned int& num, unsigned char* result, 
				const std::size_t& result_len) {
			unsigned int num_copy = num;
			std::size_t i = result_len;
			while (i > 0) {
				--i;
				result[i] = num_copy % RADIX;
				num_copy /= RADIX;
			}
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl (%rdi), %eax
movq (%rdx), %rdx
movq %rdx, %rcx
subq $0x1, %rcx
jb 0x39fe
movb %al, -0x1(%rsi,%rdx)
shrl $0x8, %eax
movq %rcx, %rdx
jmp 0x39ec
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::convert::to_int(unsigned char const*, unsigned long const&)
unsigned int to_int(const unsigned char* arr, const std::size_t& arr_len) {
			unsigned int result = 0;
			for (std::size_t i = 0; i < arr_len; ++i) {
				result = result * RADIX + arr[i];
			}
			return result;
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rsi), %rcx
xorl %eax, %eax
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x3a1e
shll $0x8, %eax
movzbl (%rdi,%rdx), %esi
orl %esi, %eax
incq %rdx
jmp 0x3a0b
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::convert::helpers::to_digit_array(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
unsigned char* to_digit_array(const std::string& str) {
				std::size_t len = str.size();
				unsigned char* result = new unsigned char[len];
				std::size_t i = 0;
				while (i < len) {
					if (0 <= str[i] - '0' && str[i] - '0' <= 9) {
						result[i] = str[i] - '0';
					}
					else {
						delete[] result;
						throw std::invalid_argument("Input can contain only decimal digits!");
					}
					++i;
				}
				return result;
			}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rbx
movq %rbx, %rdi
callq 0x2030
movq (%r14), %rcx
xorl %edx, %edx
cmpq %rdx, %rbx
je 0x3a57
movb (%rcx,%rdx), %sil
addb $-0x30, %sil
cmpb $0x9, %sil
ja 0x3a5c
movb %sil, (%rax,%rdx)
incq %rdx
jmp 0x3a3b
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rdi
callq 0x2160
pushq $0x10
popq %rdi
callq 0x20a0
movq %rax, %rbx
leaq 0x1660(%rip), %rsi      # 0x50d6
movq %rax, %rdi
callq 0x21f0
movq 0x455b(%rip), %rsi      # 0x7fe0
movq 0x4544(%rip), %rdx      # 0x7fd0
movq %rbx, %rdi
callq 0x21b0
movq %rax, %r14
movq %rbx, %rdi
callq 0x20e0
movq %r14, %rdi
callq 0x21d0
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::convert::helpers::times_radix(unsigned char*, unsigned long const&)
unsigned char times_radix(unsigned char* decimal_digits, 
					const std::size_t& arr_len) {
				unsigned char carry = 0;
				unsigned int tmp;
				std::size_t i = arr_len;
				while (i > 0) {
					--i;
					tmp = carry + decimal_digits[i] * RADIX;
					decimal_digits[i] = tmp % 10;
					carry = tmp / 10;
				}
				return carry;
			}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rsi), %rsi
movw $0xa, %cx
xorl %eax, %eax
movq %rsi, %r8
subq $0x1, %r8
jb 0x3ad8
movzbl %al, %edx
movzbl -0x1(%rdi,%rsi), %eax
shll $0x8, %eax
orl %edx, %eax
xorl %edx, %edx
divw %cx
movb %dl, -0x1(%rdi,%rsi)
movq %r8, %rsi
jmp 0x3ab7
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::convert::helpers::times_ten(unsigned char*, unsigned long const&)
unsigned char times_ten(unsigned char* radix_digits, const std::size_t& arr_len) {
				unsigned char carry = 0;
				unsigned int tmp;
				std::size_t i = arr_len;
				while (i > 0) {
					--i;
					tmp = carry + radix_digits[i] * 10;
					radix_digits[i] = tmp % RADIX;
					carry = tmp / RADIX;
				}
				return carry;
			}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rsi), %rdx
xorl %eax, %eax
movq %rdx, %rcx
subq $0x1, %rcx
jb 0x3b05
movzbl %al, %esi
movzbl -0x1(%rdi,%rdx), %eax
imull $0xa, %eax, %eax
addl %esi, %eax
movb %al, -0x1(%rdi,%rdx)
shrl $0x8, %eax
movq %rcx, %rdx
jmp 0x3ae6
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::helpers::copy_into(unsigned char const*, unsigned char*, unsigned long const&, unsigned long const&)
void copy_into(const unsigned char* source, unsigned char* target, const std::size_t&
				source_len, const std::size_t& target_len) {
			std::size_t i;
			for (i = 0; i < source_len; ++i) {
				target[i] = source[i];
			}
			for ( ; i < target_len; ++i) {
				target[i] = 0;
			}
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
cmpq (%rdx), %rax
jae 0x3b26
movb (%rdi,%rax), %r8b
movb %r8b, (%rsi,%rax)
incq %rax
jmp 0x3b0d
movb $0x0, (%rsi,%rax)
incq %rax
cmpq (%rcx), %rax
jb 0x3b1f
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::helpers::shift_right(unsigned char*, unsigned long const&, unsigned long const&)
void shift_right(unsigned char* arr, const size_t& places, const size_t& arr_size) {
			std::size_t i = arr_size - places;
			while (i > 0) {
				--i;
				arr[i + places] = arr[i];
			}
			i = places;
			while (i > 0) {
				--i;
				arr[i] = 0;
			}
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdx), %rcx
subq (%rsi), %rcx
leaq -0x1(%rdi), %rax
movq %rcx, %rdx
subq $0x1, %rdx
jb 0x3b57
leaq (%rax,%rcx), %r8
movb (%rax,%rcx), %cl
movq (%rsi), %r9
movb %cl, (%r9,%r8)
movq %rdx, %rcx
jmp 0x3b3e
movq (%rsi), %rax
movq %rax, %rcx
subq $0x1, %rcx
jb 0x3b6d
movb $0x0, -0x1(%rdi,%rax)
movq %rcx, %rax
jmp 0x3b5d
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::helpers::less_or_equal(unsigned char const*, unsigned char const*, unsigned long const&)
bool less_or_equal(const unsigned char* arr1, const unsigned char* arr2, 
															 const std::size_t& len) {
			for (std::size_t i = 0; i < len; ++i) {
				if (arr1[i] < arr2[i]) { return true; }
				if (arr1[i] > arr2[i]) { return false; }
				// loop continues only when arr1[i] == arr2[i]
			}
			// nothing was returned in the loop, so values are equal
			return true;
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdx), %rax
xorl %edx, %edx
movq %rdx, %rcx
cmpq %rcx, %rax
je 0x3b9c
movb (%rdi,%rcx), %r8b
movb (%rsi,%rcx), %r9b
cmpb %r9b, %r8b
jb 0x3b9a
leaq 0x1(%rcx), %rdx
cmpb %r9b, %r8b
jbe 0x3b78
xorl %edx, %edx
jmp 0x3b9c
movb $0x1, %dl
cmpq %rax, %rcx
setae %al
orb %dl, %al
andb $0x1, %al
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::helpers::division::align_dividend(unsigned char*, unsigned char const*, unsigned long const&)
int align_dividend(unsigned char* dividend, const unsigned char* divisor, const std::size_t& len) {
				int result = 0;
				while (less_or_equal(divisor, dividend, len)) {
					bits::shift_right(dividend, 1, len);
					--result;
				}
				return result;
			}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
xorl %r15d, %r15d
leaq -0x30(%rbp), %r13
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x3b6f
testb %al, %al
je 0x3c2c
movq $0x1, -0x30(%rbp)
movq %r12, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x3c3e
decl %r15d
jmp 0x3bff
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::bits::shift_right(unsigned char*, unsigned long const&, unsigned long const&)
void shift_right(unsigned char* arr, const std::size_t& places, const std::size_t& arr_size) {
			std::size_t byte_places = places / 8;
			std::size_t bit_places = places % 8;
			helpers::shift_right(arr, byte_places, arr_size);
			// now we only have to worry about bit_places
			if (bit_places == 0) { return; }
			unsigned char mask = get_mask(bit_places);
			std::size_t offset = 8 - bit_places;
			unsigned char tmp;
			std::size_t i = arr_size - 1;
			// the first byte_places positions are all 0, so we don't have to worry about them
			while (i > byte_places) {
				// shift the given position
				arr[i] >>= bit_places;
				// get the relevant bits from the position to the left and add them in
				tmp = arr[i - 1] & mask;
				arr[i] += (tmp << offset);
				--i;
			}
			arr[byte_places] >>= bit_places;
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r15
movq %rdi, %rbx
movq (%rsi), %r14
movq %r14, %r12
shrq $0x3, %r12
leaq -0x30(%rbp), %rsi
movq %r12, (%rsi)
movq %r14, %rax
andq $0x7, %rax
movq %rax, -0x28(%rbp)
callq 0x3b2d
andq $0x7, %r14
je 0x3cc1
leaq -0x28(%rbp), %rdi
callq 0x3dbe
movq (%r15), %rsi
pushq $0x8
popq %rdx
subl %r14d, %edx
decq %rsi
movzbl %al, %eax
cmpq %r12, %rsi
jbe 0x3cba
movzbl (%rbx,%rsi), %edi
movl %r14d, %ecx
shrl %cl, %edi
movzbl -0x1(%rbx,%rsi), %r8d
andl %eax, %r8d
movl %edx, %ecx
shll %cl, %r8d
addl %edi, %r8d
movb %r8b, (%rbx,%rsi)
decq %rsi
jmp 0x3c92
movl %r14d, %ecx
shrb %cl, (%rbx,%r12)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::helpers::division::align_divisor(unsigned char const*, unsigned char*, unsigned long const&)
int align_divisor(const unsigned char* dividend, unsigned char* divisor, const std::size_t& len) {
			  int result = 0;
				while (!less_or_equal(divisor, dividend, len)) {
					bits::shift_right(divisor, 1, len);
					++result;
				}
				return result;
			}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
xorl %r15d, %r15d
leaq -0x30(%rbp), %r13
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x3b6f
testb %al, %al
jne 0x3d19
movq $0x1, -0x30(%rbp)
movq %r14, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x3c3e
incl %r15d
jmp 0x3cec
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::helpers::division::readjust(unsigned char const*, unsigned char*, unsigned long const&)
int readjust(const unsigned char* dividend, unsigned char* divisor, const std::size_t& len) {
				int adjustment = 0;
				while (!less_or_equal(divisor, dividend, len)) {
					bits::shift_right(divisor, 1, len);
					++adjustment;
				}
				return adjustment;
			}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
xorl %r15d, %r15d
leaq -0x30(%rbp), %r13
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x3b6f
testb %al, %al
jne 0x3dac
movq $0x1, -0x30(%rbp)
movq %r14, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x3c3e
incl %r15d
jmp 0x3d7f
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::school_multiply(unsigned char const*, unsigned char const*, unsigned char*, unsigned long const&, unsigned long const&)
void school_multiply(const unsigned char* a, const unsigned char* b,
			unsigned char* result, const std::size_t& a_len, const std::size_t& b_len) {
		// end_pos tracks the least significant digit in the result array
		std::size_t a_index, b_index, result_index, end_pos;
		unsigned int carry, tmp;
		const std::size_t RESULT_LEN = a_len + b_len + 1;
		// initialize result to 0
		for (result_index = 0; result_index < RESULT_LEN; ++result_index) {
			result[result_index] = 0;
		}
		b_index = b_len;
		end_pos = RESULT_LEN;
		while (b_index > 0) {
			--b_index;
			result_index = end_pos;
			a_index = a_len;
			carry = 0;
			while (a_index > 0) {
				--a_index;
				--result_index;
				tmp = carry + result[result_index] + a[a_index] * b[b_index];
				result[result_index] = tmp % RADIX;
				carry = tmp / RADIX;
			}
			result[result_index - 1] = carry;
			--end_pos;
		}
	}

// Assembly:
movq (%rcx), %r10
movq (%r8), %r9
leaq (%r10,%r9), %rax
incq %rax
xorl %r11d, %r11d
cmpq %r11, %rax
je 0x3e16
movb $0x0, (%rdx,%r11)
incq %r11
jmp 0x3e07
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq (%r8), %rax
addq %r10, %r9
addq %r9, %rdx
decq %rdi
subq $0x1, %rax
jb 0x3e76
movq (%rcx), %r8
leaq (%rdi,%r8), %r9
negq %r8
xorl %r10d, %r10d
xorl %r11d, %r11d
cmpq %r10, %r8
je 0x3e6d
movzbl (%rdx,%r10), %ebx
addl %ebx, %r11d
movzbl (%r9,%r10), %ebx
movzbl (%rsi,%rax), %r14d
imull %ebx, %r14d
addl %r11d, %r14d
movb %r14b, (%rdx,%r10)
shrl $0x8, %r14d
decq %r10
movl %r14d, %r11d
jmp 0x3e3f
movb %r11b, (%rdx,%r10)
decq %rdx
jmp 0x3e29
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::add(unsigned char const*, unsigned char const*, unsigned char*, unsigned long const&)
void add(const unsigned char* a, const unsigned char* b, unsigned char* result,
			const std::size_t& len) {
		unsigned int carry = 0, tmp_sum;
		std::size_t i = len;
		while (i > 0) {
			--i;
			tmp_sum = carry + a[i] + b[i];
			result[i] = tmp_sum % RADIX;
			carry = tmp_sum / RADIX;
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rcx), %rcx
xorl %r8d, %r8d
movq %rcx, %rax
subq $0x1, %rax
jb 0x3eb1
movzbl -0x1(%rdi,%rcx), %r9d
addl %r9d, %r8d
movzbl -0x1(%rsi,%rcx), %r9d
addl %r8d, %r9d
movb %r9b, -0x1(%rdx,%rcx)
shrl $0x8, %r9d
movl %r9d, %r8d
movq %rax, %rcx
jmp 0x3e88
popq %rbp
retq