LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/ryuichiueda[P]GlueLang/src/Literal.cc
// Function: Literal::parse()
bool Literal::parse(void)
{
	m_feeder->getPos(&m_start_line, &m_start_char);

	try{
		if( m_feeder->literal(&m_text)){
			m_feeder->getPos(&m_end_line, &m_end_char);
			return true;
		}
	}catch(Feeder *e){
		m_feeder->getPos(&m_end_line, &m_end_char);
		m_error_msg = e->m_error_msg;
		m_exit_status = 1;
		throw this;
	}

	return false;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
leaq 0x30(%rbx), %rsi
leaq 0x34(%rbx), %rdx
callq 0x1003e
movq 0x8(%rbx), %rdi
leaq 0x88(%rbx), %rsi
callq 0xfb20
movl %eax, %ebp
testb %al, %al
je 0x11f23
movq 0x8(%rbx), %rdi
leaq 0x38(%rbx), %rsi
leaq 0x3c(%rbx), %rdx
callq 0x1003e
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
cmpl $0x1, %edx
jne 0x11f8e
movq %r14, %rdi
callq 0x6130
movq %rax, %r14
movq 0x8(%rbx), %rdi
leaq 0x38(%rbx), %rsi
leaq 0x3c(%rbx), %rdx
callq 0x1003e
addq $0x28, %r14
leaq 0x60(%rbx), %rdi
movq %r14, %rsi
callq 0x61c0
movl $0x1, 0x80(%rbx)
movl $0x8, %edi
callq 0x6190
movq %rbx, (%rax)
leaq 0x9bbc(%rip), %rsi      # 0x1bb38
movq %rax, %rdi
xorl %edx, %edx
callq 0x6550
movq %rax, %r14
callq 0x6500
movq %r14, %rdi
callq 0x6580
// File: /workspace/github_cpp_makefile_star2_O1/ryuichiueda[P]GlueLang/src/Literal.cc
// Function: Literal::eval()
bool Literal::eval(void)
{
	m_evaled_text = m_text;
	//evaled escaped characters 
	auto pos = m_evaled_text.find("\\\'"); // \'
	while(pos != string::npos){
		m_evaled_text.replace(pos, 2, "\'");
		pos = m_evaled_text.find("\\\'", pos + 1);
	}
	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x88(%rdi), %rsi
addq $0xa8, %rbx
movq %rbx, %rdi
callq 0x61c0
leaq 0x2773(%rip), %rsi      # 0x14731
movl $0x2, %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x6570
cmpq $-0x1, %rax
je 0x1201c
movq %rax, %r14
leaq 0x2755(%rip), %r15      # 0x14732
leaq 0x274d(%rip), %r12      # 0x14731
movl $0x2, %edx
movl $0x1, %r8d
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0x6390
incq %r14
movl $0x2, %ecx
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x6570
movq %rax, %r14
cmpq $-0x1, %rax
jne 0x11fe4
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/ryuichiueda[P]GlueLang/src/Pipeline.cc
// Function: Pipeline::exec(DefFile*, DefStr*)
int Pipeline::exec(DefFile *f,  DefStr *s)
{
	// When wait(1) is set in the command line,
	// wait(1) is done in this process.
	// Wait(1) cannot be connected with other commands
	//auto *cl = (Executable *)m_nodes[0];
	if(((Executable *)m_nodes[0])->m_is_wait)
		return execWait();

	int pip[2];
	int prevfd = -1;

	for(auto *n : m_nodes){
		auto *p = (Executable *)n;
		pip[1] = -1;
		if ( p != m_nodes.back() && pipe(pip) < 0) {
			close(prevfd);
			m_error_msg = "Pipe call failed";
			throw this;
		}

		p->setPipe(pip,prevfd);
		//Only the last command is connected to the file/string
		if( n != m_nodes.back() )
			m_pids.push_back( p->exec(NULL,NULL) ); //to pipeline
		else
			m_pids.push_back( p->exec(f,s) ); //to file/string
		prevfd = p->getPrevPipe();
	}

	if(s != NULL)
		s->readFifo();

	for(auto pid : m_pids)
		waitCommands(pid);

	return m_exit_status;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, 0x18(%rsp)
movq %rdi, %rbx
movq 0x18(%rdi), %r15
movq (%r15), %rax
cmpb $0x1, 0x85(%rax)
jne 0x1232d
movq %rbx, %rdi
callq 0x12478
xorl %eax, %eax
jmp 0x12433
movq %rdx, 0x10(%rsp)
movq 0x20(%rbx), %r14
cmpq %r14, %r15
je 0x123fa
leaq 0x90(%rbx), %rax
movq %rax, 0x8(%rsp)
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
leaq 0x20(%rsp), %r13
movq (%r15), %rbp
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
movq 0x20(%rbx), %rax
cmpq -0x8(%rax), %rbp
je 0x1237b
movq %r13, %rdi
callq 0x6420
testl %eax, %eax
js 0x12442
movq %rbp, %rdi
movq %r13, %rsi
movl %r12d, %edx
callq 0xeed6
movq 0x20(%rbx), %rax
cmpq -0x8(%rax), %rbp
je 0x123a0
movq (%rbp), %rax
movq %rbp, %rdi
xorl %esi, %esi
xorl %edx, %edx
jmp 0x123b1
movq (%rbp), %rax
movq %rbp, %rdi
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq *0x18(%rax)
movl %eax, 0x4(%rsp)
movq 0x98(%rbx), %rsi
cmpq 0xa0(%rbx), %rsi
je 0x123d7
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x98(%rbx)
jmp 0x123e6
movq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rdx
callq 0xa230
movl 0x90(%rbp), %r12d
addq $0x8, %r15
cmpq %r14, %r15
jne 0x12356
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x12409
callq 0x9ae0
movq 0x90(%rbx), %r14
movq 0x98(%rbx), %r15
cmpq %r15, %r14
je 0x1242d
movl (%r14), %esi
movq %rbx, %rdi
callq 0x126f8
addq $0x4, %r14
jmp 0x12417
movl 0x80(%rbx), %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r12d, %edi
callq 0x65e0
leaq 0x60(%rbx), %rdi
leaq 0x22e3(%rip), %rsi      # 0x14738
callq 0x6410
movl $0x8, %edi
callq 0x6190
movq %rbx, (%rax)
leaq 0x9752(%rip), %rsi      # 0x1bbc0
movq %rax, %rdi
xorl %edx, %edx
callq 0x6550
// File: /workspace/github_cpp_makefile_star2_O1/ryuichiueda[P]GlueLang/src/Script.cc
// Function: Script::parse()
bool Script::parse(void)
{
	try{
		return parseScript();
	}
	catch(Element *e){
		printErrorMsg(e,"Parse error");
		m_env->removeFiles();
		end(e->m_exit_status);
	}catch(...){
		cerr << "\nParse error"
		     << "\nunknown error" << endl;
		m_env->removeFiles();
		end(128);
	}
	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
callq 0x12a3c
movb $0x1, %al
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rdx, %r15
movq %rax, %rdi
callq 0x6130
cmpl $0x2, %r15d
jne 0x129ab
movq %rax, %r14
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1e75(%rip), %rsi      # 0x147d6
leaq 0x1e79(%rip), %rdx      # 0x147e1
movq %rsp, %rdi
callq 0x74e6
movq %rsp, %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x12c2c
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x12993
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x10(%rbx), %rdi
callq 0xb7a0
movl 0x80(%r14), %esi
movq %rbx, %rdi
callq 0x12baa
movq 0x963e(%rip), %rdi      # 0x1bff0
leaq 0x1e1c(%rip), %rsi      # 0x147d5
movl $0xc, %edx
callq 0x63a0
movq 0x9626(%rip), %rdi      # 0x1bff0
leaq 0x1e11(%rip), %rsi      # 0x147e2
movl $0xe, %edx
callq 0x63a0
movq 0x960e(%rip), %rdi      # 0x1bff0
callq 0x6180
movq 0x10(%rbx), %rdi
callq 0xb7a0
movq %rbx, %rdi
movl $0x80, %esi
callq 0x12baa
jmp 0x12a1a
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x12a1d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0x12a1d
movq %rax, %rbx
callq 0x6500
jmp 0x12a2c
movq %rax, %rbx
callq 0x6500
movq %rbx, %rdi
callq 0x6580
movq %rax, %rdi
callq 0x7c1d
// File: /workspace/github_cpp_makefile_star2_O1/ryuichiueda[P]GlueLang/src/Script.cc
// Function: Script::parseScript()
bool Script::parseScript(void)
{
	m_feeder->getPos(&m_start_line, &m_start_char);

	// mainly for shebang
	while(m_feeder->comment());
	// import
	while(add(new Import(m_feeder,m_env,&m_scopes))){
		while(m_feeder->blankLine());
	}

	m_env->initTmpdir();

	while(1){
		// comments -> proc or job -> proc or job -> ...

		while(m_feeder->comment());

		bool res = add(new DefProc(m_feeder,m_env,&m_scopes))
			|| add(new Job(m_feeder,m_env,&m_scopes));

		if(!res)
			break;
	
		while(m_feeder->blankLine());
	}
	m_feeder->getPos(&m_end_line, &m_end_char);

	if(!m_feeder->atEnd()){
		m_error_msg = "Unknown token";
		m_exit_status = 7;
		throw this;
	}

	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
leaq 0x30(%rbx), %rsi
leaq 0x34(%rbx), %rdx
callq 0x1003e
movq 0x8(%rbx), %rdi
callq 0xffa2
testb %al, %al
jne 0x12a55
leaq 0x48(%rbx), %r14
movl $0xc8, %edi
callq 0x6320
movq %rax, %r15
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
movq %rax, %rdi
movq %r14, %rcx
callq 0x10c50
movq %rbx, %rdi
movq %r15, %rsi
callq 0x9cc2
testb %al, %al
je 0x12aa4
movq 0x8(%rbx), %rdi
callq 0xf5bc
testb %al, %al
jne 0x12a95
jmp 0x12a66
movq 0x10(%rbx), %rdi
callq 0xa996
movq 0x8(%rbx), %rdi
callq 0xffa2
testb %al, %al
jne 0x12aad
movl $0xc8, %edi
callq 0x6320
movq %rax, %r15
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
movq %rax, %rdi
movq %r14, %rcx
callq 0x8ecc
movq %rbx, %rdi
movq %r15, %rsi
callq 0x9cc2
testb %al, %al
jne 0x12b18
movl $0xd0, %edi
callq 0x6320
movq %rax, %r15
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
movq %rax, %rdi
movq %r14, %rcx
callq 0x11500
movq %rbx, %rdi
movq %r15, %rsi
callq 0x9cc2
testb %al, %al
je 0x12b27
movq 0x8(%rbx), %rdi
callq 0xf5bc
testb %al, %al
jne 0x12b18
jmp 0x12aad
movq 0x8(%rbx), %rdi
leaq 0x38(%rbx), %rsi
leaq 0x3c(%rbx), %rdx
callq 0x1003e
movq 0x8(%rbx), %rdi
callq 0xff8c
testb %al, %al
je 0x12b4d
movb $0x1, %al
popq %rbx
popq %r14
popq %r15
retq
leaq 0x60(%rbx), %rdi
leaq 0x1c99(%rip), %rsi      # 0x147f1
callq 0x6410
movl $0x7, 0x80(%rbx)
movl $0x8, %edi
callq 0x6190
movq %rbx, (%rax)
leaq 0x90e5(%rip), %rsi      # 0x1bc60
movq %rax, %rdi
xorl %edx, %edx
callq 0x6550
movq %rax, %rbx
movl $0xd0, %esi
jmp 0x12b99
jmp 0x12b91
movq %rax, %rbx
movl $0xc8, %esi
movq %r15, %rdi
callq 0x6330
movq %rbx, %rdi
callq 0x6580
nop
// File: /workspace/github_cpp_makefile_star2_O1/ryuichiueda[P]GlueLang/src/Script.cc
// Function: Script::printErrorMsg(Element*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
void Script::printErrorMsg(Element *e,string error_type, bool silent)
{
	if(silent)
		return;

	cerr << error_type << " at " << e->pos() << endl;
	e->printErrorPart();
	cerr << "\n\t" << e->m_error_msg
	     << "\n\tprocess_level " << e->getLevel()
	     << "\n\texit_status " << e->getExitStatus()
	     << "\n\tpid " << getpid() << endl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
testl %ecx, %ecx
jne 0x12d9d
movq %rsi, %rbx
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
movq 0x93a2(%rip), %rdi      # 0x1bff0
callq 0x63a0
movq %rax, %r14
leaq 0x1bde(%rip), %rsi      # 0x1483b
movl $0x4, %edx
movq %rax, %rdi
callq 0x63a0
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x9d38
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x63a0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x6300
movsbl %al, %esi
movq %r14, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61e0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12ccc
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6330
movq %rbx, %rdi
callq 0xa0d0
movq 0x9315(%rip), %r14      # 0x1bff0
leaq 0x1b5e(%rip), %rsi      # 0x14840
movl $0x2, %edx
movq %r14, %rdi
callq 0x63a0
movq 0x60(%rbx), %rsi
movq 0x68(%rbx), %rdx
movq %r14, %rdi
callq 0x63a0
movq %rax, %r14
leaq 0x1b3a(%rip), %rsi      # 0x14843
movl $0x10, %edx
movq %rax, %rdi
callq 0x63a0
movq %rbx, %rdi
callq 0xa0ea
movq %r14, %rdi
movl %eax, %esi
callq 0x6560
movq %rax, %r14
leaq 0x1b22(%rip), %rsi      # 0x14854
movl $0xe, %edx
movq %rax, %rdi
callq 0x63a0
movl 0x80(%rbx), %esi
movq %r14, %rdi
callq 0x6560
movq %rax, %rbx
leaq 0x1b0c(%rip), %rsi      # 0x14863
movl $0x6, %edx
movq %rax, %rdi
callq 0x63a0
callq 0x6480
movq %rbx, %rdi
movl %eax, %esi
callq 0x6560
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x6300
movsbl %al, %esi
movq %rbx, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61e0
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12dc5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6330
movq %rbx, %rdi
callq 0x6580
nop
// File: /workspace/github_cpp_makefile_star2_O1/ryuichiueda[P]GlueLang/src/Script.cc
// Function: Script::exec(DefFile*, DefStr*)
int Script::exec(DefFile *f,  DefStr *s)
{
	int exit_status = 0;
	try{
		for(auto &c : m_nodes){
			exit_status = c->exec(NULL,NULL);
		}
		m_env->removeFiles();
		if(exit_status == 0)
			end(0);
	}catch(Element *e){
		printErrorMsg(e,"Execution error",m_silent);
		m_env->removeFiles();
		if(e->m_command_error)
			end(1);
		else
			end(e->getExitStatus());
	}catch(...){
		cerr << "\nExecution error\n"
		     << "unknown error" << endl;
		m_env->removeFiles();
		end(3);
	}
	cerr << "unknown error (uncatched)" << endl;
	m_env->removeFiles();
	end(3);
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x18(%rdi), %r14
movq 0x20(%rdi), %r15
movb $0x1, %bpl
cmpq %r15, %r14
je 0x12e07
movq (%r14), %rdi
movq (%rdi), %rax
xorl %esi, %esi
xorl %edx, %edx
callq *0x18(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x12deb
testl %eax, %eax
sete %bpl
movq 0x10(%rbx), %rdi
callq 0xb7a0
testb %bpl, %bpl
je 0x12e1c
xorl %edi, %edi
callq 0x63c0
movq 0x91cd(%rip), %r14      # 0x1bff0
leaq 0x19f7(%rip), %rsi      # 0x14821
movl $0x19, %edx
movq %r14, %rdi
callq 0x63a0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x6300
movsbl %al, %esi
movq %r14, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61e0
movq 0x10(%rbx), %rdi
callq 0xb7a0
movq %rbx, %rdi
movl $0x3, %esi
callq 0x12baa
jmp 0x12e76
movq %rdx, %r15
movq %rax, %rdi
callq 0x6130
cmpl $0x2, %r15d
jne 0x12efd
movq %rax, %r14
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1977(%rip), %rsi      # 0x14811
leaq 0x197f(%rip), %rdx      # 0x14820
leaq 0x8(%rsp), %rdi
callq 0x74e6
movzbl 0x85(%rbx), %ecx
leaq 0x8(%rsp), %rdx
movq %r14, %rsi
callq 0x12c2c
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x12ed6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x10(%rbx), %rdi
callq 0xb7a0
movl $0x1, %esi
cmpb $0x0, 0x84(%r14)
jne 0x12ef5
movl 0x80(%r14), %esi
movq %rbx, %rdi
callq 0x12baa
movq 0x90ec(%rip), %rdi      # 0x1bff0
leaq 0x18f4(%rip), %rsi      # 0x147ff
movl $0x11, %edx
callq 0x63a0
movq 0x90d4(%rip), %rdi      # 0x1bff0
leaq 0x18c0(%rip), %rsi      # 0x147e3
movl $0xd, %edx
callq 0x63a0
movq 0x90bc(%rip), %rdi      # 0x1bff0
callq 0x6180
movq 0x10(%rbx), %rdi
callq 0xb7a0
movq %rbx, %rdi
movl $0x3, %esi
callq 0x12baa
jmp 0x12f6d
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x12f70
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0x12f70
movq %rax, %rbx
callq 0x6500
jmp 0x12f7f
movq %rax, %rbx
callq 0x6500
movq %rbx, %rdi
callq 0x6580
movq %rax, %rdi
callq 0x7c1d
nop
// File: /workspace/github_cpp_makefile_star2_O1/ryuichiueda[P]GlueLang/src/Where.cc
// Function: Where::parse()
bool Where::parse(void)
{
	m_feeder->getPos(&m_start_line, &m_start_char);
	int base_indent = m_feeder->countIndent();
	if(base_indent <= 0)
		return false;

	m_feeder->blank();
	if(!m_feeder->str("where")){
		m_feeder->setPos(m_start_line, m_start_char);
		return false;
	}

	int indent = base_indent;
	while(indent >= base_indent){
		m_feeder->blank();
		if(add(new Job(m_feeder,m_env,&m_scopes))){
		}else{
			m_error_msg = "Invalid where sentences";	
			m_exit_status = 1;
			throw this;
		}

		if(!m_feeder->atNewLine()){
			m_error_msg = "Invalid pipeline or andline";	
			m_exit_status = 1;
			throw this;
		}
		
		indent = m_feeder->countIndent();
	}

	m_feeder->getPos(&m_end_line, &m_end_char);
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
leaq 0x30(%rbx), %rsi
leaq 0x34(%rbx), %rdx
callq 0x1003e
movq 0x8(%rbx), %rdi
callq 0x10830
testl %eax, %eax
jle 0x13117
movl %eax, %ebp
movq 0x8(%rbx), %rdi
callq 0xf358
movq 0x8(%rbx), %r14
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x182d(%rip), %rsi      # 0x1488c
leaq 0x182b(%rip), %rdx      # 0x14891
movq %rsp, %r15
movq %r15, %rdi
callq 0x74e6
movq %r14, %rdi
movq %r15, %rsi
callq 0x100e8
movl %eax, %r14d
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x13095
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6330
testb %r14b, %r14b
je 0x13108
leaq 0x48(%rbx), %r14
movq 0x8(%rbx), %rdi
callq 0xf358
movl $0xd0, %edi
callq 0x6320
movq %rax, %r15
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
movq %rax, %rdi
movq %r14, %rcx
callq 0x11500
movq %rbx, %rdi
movq %r15, %rsi
callq 0x9cc2
testb %al, %al
je 0x13133
movq 0x8(%rbx), %rdi
callq 0xf950
testb %al, %al
je 0x13126
movq 0x8(%rbx), %rdi
callq 0x10830
cmpl %ebp, %eax
jge 0x1309e
movq 0x8(%rbx), %rdi
leaq 0x38(%rbx), %rsi
addq $0x3c, %rbx
movq %rbx, %rdx
callq 0x1003e
movb $0x1, %al
jmp 0x13119
movq 0x8(%rbx), %rdi
movl 0x30(%rbx), %esi
movl 0x34(%rbx), %edx
callq 0xf958
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x60(%rbx), %rdi
leaq 0x1779(%rip), %rsi      # 0x148aa
jmp 0x1313e
leaq 0x60(%rbx), %rdi
leaq 0x1754(%rip), %rsi      # 0x14892
callq 0x6410
movl $0x1, 0x80(%rbx)
movl $0x8, %edi
callq 0x6190
movq %rbx, (%rax)
leaq 0x8b7f(%rip), %rsi      # 0x1bce0
movq %rax, %rdi
xorl %edx, %edx
callq 0x6550
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x13191
movq 0x10(%rsp), %rsi
incq %rsi
jmp 0x1318c
movq %rax, %rbx
movl $0xd0, %esi
movq %r15, %rdi
callq 0x6330
movq %rbx, %rdi
callq 0x6580
nop
// File: /workspace/github_cpp_makefile_star2_O1/ryuichiueda[P]GlueLang/src/main.cc
// Function: scriptPos(int, char const**)
int scriptPos(int argc, char const* argv[])
{
	string com = string(argv[0]);
	bool shebang = com.substr(com.find_last_of('/') + 1) != "glue";

	if(shebang)
		return 0;

	int i=1;
	for(;i<argc;i++){
		if(argv[i][0] != '-')
			break;
	}
	return i;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movl %edi, %ebp
movq (%rsi), %rsi
leaq 0x28(%rsp), %r14
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0xbc92
movq %r14, %rdi
movl $0x2f, %esi
movq $-0x1, %rdx
callq 0x65f0
leaq 0x1(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq $-0x1, %rcx
callq 0x6350
leaq 0xf0f(%rip), %rsi       # 0x14434
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x60f0
movl %eax, %r15d
movq (%r14), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1354f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6330
xorl %r14d, %r14d
testl %r15d, %r15d
jne 0x1357e
movl $0x1, %r14d
cmpl $0x2, %ebp
jl 0x1357e
movl %ebp, %eax
movl $0x1, %r14d
movq (%rbx,%r14,8), %rcx
cmpb $0x2d, (%rcx)
jne 0x1357e
incq %r14
cmpq %r14, %rax
jne 0x1356a
movl %eax, %r14d
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13599
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6330
movl %r14d, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x135c5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6330
movq %rbx, %rdi
callq 0x6580
// File: /workspace/github_cpp_makefile_star2_O1/ryuichiueda[P]GlueLang/src/main.cc
// Function: setFlags(int, char const**, Environment*)
bool setFlags(int argc, char const* argv[],Environment *e)
{
	struct option long_opts[] = {
		{"help",0,NULL,'h'},
		{"usage",0,NULL,'u'},
		{"version",0,NULL,'h'},
		{"verbose",0,NULL,'v'},
		{0,0,0,0}
	};

	int opt = 0;
	int idx = 0;
	while((opt = getopt_long(argc,(char *const *)argv,"uhv",long_opts,&idx)) != -1){
		switch (opt){
		case 'u':
			usage();
		case 'h':
			version();
		case 'v':
			e->m_v_opt = true;
			break;
		}
	}
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
leaq 0x8713(%rip), %rsi      # 0x1bd00
leaq 0x10(%rsp), %r15
movl $0xa0, %edx
movq %r15, %rdi
callq 0x6260
leaq 0xc(%rsp), %r12
movl $0x0, (%r12)
leaq 0x1383(%rip), %r13      # 0x14996
movl %ebp, %edi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
movq %r12, %r8
callq 0x6520
cmpl $0x75, %eax
jle 0x13639
cmpl $0x76, %eax
jne 0x13613
movb $0x1, 0xe0(%rbx)
jmp 0x13613
cmpl $-0x1, %eax
je 0x1364d
cmpl $0x68, %eax
je 0x13661
cmpl $0x75, %eax
jne 0x13613
callq 0x1348a
movb $0x1, %al
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x13666
// File: /workspace/github_cpp_makefile_star2_O1/ryuichiueda[P]GlueLang/src/main.cc
// Function: version()
void version(void)
{
	cerr << "GlueLang v0.3.2 🌸🍺\n"
	     << "Copyright (C) 2021 Ryuichi Ueda\n"
	     << "Released under the MIT License.\n"
	     << "https://github.com/ryuichiueda/GlueLang" << endl;
	exit(1);
}

// Assembly:
pushq %rax
movq 0x8982(%rip), %rdi      # 0x1bff0
leaq 0x1266(%rip), %rsi      # 0x148db
callq 0x6310
leaq 0x1274(%rip), %rsi      # 0x148f5
movq %rax, %rdi
callq 0x6310
leaq 0x1286(%rip), %rsi      # 0x14916
movq %rax, %rdi
callq 0x6310
leaq 0x1298(%rip), %rsi      # 0x14937
movq %rax, %rdi
callq 0x6310
movq %rax, %rdi
callq 0x6180
movl $0x1, %edi
callq 0x63c0
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/include/cxxopts.hpp
// Function: cxxopts::ParseResult::count(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
size_t
    count(const std::string& o) const
    {
      auto iter = m_options->find(o);
      if (iter == m_options->end())
      {
        return 0;
      }

      auto riter = m_results.find(iter->second);

      return riter->second.count();
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x13822
testq %rax, %rax
je 0xce08
leaq 0x68(%rbx), %rdi
movq %rax, %rcx
addq $0x28, %rcx
movq 0x28(%rax), %r8
movq %r8, %rax
xorl %edx, %edx
divq 0x70(%rbx)
movq %rdx, %rsi
movq %rcx, %rdx
movq %r8, %rcx
callq 0x141b2
movq (%rax), %rax
movq 0x28(%rax), %rax
jmp 0xce0a
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/include/cxxopts.hpp
// Function: cxxopts::ParseResult::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
const OptionValue&
    operator[](const std::string& option) const
    {
      auto iter = m_options->find(option);

      if (iter == m_options->end())
      {
        throw option_not_present_exception(option);
      }

      auto riter = m_results.find(iter->second);

      return riter->second;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
callq 0x13822
testq %rax, %rax
je 0xd2f2
leaq 0x68(%r14), %rdi
movq %rax, %rcx
addq $0x28, %rcx
movq 0x28(%rax), %r8
movq %r8, %rax
xorl %edx, %edx
divq 0x70(%r14)
movq %rdx, %rsi
movq %rcx, %rdx
movq %r8, %rcx
callq 0x141b2
movq (%rax), %rax
addq $0x18, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x28, %edi
callq 0x7210
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x15fda
leaq 0x43e87(%rip), %rsi     # 0x51198
leaq 0x1511a(%rip), %rdx     # 0x22432
movq %r14, %rdi
callq 0x7700
movq %rax, %rbx
movq %r14, %rdi
callq 0x7330
movq %rbx, %rdi
callq 0x7730
nop
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/include/cxxopts.hpp
// Function: cxxopts::values::abstract_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::abstract_value(cxxopts::values::abstract_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&)
abstract_value(const abstract_value& rhs)
      {
        if (rhs.m_result)
        {
          m_result = std::make_shared<T>();
          m_store = m_result.get();
        }
        else
        {
          m_store = rhs.m_store;
        }

        m_default = rhs.m_default;
        m_implicit = rhs.m_implicit;
        m_default_value = rhs.m_default_value;
        m_implicit_value = rhs.m_implicit_value;
      }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq 0x301e9(%rip), %rax     # 0x51468
movq %rax, (%rdi)
movups %xmm0, 0x18(%rdi)
movw $0x0, 0x30(%rdi)
leaq 0x38(%rdi), %r14
leaq 0x48(%rdi), %rax
movq %rax, (%rsp)
movq %rax, 0x38(%rdi)
xorl %eax, %eax
movq %rax, 0x40(%rdi)
movb %al, 0x48(%rdi)
leaq 0x58(%rdi), %r15
leaq 0x68(%rdi), %rbp
movq %rbp, 0x58(%rdi)
movq %rax, 0x60(%rdi)
movb %al, 0x68(%rdi)
cmpq %rax, 0x18(%rsi)
je 0x21317
movl $0x30, %edi
callq 0x7430
leaq 0x18(%rbx), %r13
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x301ff(%rip), %rcx     # 0x514e0
movq %rcx, (%rax)
leaq 0x10(%rax), %rcx
movq %rax, %rdx
addq $0x20, %rdx
movq %rdx, 0x10(%rax)
movq $0x0, 0x18(%rax)
movb $0x0, 0x20(%rax)
movq %rcx, 0x18(%rbx)
movq 0x20(%rbx), %rdi
movq %rax, 0x20(%rbx)
testq %rdi, %rdi
je 0x2131c
callq 0xd68c
jmp 0x2131c
leaq 0x28(%r12), %r13
movq (%r13), %rax
movq %rax, 0x28(%rbx)
movb 0x30(%r12), %al
movb %al, 0x30(%rbx)
movb 0x31(%r12), %al
movb %al, 0x31(%rbx)
leaq 0x38(%r12), %rsi
movq %r14, %rdi
callq 0x7260
addq $0x58, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x7260
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x21361
movq %rax, %r12
movq (%r15), %rdi
cmpq %rbp, %rdi
je 0x21378
movq (%rbp), %rsi
incq %rsi
callq 0x7440
movq (%r14), %rdi
cmpq (%rsp), %rdi
je 0x21390
movq (%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x7440
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x2139e
callq 0xd68c
movq %rbx, %rdi
callq 0x21136
movq %r12, %rdi
callq 0x7730
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/include/cxxopts.hpp
// Function: cxxopts::values::standard_value<bool>::set_default_and_implicit()
void
      set_default_and_implicit()
      {
        m_default = true;
        m_default_value = "false";
        m_implicit = true;
        m_implicit_value = "true";
      }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movb $0x1, %bpl
movb %bpl, 0x30(%rdi)
addq $0x38, %rdi
movq 0x40(%rbx), %rdx
leaq 0x1b7ba(%rip), %rcx     # 0x3d47a
movl $0x5, %r8d
xorl %esi, %esi
callq 0x7640
movb %bpl, 0x31(%rbx)
movq 0x60(%rbx), %rdx
addq $0x58, %rbx
leaq 0x1b746(%rip), %rcx     # 0x3d426
movl $0x4, %r8d
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x7640
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/include/cxxopts.hpp
// Function: void cxxopts::values::stringstream_parser<double>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, double&)
void stringstream_parser(const std::string& text, T& value)
    {
      std::stringstream in(text);
      in >> value;
      if (!in) {
        throw argument_incorrect_type(text);
      }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movl $0x18, %edx
callq 0x7660
movq %r15, %rdi
movq %r14, %rsi
callq 0x72d0
movq 0x8(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x28(%rsp,%rax)
jne 0x24a53
movq 0x2d509(%rip), %rsi     # 0x51f38
leaq 0x8(%rsp), %rdi
callq 0x7340
leaq 0x88(%rsp), %rdi
callq 0x7160
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r14
popq %r15
retq
movl $0x28, %edi
callq 0x7210
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x221f0
leaq 0x2ce2e(%rip), %rsi     # 0x518a0
leaq -0x2647(%rip), %rdx     # 0x22432
movq %r14, %rdi
callq 0x7700
movq %rax, %rbx
movq %r14, %rdi
callq 0x7330
jmp 0x24a91
movq %rax, %rbx
movq 0x2d4a0(%rip), %rsi     # 0x51f38
leaq 0x8(%rsp), %rdi
callq 0x7340
leaq 0x88(%rsp), %rdi
callq 0x7160
movq %rbx, %rdi
callq 0x7730
nop
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/include/cxxopts.hpp
// Function: void cxxopts::values::detail::SignedCheck<int, true>::operator()<unsigned int>(bool, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void
        operator()(bool negative, U u, const std::string& text)
        {
          if (negative)
          {
            if (u > static_cast<U>(-(std::numeric_limits<T>::min)()))
            {
              throw argument_incorrect_type(text);
            }
          }
          else
          {
            if (u > static_cast<U>((std::numeric_limits<T>::max)()))
            {
              throw argument_incorrect_type(text);
            }
          }
        }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %r14
testl %esi, %esi
je 0x25395
cmpl $0x80000001, %edx       # imm = 0x80000001
jb 0x25399
movl $0x28, %edi
callq 0x7210
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0x221f0
jmp 0x253b9
testl %edx, %edx
js 0x253a1
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x28, %edi
callq 0x7210
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0x221f0
leaq 0x2c4e0(%rip), %rsi     # 0x518a0
leaq -0x2f95(%rip), %rdx     # 0x22432
movq %rbx, %rdi
callq 0x7700
jmp 0x253d1
movq %rax, %r14
movq %rbx, %rdi
callq 0x7330
movq %r14, %rdi
callq 0x7730
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/src/CachePosition.cpp
// Function: CachePosition::CachePosition(int, int, int)
CachePosition::CachePosition(int numVertex, int num_rot, int numPlacedVertex)
{
    sizeCacheEntry1 = numVertex;                           //  Used later to compute offsets for iPlacedVertex so multiply by numVertex
    sizeCacheEntry2 = numVertex*numPlacedVertex;           //  Used later to compute offsets for idxRot so multiply by numVertex*numPlacedVertex
    currentIdxCache = -1;                                  //  Init state, nothing in cache
    memCache = numPlacedVertex * num_rot * numVertex;      //  Memory claim
    CachePlaced = new Polygon *[memCache];
    //  The fake value  0xCACACACACACACA is impossible as a pointer
    //  It will be used to detect entries which are not yet processed.
    memset(CachePlaced, 0xCA, memCache*sizeof(Polygon *));    //  Init all entries, such as impossible !
    FixedPerRot = new int[num_rot];
    memset(FixedPerRot, -1, num_rot*sizeof(int));          //  Init all entries, such as not already computed !
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rdi, %rbx
leaq 0x2c879(%rip), %rax     # 0x51c70
movq %rax, (%rdi)
movslq %esi, %rax
movq %rax, 0x8(%rdi)
imull %ecx, %eax
cltq
movq %rax, 0x10(%rdi)
movl $0xffffffff, 0x20(%rdi) # imm = 0xFFFFFFFF
imull %edx, %eax
cltq
movq %rax, 0x18(%rdi)
leaq (,%rax,8), %r14
testl %eax, %eax
movq $-0x1, %r15
movq %r14, %rdi
cmovsq %r15, %rdi
callq 0x7040
movq %rax, 0x28(%rbx)
movq %rax, %rdi
movl $0xca, %esi
movq %r14, %rdx
callq 0x7270
movslq %ebp, %rax
leaq (,%rax,4), %r14
testl %eax, %eax
cmovnsq %r14, %r15
movq %r15, %rdi
callq 0x7040
movq %rax, 0x30(%rbx)
movq %rax, %rdi
movl $0xff, %esi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x7270
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/src/CachePosition.cpp
// Function: CachePosition::~CachePosition()
CachePosition::~CachePosition()
{
    for ( int i = 0; i < currentIdxCache; i++ )
    {
        uint64_t val = (uint64_t )CachePlaced[i];       //  default value, skip, DO NOT try to free this fake memory pointer
        if ( val == 0xCACACACACACACACA )
            continue;
        if ( CachePlaced[i] != NULL) delete CachePlaced[i];
    }
    delete [] CachePlaced;
    delete [] FixedPerRot;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x2c7df(%rip), %rax     # 0x51c70
movq %rax, (%rdi)
cmpl $0x0, 0x20(%rdi)
jle 0x254cb
xorl %r14d, %r14d
movabsq $-0x3535353535353536, %r15 # imm = 0xCACACACACACACACA
movq 0x28(%rbx), %rax
movq (%rax,%r14,8), %rdi
cmpq %r15, %rdi
je 0x254bf
testq %rdi, %rdi
je 0x254bf
movq (%rdi), %rax
callq *0x8(%rax)
incq %r14
movslq 0x20(%rbx), %rax
cmpq %rax, %r14
jl 0x254a7
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x254d9
callq 0x7560
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x254ec
popq %rbx
popq %r14
popq %r15
jmp 0x7560
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/src/CachePosition.cpp
// Function: CachePosition::isOKPlaced(int, int, int, Polygon**)
int CachePosition::isOKPlaced(int iVertex, int iRot, int iPlacedVertex, Polygon **PlacedPoly)
{
int idx = iRot * sizeCacheEntry2 + iPlacedVertex * sizeCacheEntry1 + iVertex;

    if ( idx > currentIdxCache )
        return 0;       //  Not yet computed, return don't know
    if ( iPlacedVertex > FixedPerRot[iRot])
        return 0;       //  Not yet computed
    uint64_t val = (uint64_t )CachePlaced[idx];
    if ( val == 0xCACACACACACACACA )            //  Check if default value (not yet processed) ?
    {
        return 0;           //  If so, return don't know
    }
    if ( CachePlaced[idx] != NULL )             //  Value not null, cache is OK
    {
        *PlacedPoly = CachePlaced[idx];         //  Update pointer to polygon to avoid recompute
        return FixedPerRot[iRot] + 1;           //  Return positive value
    }
    return -1;
}

// Assembly:
movl 0x10(%rdi), %eax
imull %edx, %eax
movl 0x8(%rdi), %r9d
imull %ecx, %r9d
addl %eax, %r9d
addl %esi, %r9d
xorl %eax, %eax
cmpl 0x20(%rdi), %r9d
jg 0x25556
movslq %edx, %rdx
movq 0x30(%rdi), %rsi
cmpl %ecx, (%rsi,%rdx,4)
jl 0x25556
movq 0x28(%rdi), %rcx
movslq %r9d, %rsi
movq (%rcx,%rsi,8), %rcx
movabsq $-0x3535353535353536, %rsi # imm = 0xCACACACACACACACA
cmpq %rsi, %rcx
je 0x25556
testq %rcx, %rcx
jne 0x25557
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
movq %rcx, (%r8)
movq 0x30(%rdi), %rax
movl (%rax,%rdx,4), %eax
incl %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/src/CachePosition.cpp
// Function: CachePosition::addOKPlaced(int, int, int, Polygon*)
void CachePosition::addOKPlaced(int iVertex, int iRot, int iPlacedVertex, Polygon *Poly)
{
    if ( iPlacedVertex > FixedPerRot[iRot] )
        FixedPerRot[iRot] = iPlacedVertex;
    int idx = iRot * sizeCacheEntry2 + iPlacedVertex * sizeCacheEntry1 + iVertex;
    if ( currentIdxCache < idx)
        currentIdxCache = idx;
    CachePlaced[idx] = Poly;
    if ( Poly != NULL )
    {
        Poly->TypePoly = CachedPoly;
        nbCreatedCachedPoly++;
        nbCachedPoly++;
        nbTranslatedPoly--;
    }
}

// Assembly:
movq 0x30(%rdi), %rax
movslq %edx, %r9
cmpl %ecx, (%rax,%r9,4)
jge 0x25575
movl %ecx, (%rax,%r9,4)
imull 0x10(%rdi), %edx
imull 0x8(%rdi), %ecx
addl %edx, %ecx
addl %esi, %ecx
cmpl %ecx, 0x20(%rdi)
jge 0x25589
movl %ecx, 0x20(%rdi)
movq 0x28(%rdi), %rax
movslq %ecx, %rcx
movq %r8, (%rax,%rcx,8)
testq %r8, %r8
je 0x255bf
movl $0x5, 0xc(%r8)
leaq 0x2d4b0(%rip), %rax     # 0x52a58
incq (%rax)
leaq 0x2d476(%rip), %rax     # 0x52a28
incq (%rax)
leaq 0x2d45c(%rip), %rax     # 0x52a18
decq (%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/src/CachePosition.cpp
// Function: CachePosition::isOKPlacedFreeRot(int, int, int, Polygon**)
int CachePosition::isOKPlacedFreeRot(int iVertex, int iRot, int iPlacedVertex, Polygon **PlacedPoly)
{
int idx = (iPlacedVertex * sizeCacheEntry1 + iVertex)*4 + iRot;

    if ( idx > currentIdxCache )
        return 0;       //  Not yet computed
    if ( CachePlaced[idx] != NULL )
    {
        *PlacedPoly = CachePlaced[idx];
        return 1;
    }
    return -1;
}

// Assembly:
imull 0x8(%rdi), %ecx
addl %esi, %ecx
leal (%rdx,%rcx,4), %ecx
xorl %eax, %eax
cmpl 0x20(%rdi), %ecx
jg 0x255e8
movq 0x28(%rdi), %rax
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
testq %rax, %rax
je 0x255e9
movq %rax, (%r8)
movl $0x1, %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/src/CachePosition.cpp
// Function: CachePosition::addOKPlacedFreeRot(int, int, int, Polygon*)
void CachePosition::addOKPlacedFreeRot(int iVertex, int iRot, int iPlacedVertex, Polygon *Poly)
{
int idx = ( iPlacedVertex * sizeCacheEntry1 + iVertex) * 4 + iRot;
    if ( currentIdxCache < idx)
        currentIdxCache = idx;
    CachePlaced[idx] = Poly;
    if ( Poly != NULL )
    {
        Poly->TypePoly = CachedPoly;
        nbCreatedCachedPoly++;
        nbCachedPoly++;
        nbTranslatedPoly--;
    }
}

// Assembly:
imull 0x8(%rdi), %ecx
addl %esi, %ecx
leal (%rdx,%rcx,4), %eax
cmpl %eax, 0x20(%rdi)
jge 0x25601
movl %eax, 0x20(%rdi)
movq 0x28(%rdi), %rcx
cltq
movq %r8, (%rcx,%rax,8)
testq %r8, %r8
je 0x25636
movl $0x5, 0xc(%r8)
leaq 0x2d439(%rip), %rax     # 0x52a58
incq (%rax)
leaq 0x2d3ff(%rip), %rax     # 0x52a28
incq (%rax)
leaq 0x2d3e5(%rip), %rax     # 0x52a18
decq (%rax)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/src/ConvexHull.cpp
// Function: CombineHull(std::vector<Point, std::allocator<Point>> const&, std::vector<Point, std::allocator<Point>> const&)
vector<Point> CombineHull(const vector<Point> &points_1, const vector<Point> &points_2)
{
	vector<Point> newPoints = points_1;
	newPoints.insert (newPoints.end(), points_2.begin(), points_2.end());
	std::sort(newPoints.begin(), newPoints.end());
	return makeConvexHullPresorted(newPoints);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x25bd8
movq 0x8(%r15), %rsi
movq (%r14), %rdx
movq 0x8(%r14), %rcx
movq %r15, %rdi
callq 0x25d90
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %r15
cmpq %r15, %r14
je 0x259f6
movq %r15, %rax
subq %r14, %rax
sarq $0x4, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x25f5f
movq %r14, %rdi
movq %r15, %rsi
callq 0x26012
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x25638
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x25a1a
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x7440
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x25a29
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x25a43
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x7440
movq %rbx, %rdi
callq 0x7730
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/src/ConvexHull.cpp
// Function: Hull2BoundingBox(std::vector<Point, std::allocator<Point>> const&)
Rectangle Hull2BoundingBox(const vector<Point> &points)
{
double xmin, xmax, ymin, ymax;
int n = points.size();
Rectangle BBox;

    xmax = xmin = points[0].x;
    ymax = ymin = points[0].y;
    for (int i = 1; i < n - 1; i++)
    {
        xmin = fmin(xmin, points[i].x);
        ymin = fmin(ymin, points[i].y);
        xmax = fmax(xmax, points[i].x);
        ymax = fmax(ymax, points[i].y);
    }
    BBox.A = Point(xmin, ymin);
    BBox.B = Point(xmax, ymax);
	return BBox;
}

// Assembly:
movq %rdi, %rax
movq (%rsi), %rcx
movq 0x8(%rsi), %rdx
subq %rcx, %rdx
shrq $0x4, %rdx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movsd (%rcx), %xmm6
movsd 0x8(%rcx), %xmm4
cmpl $0x3, %edx
jl 0x25bb3
decl %edx
shlq $0x4, %rdx
movl $0x10, %esi
movapd %xmm4, %xmm0
movapd %xmm6, %xmm5
movapd %xmm6, %xmm3
movapd %xmm6, %xmm1
movapd %xmm4, %xmm2
cmpunordsd %xmm3, %xmm3
movsd (%rcx,%rsi), %xmm8
movsd 0x8(%rcx,%rsi), %xmm7
movapd %xmm3, %xmm9
andpd %xmm8, %xmm9
movapd %xmm8, %xmm10
minsd %xmm6, %xmm10
andnpd %xmm10, %xmm3
orpd %xmm9, %xmm3
movapd %xmm7, %xmm6
minsd %xmm0, %xmm6
cmpunordsd %xmm0, %xmm0
movapd %xmm0, %xmm9
andpd %xmm7, %xmm9
andnpd %xmm6, %xmm0
orpd %xmm9, %xmm0
cmpunordsd %xmm1, %xmm1
movapd %xmm1, %xmm6
andpd %xmm8, %xmm6
maxsd %xmm5, %xmm8
andnpd %xmm8, %xmm1
orpd %xmm6, %xmm1
cmpunordsd %xmm2, %xmm2
movapd %xmm2, %xmm5
andpd %xmm7, %xmm5
maxsd %xmm4, %xmm7
andnpd %xmm7, %xmm2
orpd %xmm5, %xmm2
addq $0x10, %rsi
movapd %xmm3, %xmm6
movapd %xmm2, %xmm4
movapd %xmm1, %xmm5
cmpq %rsi, %rdx
jne 0x25b14
jmp 0x25bc3
movapd %xmm6, %xmm1
movapd %xmm4, %xmm0
movapd %xmm4, %xmm2
movapd %xmm6, %xmm3
movsd %xmm3, (%rax)
movsd %xmm0, 0x8(%rax)
movsd %xmm1, 0x10(%rax)
movsd %xmm2, 0x18(%rax)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::Polygon()
Polygon::Polygon()
{
    //constructor, build an empty vector
    //  Bounding box is also empty
    BoundingBox.A = Point(0,0);
    BoundingBox.B = Point(0,0);
    nVertices = 0;
    poly_centroid_ok = 0;           //  Not yet computed;
    poly_area = 0.0;
    poly_clockwise = 0;
    poly_closed = 0;
    poly_changed = 1;
    angle_rotation = 0;
    precision = my_Default_Precision;
    TypePoly = EmptyPoly;
    nbEmptyPoly++;
    nbCreatedEmptyPoly++;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x2b777(%rip), %rax     # 0x51ca0
movq %rax, (%rdi)
addq $0x10, %rdi
xorl %ebp, %ebp
movl %ebp, 0x8(%rbx)
movl $0x8c, %edx
xorl %esi, %esi
callq 0x7270
xorps %xmm0, %xmm0
movups %xmm0, 0xb0(%rbx)
movl $0x1, 0x9c(%rbx)
movq $0x0, 0xa8(%rbx)
movabsq $0x3f1a36e2eb1c432d, %rax # imm = 0x3F1A36E2EB1C432D
movq %rax, 0xa0(%rbx)
movl %ebp, 0xc(%rbx)
incq 0x2c485(%rip)           # 0x52a00
incq 0x2c4ae(%rip)           # 0x52a30
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::Polygon(std::vector<Point, std::allocator<Point>>&)
Polygon::Polygon(vector<Point> &points)
{
int n = points.size();

    BoundingBox.A = Point(0,0);
    BoundingBox.B = Point(0,0);
    nVertices = 0;
    poly_centroid_ok = 0;           //  Not yet computed;
    poly_area = 0.0;
    poly_clockwise = 0;
    poly_closed = 0;
    poly_changed = 1;
    precision = my_Default_Precision;
    for (int i = 0; i < n; i++ )
    {
        addVertice(points[i]);      //  Add this point, but with the desired precision
    }
    //  Add last point which is first
    addVertice(points[0]);
    TypePoly = VectorPoly;
    nbVectorPoly++;
    nbCreatedVectorPoly++;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x2b701(%rip), %rax     # 0x51ca0
movq %rax, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x50(%rdi)
movups %xmm0, 0x60(%rdi)
xorl %eax, %eax
movq %rax, 0x70(%rdi)
movups %xmm0, 0x80(%rdi)
movups %xmm0, 0xb0(%rdi)
movq 0x8(%rsi), %r15
subq (%rsi), %r15
shrq $0x4, %r15
movl $0x0, 0x8(%rdi)
movaps 0x18a76(%rip), %xmm1    # 0x3f060
movups %xmm1, 0x90(%rdi)
movups %xmm0, 0x58(%rdi)
movups %xmm0, 0x68(%rdi)
movq %rax, 0x78(%rdi)
movabsq $0x3f1a36e2eb1c432d, %rax # imm = 0x3F1A36E2EB1C432D
movq %rax, 0xa0(%rdi)
testl %r15d, %r15d
jle 0x26634
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
xorl %r12d, %r12d
movq (%r14), %rsi
addq %r12, %rsi
movq %rbx, %rdi
callq 0x266b0
addq $0x10, %r12
decq %r15
jne 0x2661d
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x266b0
movl $0x1, 0xc(%rbx)
incq 0x2c3bb(%rip)           # 0x52a08
incq 0x2c3e4(%rip)           # 0x52a38
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x26662
movq %rax, %r14
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x2667a
movq 0x50(%rbx), %rsi
subq %rdi, %rsi
callq 0x7440
leaq 0x10(%rbx), %r15
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x26693
movq 0x38(%rbx), %rsi
subq %rdi, %rsi
callq 0x7440
movq (%r15), %rdi
testq %rdi, %rdi
je 0x266a7
movq 0x20(%rbx), %rsi
subq %rdi, %rsi
callq 0x7440
movq %r14, %rdi
callq 0x7730
nop
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::addVertice(Point&)
void Polygon::addVertice(Point &p)
{
    Point lP = Point(round(p.x/precision)*precision, round(p.y/precision)*precision);
    if ( nVertices > 0 && lP == _Vertices[nVertices-1] ) return;     //  Do NOT Add point if this is the same as the previous one.
    _Vertices.push_back(lP);
    nVertices = _Vertices.size();
    if ( nVertices == 1 )
    {
        BoundingBox.A = lP;
        BoundingBox.B = lP;
    }
    else
    {
        if ( lP.x < BoundingBox.A.x ) BoundingBox.A.x = lP.x;       //  To avoid rounding errors
        if ( lP.y < BoundingBox.A.y ) BoundingBox.A.y = lP.y;       //  To avoid rounding errors
        if ( lP.x > BoundingBox.B.x ) BoundingBox.B.x = lP.x;       //  To avoid rounding errors
        if ( lP.y > BoundingBox.B.y ) BoundingBox.B.y = lP.y;       //  To avoid rounding errors
    }
    if ( nVertices > 2)
        poly_closed = _Vertices[0] == _Vertices[nVertices-1];
    else
        poly_closed = 0;
    poly_changed = 1;
    poly_area = area();
}

// Assembly:
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movsd 0xa0(%rdi), %xmm1
movsd %xmm1, 0x18(%rsp)
movsd (%rsi), %xmm0
movsd 0x8(%rsi), %xmm2
movsd %xmm2, 0x28(%rsp)
divsd %xmm1, %xmm0
callq 0x71c0
movsd 0x18(%rsp), %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x28(%rsp), %xmm0
divsd %xmm1, %xmm0
callq 0x71c0
movsd 0x20(%rsp), %xmm1
mulsd 0x18(%rsp), %xmm0
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, 0x10(%rsp)
movslq 0x8(%rbx), %rax
testq %rax, %rax
jle 0x2673e
movq 0x10(%rbx), %rcx
shlq $0x4, %rax
ucomisd -0x10(%rcx,%rax), %xmm1
jne 0x2673e
jp 0x2673e
ucomisd -0x8(%rcx,%rax), %xmm0
jne 0x2673e
jnp 0x26841
movq 0x18(%rbx), %rsi
cmpq 0x20(%rbx), %rsi
je 0x26759
movupd 0x8(%rsp), %xmm0
movupd %xmm0, (%rsi)
addq $0x10, 0x18(%rbx)
jmp 0x26767
leaq 0x10(%rbx), %rdi
leaq 0x8(%rsp), %rdx
callq 0x25c6c
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
subq %rax, %rcx
movq %rcx, %rdx
shrq $0x4, %rdx
movl %edx, 0x8(%rbx)
cmpl $0x1, %edx
jne 0x26797
movups 0x8(%rsp), %xmm0
movups %xmm0, 0x58(%rbx)
movupd 0x8(%rsp), %xmm0
movupd %xmm0, 0x68(%rbx)
jmp 0x267db
movsd 0x8(%rsp), %xmm0
movsd 0x58(%rbx), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x267ad
movsd %xmm0, 0x58(%rbx)
movsd 0x10(%rsp), %xmm1
movsd 0x60(%rbx), %xmm2
ucomisd %xmm1, %xmm2
jbe 0x267c3
movsd %xmm1, 0x60(%rbx)
ucomisd 0x68(%rbx), %xmm0
jbe 0x267cf
movsd %xmm0, 0x68(%rbx)
ucomisd 0x70(%rbx), %xmm1
jbe 0x267db
movsd %xmm1, 0x70(%rbx)
xorl %esi, %esi
cmpl $0x3, %edx
jl 0x26824
shlq $0x1c, %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
addq %rcx, %rdx
sarq $0x20, %rdx
shlq $0x4, %rdx
movsd 0x8(%rax), %xmm0
movsd 0x8(%rax,%rdx), %xmm1
movsd (%rax,%rdx), %xmm2
movsd (%rax), %xmm3
cmpeqpd %xmm2, %xmm3
cmpeqpd %xmm0, %xmm1
andpd %xmm3, %xmm1
movd %xmm1, %esi
andl $0x1, %esi
movl %esi, 0x98(%rbx)
movl $0x1, 0x9c(%rbx)
movq %rbx, %rdi
callq 0x26926
movsd %xmm0, 0x78(%rbx)
addq $0x30, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::~Polygon()
Polygon::~Polygon()
{
    if ( TypePoly == EmptyPoly )
    {
        nbEmptyPoly--;
    }
    else if (TypePoly == RotatedPoly )
    {
        nbEmptyPoly--;
        nbRotatedPoly--;
    }
    else if (TypePoly == TranslatedPoly )
    {
        nbEmptyPoly--;
        nbTranslatedPoly--;
    }
    else if (TypePoly == TransformedPoly )
    {
        nbEmptyPoly--;
        nbTransformedPoly--;
    }
    else if (TypePoly == CachedPoly )
    {
        nbEmptyPoly--;
        nbCachedPoly--;
    }
    else
    {
        nbVectorPoly--;
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x2b44d(%rip), %rax     # 0x51ca0
movq %rax, (%rdi)
movl 0xc(%rdi), %eax
cmpq $0x5, %rax
ja 0x26878
leaq 0x1882a(%rip), %rcx     # 0x3f090
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x2c18a(%rip), %rax     # 0x52a00
jmp 0x268bf
leaq 0x2c189(%rip), %rax     # 0x52a08
jmp 0x268bf
decq 0x2c178(%rip)           # 0x52a00
leaq 0x2c189(%rip), %rax     # 0x52a18
jmp 0x268bf
decq 0x2c168(%rip)           # 0x52a00
leaq 0x2c171(%rip), %rax     # 0x52a10
jmp 0x268bf
decq 0x2c158(%rip)           # 0x52a00
leaq 0x2c171(%rip), %rax     # 0x52a20
jmp 0x268bf
decq 0x2c148(%rip)           # 0x52a00
leaq 0x2c169(%rip), %rax     # 0x52a28
decq (%rax)
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x268d7
movq 0x50(%rbx), %rsi
subq %rdi, %rsi
callq 0x7440
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x268ec
movq 0x38(%rbx), %rsi
subq %rdi, %rsi
callq 0x7440
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x26902
movq 0x20(%rbx), %rsi
subq %rdi, %rsi
popq %rbx
jmp 0x7440
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::area()
double Polygon::area()
{
double A = 0.0;

    if ( nVertices < 3) return 0.0;
    if ( poly_closed == 0 ) return(0.0);
    if ( poly_changed == 0 && poly_area > 0 ) return(poly_area);
    for (int i = 0; i < nVertices - 1; i++)
    {
        A += _Vertices[i].x*_Vertices[i+1].y - _Vertices[i+1].x*_Vertices[i].y;
    }
    if ( A < 0 )
    {
        poly_clockwise = 1;
        A /= -2.0;
    }
    else
    {
        poly_clockwise = -1;
        A /= 2.0;
    }
    poly_area = A;
    poly_changed = 0;
	return poly_area;
}

// Assembly:
movl 0x8(%rdi), %eax
xorpd %xmm0, %xmm0
cmpl $0x3, %eax
jl 0x26953
cmpl $0x0, 0x98(%rdi)
je 0x26953
cmpl $0x0, 0x9c(%rdi)
jne 0x26954
movsd 0x78(%rdi), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x26954
retq
xorpd %xmm1, %xmm1
xorpd %xmm0, %xmm0
cmpl $0x2, %eax
jl 0x26995
decl %eax
movq 0x10(%rdi), %rcx
shlq $0x4, %rax
xorl %edx, %edx
movsd (%rcx,%rdx), %xmm2
movsd 0x8(%rcx,%rdx), %xmm3
mulsd 0x10(%rcx,%rdx), %xmm3
mulsd 0x18(%rcx,%rdx), %xmm2
subsd %xmm3, %xmm2
addsd %xmm2, %xmm0
addq $0x10, %rdx
cmpq %rdx, %rax
jne 0x2696d
xorl %eax, %eax
ucomisd %xmm0, %xmm1
seta %al
leal -0x1(%rax,%rax), %ecx
movl %ecx, 0x94(%rdi)
leaq 0x186c1(%rip), %rcx     # 0x3f070
mulsd (%rcx,%rax,8), %xmm0
movsd %xmm0, 0x78(%rdi)
movl $0x0, 0x9c(%rdi)
retq