LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/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 0xd614
movq 0x8(%rbx), %rdi
callq 0xd574
testb %al, %al
jne 0xf609
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 0xdd74
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8e02
testb %al, %al
je 0xf658
movq 0x8(%rbx), %rdi
callq 0xce00
testb %al, %al
jne 0xf649
jmp 0xf61a
movq 0x10(%rbx), %rdi
callq 0x97f6
movq 0x8(%rbx), %rdi
callq 0xd574
testb %al, %al
jne 0xf661
movl $0xc8, %edi
callq 0x6320
movq %rax, %r15
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
movq %rax, %rdi
movq %r14, %rcx
callq 0x8534
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8e02
testb %al, %al
jne 0xf6cc
movl $0xd0, %edi
callq 0x6320
movq %rax, %r15
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
movq %rax, %rdi
movq %r14, %rcx
callq 0xe394
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8e02
testb %al, %al
je 0xf6db
movq 0x8(%rbx), %rdi
callq 0xce00
testb %al, %al
jne 0xf6cc
jmp 0xf661
movq 0x8(%rbx), %rdi
leaq 0x38(%rbx), %rsi
leaq 0x3c(%rbx), %rdx
callq 0xd614
movq 0x8(%rbx), %rdi
callq 0xd55e
testb %al, %al
je 0xf701
movb $0x1, %al
popq %rbx
popq %r14
popq %r15
retq
leaq 0x60(%rbx), %rdi
leaq 0x20bf(%rip), %rsi      # 0x117cb
callq 0x6400
movl $0x7, 0x80(%rbx)
pushq $0x8
popq %rdi
callq 0x6190
movq %rbx, (%rax)
leaq 0xa533(%rip), %rsi      # 0x19c60
movq %rax, %rdi
xorl %edx, %edx
callq 0x6540
movq %rax, %rbx
movl $0xd0, %esi
jmp 0xf74b
jmp 0xf743
movq %rax, %rbx
movl $0xc8, %esi
movq %r15, %rdi
callq 0x6330
movq %rbx, %rdi
callq 0x6560
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0xf89b
movq %rsi, %rbx
movq 0xa821(%rip), %rdi      # 0x19fe8
movq %rdx, %rsi
callq 0x62b0
leaq 0x203f(%rip), %rsi      # 0x11815
movq %rax, %rdi
callq 0x6310
movq %rax, %r14
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x8e68
movq %r14, %rdi
movq %r15, %rsi
callq 0x62b0
movq %rax, %rdi
callq 0x6180
movq %rsp, %rdi
callq 0x6150
movq %rbx, %rdi
callq 0x8f4a
movq 0xa7cf(%rip), %rdi      # 0x19fe8
leaq 0x1ffa(%rip), %rsi      # 0x1181a
callq 0x6310
leaq 0x60(%rbx), %rsi
movq %rax, %rdi
callq 0x62b0
leaq 0x1fe5(%rip), %rsi      # 0x1181d
movq %rax, %rdi
callq 0x6310
movq %rax, %r14
movq %rbx, %rdi
callq 0x8f64
movq %r14, %rdi
movl %eax, %esi
callq 0x6550
leaq 0x1fd2(%rip), %rsi      # 0x1182e
movq %rax, %rdi
callq 0x6310
movl 0x80(%rbx), %esi
movq %rax, %rdi
callq 0x6550
leaq 0x1fc4(%rip), %rsi      # 0x1183d
movq %rax, %rdi
callq 0x6310
movq %rax, %rbx
callq 0x6480
movq %rbx, %rdi
movl %eax, %esi
callq 0x6550
movq %rax, %rdi
callq 0x6180
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x6150
movq %rbx, %rdi
callq 0x6560
// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x18(%rdi), %r15
movq 0x20(%rdi), %r12
xorl %r14d, %r14d
cmpq %r12, %r15
je 0xf8ec
movq (%r15), %rdi
movq (%rdi), %rax
xorl %esi, %esi
xorl %edx, %edx
callq *0x18(%rax)
movl %eax, %r14d
addq $0x8, %r15
jmp 0xf8d1
movq 0x10(%rbx), %rdi
callq 0x9ec6
testl %r14d, %r14d
jne 0xf901
xorl %edi, %edi
callq 0x63a0
movq 0xa6e0(%rip), %rdi      # 0x19fe8
leaq 0x1eec(%rip), %rsi      # 0x117fb
callq 0x6310
movq %rax, %rdi
callq 0x6180
movq 0x10(%rbx), %rdi
callq 0x9ec6
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0xf75c
jmp 0xf932
movq %rdx, %r15
movq %rax, %rdi
callq 0x6120
cmpl $0x2, %r15d
jne 0xf992
movq %rax, %r14
leaq 0x1e9e(%rip), %rsi      # 0x117eb
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x708c
movzbl 0x85(%rbx), %ecx
leaq 0x8(%rsp), %rdx
movq %r14, %rsi
callq 0xf7ac
leaq 0x8(%rsp), %rdi
callq 0x6150
movq 0x10(%rbx), %rdi
callq 0x9ec6
cmpb $0x0, 0x84(%r14)
je 0xf9d0
pushq $0x1
popq %rsi
jmp 0xf9d7
movq 0xa64f(%rip), %rdi      # 0x19fe8
leaq 0x1e39(%rip), %rsi      # 0x117d9
callq 0x6310
leaq 0x1e11(%rip), %rsi      # 0x117bd
movq %rax, %rdi
callq 0x6310
movq %rax, %rdi
callq 0x6180
movq 0x10(%rbx), %rdi
callq 0x9ec6
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0xf75c
movl 0x80(%r14), %esi
movq %rbx, %rdi
callq 0xf75c
jmp 0xf9f0
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6150
jmp 0xf9f3
movq %rax, %rbx
callq 0x6500
jmp 0xfa02
movq %rax, %rbx
callq 0x6500
movq %rbx, %rdi
callq 0x6560
movq %rax, %rdi
callq 0x77b5
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
leaq 0x30(%rbx), %rsi
leaq 0x34(%rbx), %rdx
callq 0xd614
movq 0x8(%rbx), %rdi
callq 0xda82
testl %eax, %eax
jle 0xfb6c
movl %eax, %ebp
movq 0x8(%rbx), %rdi
callq 0xcc02
movq 0x8(%rbx), %r14
leaq 0x1d91(%rip), %rsi      # 0x11866
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x708c
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0xd6ae
movl %eax, %r14d
leaq 0x8(%rsp), %rdi
callq 0x6150
testb %r14b, %r14b
je 0xfb5d
leaq 0x48(%rbx), %r14
movl %ebp, %eax
movq 0x8(%rbx), %rdi
cmpl %ebp, %eax
jl 0xfb70
callq 0xcc02
movl $0xd0, %edi
callq 0x6320
movq %rax, %r15
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
movq %rax, %rdi
movq %r14, %rcx
callq 0xe394
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8e02
testb %al, %al
je 0xfb9a
movq 0x8(%rbx), %rdi
callq 0xd09a
testb %al, %al
je 0xfb8d
movq 0x8(%rbx), %rdi
callq 0xda82
jmp 0xfb09
movq 0x8(%rbx), %rdi
movl 0x30(%rbx), %esi
movl 0x34(%rbx), %edx
callq 0xd0a2
xorl %eax, %eax
jmp 0xfb82
leaq 0x38(%rbx), %rsi
addq $0x3c, %rbx
movq %rbx, %rdx
callq 0xd614
movb $0x1, %al
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x60(%rbx), %rdi
leaq 0x1cec(%rip), %rsi      # 0x11884
jmp 0xfba5
leaq 0x60(%rbx), %rdi
leaq 0x1cc7(%rip), %rsi      # 0x1186c
callq 0x6400
movl $0x1, 0x80(%rbx)
pushq $0x8
popq %rdi
callq 0x6190
movq %rbx, (%rax)
leaq 0xa11a(%rip), %rsi      # 0x19ce0
movq %rax, %rdi
xorl %edx, %edx
callq 0x6540
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6150
jmp 0xfbf4
movq %rax, %rbx
jmp 0xfbf4
movq %rax, %rbx
movl $0xd0, %esi
movq %r15, %rdi
callq 0x6330
movq %rbx, %rdi
callq 0x6560
// File: /workspace/github_cpp_makefile_star2_O2/ryuichiueda[P]GlueLang/src/Where.cc
// Function: Where::exec(DefFile*, DefStr*)
int Where::exec(DefFile *f,  DefStr *s)
{
	//m_env->m_local_env[m_job_id] = m_local_env;
	for(auto n : m_nodes)
		n->exec(f,s);

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq 0x18(%rdi), %r15
movq 0x20(%rdi), %r12
cmpq %r12, %r15
je 0xfc2c
movq (%r15), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movq %rbx, %rdx
callq *0x18(%rax)
addq $0x8, %r15
jmp 0xfc12
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x708c
pushq $0x2f
popq %rsi
pushq $-0x1
popq %r15
movq %r14, %rdi
movq %r15, %rdx
callq 0x65f0
leaq 0x1(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0x6340
leaq 0x1526(%rip), %rsi      # 0x1144e
leaq 0x8(%rsp), %rdi
callq 0x73c5
movl %eax, %r15d
leaq 0x8(%rsp), %rdi
callq 0x6150
xorl %r14d, %r14d
testb %r15b, %r15b
jne 0xff6e
movslq %ebp, %rax
cmpl $0x2, %eax
pushq $0x1
popq %r14
cmovgel %eax, %r14d
pushq $0x1
popq %rcx
cmpq %rax, %rcx
jge 0xff6e
movq (%rbx,%rcx,8), %rdx
cmpb $0x2d, (%rdx)
jne 0xff6b
incq %rcx
jmp 0xff58
movl %ecx, %r14d
leaq 0x28(%rsp), %rdi
callq 0x6150
movl %r14d, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6150
jmp 0xff98
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x6150
movq %rbx, %rdi
callq 0x6560
// File: /workspace/github_cpp_makefile_star2_O2/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 0x9d36(%rip), %rsi      # 0x19d00
leaq 0x10(%rsp), %r15
movl $0xa0, %edx
movq %r15, %rdi
callq 0x6270
leaq 0xc(%rsp), %r12
andl $0x0, (%r12)
leaq 0x1983(%rip), %r13      # 0x11970
movl %ebp, %edi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
movq %r12, %r8
callq 0x6520
cmpl $0x76, %eax
je 0x10016
cmpl $-0x1, %eax
je 0x1001f
cmpl $0x68, %eax
je 0x10033
cmpl $0x75, %eax
jne 0xffed
jmp 0x10038
movb $0x1, 0xe0(%rbx)
jmp 0xffed
movb $0x1, %al
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1003d
callq 0xfe95
// File: /workspace/github_cpp_makefile_star2_O2/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 0x9fa3(%rip), %rdi      # 0x19fe8
leaq 0x1869(%rip), %rsi      # 0x118b5
callq 0x6310
leaq 0x1877(%rip), %rsi      # 0x118cf
movq %rax, %rdi
callq 0x6310
leaq 0x1889(%rip), %rsi      # 0x118f0
movq %rax, %rdi
callq 0x6310
leaq 0x189b(%rip), %rsi      # 0x11911
movq %rax, %rdi
callq 0x6310
movq %rax, %rdi
callq 0x6180
pushq $0x1
popq %rdi
callq 0x63a0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1177c
testq %rax, %rax
je 0xbf92
addq $0x68, %rbx
addq $0x28, %rax
movq %rbx, %rdi
movq %rax, %rsi
callq 0x12282
movq 0x28(%rax), %rax
jmp 0xbf94
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1177c
testq %rax, %rax
je 0xc240
addq $0x68, %r14
addq $0x28, %rax
movq %r14, %rdi
movq %rax, %rsi
callq 0x12282
addq $0x18, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
pushq $0x28
popq %rdi
callq 0x8210
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x133bc
leaq 0x3ff5b(%rip), %rsi     # 0x4c1b8
leaq 0x11b96(%rip), %rdx     # 0x1ddfa
movq %r14, %rdi
callq 0x8730
movq %rax, %rbx
movq %r14, %rdi
callq 0x8350
movq %rbx, %rdi
callq 0x8770
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq 0x2f8e7(%rip), %rax     # 0x4c488
movq %rax, (%rdi)
movups %xmm0, 0x18(%rdi)
andw $0x0, 0x30(%rdi)
leaq 0x48(%rdi), %rax
movq %rax, 0x38(%rdi)
andq $0x0, 0x40(%rdi)
leaq 0x38(%rdi), %r14
xorl %eax, %eax
movb %al, 0x48(%rdi)
leaq 0x68(%rdi), %rcx
movq %rcx, 0x58(%rdi)
andq $0x0, 0x60(%rdi)
leaq 0x58(%rdi), %r12
movb %al, 0x68(%rdi)
cmpq %rax, 0x18(%rsi)
je 0x1cc00
movq %rsp, %rdi
callq 0x1c8f1
leaq 0x18(%rbx), %r13
movq %rsp, %rsi
movq %r13, %rdi
callq 0x1cc76
leaq 0x8(%rsp), %rdi
callq 0xc6f0
jmp 0x1cc04
leaq 0x28(%r15), %r13
movq (%r13), %rax
movq %rax, 0x28(%rbx)
movb 0x30(%r15), %al
movb %al, 0x30(%rbx)
movb 0x31(%r15), %al
movb %al, 0x31(%rbx)
leaq 0x38(%r15), %rsi
movq %r14, %rdi
callq 0x8270
addq $0x58, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x8270
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x1cc45
movq %rax, %r15
movq %r12, %rdi
callq 0x8858
movq %r14, %rdi
callq 0x8858
leaq 0x20(%rbx), %rdi
callq 0xc6f0
addq $0x10, %rbx
movq %rbx, %rdi
callq 0x1ca48
movq %r15, %rdi
callq 0x8770
nop
// File: /workspace/github_cpp_makefile_star2_O2/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
leaq 0x16d1a(%rip), %rsi     # 0x3447a
callq 0x8810
movb %bpl, 0x31(%rbx)
addq $0x58, %rbx
leaq 0x16cb2(%rip), %rsi     # 0x34426
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x8810
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $0x18
popq %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x8690
movq %r15, %rdi
movq %r14, %rsi
callq 0x82e0
movq 0x8(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x28(%rsp,%rax)
jne 0x204b1
leaq 0x8(%rsp), %rdi
callq 0x8360
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r14
popq %r15
retq
pushq $0x28
popq %rdi
callq 0x8210
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1dd0a
leaq 0x2c3f2(%rip), %rsi     # 0x4c8c0
leaq -0x26db(%rip), %rdx     # 0x1ddfa
movq %r14, %rdi
callq 0x8730
movq %rax, %rbx
movq %r14, %rdi
callq 0x8350
jmp 0x204ed
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x8360
movq %rbx, %rdi
callq 0x8770
// File: /workspace/github_cpp_makefile_star2_O2/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 0x20e67
cmpl $0x80000001, %edx       # imm = 0x80000001
jb 0x20e6b
pushq $0x28
popq %rdi
callq 0x8210
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0x1dd0a
jmp 0x20e89
testl %edx, %edx
js 0x20e73
addq $0x8, %rsp
popq %rbx
popq %r14
retq
pushq $0x28
popq %rdi
callq 0x8210
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0x1dd0a
leaq 0x2ba30(%rip), %rsi     # 0x4c8c0
leaq -0x309d(%rip), %rdx     # 0x1ddfa
movq %rbx, %rdi
callq 0x8730
jmp 0x20ea1
movq %rax, %r14
movq %rbx, %rdi
callq 0x8350
movq %r14, %rdi
callq 0x8770
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2bdc9(%rip), %rax     # 0x4cc90
movq %rax, (%rdi)
movslq %esi, %rax
movq %rax, 0x8(%rdi)
imull %ecx, %eax
cltq
movq %rax, 0x10(%rdi)
orl $-0x1, 0x20(%rdi)
imull %edx, %eax
cltq
movq %rax, 0x18(%rdi)
leaq (,%rax,8), %r14
testl %eax, %eax
pushq $-0x1
popq %r15
movq %r14, %rdi
cmovsq %r15, %rdi
callq 0x8040
movq %rax, 0x28(%rbx)
movq %rax, %rdi
movl $0xca, %esi
movq %r14, %rdx
callq 0x8280
movslq %ebp, %rax
leaq (,%rax,4), %r14
testl %eax, %eax
cmovnsq %r14, %r15
movq %r15, %rdi
callq 0x8040
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 0x8280
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2bd35(%rip), %rax     # 0x4cc90
movq %rax, (%rdi)
xorl %r14d, %r14d
movabsq $-0x3535353535353536, %r15 # imm = 0xCACACACACACACACA
movslq 0x20(%rbx), %rax
movq 0x28(%rbx), %rdi
cmpq %rax, %r14
jge 0x20f91
movq (%rdi,%r14,8), %rdi
cmpq %r15, %rdi
je 0x20f8c
testq %rdi, %rdi
je 0x20f8c
movq (%rdi), %rax
callq *0x8(%rax)
incq %r14
jmp 0x20f6b
testq %rdi, %rdi
je 0x20f9b
callq 0x8580
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x20fae
popq %rbx
popq %r14
popq %r15
jmp 0x8580
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x21014
movslq %edx, %rdx
movq 0x30(%rdi), %rsi
cmpl %ecx, (%rsi,%rdx,4)
jl 0x21014
movq 0x28(%rdi), %rcx
movslq %r9d, %rsi
movq (%rcx,%rsi,8), %rcx
movabsq $-0x3535353535353536, %rsi # imm = 0xCACACACACACACACA
cmpq %rsi, %rcx
je 0x21014
testq %rcx, %rcx
jne 0x21015
pushq $-0x1
popq %rax
retq
movq %rcx, (%r8)
movq 0x30(%rdi), %rax
movl (%rax,%rdx,4), %eax
incl %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x21033
movl %ecx, (%rax,%r9,4)
imull 0x10(%rdi), %edx
imull 0x8(%rdi), %ecx
addl %edx, %ecx
addl %esi, %ecx
cmpl %ecx, 0x20(%rdi)
jge 0x21047
movl %ecx, 0x20(%rdi)
movq 0x28(%rdi), %rax
movslq %ecx, %rcx
movq %r8, (%rax,%rcx,8)
testq %r8, %r8
je 0x2107d
movl $0x5, 0xc(%r8)
leaq 0x2ca22(%rip), %rax     # 0x4da88
incq (%rax)
leaq 0x2c9e8(%rip), %rax     # 0x4da58
incq (%rax)
leaq 0x2c9ce(%rip), %rax     # 0x4da48
decq (%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x210a4
movq 0x28(%rdi), %rax
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
testq %rax, %rax
je 0x210a5
movq %rax, (%r8)
pushq $0x1
popq %rax
retq
pushq $-0x1
popq %rax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x210bb
movl %eax, 0x20(%rdi)
movq 0x28(%rdi), %rcx
cltq
movq %r8, (%rcx,%rax,8)
testq %r8, %r8
je 0x210f0
movl $0x5, 0xc(%r8)
leaq 0x2c9af(%rip), %rax     # 0x4da88
incq (%rax)
leaq 0x2c975(%rip), %rax     # 0x4da58
incq (%rax)
leaq 0x2c95b(%rip), %rax     # 0x4da48
decq (%rax)
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O2/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 0x21456
movq 0x8(%r15), %rsi
movq (%r14), %rdx
movq 0x8(%r14), %rcx
movq %r15, %rdi
callq 0x214ec
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x2188b
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x210f4
leaq 0x8(%rsp), %rdi
callq 0x2150c
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x21348
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2150c
movq %rbx, %rdi
callq 0x8770
// File: /workspace/github_cpp_makefile_star2_O2/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), %rsi
subq %rcx, %rsi
movupd (%rcx), %xmm0
shlq $0x1c, %rsi
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
addq %rsi, %rdx
sarq $0x20, %rdx
addq $0x10, %rcx
pushq $0x1
popq %rsi
movapd %xmm0, %xmm1
cmpq %rdx, %rsi
jge 0x2144c
movupd (%rcx), %xmm2
movapd %xmm2, %xmm3
minpd %xmm0, %xmm3
cmpunordpd %xmm0, %xmm0
movapd %xmm2, %xmm4
andpd %xmm0, %xmm4
andnpd %xmm3, %xmm0
orpd %xmm4, %xmm0
movapd %xmm2, %xmm3
maxpd %xmm1, %xmm2
cmpunordpd %xmm1, %xmm1
andpd %xmm1, %xmm3
andnpd %xmm2, %xmm1
orpd %xmm3, %xmm1
incq %rsi
addq $0x10, %rcx
jmp 0x21404
movupd %xmm0, (%rax)
movupd %xmm1, 0x10(%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
movq %rdi, %rbx
leaq 0x2ad89(%rip), %rax     # 0x4ccc0
movq %rax, (%rdi)
addq $0x10, %rdi
andl $0x0, 0x8(%rbx)
movl $0x8c, %edx
xorl %esi, %esi
callq 0x8280
xorps %xmm0, %xmm0
movups %xmm0, 0xb0(%rbx)
movl $0x1, 0x9c(%rbx)
movsd 0x140f6(%rip), %xmm0    # 0x36060
movups %xmm0, 0xa0(%rbx)
andl $0x0, 0xc(%rbx)
incq 0x2bab4(%rip)           # 0x4da30
incq 0x2badd(%rip)           # 0x4da60
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x2ad24(%rip), %rax     # 0x4ccc0
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)
andq $0x0, 0x70(%rdi)
movups %xmm0, 0x80(%rdi)
movups %xmm0, 0xb0(%rdi)
movq 0x8(%rsi), %r12
subq (%rsi), %r12
andl $0x0, 0x8(%rdi)
leaq 0x10(%rdi), %r14
shrq $0x4, %r12
movups %xmm0, 0x58(%rdi)
movups %xmm0, 0x68(%rdi)
andq $0x0, 0x78(%rdi)
movaps 0x140ac(%rip), %xmm0    # 0x360a0
movups %xmm0, 0x90(%rdi)
movabsq $0x3f1a36e2eb1c432d, %rax # imm = 0x3F1A36E2EB1C432D
movq %rax, 0xa0(%rdi)
xorl %r13d, %r13d
testl %r12d, %r12d
cmovlel %r13d, %r12d
shlq $0x4, %r12
movq (%r15), %rsi
cmpq %r13, %r12
je 0x22033
addq %r13, %rsi
movq %rbx, %rdi
callq 0x22084
addq $0x10, %r13
jmp 0x2201a
movq %rbx, %rdi
callq 0x22084
movl $0x1, 0xc(%rbx)
incq 0x2b9ef(%rip)           # 0x4da38
incq 0x2ba18(%rip)           # 0x4da68
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x2205c
movq %rax, %r15
leaq 0x40(%rbx), %rdi
addq $0x28, %rbx
callq 0x24bc0
movq %rbx, %rdi
callq 0x24b84
movq %r14, %rdi
callq 0x2150c
movq %r15, %rdi
callq 0x8770
// File: /workspace/github_cpp_makefile_star2_O2/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 $0x40, %rsp
movq %rdi, %rbx
movupd 0xa0(%rdi), %xmm1
movupd (%rsi), %xmm0
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
movapd %xmm1, 0x30(%rsp)
divpd %xmm1, %xmm0
movapd %xmm0, 0x10(%rsp)
callq 0x81a0
movapd %xmm0, 0x20(%rsp)
movapd 0x10(%rsp), %xmm0
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
callq 0x81a0
movapd 0x20(%rsp), %xmm1
unpcklpd %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
mulpd 0x30(%rsp), %xmm1
movapd %xmm1, (%rsp)
movslq 0x8(%rbx), %rax
testq %rax, %rax
jle 0x22104
movq 0x10(%rbx), %rcx
shlq $0x4, %rax
movupd -0x10(%rcx,%rax), %xmm0
cmpeqpd %xmm0, %xmm1
movmskpd %xmm1, %eax
cmpl $0x3, %eax
je 0x221d3
leaq 0x10(%rbx), %rdi
movq %rsp, %rsi
callq 0x214a6
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
subq %rax, %rcx
shrq $0x4, %rcx
movl %ecx, 0x8(%rbx)
cmpl $0x1, %ecx
jne 0x2213d
movaps (%rsp), %xmm0
movups %xmm0, 0x58(%rbx)
movapd (%rsp), %xmm0
movupd %xmm0, 0x68(%rbx)
xorl %edx, %edx
jmp 0x221b6
movsd (%rsp), %xmm0
movsd 0x58(%rbx), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x22152
movsd %xmm0, 0x58(%rbx)
movsd 0x8(%rsp), %xmm1
movsd 0x60(%rbx), %xmm2
ucomisd %xmm1, %xmm2
jbe 0x22168
movsd %xmm1, 0x60(%rbx)
ucomisd 0x68(%rbx), %xmm0
jbe 0x22174
movsd %xmm0, 0x68(%rbx)
ucomisd 0x70(%rbx), %xmm1
jbe 0x22180
movsd %xmm1, 0x70(%rbx)
xorl %edx, %edx
cmpl $0x3, %ecx
jl 0x221b6
decl %ecx
shlq $0x4, %rcx
movsd 0x8(%rax), %xmm0
movsd 0x8(%rax,%rcx), %xmm1
movsd (%rax,%rcx), %xmm2
movsd (%rax), %xmm3
cmpeqpd %xmm2, %xmm3
cmpeqpd %xmm0, %xmm1
andpd %xmm3, %xmm1
movd %xmm1, %edx
andl $0x1, %edx
movl %edx, 0x98(%rbx)
movl $0x1, 0x9c(%rbx)
movq %rbx, %rdi
callq 0x22296
movsd %xmm0, 0x78(%rbx)
addq $0x40, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2aadb(%rip), %rax     # 0x4ccc0
movq %rax, (%rdi)
movl 0xc(%rdi), %eax
cmpq $0x5, %rax
ja 0x2220a
leaq 0x13ef8(%rip), %rcx     # 0x360f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x2b828(%rip), %rax     # 0x4da30
jmp 0x22251
leaq 0x2b827(%rip), %rax     # 0x4da38
jmp 0x22251
decq 0x2b816(%rip)           # 0x4da30
leaq 0x2b827(%rip), %rax     # 0x4da48
jmp 0x22251
decq 0x2b806(%rip)           # 0x4da30
leaq 0x2b80f(%rip), %rax     # 0x4da40
jmp 0x22251
decq 0x2b7f6(%rip)           # 0x4da30
leaq 0x2b80f(%rip), %rax     # 0x4da50
jmp 0x22251
decq 0x2b7e6(%rip)           # 0x4da30
leaq 0x2b807(%rip), %rax     # 0x4da58
decq (%rax)
leaq 0x40(%rbx), %rdi
callq 0x24bc0
leaq 0x28(%rbx), %rdi
callq 0x24b84
addq $0x10, %rbx
movq %rbx, %rdi
popq %rbx
jmp 0x2150c
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x222c3
cmpl $0x0, 0x98(%rdi)
je 0x222c3
cmpl $0x0, 0x9c(%rdi)
jne 0x222c4
movsd 0x78(%rdi), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x222c4
retq
decl %eax
movq 0x10(%rdi), %rcx
shlq $0x4, %rax
xorpd %xmm0, %xmm0
xorl %edx, %edx
cmpq %rdx, %rax
je 0x222fe
movsd (%rcx,%rdx), %xmm1
movsd 0x8(%rcx,%rdx), %xmm2
mulsd 0x10(%rcx,%rdx), %xmm2
mulsd 0x18(%rcx,%rdx), %xmm1
subsd %xmm2, %xmm1
addsd %xmm1, %xmm0
addq $0x10, %rdx
jmp 0x222d4
xorpd %xmm1, %xmm1
xorl %eax, %eax
ucomisd %xmm0, %xmm1
seta %al
leal -0x1(%rax,%rax), %ecx
leaq 0x13d9a(%rip), %rdx     # 0x360b0
mulsd (%rdx,%rax,8), %xmm0
movl %ecx, 0x94(%rdi)
movsd %xmm0, 0x78(%rdi)
andl $0x0, 0x9c(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O2/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::Reverse()
void Polygon::Reverse(void)
{
    if ( poly_clockwise < 0) return;    //  Oups OK before entering
    if ( poly_clockwise == 0 ) return;  //  Oups not known, unable to change
    for ( int i = 0, j = nVertices-1; i < j ; i++, j--)
    {
        Point p = _Vertices[i];
        _Vertices[i] = _Vertices[j];
        _Vertices[j] = p;
    }
    poly_clockwise = -1;
}

// Assembly:
cmpl $0x0, 0x94(%rdi)
jle 0x2255f
movslq 0x8(%rdi), %rax
leaq -0x1(%rax), %rcx
shlq $0x4, %rax
addq $-0x10, %rax
xorl %edx, %edx
xorl %esi, %esi
cmpq %rcx, %rsi
jge 0x22558
movq 0x10(%rdi), %r8
movups (%r8,%rdx), %xmm0
movaps %xmm0, -0x18(%rsp)
movups (%r8,%rax), %xmm0
movups %xmm0, (%r8,%rdx)
movq 0x10(%rdi), %r8
movaps -0x18(%rsp), %xmm0
movups %xmm0, (%r8,%rax)
incq %rsi
decq %rcx
addq $-0x10, %rax
addq $0x10, %rdx
jmp 0x2251d
orl $-0x1, 0x94(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O2/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::setStartPointMinY()
void Polygon::setStartPointMinY()
{
    double ymin = 1e30;
    int idxmin = 0;
    for ( int i = 0; i < nVertices-1; i++)
    {
        if ( _Vertices[i].y < ymin )
        {
            ymin = _Vertices[i].y;
            idxmin = i;
        }
    }
    if ( idxmin == 0 ) return;      //  Already ordered, return;
    //  Create a new vector
    std::vector<Point>  tmp_vertices;
    for ( int i = 0; i < nVertices - 1; i++)
    {
        tmp_vertices.push_back(_Vertices[(i + idxmin)%(nVertices-1)]);
    }
    tmp_vertices[nVertices-1] = tmp_vertices[0];
    for ( int i = 0; i < nVertices; i++)
    {
        _Vertices[i] = tmp_vertices[i];
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl 0x8(%rdi), %ecx
movq 0x10(%rdi), %rax
cmpl $0x2, %ecx
pushq $0x1
popq %rdx
cmovgel %ecx, %edx
decl %edx
addq $0x8, %rax
movsd 0x13ae4(%rip), %xmm0    # 0x36070
xorl %esi, %esi
xorl %r15d, %r15d
cmpq %rsi, %rdx
je 0x225b3
movsd (%rax), %xmm1
ucomisd %xmm1, %xmm0
cmoval %esi, %r15d
minsd %xmm0, %xmm1
incq %rsi
addq $0x10, %rax
movapd %xmm1, %xmm0
jmp 0x22591
testl %r15d, %r15d
je 0x22637
xorpd %xmm0, %xmm0
movq %rsp, %r14
movapd %xmm0, (%r14)
andq $0x0, 0x10(%r14)
xorl %r12d, %r12d
decl %ecx
cmpl %ecx, %r12d
jge 0x225f5
leal (%r15,%r12), %eax
cltd
idivl %ecx
movslq %edx, %rsi
shlq $0x4, %rsi
addq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x214a6
incl %r12d
movl 0x8(%rbx), %ecx
jmp 0x225cc
movq (%rsp), %rax
movslq %ecx, %rcx
shlq $0x4, %rcx
movups (%rax), %xmm0
movups %xmm0, (%rax,%rcx)
xorl %eax, %eax
xorl %ecx, %ecx
movslq 0x8(%rbx), %rdx
cmpq %rdx, %rcx
jge 0x2262f
movq (%rsp), %rdx
movq 0x10(%rbx), %rsi
movupd (%rdx,%rax), %xmm0
movupd %xmm0, (%rsi,%rax)
incq %rcx
addq $0x10, %rax
jmp 0x2260b
movq %rsp, %rdi
callq 0x2150c
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2150c
movq %rbx, %rdi
callq 0x8770
// File: /workspace/github_cpp_makefile_star2_O2/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::delVertex(int)
void Polygon::delVertex(int index)
{
    if ( nVertices > 3 )
    {
        _Vertices.erase(_Vertices.begin()+index);
        nVertices = _Vertices.size();
        poly_changed = 1;
        poly_centroid_ok = 0;
    }
}

// Assembly:
cmpl $0x4, 0x8(%rdi)
jl 0x23289
pushq %rbx
movq %rdi, %rbx
addq $0x10, %rdi
movslq %esi, %rsi
shlq $0x4, %rsi
addq 0x10(%rbx), %rsi
callq 0x246ba
movq 0x18(%rbx), %rax
subq 0x10(%rbx), %rax
shrq $0x4, %rax
movl %eax, 0x8(%rbx)
movl $0x1, 0x9c(%rbx)
andl $0x0, 0x90(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::ConvexHull()
Polygon * Polygon::ConvexHull()
{
Polygon *Hull = new Polygon;

    Hull->_Vertices = makeConvexHull(_Vertices);
    Hull->nVertices = Hull->_Vertices.size();
    Hull->CheckClosed();
    if ( Hull->poly_closed == 0 )
    {
        //  Not closed, close it
        Hull->addVertice(Hull->_Vertices[0]);
    }
    Hull->ReCalcBoundingBox();
    Hull->ReCalcArea();
    return Hull;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %r14
movl $0xc0, %edi
callq 0x8440
movq %rax, %rbx
movq %rax, %rdi
callq 0x21f2c
addq $0x10, %r14
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x21292
leaq 0x10(%rbx), %rdi
movq %r15, %rsi
callq 0x24bf4
movq %r15, %rdi
callq 0x2150c
movq 0x18(%rbx), %rax
subq 0x10(%rbx), %rax
shrq $0x4, %rax
movl %eax, 0x8(%rbx)
movq %rbx, %rdi
callq 0x245a0
cmpl $0x0, 0x98(%rbx)
jne 0x2338d
movq 0x10(%rbx), %rsi
movq %rbx, %rdi
callq 0x22084
movq %rbx, %rdi
callq 0x22da8
movq %rbx, %rdi
callq 0x2328a
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::getCentroid()
Point Polygon::getCentroid()
{
double p_area;
double cx = 0, cy = 0;

    if ( poly_changed ) poly_centroid_ok = 0;
    if ( poly_centroid_ok == 0 )    //  Not yet computed, do it
    {
        p_area = area();
        for ( int i = 0; i < nVertices - 1; i++)
        {
            double d = _Vertices[i].x*_Vertices[i+1].y - _Vertices[i+1].x*_Vertices[i].y;
            cx += (_Vertices[i].x + _Vertices[i+1].x)*d;
            cy += (_Vertices[i].y + _Vertices[i+1].y)*d;
        }
        cx /= 6*p_area;
        cy /= 6*p_area;
        poly_centroid = Point(cx, cy);
        poly_centroid_ok = 1;
    }
    return poly_centroid;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, 0x9c(%rdi)
je 0x23450
andl $0x0, 0x90(%rbx)
movq %rbx, %rdi
callq 0x22296
movapd %xmm0, %xmm1
movl 0x8(%rbx), %edx
movq 0x10(%rbx), %rax
cmpl $0x2, %edx
pushq $0x1
popq %rcx
cmovgel %edx, %ecx
decl %ecx
shlq $0x4, %rcx
xorpd %xmm0, %xmm0
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x2342c
movupd (%rax,%rdx), %xmm2
movupd 0x10(%rax,%rdx), %xmm3
movapd %xmm2, %xmm4
unpckhpd %xmm2, %xmm4            # xmm4 = xmm4[1],xmm2[1]
mulsd %xmm3, %xmm4
movapd %xmm3, %xmm5
unpckhpd %xmm3, %xmm5            # xmm5 = xmm5[1],xmm3[1]
mulsd %xmm2, %xmm5
subsd %xmm4, %xmm5
addpd %xmm3, %xmm2
unpcklpd %xmm5, %xmm5            # xmm5 = xmm5[0,0]
mulpd %xmm2, %xmm5
addpd %xmm5, %xmm0
addq $0x10, %rdx
jmp 0x233ea
mulsd 0x12c5c(%rip), %xmm1    # 0x36090
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
divpd %xmm1, %xmm0
movupd %xmm0, 0x80(%rbx)
movl $0x1, 0x90(%rbx)
jmp 0x23465
cmpl $0x0, 0x90(%rbx)
je 0x233c2
movupd 0x80(%rbx), %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::Translate(Point const*)
Polygon *Polygon::Translate(const Point *pT)
{
Polygon *Translated = new Polygon;

    nbTranslatedPoly++;
    nbCreatedTranslatedPoly++;
    Translated->TypePoly = TranslatedPoly;
    if ( poly_centroid_ok == 0 ) getCentroid();
    Translated->pt_Translation = *pT - poly_centroid;
    Translated->_Vertices = _Vertices;          //      Copy vertice vector
    Translated->nVertices = Translated->_Vertices.size();
    for ( int i = 0; i < nVertices; i++)
    {
        Translated->_Vertices[i].x += Translated->pt_Translation.x;
        Translated->_Vertices[i].y += Translated->pt_Translation.y;
    }
    Translated->_Angles = _Angles;
    Translated->poly_area = poly_area;
    Translated->poly_centroid = poly_centroid + Translated->pt_Translation;
    Translated->angle_rotation = angle_rotation;
    Translated->poly_centroid_ok = 1;
    Translated->poly_changed = 0;
    Translated->poly_closed = poly_closed;
    Translated->poly_clockwise = poly_clockwise;
    Translated->BoundingBox.A = BoundingBox.A + Translated->pt_Translation;
    Translated->BoundingBox.B = BoundingBox.B + Translated->pt_Translation;
    Translated->precision = precision;
    return Translated;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
movl $0xc0, %edi
callq 0x8440
movq %rax, %r14
movq %rax, %rdi
callq 0x21f2c
incq 0x2a5b1(%rip)           # 0x4da48
incq 0x2a5da(%rip)           # 0x4da78
movl $0x3, 0xc(%r14)
cmpl $0x0, 0x90(%rbx)
jne 0x234b7
movq %rbx, %rdi
callq 0x233aa
movupd (%r15), %xmm0
movupd 0x80(%rbx), %xmm1
subpd %xmm1, %xmm0
movupd %xmm0, 0xb0(%r14)
leaq 0x10(%rbx), %rsi
leaq 0x10(%r14), %rdi
callq 0x246f4
movq 0x10(%r14), %rax
movq 0x18(%r14), %rcx
subq %rax, %rcx
shrq $0x4, %rcx
movl %ecx, 0x8(%r14)
movslq 0x8(%rbx), %rcx
xorl %edx, %edx
cmpq %rcx, %rdx
jge 0x2351a
movupd 0xb0(%r14), %xmm0
movupd (%rax), %xmm1
addpd %xmm0, %xmm1
movupd %xmm1, (%rax)
incq %rdx
addq $0x10, %rax
jmp 0x234f7
leaq 0x40(%rbx), %rsi
movq %r14, %rdi
addq $0x40, %rdi
callq 0x247c0
movsd 0x78(%rbx), %xmm0
movsd %xmm0, 0x78(%r14)
movl $0x1, 0x90(%r14)
andl $0x0, 0x9c(%r14)
movq 0x94(%rbx), %rax
movq %rax, 0x94(%r14)
movupd 0xb0(%r14), %xmm0
movupd 0x80(%rbx), %xmm1
addpd %xmm0, %xmm1
movupd %xmm1, 0x80(%r14)
movupd 0x58(%rbx), %xmm1
addpd %xmm0, %xmm1
movupd %xmm1, 0x58(%r14)
movupd 0x68(%rbx), %xmm1
addpd %xmm0, %xmm1
movupd %xmm1, 0x68(%r14)
movups 0xa0(%rbx), %xmm0
movups %xmm0, 0xa0(%r14)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq