LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/mittman[P]project254/output.cpp
// Function: Output::writeCommand(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::basic_fstream<char, std::char_traits<char>>&)
void const Output::writeCommand(const string cycle, const int words, const int num, const string direction, fstream &f) {
	if(stdout) {
		cout << "Line " << num << ": ";
		cout << cycle << " " << direction << " command: ";
		cout << words << " words" << endl;
	}

	if(logfile) {
		f << "Line " << num << ": ";
		f << cycle << " " << direction << " command: ";
		f << words << " words" << endl;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %r8, %r14
movl %ecx, %r12d
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r13
cmpb $0x1, (%rdi)
jne 0x3619
movl %ebp, 0x4(%rsp)
movq 0x9a88(%rip), %rbp      # 0xcfd0
leaq 0x6b58(%rip), %rsi      # 0xa0a7
movl $0x5, %edx
movq %rbp, %rdi
callq 0x2200
movq %rbp, %rdi
movl %r12d, %esi
callq 0x2320
leaq 0x6b47(%rip), %rsi      # 0xa0b5
movl $0x2, %edx
movq %rax, %rdi
callq 0x2200
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbp, %rdi
callq 0x2200
movl %r12d, (%rsp)
movq %rax, %r12
leaq 0x6b1e(%rip), %rsi      # 0xa0b6
movl $0x1, %edx
movq %rax, %rdi
callq 0x2200
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r12, %rdi
callq 0x2200
leaq 0x6af2(%rip), %rsi      # 0xa0ad
movl $0xa, %edx
movq %rax, %rdi
callq 0x2200
movq %rbp, %rdi
movl 0x4(%rsp), %ebp
movl %ebp, %esi
callq 0x2320
movq %rax, %r12
leaq 0x6ad8(%rip), %rsi      # 0xa0b8
movl $0x6, %edx
movq %rax, %rdi
callq 0x2200
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r12, %rdi
movl (%rsp), %r12d
callq 0x2030
movq %rax, %rdi
callq 0x2120
cmpb $0x1, 0x1(%r13)
jne 0x36fa
addq $0x10, %rbx
leaq 0x6a78(%rip), %rsi      # 0xa0a7
movl $0x5, %edx
movq %rbx, %rdi
callq 0x2200
movq %rbx, %rdi
movl %r12d, %esi
callq 0x2320
leaq 0x6a67(%rip), %rsi      # 0xa0b5
movl $0x2, %edx
movq %rax, %rdi
callq 0x2200
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq 0x2200
movq %rax, %r15
leaq 0x6a42(%rip), %rsi      # 0xa0b6
movl $0x1, %edx
movq %rax, %rdi
callq 0x2200
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0x2200
leaq 0x6a16(%rip), %rsi      # 0xa0ad
movl $0xa, %edx
movq %rax, %rdi
callq 0x2200
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2320
movq %rax, %rbx
leaq 0x6a00(%rip), %rsi      # 0xa0b8
movl $0x6, %edx
movq %rax, %rdi
callq 0x2200
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2120
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/mittman[P]project254/output.cpp
// Function: Output::writeRate(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::basic_fstream<char, std::char_traits<char>>&)
void const Output::writeRate(const string rate, const string cycle, const string direction, fstream &f) {
	if(stdout) {
		cout << cycle << " " << direction << ": " << rate << endl;
	}

	if(logfile) {
		f << cycle << " " << direction << ": " << rate << endl;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r13
cmpb $0x1, (%rdi)
jne 0x37b8
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq 0x9893(%rip), %rdi      # 0xcfd0
callq 0x2200
movq %rax, %rbp
leaq 0x696a(%rip), %rsi      # 0xa0b6
movl $0x1, %edx
movq %rax, %rdi
callq 0x2200
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbp, %rdi
callq 0x2200
movq %rax, %rbp
leaq 0x6943(%rip), %rsi      # 0xa0b5
movl $0x2, %edx
movq %rax, %rdi
callq 0x2200
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %rbp, %rdi
callq 0x2200
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbp, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
cmpb $0x1, 0x1(%r13)
jne 0x385c
addq $0x10, %r15
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x2200
movq %rax, %r15
leaq 0x68d4(%rip), %rsi      # 0xa0b6
movl $0x1, %edx
movq %rax, %rdi
callq 0x2200
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0x2200
movq %rax, %r14
leaq 0x68ad(%rip), %rsi      # 0xa0b5
movl $0x2, %edx
movq %rax, %rdi
callq 0x2200
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x2200
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2120
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/mittman[P]project254/output.cpp
// Function: Output::writeWords(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int, std::basic_fstream<char, std::char_traits<char>>&)
void const Output::writeWords(const string data, const int wordPos, const int num, fstream &f) {
	if(stdout) {
		cout << "Line " << num << ": Word " << wordPos << ": " << data << endl;
	}

	if(logfile) {
		f << "Line " << num << ": Word " << wordPos << ": " << data << endl;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movl %ecx, %r14d
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r12
cmpb $0x1, (%rdi)
jne 0x3925
movq 0x973b(%rip), %r13      # 0xcfd0
leaq 0x680b(%rip), %rsi      # 0xa0a7
movl $0x5, %edx
movq %r13, %rdi
callq 0x2200
movq %r13, %rdi
movl %r14d, %esi
callq 0x2320
movq %rax, %r13
leaq 0x6801(%rip), %rsi      # 0xa0bf
movl $0x7, %edx
movq %rax, %rdi
callq 0x2200
movq %r13, %rdi
movl %ebp, %esi
callq 0x2320
movq %rax, %r13
leaq 0x67d6(%rip), %rsi      # 0xa0b5
movl $0x2, %edx
movq %rax, %rdi
callq 0x2200
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r13, %rdi
callq 0x2200
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
cmpb $0x1, 0x1(%r12)
jne 0x39d3
addq $0x10, %r15
leaq 0x676b(%rip), %rsi      # 0xa0a7
movl $0x5, %edx
movq %r15, %rdi
callq 0x2200
movq %r15, %rdi
movl %r14d, %esi
callq 0x2320
movq %rax, %r14
leaq 0x6761(%rip), %rsi      # 0xa0bf
movl $0x7, %edx
movq %rax, %rdi
callq 0x2200
movq %r14, %rdi
movl %ebp, %esi
callq 0x2320
movq %rax, %r14
leaq 0x6736(%rip), %rsi      # 0xa0b5
movl $0x2, %edx
movq %rax, %rdi
callq 0x2200
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x2200
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2120
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/elarielcl[P]ArielsSequitur/TestSequitur.cpp
// Function: numberOfRulesTest(char*, int)
void numberOfRulesTest(char string[], int expectedNOR) {
  cout << "INPUT=" << string << endl;
  SequiturGrammar* grammar = new SequiturGrammar();
  for (int i = 0; string[i]!=0; ++i)
    grammar->put(string[i]);
  if (grammar->numberOfRules == expectedNOR) cout << "SUCCESSFUL TEST (GrammarSize == expected)" << endl;
  else {
    cout << "WRONG TEST (NumberOfRules(" << grammar->numberOfRules << ") != expected("<< expectedNOR << "))" << endl;
    exit(1);
  }

  cout << "================" << endl << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %r14d
movq %rdi, %r15
movq 0x6135(%rip), %rbx      # 0x8fd8
leaq 0x3255(%rip), %rsi      # 0x60ff
movl $0x6, %edx
movq %rbx, %rdi
callq 0x2190
testq %r15, %r15
je 0x2ed8
movq %r15, %rdi
callq 0x20a0
movq 0x610d(%rip), %rdi      # 0x8fd8
movq %r15, %rsi
movq %rax, %rdx
callq 0x2190
jmp 0x2eef
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x21f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
movl $0x28, %edi
callq 0x2160
movq %rax, %r12
movq %rax, %rdi
movl $0x100, %esi            # imm = 0x100
movl $0x774dfe0, %edx        # imm = 0x774DFE0
callq 0x430c
movb (%r15), %al
testb %al, %al
je 0x2f54
incq %r15
movsbl %al, %esi
movq %r12, %rdi
callq 0x43a2
movb (%r15), %al
incq %r15
testb %al, %al
jne 0x2f3f
cmpl %r14d, 0x18(%r12)
jne 0x3007
leaq 0x31d9(%rip), %rsi      # 0x613f
movl $0x29, %edx
movq %rbx, %rdi
callq 0x2190
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
leaq 0x3114(%rip), %rsi      # 0x60b5
movl $0x10, %edx
movq %rbx, %rdi
callq 0x2190
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x20d0
movq 0x5fca(%rip), %rdi      # 0x8fd8
leaq 0x317f(%rip), %rsi      # 0x6194
callq 0x2150
movl 0x18(%r12), %esi
movq %rax, %rdi
callq 0x2200
leaq 0x3154(%rip), %rsi      # 0x6182
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
movl %r14d, %esi
callq 0x2200
leaq 0x3149(%rip), %rsi      # 0x6191
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20b0
movl $0x1, %edi
callq 0x21a0
movq %rax, %rbx
movl $0x28, %esi
movq %r12, %rdi
callq 0x2170
movq %rbx, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O1/elarielcl[P]ArielsSequitur/TestSequitur.cpp
// Function: grammarSizeTest(char*, int)
void grammarSizeTest(char string[], int expectedGrammarSize) {
  cout << "INPUT=" << string << endl;
  SequiturGrammar* grammar = new SequiturGrammar();
  for (int i = 0; string[i]!=0; ++i)
    grammar->put(string[i]);
  if (grammar->grammarSize == expectedGrammarSize) cout << "SUCCESSFUL TEST (GrammarSize == expected)" << endl;
  else {
    cout << "WRONG TEST (GrammarSize(" << grammar->grammarSize << ") != expected("<< expectedGrammarSize << "))" << endl;
    exit(1);
  }

  cout << "================" << endl << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %r14d
movq %rdi, %r15
movq 0x5f46(%rip), %rbx      # 0x8fd8
leaq 0x3066(%rip), %rsi      # 0x60ff
movl $0x6, %edx
movq %rbx, %rdi
callq 0x2190
testq %r15, %r15
je 0x30c7
movq %r15, %rdi
callq 0x20a0
movq 0x5f1e(%rip), %rdi      # 0x8fd8
movq %r15, %rsi
movq %rax, %rdx
callq 0x2190
jmp 0x30de
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x21f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
movl $0x28, %edi
callq 0x2160
movq %rax, %r12
movq %rax, %rdi
movl $0x100, %esi            # imm = 0x100
movl $0x774dfe0, %edx        # imm = 0x774DFE0
callq 0x430c
movb (%r15), %al
testb %al, %al
je 0x3143
incq %r15
movsbl %al, %esi
movq %r12, %rdi
callq 0x43a2
movb (%r15), %al
incq %r15
testb %al, %al
jne 0x312e
cmpl %r14d, 0x10(%r12)
jne 0x31f6
leaq 0x2fea(%rip), %rsi      # 0x613f
movl $0x29, %edx
movq %rbx, %rdi
callq 0x2190
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
leaq 0x2f25(%rip), %rsi      # 0x60b5
movl $0x10, %edx
movq %rbx, %rdi
callq 0x2190
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x20d0
movq 0x5ddb(%rip), %rdi      # 0x8fd8
leaq 0x2f65(%rip), %rsi      # 0x6169
callq 0x2150
movl 0x10(%r12), %esi
movq %rax, %rdi
callq 0x2200
leaq 0x2f65(%rip), %rsi      # 0x6182
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
movl %r14d, %esi
callq 0x2200
leaq 0x2f5a(%rip), %rsi      # 0x6191
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20b0
movl $0x1, %edi
callq 0x21a0
movq %rax, %rbx
movl $0x28, %esi
movq %r12, %rdi
callq 0x2170
movq %rbx, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O1/Tarstingo[P]rarcrack/crackrar.cpp
// Function: CAes(unsigned char*, std::vector<unsigned char, std::allocator<unsigned char>>, unsigned char*)
void CAes(muchar *B,std::vector<muchar> s,muchar *C)
{
    muchar ins[16];
    muchar Bcp[16];//re arrange the sequence of B
    for(int i=0;i<4;i++)
    {
        for(int j=0;j<4;j++)
            Bcp[4*i+j]=B[4*i+3-j];
    }
    AES_KEY keyaes;

    AES_set_decrypt_key(Bcp,128,&keyaes);
    for(int i=0;i<16;i++)
        ins[i]=s[i];
    AES_ecb_encrypt(ins,C,&keyaes,AES_DECRYPT);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x120, %rsp            # imm = 0x120
movq %rdx, %rbx
movq %rsi, %r14
leaq -0x20(%rbp), %rax
xorl %ecx, %ecx
movl $0x4, %edx
movq %rax, %rsi
movb -0x1(%rdi,%rdx), %r8b
movb %r8b, (%rsi)
incq %rsi
decq %rdx
jne 0x2b56
incq %rcx
addq $0x4, %rdi
addq $0x4, %rax
cmpq $0x4, %rcx
jne 0x2b4e
leaq -0x20(%rbp), %rdi
leaq -0x124(%rbp), %rdx
movl $0x80, %esi
callq 0x21a0
movq (%r14), %rax
xorl %ecx, %ecx
movb (%rax,%rcx), %dl
movb %dl, -0x30(%rbp,%rcx)
incq %rcx
cmpq $0x10, %rcx
jne 0x2b91
leaq -0x30(%rbp), %rdi
leaq -0x124(%rbp), %rdx
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0x20a0
addq $0x120, %rsp            # imm = 0x120
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/ridgelab[P]Kmer-SSR/test/src/task.cpp
// Function: main
int main()
{
	Task task1 = Task();
	Task task2("SomeSeqID", "ACGTGTACGATCGACTACGATCACACACGT", 237, 946);

	//cout << task1.toString() << endl;
	//cout << task2.toString() << endl;
	
	cout << "\n\033[0;34mTask Test: ";

	bool pass = true;

	if (pass)
	{
		cout << "\033[0;32mOK\033[0m" << endl;
	}
	else
	{
		cout << "\033[0;31mFAIL\033[0m" << endl;
	}

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xd0, %rsp
leaq 0x88(%rsp), %rdi
callq 0x2534
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xcbf(%rip), %rsi       # 0x3004
leaq 0xcc1(%rip), %rdx       # 0x300d
leaq 0x20(%rsp), %rdi
callq 0x24a4
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xca8(%rip), %rsi       # 0x300e
leaq 0xcbf(%rip), %rdx       # 0x302c
movq %rsp, %rdi
callq 0x24a4
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
movq %rsp, %rdx
movl $0xed, %ecx
movl $0x3b2, %r8d            # imm = 0x3B2
callq 0x2558
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x23a8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x20f0
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x23bf
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x20f0
movq 0x2c12(%rip), %rdi      # 0x4fd8
leaq 0xc60(%rip), %rsi       # 0x302d
movl $0x13, %edx
callq 0x2130
movq 0x2bfa(%rip), %rbx      # 0x4fd8
leaq 0xc5c(%rip), %rsi       # 0x3041
movl $0xd, %edx
movq %rbx, %rdi
callq 0x2130
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x20e0
movsbl %al, %esi
movq 0x2bc8(%rip), %rdi      # 0x4fd8
callq 0x2030
movq %rax, %rdi
callq 0x2080
leaq 0x40(%rsp), %rdi
callq 0x25e8
leaq 0x88(%rsp), %rdi
callq 0x25e8
xorl %eax, %eax
addq $0xd0, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x2481
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2463
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x20f0
jmp 0x2463
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x248e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x20f0
jmp 0x248e
movq %rax, %rbx
jmp 0x248e
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x25e8
leaq 0x88(%rsp), %rdi
callq 0x25e8
movq %rbx, %rdi
callq 0x2160
nop
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/global.cpp
// Function: set_globals_to_defaults()
void set_globals_to_defaults()
{
	// Reset the global options to their defaults.
	GLOBAL_debugging_level = 0;
	GLOBAL_warnings = true;
	GLOBAL_optimise = true;
	GLOBAL_calculate_peripheral_curves = true;
	GLOBAL_message_stream = "";
}

// Assembly:
movl $0x0, 0x1a15a(%rip)     # 0x1e330
movb $0x1, %al
movb %al, 0x1a04a(%rip)      # 0x1e228
movb %al, 0x1a045(%rip)      # 0x1e229
movb %al, 0x1a040(%rip)      # 0x1e22a
movq 0x1a14f(%rip), %rdx     # 0x1e340
leaq 0x1a140(%rip), %rdi     # 0x1e338
leaq 0x130fa(%rip), %rcx     # 0x172f9
xorl %esi, %esi
xorl %r8d, %r8d
jmp 0x3340
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/global.cpp
// Function: output_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void output_error(const std::string strn)
{
	if (GLOBAL_warnings)
		GLOBAL_message_stream += "Error: " + strn + "\n";
	
	throw -1;
	return;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
cmpb $0x1, 0x19e83(%rip)     # 0x1e228
jne 0x445f
movq %rdi, %rdx
leaq 0x12ca1(%rip), %rsi     # 0x17056
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0x44c2
leaq 0x12c8b(%rip), %rsi     # 0x17054
movq %rbx, %rdi
callq 0x3420
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x43f2
movups (%rcx), %xmm0
movups %xmm0, (%r14)
jmp 0x43ff
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x19f10(%rip), %rdi     # 0x1e338
callq 0x30d0
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4444
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3220
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x445f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3220
movl $0x4, %edi
callq 0x3130
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq 0x19b2a(%rip), %rsi     # 0x1dfa0
movq %rax, %rdi
xorl %edx, %edx
callq 0x33b0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x449f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3220
jmp 0x449f
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x44ba
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3220
movq %rbx, %rdi
callq 0x33e0
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/twister.h
// Function: perm::perm(int, int, int, int)
perm(int im0, int im1, int im2, int im3)
	{
		image[0] = im0;
		image[1] = im1;
		image[2] = im2;
		image[3] = im3;
		
		// Make sure the thing that we've just made is a permutation.
		// As users have no direct control over permutations, this is to check hard coded permutations are valid.
		for (int i=0; i<4; i++)
			for (int j=i+1; j<4; j++)
				if (image[i] == image[j]) output_error("Invalid permutation.");
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl %esi, (%rdi)
movl %edx, 0x4(%rdi)
movl %ecx, 0x8(%rdi)
movl %r8d, 0xc(%rdi)
movl $0x1, %r15d
leaq 0x18(%rsp), %r13
xorl %r14d, %r14d
leaq 0x8(%rsp), %r12
cmpq $0x2, %r14
ja 0x86b5
movq %r15, %rbp
movl (%rbx,%r14,4), %eax
cmpl (%rbx,%rbp,4), %eax
jne 0x86ac
movq %r13, 0x8(%rsp)
movq %r12, %rdi
leaq 0xeb8e(%rip), %rsi      # 0x1720f
leaq 0xeb9b(%rip), %rdx      # 0x17223
callq 0x86fe
movq %r12, %rdi
callq 0x4397
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x86ac
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3220
incq %rbp
cmpq $0x4, %rbp
jne 0x8669
incq %r14
incq %r15
cmpq $0x4, %r14
jne 0x8660
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x86ea
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3220
movq %rbx, %rdi
callq 0x33e0
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/parsing.cpp
// Function: load_file_contents(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string load_file_contents(const std::string file)
{
	std::ifstream myfile(file.c_str());
	if (! myfile.is_open())
		output_error("Unknown file requested.");
	
	std::string line = "";
	std::string contents = "";
	while (myfile.good())
	{
		getline (myfile, line);
		contents += line + "\n";
	}
	myfile.close();
	
	return contents;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp            # imm = 0x278
movq %rdi, %rbx
movq (%rsi), %rsi
leaq 0x70(%rsp), %rdi
movl $0x8, %edx
callq 0x3400
leaq 0xe8(%rsp), %rdi
callq 0x3090
testb %al, %al
jne 0xa051
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xd2be(%rip), %rsi      # 0x172dd
leaq 0xd2ce(%rip), %rdx      # 0x172f4
leaq 0x50(%rsp), %rdi
callq 0x86fe
leaq 0x50(%rsp), %rdi
callq 0x4397
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0xa051
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3220
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xd298(%rip), %rdx      # 0x172f9
leaq 0x30(%rsp), %rdi
movq %rdx, %rsi
callq 0x86fe
leaq 0x10(%rbx), %rax
movq %rax, 0x8(%rsp)
movq %rax, (%rbx)
leaq 0xd278(%rip), %rdx      # 0x172f9
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x86fe
movq 0x70(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x90(%rsp,%rax)
jne 0xa143
leaq (%rsp,%rax), %rdi
addq $0x70, %rdi
leaq 0x20(%rsp), %rbp
leaq 0x70(%rsp), %r14
leaq 0x30(%rsp), %r15
leaq 0x10(%rsp), %r12
leaq 0xcf8e(%rip), %r13      # 0x17054
movl $0xa, %esi
callq 0x3200
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3410
movq %rbp, 0x10(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x878e
movq %r12, %rdi
movq %r13, %rsi
callq 0x3420
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x30d0
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0xa12c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3220
movq 0x70(%rsp), %rax
movq -0x18(%rax), %rax
leaq (%rsp,%rax), %rdi
addq $0x70, %rdi
cmpl $0x0, 0x20(%rdi)
je 0xa0c6
leaq 0x70(%rsp), %rdi
callq 0x3080
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xa169
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3220
leaq 0x70(%rsp), %rdi
callq 0x30a0
movq %rbx, %rax
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0xa203
movq 0x60(%rsp), %rsi
jmp 0xa1fb
jmp 0xa1a5
jmp 0xa1ca
movq %rax, %r14
jmp 0xa1e7
movq %rax, %r14
jmp 0xa203
jmp 0xa1ca
jmp 0xa1ae
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0xa1cd
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3220
jmp 0xa1cd
movq %rax, %r14
movq (%rbx), %rdi
cmpq 0x8(%rsp), %rdi
je 0xa1e7
movq 0x8(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x3220
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xa203
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3220
leaq 0x70(%rsp), %rdi
callq 0x30a0
movq %r14, %rdi
callq 0x33e0
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/parsing.cpp
// Function: count_substring(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int count_substring(const std::string inpt, const std::string search_for)
{
	int count = 0;
	for (size_t pos = inpt.find(search_for); pos != std::string::npos; count++)
		pos = inpt.find(search_for, pos + 1);
	
	return count;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rsi
movq 0x8(%rbx), %rcx
xorl %r15d, %r15d
xorl %edx, %edx
callq 0x33d0
cmpq $-0x1, %rax
je 0xa258
xorl %r15d, %r15d
incq %rax
movq (%rbx), %rsi
movq 0x8(%rbx), %rcx
movq %r14, %rdi
movq %rax, %rdx
callq 0x33d0
incl %r15d
cmpq $-0x1, %rax
jne 0xa23a
movl %r15d, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/parsing.cpp
// Function: remove_whitespace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string remove_whitespace(const std::string inpt)
{
	std::string output = "";
	output.reserve(inpt.size());
	size_t marker = 0, next_marker = 0;
	
	do
	{
		next_marker = inpt.find_first_of(" \t", marker);  // Could filter out more characters here.
		output += inpt.substr(marker, next_marker - marker);
		marker = next_marker + 1;  // Skip over the bad character.
	} while (marker != 0);  // When next_marker == std::string::npos, marker == std::string::npos + 1 == 0.
	
	return output;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rsp)
movq %rax, (%rdi)
leaq 0xcfb6(%rip), %rdx      # 0x172f9
movq %rdx, %rsi
callq 0x86fe
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x3360
xorl %ebp, %ebp
leaq 0xcf97(%rip), %r15      # 0x172f7
leaq 0x8(%rsp), %r12
movl $0x2, %ecx
movq %r14, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x3320
movq %rax, %r13
movq %rax, %rcx
subq %rbp, %rcx
movq %r12, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x3240
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x30d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xa3bd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3220
incq %r13
movq %r13, %rbp
jne 0xa365
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa3d9
movq %rax, %r14
jmp 0xa3fd
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xa3fd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3220
movq (%rbx), %rdi
cmpq (%rsp), %rdi
je 0xa415
movq (%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x3220
movq %r14, %rdi
callq 0x33e0
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/parsing.cpp
// Function: digit_length(int)
int digit_length(int n)
{
	int c = 0;
	if (n <= 0) c++;
	while (n != 0)
	{
	   n  /= 10;
	   c++;
	}
	return c;
}

// Assembly:
xorl %eax, %eax
testl %edi, %edi
setle %al
je 0xa764
movslq %edi, %rcx
imulq $0x66666667, %rcx, %rdi # imm = 0x66666667
movq %rdi, %rdx
shrq $0x3f, %rdx
sarq $0x22, %rdi
addl %edx, %edi
incl %eax
addl $0x9, %ecx
cmpl $0x12, %ecx
ja 0xa743
retq
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/twister.cpp
// Function: perm::inverse() const
perm perm::inverse() const
{
	perm outp;
	
	for (int i = 0; i < 4; i++)
		outp.image[image[i]] = i;
	
	return outp;
}

// Assembly:
movq %rdi, %rax
xorl %ecx, %ecx
movl %ecx, (%rax,%rcx,4)
incq %rcx
cmpq $0x4, %rcx
jne 0xdc35
xorl %ecx, %ecx
movslq (%rsi,%rcx,4), %rdx
movl %ecx, (%rax,%rdx,4)
incq %rcx
cmpq $0x4, %rcx
jne 0xdc43
retq
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/twister.cpp
// Function: perm::of(perm const&) const
perm perm::of(const perm &other) const
{
	perm outp;
	
	for (int i=0; i<4; i++)
		outp.image[i] = image[other.image[i]];
	
	return outp;
}

// Assembly:
movq %rdi, %rax
xorl %ecx, %ecx
movl %ecx, (%rax,%rcx,4)
incq %rcx
cmpq $0x4, %rcx
jne 0xdc59
xorl %ecx, %ecx
movslq (%rdx,%rcx,4), %rdi
movl (%rsi,%rdi,4), %edi
movl %edi, (%rax,%rcx,4)
incq %rcx
cmpq $0x4, %rcx
jne 0xdc67
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/twister.cpp
// Function: tetra::tetra(manifold*, Category, Position, Side, int, tetra*)
tetra::tetra(manifold *M, Category mycategory, Position myposition, Side myside, int mylayer, tetra *my_parent)
{
	output_debugging("tet", 3);
	
	for (int i = 0; i < 4; i++)
		gluedto[i] = NULL;
	
	// There's nothing canonical to put in gluing[],
	// so we put in the identity permutation.
	for (int i = 0; i < 4; i++)
		gluing[i] = perm(1,0,2,3);
	
	next = NULL;
	prev = NULL;
	
	parent = my_parent;
	if (my_parent != NULL) my_parent->child = this;
	child = NULL;
	
	M->onemore(this);  // Add this new tetra to the doubly linked list of tetras.
	
	category = mycategory;
	position = myposition;
	side = myside;
	layer = mylayer;
	
	snap_index = -1;  // Index only determined when snap_print is called.
	cusp_number = -1;  // The cusp number of vertex 3 because vertices 0, 1 and 2 are always material.
	temp = -1;
	for (int i = 0; i < 4; i++)
	{
		peripheral_curves[longitude][i] = 0;
		peripheral_curves[meridian][i] = 0;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r9d, 0x14(%rsp)
movl %r8d, 0x10(%rsp)
movl %ecx, 0xc(%rsp)
movl %edx, %r12d
movq %rsi, %r13
movq %rdi, %rbx
movq 0x80(%rsp), %r14
leaq 0x30(%rdi), %rax
movl $0x30, %ecx
xorl %edx, %edx
movl %edx, (%rax,%rdx,4)
incq %rdx
cmpq $0x4, %rdx
jne 0xdcb4
addq $0x10, %rcx
addq $0x10, %rax
cmpq $0x70, %rcx
jne 0xdcb2
leaq 0x28(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x9824(%rip), %rsi      # 0x17502
leaq 0x9820(%rip), %rdx      # 0x17505
leaq 0x18(%rsp), %rbp
movq %rbp, %rdi
callq 0x86fe
movq %rbp, %rdi
movl $0x3, %esi
callq 0x4209
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
je 0xdd16
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3220
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movl $0x30, %r15d
leaq 0x38(%rsp), %rbp
movq %rbp, %rdi
movl $0x1, %esi
xorl %edx, %edx
movl $0x2, %ecx
movl $0x3, %r8d
callq 0x8630
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rbx,%r15)
addq $0x10, %r15
cmpq $0x70, %r15
jne 0xdd2c
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq %r14, 0x80(%rbx)
testq %r14, %r14
je 0xdd73
movq %rbx, 0x88(%r14)
movq $0x0, 0x88(%rbx)
movq 0x8(%r13), %rax
testq %rax, %rax
je 0xdd90
movq %rbx, (%rax)
movq %rax, 0x8(%rbx)
jmp 0xdd94
movq %rbx, (%r13)
movq %rbx, 0x8(%r13)
movl %r12d, 0x70(%rbx)
movl 0xc(%rsp), %eax
movl %eax, 0x74(%rbx)
movl 0x10(%rsp), %eax
movl %eax, 0x78(%rbx)
movl 0x14(%rsp), %eax
movl %eax, 0x90(%rbx)
movl $0xffffffff, 0xbc(%rbx) # imm = 0xFFFFFFFF
movq $-0x1, 0xb4(%rbx)
movups %xmm0, 0x94(%rbx)
movups %xmm0, 0xa4(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
je 0xde00
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3220
movq %rbx, %rdi
callq 0x33e0
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/twister.cpp
// Function: tetra::gluesym(tetra*, int, perm const&)
void tetra::gluesym(tetra *whereglue, int whichface, const perm &how)
{
	if ( (gluedto[whichface] != NULL) || (whereglue->gluedto[how[whichface]] != NULL) )
		output_error("Invalid gluing. Possible causes; self-intersecting curves, intersecting 2-handles.");
	
	this->set_gluedto(whichface, whereglue);
	this->set_gluing(whichface,how);
	
	whereglue->set_gluedto(how[whichface], this);
	whereglue->set_gluing(how[whichface], how.inverse());
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movslq %edx, %r12
cmpq $0x0, 0x10(%rdi,%r12,8)
jne 0xdea6
movslq (%r14,%r12,4), %rax
cmpq $0x0, 0x10(%rbx,%rax,8)
je 0xdee6
leaq 0x10(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x9650(%rip), %rsi      # 0x17506
leaq 0x969b(%rip), %rdx      # 0x17558
movq %rsp, %r13
movq %r13, %rdi
callq 0x86fe
movq %r13, %rdi
callq 0x4397
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0xdee6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3220
movq %rbx, 0x10(%r15,%r12,8)
movups (%r14), %xmm0
leaq 0x30(%rsp), %rdx
movaps %xmm0, (%rdx)
movq %r15, %rdi
movl %r12d, %esi
callq 0x13990
movslq (%r14,%r12,4), %rsi
movq %r15, 0x10(%rbx,%rsi,8)
xorl %eax, %eax
movl %eax, 0x20(%rsp,%rax,4)
incq %rax
cmpq $0x4, %rax
jne 0xdf0d
xorl %eax, %eax
movslq (%r14,%rax,4), %rcx
movl %eax, 0x20(%rsp,%rcx,4)
incq %rax
cmpq $0x4, %rax
jne 0xdf1c
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x13990
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0xdf62
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3220
movq %rbx, %rdi
callq 0x33e0
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/twister.cpp
// Function: tetra::ungluesym(int)
void tetra::ungluesym(int whichface)
{
	if (gluedto[whichface] == NULL) 
		return;  // This is correct as it simplifies later loops.
	
	if (gluedto[whichface]->get_gluedto(gluing[whichface][whichface]) == NULL)
		output_error("Non-symmetric gluing detected.");
	
	gluedto[whichface]->set_gluedto(gluing[whichface][whichface], NULL);  // Unglue him from me.
	this->set_gluedto(whichface, NULL);  // Then unglue me from him.
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movslq %esi, %r15
movq 0x10(%rdi,%r15,8), %rax
testq %rax, %rax
je 0xdffc
movq %rdi, %rbx
movq %r15, %r12
shlq $0x4, %r12
leaq (%rdi,%r12), %rcx
movslq 0x30(%rcx,%r15,4), %rcx
cmpq $0x0, 0x10(%rax,%rcx,8)
jne 0xdfdf
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x95aa(%rip), %rsi      # 0x17559
leaq 0x95c1(%rip), %rdx      # 0x17577
movq %rsp, %r14
movq %r14, %rdi
callq 0x86fe
movq %r14, %rdi
callq 0x4397
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0xdfdf
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3220
leaq (%rbx,%r12), %rax
addq $0x30, %rax
movq 0x10(%rbx,%r15,8), %rcx
movslq (%rax,%r15,4), %rax
xorl %edx, %edx
movq %rdx, 0x10(%rcx,%rax,8)
movq %rdx, 0x10(%rbx,%r15,8)
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0xe023
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3220
movq %rbx, %rdi
callq 0x33e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/twister.cpp
// Function: tetra::subbedby(tetra*, int, perm const&)
void tetra::subbedby(tetra *whereglue, int whichface, const perm &how)
{
	// before:    A-B   D free
	// after:     A free   D-B
	
	// A: this
	// D: whereglue
	// B: *gluedto[whichface]
	
	// "how" maps vertices of A to vertices of D
	// (Identity means glue D to B just like A was glued)
	// "how" should be an even permutation.
	
	if (gluedto[whichface] == NULL)
		return;
	if (whereglue->gluedto[how[whichface]] != NULL)
		output_error("Invalid subbedby. Attempted to substitute non-free face.");
	
	perm AtoB = gluing[whichface];
	
	tetra *B = gluedto[whichface];
	ungluesym(whichface);  // Separate A & B.
	B->gluesym(whereglue, AtoB[whichface], how.of(AtoB.inverse()));  // Glue B to D.
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movslq %edx, %r12
cmpq $0x0, 0x10(%rdi,%r12,8)
je 0xe11f
movq %rcx, %r14
movq %rsi, %rbx
movq %rdi, %r13
movslq (%rcx,%r12,4), %rax
cmpq $0x0, 0x10(%rsi,%rax,8)
je 0xe0a1
leaq 0x28(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x950a(%rip), %rsi      # 0x17578
leaq 0x953b(%rip), %rdx      # 0x175b0
leaq 0x18(%rsp), %r15
movq %r15, %rdi
callq 0x86fe
movq %r15, %rdi
callq 0x4397
movq 0x18(%rsp), %rdi
cmpq %rbp, %rdi
je 0xe0a1
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3220
movq %r12, %rax
shlq $0x4, %rax
movups 0x30(%r13,%rax), %xmm0
movaps %xmm0, (%rsp)
movq 0x10(%r13,%r12,8), %r15
movq %r13, %rdi
movl %r12d, %esi
callq 0xdf6a
movl (%rsp,%r12,4), %edx
xorl %eax, %eax
movl %eax, 0x38(%rsp,%rax,4)
incq %rax
cmpq $0x4, %rax
jne 0xe0c8
xorl %eax, %eax
movslq (%rsp,%rax,4), %rcx
movl %eax, 0x38(%rsp,%rcx,4)
incq %rax
cmpq $0x4, %rax
jne 0xe0d7
xorl %eax, %eax
movl %eax, 0x48(%rsp,%rax,4)
incq %rax
cmpq $0x4, %rax
jne 0xe0ea
xorl %eax, %eax
movslq 0x38(%rsp,%rax,4), %rcx
movl (%r14,%rcx,4), %ecx
movl %ecx, 0x48(%rsp,%rax,4)
incq %rax
cmpq $0x4, %rax
jne 0xe0f9
leaq 0x48(%rsp), %rcx
movq %r15, %rdi
movq %rbx, %rsi
callq 0xde78
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %rbp, %rdi
je 0xe148
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3220
movq %rbx, %rdi
callq 0x33e0
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/twister.cpp
// Function: tetra::walk_about(int)
void tetra::walk_about(int fromface)
{
	output_debugging("walk", 3);
	
	if (gluedto[fromface] != NULL)
		return;
	
	// Here's how we start.
	tetra *currenttetra = this;
	perm init_how = perm_walk_about_list[fromface];
	perm how = init_how;
	
	// Now walk around the edge.
	while ((currenttetra->gluedto[how[fromface]]) != NULL)
	{
		int dir = how[fromface];
		how = (currenttetra->get_gluing(dir)).of(how.of(init_how));  // Composition of 3 odd permutations is also odd.
		currenttetra = currenttetra->get_gluedto(dir);
	}
	
	// We've found the last tetra next to the edge
	// so glue it to the first one.
	gluesym(currenttetra, fromface, how);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %esi, %ebx
movq %rdi, %r14
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x9440(%rip), %rsi      # 0x175b1
leaq 0x943d(%rip), %rdx      # 0x175b5
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x86fe
movq %r15, %rdi
movl $0x3, %esi
callq 0x4209
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0xe1a9
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3220
movslq %ebx, %rax
cmpq $0x0, 0x10(%r14,%rax,8)
jne 0xe277
movq %rax, %rcx
shlq $0x4, %rcx
leaq 0x1045a(%rip), %rdx     # 0x1e620
movups (%rcx,%rdx), %xmm0
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, (%rsp)
movslq (%rsp,%rax,4), %rdx
cmpq $0x0, 0x10(%r14,%rdx,8)
movq %r14, %rsi
je 0xe26a
leaq (%r14,%rdx,8), %rcx
addq $0x10, %rcx
movq %r14, %rsi
shlq $0x4, %rdx
movups 0x30(%rsi,%rdx), %xmm0
movaps %xmm0, 0x50(%rsp)
xorl %edx, %edx
movl %edx, 0x30(%rsp,%rdx,4)
incq %rdx
cmpq $0x4, %rdx
jne 0xe201
xorl %edx, %edx
movslq 0x60(%rsp,%rdx,4), %rsi
movl (%rsp,%rsi,4), %esi
movl %esi, 0x30(%rsp,%rdx,4)
incq %rdx
cmpq $0x4, %rdx
jne 0xe210
xorl %edx, %edx
movl %edx, 0x40(%rsp,%rdx,4)
incq %rdx
cmpq $0x4, %rdx
jne 0xe227
xorl %edx, %edx
movslq 0x30(%rsp,%rdx,4), %rsi
movl 0x50(%rsp,%rsi,4), %esi
movl %esi, 0x40(%rsp,%rdx,4)
incq %rdx
cmpq $0x4, %rdx
jne 0xe236
movups 0x40(%rsp), %xmm0
movaps %xmm0, (%rsp)
movq (%rcx), %rsi
movslq (%rsp,%rax,4), %rdx
leaq (%rsi,%rdx,8), %rcx
addq $0x10, %rcx
cmpq $0x0, (%rcx)
jne 0xe1f1
movq %rsp, %rcx
movq %r14, %rdi
movl %ebx, %edx
callq 0xde78
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0xe29d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3220
movq %rbx, %rdi
callq 0x33e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/twister.cpp
// Function: glue_cubes(cube*, cube*, bool, bool)
void glue_cubes(cube *c1, cube *c2, bool u1, bool u2)
{
	// Depending on the orientations of c1 and c2, glue some
	// vertical face of cube c1 to some vertical face of cube c2.
	int toface = u1 ? 1 : 0;
	perm howto = u1 ? perm(0,2,1,3) : perm(2,1,0,3);
	
	if (u1 && u2)
	{
		(c1->get_tetra(low, right))->gluesym(c2->get_tetra(low, left), toface, howto);
		(c1->get_tetra(top, right))->gluesym(c2->get_tetra(top, left), toface, howto);
	}
	else if (u1 && !u2)
	{
		(c1->get_tetra(low, right))->gluesym(c2->get_tetra(low, right), toface, howto);
		(c1->get_tetra(top, right))->gluesym(c2->get_tetra(mid, right), toface, howto);
	}
	else if (!u1 && u2)
	{
		(c1->get_tetra(mid, left))->gluesym(c2->get_tetra(low, left), toface, howto);
		(c1->get_tetra(top, left))->gluesym(c2->get_tetra(top, left), toface, howto);
	}
	else if (!u1 && !u2)
	{
		(c1->get_tetra(mid, left))->gluesym(c2->get_tetra(low, right), toface, howto);
		(c1->get_tetra(top, left))->gluesym(c2->get_tetra(mid, right), toface, howto);
	}
	
	return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %ecx, %ebp
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x8(%rsp), %rdi
testl %edx, %edx
je 0xe650
xorl %esi, %esi
movl $0x2, %edx
movl $0x1, %ecx
jmp 0xe65c
movl $0x2, %esi
movl $0x1, %edx
xorl %ecx, %ecx
movl $0x3, %r8d
callq 0x8630
movl %ebx, %ecx
xorb $0x1, %cl
movl %ebp, %eax
xorb $0x1, %al
movl %ecx, %edx
orb %al, %dl
je 0xe69a
orb %bpl, %cl
je 0xe6b4
orb %bl, %al
je 0xe6d2
orb %bl, %bpl
jne 0xe6f8
movq 0x8(%r15), %rdi
movq 0x28(%r14), %rsi
leaq 0x8(%rsp), %rcx
movl %ebx, %edx
callq 0xde78
jmp 0xe6cc
movq 0x28(%r15), %rdi
movq 0x10(%r14), %rsi
leaq 0x8(%rsp), %rcx
movl %ebx, %edx
callq 0xde78
addq $0x18, %r15
jmp 0xe6e6
movq 0x28(%r15), %rdi
movq 0x28(%r14), %rsi
leaq 0x8(%rsp), %rcx
movl %ebx, %edx
callq 0xde78
addq $0x18, %r15
addq $0x20, %r14
jmp 0xe6e6
movq 0x8(%r15), %rdi
movq 0x10(%r14), %rsi
leaq 0x8(%rsp), %rcx
movl %ebx, %edx
callq 0xde78
movq (%r15), %rdi
movq (%r14), %rsi
leaq 0x8(%rsp), %rcx
movl %ebx, %edx
callq 0xde78
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/twister.cpp
// Function: annulus::annulus(std::vector<cube*, std::allocator<cube*>> const&, std::vector<bool, std::allocator<bool>> const&)
annulus::annulus(const std::vector<cube*> &sq_in, const std::vector<bool> &upright_in)
{
	length = int(sq_in.size());
	
	sq = new cube*[length];
	upright = new bool[length];
	
	for (int i = 0; i < length; i++)
	{
		sq[i] = sq_in[i];
		upright[i] = upright_in[i];
	}
	
	// Check for self-intersection.
	for (int i = 0; i < length; i++)
		for (int j = i + 1; j < length; j++)
			if (sq[i] == sq[j])
				output_error("An annulus must not intersect itself.");
	
	// Now glue the cubes together.
	for (int i = 0; i < length; i++)
		glue_cubes(sq[i], sq[(i+1) % length], upright[i], upright[(i+1) % length]);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq 0x8(%rsi), %rax
subq (%rsi), %rax
movq %rax, %r13
shrq $0x3, %r13
movl %r13d, (%rdi)
shlq $0x1d, %rax
movq %rax, %rcx
sarq $0x1d, %rcx
testq %rax, %rax
movq $-0x1, %rdi
cmovnsq %rcx, %rdi
callq 0x3030
movq %rax, 0x8(%rbx)
movslq %r13d, %r12
movq %r12, %rdi
callq 0x3030
movq %rax, 0x10(%rbx)
testl %r12d, %r12d
jle 0xf388
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
xorl %eax, %eax
movq (%r15), %rcx
movq (%rcx,%rax,8), %rcx
movq 0x8(%rbx), %rdx
movq %rcx, (%rdx,%rax,8)
movq (%r14), %rcx
movq %rax, %rdx
shrq $0x6, %rdx
movq (%rcx,%rdx,8), %rcx
btq %rax, %rcx
movq 0x10(%rbx), %rcx
setb (%rcx,%rax)
incq %rax
cmpq %rax, %r13
jne 0xf357
cmpl $0x0, (%rbx)
jle 0xf415
movl $0x1, %r15d
leaq 0x18(%rsp), %r13
xorl %r14d, %r14d
leaq 0x8(%rsp), %r12
leaq 0x1(%r14), %rcx
movslq (%rbx), %rax
movq %rcx, (%rsp)
cmpq %rax, %rcx
jge 0xf406
movq %r15, %rbp
movq 0x8(%rbx), %rax
movq (%rax,%r14,8), %rcx
cmpq (%rax,%rbp,8), %rcx
jne 0xf3ff
movq %r13, 0x8(%rsp)
movq %r12, %rdi
leaq 0x81ef(%rip), %rsi      # 0x175c3
leaq 0x820d(%rip), %rdx      # 0x175e8
callq 0x86fe
movq %r12, %rdi
callq 0x4397
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xf3ff
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3220
incq %rbp
cmpl %ebp, (%rbx)
jg 0xf3b7
movslq (%rbx), %rax
incq %r15
movq (%rsp), %r14
cmpq %rax, %r14
jl 0xf3a4
movl (%rbx), %ecx
testl %ecx, %ecx
jle 0xf454
xorl %r8d, %r8d
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %r9
movq (%rsi,%r8,8), %rdi
leaq 0x1(%r8), %r14
movl %r14d, %eax
cltd
idivl %ecx
movq (%rsi,%rdx,8), %rsi
movzbl (%r9,%r8), %eax
movzbl (%r9,%rdx), %ecx
movl %eax, %edx
callq 0xe625
movslq (%rbx), %rcx
movq %r14, %r8
cmpq %rcx, %r14
jl 0xf41e
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xf47d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3220
movq %rbx, %rdi
callq 0x33e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/twister.cpp
// Function: annulus::annulus(annulus const&)
annulus::annulus(const annulus &a)
{
	length = a.length;
	
	sq = new cube*[length];
	upright = new bool[length];
	
	for (int i = 0; i < length; i++)
	{
		sq[i] = a.sq[i];
		upright[i] = a.upright[i];
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movslq (%rsi), %r15
leaq (,%r15,8), %rax
testq %r15, %r15
movl %r15d, (%rdi)
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x3030
movq %rax, 0x8(%r14)
movq %r15, %rdi
callq 0x3030
movq %rax, 0x10(%r14)
testq %r15, %r15
jle 0xf4ef
xorl %eax, %eax
movq 0x8(%rbx), %rcx
movq (%rcx,%rax,8), %rcx
movq 0x8(%r14), %rdx
movq %rcx, (%rdx,%rax,8)
movq 0x10(%rbx), %rcx
movb (%rcx,%rax), %cl
movq 0x10(%r14), %rdx
movb %cl, (%rdx,%rax)
incq %rax
cmpq %rax, %r15
jne 0xf4c9
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/twister.cpp
// Function: rectangle::rectangle(std::vector<cube*, std::allocator<cube*>> const&, std::vector<bool, std::allocator<bool>> const&)
rectangle::rectangle(const std::vector<cube*> &sq_in, const std::vector<bool> &upright_in)
{
	front = -1;
	back = -1;
	one_ended = false;
	
	length = int(sq_in.size());
	
	sq = new cube*[length];
	upright = new bool[length];
	
	for (int i = 0; i < length; i++)
	{
		sq[i] = sq_in[i];
		upright[i] = upright_in[i];
	}
	
	// Check for self-intersection.
	for (int i = 0; i < length; i++)
		for (int j = i + 1; j < length; j++)
			if (sq[i] == sq[j])
				output_error("A rectangle must not intersect itself.");
	
	// Now glue the cubes together.
	for (int i = 0; i < length - 1; i++)
		glue_cubes(sq[i], sq[i+1], upright[i], upright[i+1]);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq $-0x1, %rax
movq %rax, 0x18(%rdi)
movb $0x0, 0x20(%rdi)
movq 0x8(%rsi), %rcx
subq (%rsi), %rcx
movq %rcx, %r13
shrq $0x3, %r13
movl %r13d, (%rdi)
shlq $0x1d, %rcx
movq %rcx, %rdi
sarq $0x1d, %rdi
testq %rcx, %rcx
cmovsq %rax, %rdi
callq 0x3030
movq %rax, 0x8(%rbx)
movslq %r13d, %r12
movq %r12, %rdi
callq 0x3030
movq %rax, 0x10(%rbx)
testl %r12d, %r12d
jle 0x10944
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
xorl %eax, %eax
movq (%r15), %rcx
movq (%rcx,%rax,8), %rcx
movq 0x8(%rbx), %rdx
movq %rcx, (%rdx,%rax,8)
movq (%r14), %rcx
movq %rax, %rdx
shrq $0x6, %rdx
movq (%rcx,%rdx,8), %rcx
btq %rax, %rcx
movq 0x10(%rbx), %rcx
setb (%rcx,%rax)
incq %rax
cmpq %rax, %r13
jne 0x10913
cmpl $0x0, (%rbx)
jle 0x109d1
movl $0x1, %r15d
leaq 0x18(%rsp), %r13
xorl %r14d, %r14d
leaq 0x8(%rsp), %r12
leaq 0x1(%r14), %rcx
movslq (%rbx), %rax
movq %rcx, (%rsp)
cmpq %rax, %rcx
jge 0x109c2
movq %r15, %rbp
movq 0x8(%rbx), %rax
movq (%rax,%r14,8), %rcx
cmpq (%rax,%rbp,8), %rcx
jne 0x109bb
movq %r13, 0x8(%rsp)
movq %r12, %rdi
leaq 0x6cce(%rip), %rsi      # 0x1765e
leaq 0x6ced(%rip), %rdx      # 0x17684
callq 0x86fe
movq %r12, %rdi
callq 0x4397
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x109bb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3220
incq %rbp
cmpl %ebp, (%rbx)
jg 0x10973
movslq (%rbx), %rax
incq %r15
movq (%rsp), %r14
cmpq %rax, %r14
jl 0x10960
cmpl $0x2, (%rbx)
jl 0x10a0b
xorl %eax, %eax
leaq 0x1(%rax), %r14
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %r8
movq (%rcx,%rax,8), %rdi
movq 0x8(%rcx,%rax,8), %rsi
movzbl (%rax,%r8), %edx
movzbl 0x1(%rax,%r8), %ecx
callq 0xe625
movslq (%rbx), %rcx
decq %rcx
movq %r14, %rax
cmpq %rcx, %r14
jl 0x109d8
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x10a34
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3220
movq %rbx, %rdi
callq 0x33e0
// File: /workspace/github_cpp_makefile_star2_O1/MarkCBell[P]twister/./twister/kernel/twister.cpp
// Function: rectangle::rectangle(rectangle const&)
rectangle::rectangle(const rectangle &r)
{
	length = r.length;
	
	sq = new cube*[length];
	upright = new bool[length];
	
	for (int i = 0; i < length; i++)
	{
		sq[i] = r.sq[i];
		upright[i] = r.upright[i];
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movslq (%rsi), %r15
leaq (,%r15,8), %rax
testq %r15, %r15
movl %r15d, (%rdi)
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x3030
movq %rax, 0x8(%r14)
movq %r15, %rdi
callq 0x3030
movq %rax, 0x10(%r14)
testq %r15, %r15
jle 0x10aa5
xorl %eax, %eax
movq 0x8(%rbx), %rcx
movq (%rcx,%rax,8), %rcx
movq 0x8(%r14), %rdx
movq %rcx, (%rdx,%rax,8)
movq 0x10(%rbx), %rcx
movb (%rcx,%rax), %cl
movq 0x10(%r14), %rdx
movb %cl, (%rdx,%rax)
incq %rax
cmpq %rax, %r15
jne 0x10a7f
popq %rbx
popq %r14
popq %r15
retq
nop