LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::RemoveFilter()
S::Bool S::IO::OutStream::RemoveFilter()
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return False; }
	if (filter == NIL)		{ lastError = IO_ERROR_BADPARAM; return False; }

	if (bitstreamActive && !keepBits) CompleteBitstream();

	Int	 oldcpos = currentBufferPos;

	if (filter->GetPackageSize() > 0 && currentBufferPos != 0)
	{
		for (Int i = 0; i < (packageSize - oldcpos); i++) OutputNumber(0, 1);
	}
	else
	{
		if (filter->GetPackageSize() == -1) allowpackset = True;

		Flush();
	}

	allowpackset = True;

	filter->Deactivate();
	filter = NIL;

	SetPackageSize(origpacksize);

	return True;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0xa005e
movq 0xf0(%rbx), %rax
testq %rax, %rax
je 0xa0069
cmpb $0x1, 0x60(%rbx)
jne 0xa0037
cmpb $0x0, 0x61(%rbx)
jne 0xa0037
movq %rbx, %rdi
callq 0x56380
movq 0xf0(%rbx), %rax
movl 0x50(%rbx), %ebp
movl 0x8(%rax), %eax
testl %eax, %eax
setle %cl
testl %ebp, %ebp
sete %dl
orb %cl, %dl
je 0xa0076
cmpl $-0x1, %eax
jne 0xa0054
movb $0x1, 0x44(%rbx)
movq %rbx, %rdi
callq 0x58d30
jmp 0xa009a
movw $0x5, 0xf8(%rbx)
jmp 0xa0072
movw $0x2, 0xf8(%rbx)
xorl %eax, %eax
jmp 0xa00c3
cmpl %ebp, 0x38(%rbx)
jle 0xa009a
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x55750
incl %r14d
movl 0x38(%rbx), %eax
subl %ebp, %eax
cmpl %eax, %r14d
jl 0xa007e
movb $0x1, 0x44(%rbx)
movq 0xf0(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0xf0(%rbx)
movl 0x40(%rbx), %esi
movq %rbx, %rdi
callq 0x56350
movb $0x1, %al
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::Close()
S::Bool S::IO::OutStream::Close()
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return False; }

	while (filter != NIL) RemoveFilter();

	Flush();

	if (crosslinked)
	{
		if (closefile) inStream->closefile = True;

		inStream->crosslinked	= False;
		inStream->outStream	= NIL;

		closefile = False;
	}

	if (closefile) delete driver;

	streamType = STREAM_NONE;

	return True;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movzwl 0x8(%rdi), %ebp
testw %bp, %bp
jne 0xa00eb
movw $0x5, 0xf8(%rbx)
jmp 0xa0148
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
cmpq $0x0, 0xf0(%rbx)
jne 0xa00e2
movq %rbx, %rdi
callq 0x58d30
movb 0xb(%rbx), %cl
cmpb $0x1, 0xa(%rbx)
jne 0xa012b
movq 0x100(%rbx), %rax
testb $0x1, %cl
je 0xa0116
movb $0x1, 0xb(%rax)
xorl %ecx, %ecx
movb %cl, 0xa(%rax)
movq $0x0, 0x100(%rax)
movb %cl, 0xb(%rbx)
jmp 0xa0142
testb $0x1, %cl
je 0xa0142
movq 0xe8(%rbx), %rdi
testq %rdi, %rdi
je 0xa0142
movq (%rdi), %rax
callq *0x8(%rax)
movw $0x0, 0x8(%rbx)
testw %bp, %bp
setne %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::Seek(long long)
S::Bool S::IO::OutStream::Seek(Int64 position)
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return False; }

	Flush();

	if (driver->Seek(position) == -1) return False;

	currentFilePos	 = position;
	currentBufferPos = 0;

	return True;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0xa0194
movq %rsi, %r14
movq %rbx, %rdi
callq 0x58d30
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x20(%rax)
cmpq $-0x1, %rax
je 0xa019d
movq %r14, 0x48(%rbx)
movl $0x0, 0x50(%rbx)
movb $0x1, %al
jmp 0xa019f
movw $0x5, 0xf8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::Truncate(long long)
S::Bool S::IO::OutStream::Truncate(Int64 size)
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return False; }

	if (!driver->Truncate(size)) return False;

	Seek(size);

	return True;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
cmpw $0x0, 0x8(%rdi)
je 0xa01fa
movq %rsi, %rbx
movq 0xe8(%r14), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
testb %al, %al
je 0xa0204
movq (%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *0x28(%rax)
movb $0x1, %al
jmp 0xa0206
movw $0x5, 0xf8(%r14)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/stream.cpp
// Function: smooth::IO::Stream::Stream()
S::IO::Stream::Stream()
{
	streamType	 = STREAM_NONE;
	size		 = 0;

	currentFilePos	 = 0;
	currentBufferPos = 0;

	bitstreamActive	 = False;
	keepBits	 = False;
	bitLength	 = 0;

	closefile	 = True;
	crosslinked	 = False;

	driver		 = NIL;
	filter		 = NIL;

	allowpackset	 = True;
	packageSize	 = 1;
	stdpacksize	 = packageSize;
	origpacksize	 = packageSize;
	origsize	 = 0;
	origfilepos	 = 0;

	lastError	 = IO_ERROR_OK;

	memset(&bitBuffer, 0, sizeof(bitBuffer));
}

// Assembly:
movq 0xcb789(%rip), %rax     # 0x16b9a0
addq $0x10, %rax
movq %rax, (%rdi)
leaq 0xbfd2b(%rip), %rax     # 0x15ff50
movq %rax, 0x20(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movl $0x1000000, 0x8(%rdi)   # imm = 0x1000000
movups %xmm0, 0x10(%rdi)
xorl %eax, %eax
movq %rax, 0x48(%rdi)
movl %eax, 0x50(%rdi)
movw %ax, 0x60(%rdi)
movl %eax, 0x64(%rdi)
movups %xmm0, 0xe8(%rdi)
movb $0x1, 0x44(%rdi)
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x38(%rdi)
movl $0x1, 0x40(%rdi)
movq %rax, 0x58(%rdi)
movw %ax, 0xf8(%rdi)
movups %xmm0, 0x68(%rdi)
movups %xmm0, 0x78(%rdi)
movups %xmm0, 0x88(%rdi)
movups %xmm0, 0x98(%rdi)
movups %xmm0, 0xa8(%rdi)
movups %xmm0, 0xb8(%rdi)
movups %xmm0, 0xc8(%rdi)
movups %xmm0, 0xd8(%rdi)
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/drivers/driver_ansi.cpp
// Function: smooth::IO::DriverANSI::ReadData(unsigned char*, int)
S::Int S::IO::DriverANSI::ReadData(UnsignedByte *data, Int dataSize)
{
	if (!stream || dataSize <= 0) return 0;

	/* Switch between read and write mode.
	 */
	if (position == -1) fseeko(stream, 0, SEEK_CUR);

	position = 1;

	/* Perform actual read operation.
	 */
	return fread(data, 1, dataSize, stream);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %rbx
movq 0x38(%rdi), %rcx
testq %rcx, %rcx
sete %dl
testl %ebp, %ebp
setle %sil
xorl %eax, %eax
orb %dl, %sil
jne 0xa060a
movq %rdi, %r14
cmpq $-0x1, 0x10(%rdi)
jne 0xa05f3
movq %rcx, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x551e0
movq 0x38(%r14), %rcx
movq $0x1, 0x10(%r14)
movl %ebp, %edx
movl $0x1, %esi
movq %rbx, %rdi
callq 0x56a20
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/drivers/driver_ansi.cpp
// Function: smooth::IO::DriverANSI::WriteData(unsigned char const*, int)
S::Int S::IO::DriverANSI::WriteData(const UnsignedByte *data, Int dataSize)
{
	if (!stream || dataSize <= 0) return 0;

	/* Switch between read and write mode.
	 */
	if (position == 1) fseeko(stream, 0, SEEK_CUR);

	position = -1;

	/* Perform actual write operation.
	 */
	return fwrite(data, 1, dataSize, stream);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %rbx
movq 0x38(%rdi), %rcx
testq %rcx, %rcx
sete %dl
testl %ebp, %ebp
setle %sil
xorl %eax, %eax
orb %dl, %sil
jne 0xa0664
movq %rdi, %r14
cmpq $0x1, 0x10(%rdi)
jne 0xa064d
movq %rcx, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x551e0
movq 0x38(%r14), %rcx
movq $-0x1, 0x10(%r14)
movl %ebp, %edx
movl $0x1, %esi
movq %rbx, %rdi
callq 0x588d0
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/drivers/driver_ansi.cpp
// Function: smooth::IO::DriverANSI::GetSize() const
S::Int64 S::IO::DriverANSI::GetSize() const
{
	if (!stream) return -1;

	Int64	 oldPos = GetPos();

	if (fseeko(stream,      0, SEEK_END) != 0) return -1;

	Int64	 size = GetPos();

	if (fseeko(stream, oldPos, SEEK_SET) != 0) return -1;

	return size;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq $-0x1, %rbx
cmpq $0x0, 0x38(%rdi)
je 0xa0784
movq %rdi, %r14
movq (%rdi), %rax
callq *0x48(%rax)
movq %rax, %r15
movq 0x38(%r14), %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x551e0
testl %eax, %eax
jne 0xa0784
movq (%r14), %rax
movq %r14, %rdi
callq *0x48(%rax)
movq %rax, %r12
movq 0x38(%r14), %rdi
xorl %ebx, %ebx
movq %r15, %rsi
xorl %edx, %edx
callq 0x551e0
negl %eax
sbbq %rbx, %rbx
orq %r12, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/drivers/driver_ansi.cpp
// Function: smooth::IO::DriverANSI::SetBufferSize(int)
S::Bool S::IO::DriverANSI::SetBufferSize(Int size)
{
	if (!stream) return False;

	Int64	 pos  = GetPos();
	Int	 mode = size > 0 ? _IOFBF : _IONBF;

	if (setvbuf(stream, NULL, mode, size) != 0) return False;
	if (Seek(pos) < 0)			    return False;

	return True;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpq $0x0, 0x38(%rdi)
je 0xa07fd
movl %esi, %ebp
movq %rdi, %rbx
movq (%rdi), %rax
callq *0x48(%rax)
movq %rax, %r14
xorl %edx, %edx
testl %ebp, %ebp
setle %dl
addl %edx, %edx
movq 0x38(%rbx), %rdi
movslq %ebp, %rcx
xorl %r15d, %r15d
xorl %esi, %esi
callq 0x56640
testl %eax, %eax
jne 0xa0800
movq (%rbx), %rax
movq %rbx, %rdi
movq %r14, %rsi
callq *0x20(%rax)
testq %rax, %rax
setns %r15b
jmp 0xa0800
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/drivers/driver_memory.cpp
// Function: smooth::IO::DriverMemory::ReadData(unsigned char*, int)
S::Int S::IO::DriverMemory::ReadData(UnsignedByte *data, Int dataSize)
{
	if (dataSize <= 0) return 0;

	dataSize = Math::Min(dataSize, size - position);

	memcpy(data, (unsigned char *) stream + position, dataSize);

	position += dataSize;

	return dataSize;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testl %edx, %edx
jle 0xa0f1b
movq %rdi, %rbx
movq 0x8(%rdi), %rcx
movq 0x10(%rdi), %rax
subq %rax, %rcx
cmpl %edx, %ecx
movl %edx, %r14d
cmovleq %rcx, %r14
addq 0x38(%rdi), %rax
movslq %r14d, %r15
movq %rsi, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x552d0
addq %r15, 0x10(%rbx)
jmp 0xa0f1e
xorl %r14d, %r14d
movl %r14d, %eax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/drivers/driver_socket.cpp
// Function: smooth::IO::DriverSocket::DriverSocket(smooth::String const&, int)
S::IO::DriverSocket::DriverSocket(const String &hostName, Int port) : Driver()
{
	closeStream = False;

	stream	    = -1;
	size	    = -1;

	mode	    = MODE_SOCKET_BLOCKING;
	timeout	    = 0;

	if (hostName.Length() > 255) { lastError = IO_ERROR_BADPARAM; return; }

	/* Open TCP/IP socket.
	 */
	stream = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);

	if (stream == (unsigned) (~0)) { lastError = IO_ERROR_UNEXPECTED; return; }

	closeStream = True;

	/* Get server hostname.
	 */
	hostent		*host = gethostbyname(hostName);

	if (host == NIL) { Close(); lastError = IO_ERROR_UNEXPECTED; return; }

	/* Connect to server.
	 */
	sockaddr_in	 saddr;

	saddr.sin_family = AF_INET;
	saddr.sin_addr	 = *((in_addr *) *host->h_addr_list);
	saddr.sin_port	 = htons((short) port);

	memset(&saddr.sin_zero, 0, sizeof(saddr.sin_zero));

	if (connect(stream, (sockaddr *) &saddr, sizeof(struct sockaddr)) == -1) { Close(); lastError = IO_ERROR_UNEXPECTED; return; }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x58560
movq 0xca0a0(%rip), %rax     # 0x16b378
addq $0x10, %rax
movq %rax, (%rbx)
movb $0x0, 0x3c(%rbx)
movl $0xffffffff, 0x38(%rbx) # imm = 0xFFFFFFFF
movq $-0x1, 0x8(%rbx)
movq $0x0, 0x40(%rbx)
movl $0x0, 0x48(%rbx)
movq %r14, %rdi
callq 0x57180
cmpl $0x100, %eax            # imm = 0x100
jl 0xa131c
movl $0x2, 0x18(%rbx)
jmp 0xa13a2
movl $0x2, %edi
movl $0x1, %esi
movl $0x6, %edx
callq 0x56660
movl %eax, 0x38(%rbx)
cmpl $-0x1, %eax
je 0xa139b
movb $0x1, 0x3c(%rbx)
movq %r14, %rdi
callq 0x585e0
movq %rax, %rdi
callq 0x56530
testq %rax, %rax
je 0xa1392
movq %rsp, %rsi
movw $0x2, (%rsi)
movq 0x18(%rax), %rax
movq (%rax), %rax
movl (%rax), %eax
rolw $0x8, %bp
movl %eax, 0x4(%rsi)
movw %bp, 0x2(%rsi)
movq $0x0, 0x8(%rsi)
movl 0x38(%rbx), %edi
movl $0x10, %edx
callq 0x56230
cmpl $-0x1, %eax
jne 0xa13a2
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x38(%rax)
jmp 0xa139b
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x38(%rax)
movl $0x3, 0x18(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0xa13af
jmp 0xa13af
movq %rax, %r14
movq %rbx, %rdi
callq 0x56c30
movq %r14, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/drivers/driver_socket.cpp
// Function: smooth::IO::DriverSocket::DriverSocket(unsigned int)
S::IO::DriverSocket::DriverSocket(unsigned int iStream) : Driver()
{
	size	    = -1;

	stream	    = iStream;
	closeStream = False;
	timeout	    = 0;

	SetMode(MODE_SOCKET_BLOCKING);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
callq 0x58560
movq 0xc9fa1(%rip), %rax     # 0x16b378
addq $0x10, %rax
movq %rax, (%r14)
movq $-0x1, 0x8(%r14)
movl %ebx, 0x38(%r14)
movb $0x0, 0x3c(%r14)
movl $0x0, 0x48(%r14)
movq $0x0, 0x40(%r14)
addq $0x40, %r14
movl $0x5421, %esi           # imm = 0x5421
movl %ebx, %edi
movq %r14, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x55560
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/filters/filter_bzip2.cpp
// Function: smooth::IO::FilterBZip2::WriteData(smooth::Buffer<unsigned char> const&)
S::Int S::IO::FilterBZip2::WriteData(const Buffer<UnsignedByte> &data)
{
	if (driver == NIL) return -1;

	int		 outsize = data.Size() + data.Size() / 100 + 1000;
	unsigned char	*dest = new unsigned char [outsize];

	BZ2_bzBuffToBuffCompress((char *) dest, (unsigned int *) &outsize, const_cast<char *>((const char *) (const UnsignedByte *) data), data.Size(), 5, 0, 0);

	driver->WriteData(dest, outsize);

	delete [] dest;

	return outsize;
}

// Assembly:
cmpq $0x0, 0x10(%rdi)
je 0xa2154
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r12
movq %rdi, %rbx
movslq 0x10(%rsi), %r14
imulq $0x51eb851f, %r14, %rax # imm = 0x51EB851F
movq %rax, %rcx
shrq $0x3f, %rcx
sarq $0x25, %rax
addl %ecx, %eax
addl %r14d, %eax
addl $0x3e8, %eax            # imm = 0x3E8
movl %eax, 0x14(%rsp)
movslq %eax, %rdi
callq 0x56670
movq %rax, %r15
movq 0x8(%r12), %rax
testq %rax, %rax
je 0xa215a
movq (%rax), %rdx
jmp 0xa215c
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
xorl %edx, %edx
movl $0x0, (%rsp)
leaq 0x14(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl %r14d, %ecx
movl $0x5, %r8d
xorl %r9d, %r9d
callq 0x552c0
movq 0x10(%rbx), %rdi
movl (%r12), %edx
movq (%rdi), %rax
movq %r15, %rsi
callq *0x18(%rax)
movq %r15, %rdi
callq 0x561e0
movl (%r12), %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/filters/filter_bzip2.cpp
// Function: smooth::IO::FilterBZip2::ReadData(smooth::Buffer<unsigned char>&)
S::Int S::IO::FilterBZip2::ReadData(Buffer<UnsignedByte> &data)
{
	if (driver == NIL) return -1;

	/* Try guessing the size of uncompressed data.
	 */
	int	 size = data.Size();
	int	 outsize;

	if	(size < (200 * 1024))	    outsize = size * 100 + 10000;
	else if (size > (20 * 1024 * 1024)) outsize = size *   5 + 10000;
	else				    outsize = size *  10 + 10000;

	/* Now decompress.
	 */
	unsigned char	*src = new unsigned char [size];

	driver->ReadData(src, size);

	data.Resize(outsize);

	BZ2_bzBuffToBuffDecompress((char *) (UnsignedByte *) data, (unsigned int *) &outsize, (char *) src, size, 0, 0);

	delete [] src;

	return outsize;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq 0x10(%rdi), %r15
testq %r15, %r15
je 0xa21d8
movq %rsi, %r14
movslq 0x10(%rsi), %rbx
cmpq $0x31fff, %rbx          # imm = 0x31FFF
jg 0xa21df
imull $0x64, %ebx, %ebp
addl $0x2710, %ebp           # imm = 0x2710
jmp 0xa21fc
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xa2256
cmpl $0x1400001, %ebx        # imm = 0x1400001
jb 0xa21f2
leal (%rbx,%rbx,4), %ebp
addl $0x2710, %ebp           # imm = 0x2710
jmp 0xa21fc
leal (%rbx,%rbx,4), %eax
leal 0x2710(,%rax,2), %ebp
movl %ebp, 0xc(%rsp)
movq %rbx, %rdi
callq 0x56670
movq %rax, %r12
movq (%r15), %rax
movq %r15, %rdi
movq %r12, %rsi
movl %ebx, %edx
callq *0x10(%rax)
movq %r14, %rdi
movl %ebp, %esi
callq 0x62f32
movq 0x8(%r14), %rax
testq %rax, %rax
je 0xa2231
movq (%rax), %rdi
jmp 0xa2233
xorl %edi, %edi
leaq 0xc(%rsp), %r14
movq %r14, %rsi
movq %r12, %rdx
movl %ebx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x57970
movq %r12, %rdi
callq 0x561e0
movl (%r14), %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/filters/filter_xor.cpp
// Function: smooth::IO::FilterXOR::ReadData(smooth::Buffer<unsigned char>&)
S::Int S::IO::FilterXOR::ReadData(Buffer<UnsignedByte> &data)
{
	if (driver == NIL) return -1;

	driver->ReadData(data, data.Size());

	Int	 value = (data[3] + 256 * data[2] + 65536 * data[1] + 16777216 * data[0]) ^ modifier;

	data[0] = (value >> 24) & 255;
	data[1] = (value >> 16) & 255;
	data[2] = (value >>  8) & 255;
	data[3] =  value	& 255;

	return data.Size();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0xa2303
movq %rsi, %rbx
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0xa230a
movq (%rax), %rsi
jmp 0xa230c
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xa2369
xorl %esi, %esi
movl 0x10(%rbx), %edx
movq (%rdi), %rax
callq *0x10(%rax)
movq 0x8(%rbx), %rax
movq (%rax), %rcx
movzwl 0x2(%rcx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movzbl 0x1(%rcx), %edx
shll $0x10, %edx
orl %eax, %edx
movzbl (%rcx), %eax
shll $0x18, %eax
orl %edx, %eax
xorl 0x18(%r14), %eax
movl %eax, %edx
shrl $0x18, %edx
movb %dl, (%rcx)
movl %eax, %ecx
shrl $0x10, %ecx
movq 0x8(%rbx), %rdx
movq (%rdx), %rdx
movb %cl, 0x1(%rdx)
movq 0x8(%rbx), %rcx
movq (%rcx), %rcx
movb %ah, 0x2(%rcx)
movq 0x8(%rbx), %rcx
movq (%rcx), %rcx
movb %al, 0x3(%rcx)
movl 0x10(%rbx), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/args.cpp
// Function: smooth::ArgumentsParser::ArgumentsParser(int, char**)
S::ArgumentsParser::ArgumentsParser(int argc, char **argv)
{
	command = argv[0];

	for (Int i = 1; i < argc; i++)
	{
#ifdef __APPLE__
		if (strncmp(argv[i], "-psn_", 5) == 0) continue;
#endif

		args.Add(argv[i]);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
xorl %esi, %esi
callq 0x58e20
leaq 0x18(%rbx), %r14
movq %r14, %rdi
callq 0x55d90
leaq 0xbdf08(%rip), %rax     # 0x1602b0
movq %rax, 0x58(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%rbx)
leaq 0xbde56(%rip), %rax     # 0x160210
movq %rax, 0x18(%rbx)
movq (%r15), %rsi
movq %rbx, %rdi
callq 0x55f40
cmpl $0x2, %ebp
jl 0xa2400
movl %ebp, %r13d
movl $0x1, %ebp
movq %rsp, %r12
movq (%r15,%rbp,8), %rsi
movq %r12, %rdi
callq 0x579f0
movq %r14, %rdi
movq %r12, %rsi
callq 0x642ac
movq %r12, %rdi
callq 0x59200
incq %rbp
cmpq %rbp, %r13
jne 0xa23d9
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa2416
movq %rax, %r15
jmp 0xa242e
movq %rax, %r15
jmp 0xa2426
movq %rax, %r15
movq %rsp, %rdi
callq 0x59200
movq %r14, %rdi
callq 0x63e3c
movq %rbx, %rdi
callq 0x59200
movq %r15, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/args.cpp
// Function: smooth::ArgumentsParser::ArgumentsParser(smooth::String const&)
S::ArgumentsParser::ArgumentsParser(const String &commandLine)
{
	String	 param;
	Bool	 quoted	= False;
	Bool	 first	= True;

	for (Int i = 0, j = 0; i <= commandLine.Length(); i++)
	{
		if ((commandLine[i] == ' ' && !quoted && commandLine[i - 1] != '\\') || i == commandLine.Length())
		{
			if (!param.Length()) continue;

			if (first) command = param;
			else	   args.Add(param);

			first = False;
			param = NIL;
			j     = 0;
		}
		else if (commandLine[i] == '\"')
		{
			quoted = !quoted;
		}
		else if (!(commandLine[i] == '\\' && commandLine[i + 1] == ' '))
		{
			param[j++] = commandLine[i];
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r15
movq %rdi, %rbx
xorl %esi, %esi
callq 0x58e20
leaq 0x18(%rbx), %rdi
movq %rdi, 0x8(%rsp)
callq 0x55d90
leaq 0xbde42(%rip), %rax     # 0x1602b0
movq %rax, 0x58(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%rbx)
leaq 0xbdd90(%rip), %rax     # 0x160210
movq %rbx, (%rsp)
movq %rax, 0x18(%rbx)
leaq 0x10(%rsp), %rdi
xorl %r13d, %r13d
xorl %esi, %esi
callq 0x58e20
movb $0x1, %r12b
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
xorl %ebx, %ebx
movl %ebp, %r14d
movq %r15, %rdi
callq 0x57180
leal 0x1(%r14), %ebp
cmpl %eax, %ebp
jg 0xa2597
movq %r15, %rdi
movl %ebp, %esi
callq 0x57fe0
cmpl $0x20, %eax
setne %al
orb %bl, %al
testb $0x1, %al
jne 0xa24de
movq %r15, %rdi
movl %r14d, %esi
callq 0x57fe0
cmpl $0x5c, %eax
jne 0xa24ea
movq %r15, %rdi
callq 0x57180
cmpl %eax, %ebp
jne 0xa250e
leaq 0x10(%rsp), %rdi
callq 0x57180
testl %eax, %eax
je 0xa24a1
testb $0x1, %r12b
je 0xa2525
movq (%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x555f0
jmp 0xa2534
movq %r15, %rdi
movl %ebp, %esi
callq 0x57fe0
cmpl $0x22, %eax
jne 0xa254b
xorb $0x1, %bl
jmp 0xa24a1
movq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x642ac
xorl %r12d, %r12d
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x579e0
xorl %r13d, %r13d
jmp 0xa24a1
movq %r15, %rdi
movl %ebp, %esi
callq 0x57fe0
cmpl $0x5c, %eax
jne 0xa2572
addl $0x2, %r14d
movq %r15, %rdi
movl %r14d, %esi
callq 0x57fe0
cmpl $0x20, %eax
je 0xa24a1
movq %r15, %rdi
movl %ebp, %esi
callq 0x57fe0
movl %eax, %r14d
leaq 0x10(%rsp), %rdi
movl %r13d, %esi
callq 0x58990
incl %r13d
movl %r14d, (%rax)
jmp 0xa24a1
leaq 0x10(%rsp), %rdi
callq 0x59200
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0xa25c7
movq %rax, %r14
jmp 0xa25d5
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x59200
movq 0x8(%rsp), %rdi
callq 0x63e3c
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0x59200
movq %r14, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/array.cpp
// Function: smooth::IndexArray::IndexArray()
S::IndexArray::IndexArray()
{
	nOfEntries	  = 0;
	greatestIndex	  = 0;

	sorted		  = True;

	lastAccessedEntry = 0;

	lockingEnabled	  = False;
	lock		  = NIL;
}

// Assembly:
movq 0xc92f5(%rip), %rax     # 0x16b8f8
addq $0x10, %rax
movq %rax, (%rdi)
leaq 0xc67c7(%rip), %rax     # 0x168dd8
movq %rax, 0x18(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rdi)
xorl %eax, %eax
movq %rax, 0x8(%rdi)
movb $0x1, 0x10(%rdi)
movl $0x0, 0x14(%rdi)
movb $0x0, 0x30(%rdi)
movq %rax, 0x38(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/array.cpp
// Function: smooth::IndexArray::InsertAtPos(int, int)
S::Bool S::IndexArray::InsertAtPos(Int position, Int index)
{
	WriteLock	 lock(*this);

	if (position > nOfEntries || position < 0) return False;

	if (!IndexAvailable(index)) return False;

	if (greatestIndex < index) greatestIndex = index;

	if (indices.Size() == nOfEntries) indices.Resize(8 > nOfEntries * 1.25 ? 8 : nOfEntries * 1.25);

	memmove(indices + position + 1, indices + position, (nOfEntries - position) * sizeof(Int));

	indices[position] = index;

	nOfEntries++;

	if ((position >=	      1 && indices[position - 1] > index) ||
	    (position <  nOfEntries - 1 && indices[position + 1] < index)) sorted = False;

	return True;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movq %rdi, 0x8(%rsp)
cmpb $0x1, 0x30(%rdi)
jne 0xa26d0
movq 0x38(%rbx), %rdi
callq 0x551d0
xorl %r15d, %r15d
testl %r14d, %r14d
js 0xa2796
cmpl %r14d, 0x8(%rbx)
jl 0xa2796
movq %rbx, %rdi
movl %ebp, %esi
callq 0x58f20
testb %al, %al
je 0xa2737
cmpl %ebp, 0xc(%rbx)
jge 0xa26fc
movl %ebp, 0xc(%rbx)
movl 0x28(%rbx), %eax
cmpl 0x8(%rbx), %eax
jne 0xa2729
leaq 0x18(%rbx), %rdi
cvtsi2sd %eax, %xmm0
mulsd 0x508ec(%rip), %xmm0    # 0xf3000
movsd 0x508ec(%rip), %xmm1    # 0xf3008
maxsd %xmm0, %xmm1
cvttsd2si %xmm1, %esi
callq 0xa2c6a
movq 0x20(%rbx), %rax
testq %rax, %rax
je 0xa273c
movq (%rax), %rax
jmp 0xa273e
xorl %r15d, %r15d
jmp 0xa2796
xorl %eax, %eax
movl %r14d, %r12d
leaq (%rax,%r12,4), %rsi
leaq (%rax,%r12,4), %rdi
addq $0x4, %rdi
movslq 0x8(%rbx), %rdx
movslq %r14d, %rax
subq %rax, %rdx
shlq $0x2, %rdx
callq 0x556d0
movq 0x20(%rbx), %rax
movq (%rax), %rax
movl %ebp, (%rax,%r12,4)
movl 0x8(%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, 0x8(%rbx)
testl %r14d, %r14d
je 0xa2780
cmpl %ebp, -0x4(%rax,%r12,4)
jg 0xa278f
movb $0x1, %r15b
cmpl %r14d, %ecx
jle 0xa2796
cmpl %ebp, 0x4(%rax,%r12,4)
jge 0xa2796
movb $0x0, 0x10(%rbx)
movb $0x1, %r15b
leaq 0x8(%rsp), %rdi
callq 0x56310
movl %r15d, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x56310
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/array.cpp
// Function: smooth::IndexArray::IndexAvailable(int) const
S::Bool S::IndexArray::IndexAvailable(Int index) const
{
	ReadLock	 lock(*this);

	if (index > greatestIndex) return True;

	if (GetEntryNumberByIndex(index) == -1) return True;
	else					return False;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movq %rdi, %r14
movq %rdi, 0x8(%rsp)
cmpb $0x1, 0x30(%rdi)
jne 0xa27e7
movq 0x38(%r14), %rdi
callq 0x56d10
movb $0x1, %bpl
cmpl %ebx, 0xc(%r14)
jl 0xa2801
movq %r14, %rdi
movl %ebx, %esi
callq 0x58a20
cmpl $-0x1, %eax
sete %bpl
leaq 0x8(%rsp), %rdi
callq 0x578e0
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x578e0
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/array.cpp
// Function: smooth::IndexArray::Move(int, int)
S::Bool S::IndexArray::Move(Int index1, Int index2)
{
	WriteLock	 lock(*this);

	if (index1 > greatestIndex ||
	    index2 > greatestIndex) return False;

	return MoveNth(GetEntryNumberByIndex(index1), GetEntryNumberByIndex(index2));
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movq %rdi, 0x8(%rsp)
cmpb $0x1, 0x30(%rdi)
jne 0xa2850
movq 0x38(%rbx), %rdi
callq 0x551d0
movl 0xc(%rbx), %eax
cmpl %r14d, %eax
setl %cl
cmpl %ebp, %eax
setl %al
orb %cl, %al
je 0xa2866
xorl %ebx, %ebx
jmp 0xa288e
movq %rbx, %rdi
movl %r14d, %esi
callq 0x58a20
movl %eax, %r14d
movq %rbx, %rdi
movl %ebp, %esi
callq 0x58a20
movq (%rbx), %rcx
movq %rbx, %rdi
movl %r14d, %esi
movl %eax, %edx
callq *0x10(%rcx)
movl %eax, %ebx
leaq 0x8(%rsp), %rdi
callq 0x56310
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x56310
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/array.cpp
// Function: smooth::IndexArray::GetEntryNumberByIndex(int) const
S::Int S::IndexArray::GetEntryNumberByIndex(Int index) const
{
	ReadLock	 lock(*this);

	if (nOfEntries == 0) return -1;

	Int	 entryNumber  = -1;
	Int	 lastAccessed = lastAccessedEntry;

	/* Check entries around last accessed entry.
	 */
	if	(lastAccessed     <  nOfEntries && indices[lastAccessed    ] == index) entryNumber = lastAccessed;
	else if (lastAccessed     >  0 &&
		 lastAccessed     <= nOfEntries && indices[lastAccessed - 1] == index) entryNumber = lastAccessed - 1;
	else if (lastAccessed + 1 <  nOfEntries && indices[lastAccessed + 1] == index) entryNumber = lastAccessed + 1;

	/* Binary search for sorted lists.
	 */
	else if (sorted)
	{
		Int	 bottom = 0;
		Int	 top	= nOfEntries - 1;

		while (top >= bottom)
		{
			Int	 i = (top + bottom) / 2;
			Int	 e = indices[i];

			if (e == index) { entryNumber = i; break; }

			if (e < index) bottom = i + 1;
			else	       top    = i - 1;
		}
	}

	/* Linear search otherwise.
	 */
	else
	{
		for (Int i = 0; i < nOfEntries; i++)
		{
			if (indices[i] == index) { entryNumber = i; break; }
		}
	}

	if (entryNumber >= 0) lastAccessedEntry = entryNumber;

	return entryNumber;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %r14d
movq %rdi, %rbx
movq %rdi, 0x8(%rsp)
cmpb $0x1, 0x30(%rdi)
jne 0xa28da
movq 0x38(%rbx), %rdi
callq 0x56d10
movl 0x8(%rbx), %eax
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0xa293e
movl 0x14(%rbx), %ecx
movslq %ecx, %rdx
cmpl %eax, %edx
jge 0xa28fe
movq 0x20(%rbx), %rsi
movq (%rsi), %rsi
cmpl %r14d, (%rsi,%rdx,4)
je 0xa2933
testl %ecx, %ecx
setle %sil
cmpl %eax, %ecx
setg %dil
orb %sil, %dil
jne 0xa291e
decl %ecx
movq 0x20(%rbx), %rsi
movq (%rsi), %rsi
cmpl %r14d, (%rsi,%rcx,4)
je 0xa2939
leal 0x1(%rdx), %ecx
cmpl %eax, %ecx
jge 0xa2953
movq 0x20(%rbx), %rsi
movq (%rsi), %rsi
cmpl %r14d, 0x4(%rsi,%rdx,4)
jne 0xa2953
movl %ecx, %ebp
testl %ecx, %ecx
js 0xa293e
movl %ecx, 0x14(%rbx)
movl %ecx, %ebp
leaq 0x8(%rsp), %rdi
callq 0x578e0
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
cmpb $0x0, 0x10(%rbx)
je 0xa2987
testl %eax, %eax
jle 0xa293e
decl %eax
movq 0x20(%rbx), %rcx
movq (%rcx), %rdx
xorl %esi, %esi
leal (%rax,%rsi), %ecx
shrl %ecx
movl (%rdx,%rcx,4), %edi
cmpl %r14d, %edi
je 0xa2939
jl 0xa297d
decl %ecx
movl %ecx, %eax
jmp 0xa2981
incl %ecx
movl %ecx, %esi
cmpl %esi, %eax
jge 0xa2968
jmp 0xa293e
testl %eax, %eax
jle 0xa293e
movq 0x20(%rbx), %rcx
movq (%rcx), %rdx
xorl %ecx, %ecx
cmpl %r14d, (%rdx,%rcx,4)
je 0xa2933
incq %rcx
cmpq %rcx, %rax
jne 0xa2994
jmp 0xa293e
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/array.cpp
// Function: smooth::IndexArray::MoveNth(int, int)
S::Bool S::IndexArray::MoveNth(Int n, Int m)
{
	WriteLock	 lock(*this);

	if (nOfEntries <= n || n < 0 ||
	    nOfEntries <= m || m < 0) return False;

	Int	 backupIndex = indices[n];

	if (m < n) memmove(indices + m + 1, indices + m, (n - m) * sizeof(Int));
	else	   memmove(indices + n, indices + n + 1, (m - n) * sizeof(Int));

	indices[m] = backupIndex;

	sorted = False;

	return True;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movq %rdi, 0x8(%rsp)
cmpb $0x1, 0x30(%rdi)
jne 0xa29cc
movq 0x38(%rbx), %rdi
callq 0x551d0
movl 0x8(%rbx), %eax
cmpl %r14d, %eax
setle %cl
testl %r14d, %r14d
sets %dl
orb %cl, %dl
jne 0xa29ed
cmpl %ebp, %eax
setle %al
testl %ebp, %ebp
sets %cl
orb %al, %cl
je 0xa29f1
xorl %ebx, %ebx
jmp 0xa2a4e
movq 0x20(%rbx), %rax
movq (%rax), %rax
movl %r14d, %ecx
movl (%rax,%rcx,4), %r15d
movl %ebp, %edx
subl %r14d, %edx
jae 0xa2a26
movl %ebp, %r12d
leaq (%rax,%r12,4), %rsi
leaq (%rax,%r12,4), %rdi
addq $0x4, %rdi
subl %ebp, %r14d
movslq %r14d, %rdx
shlq $0x2, %rdx
callq 0x556d0
jmp 0xa2a3d
leaq (%rax,%rcx,4), %rdi
leaq 0x4(%rdi), %rsi
movslq %edx, %rdx
shlq $0x2, %rdx
callq 0x556d0
movl %ebp, %r12d
movq 0x20(%rbx), %rax
movq (%rax), %rax
movl %r15d, (%rax,%r12,4)
movb $0x0, 0x10(%rbx)
movb $0x1, %bl
leaq 0x8(%rsp), %rdi
callq 0x56310
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/array.cpp
// Function: smooth::IndexArray::RemoveNth(int)
S::Bool S::IndexArray::RemoveNth(Int n)
{
	WriteLock	 lock(*this);

	if (nOfEntries <= n || n < 0) return False;

	if (nOfEntries == 1) return RemoveAll();

	memmove(indices + n, indices + n + 1, (nOfEntries - n - 1) * sizeof(Int));

	nOfEntries--;

	return True;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movq %rdi, (%rsp)
cmpb $0x1, 0x30(%rdi)
jne 0xa2ae3
movq 0x38(%rbx), %rdi
callq 0x551d0
movl 0x8(%rbx), %eax
cmpl %ebp, %eax
setle %cl
testl %ebp, %ebp
sets %dl
orb %cl, %dl
je 0xa2af8
xorl %ebx, %ebx
jmp 0xa2b3d
cmpl $0x1, %eax
jne 0xa2b0a
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x20(%rax)
movl %eax, %ebx
jmp 0xa2b3d
movq 0x20(%rbx), %rcx
testq %rcx, %rcx
je 0xa2b18
movq (%rcx), %rcx
jmp 0xa2b1a
xorl %ecx, %ecx
movl %ebp, %edx
leaq (%rcx,%rdx,4), %rdi
leaq (%rcx,%rdx,4), %rsi
addq $0x4, %rsi
notl %ebp
addl %ebp, %eax
movslq %eax, %rdx
shlq $0x2, %rdx
callq 0x556d0
decl 0x8(%rbx)
movb $0x1, %bl
movq %rsp, %rdi
callq 0x56310
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x56310
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/array.cpp
// Function: smooth::IndexArray::RemoveAll()
S::Bool S::IndexArray::RemoveAll()
{
	WriteLock	 lock(*this);

	if (nOfEntries == 0) return True;

	indices.Free();

	nOfEntries	  = 0;
	greatestIndex	  = 0;

	sorted		  = True;

	lastAccessedEntry = 0;

	return True;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq %rdi, 0x8(%rsp)
cmpb $0x1, 0x30(%rdi)
jne 0xa2b7e
movq 0x38(%rbx), %rdi
callq 0x551d0
cmpl $0x0, 0x8(%rbx)
je 0xa2ba0
leaq 0x18(%rbx), %rdi
callq 0xa2cf0
movq $0x0, 0x8(%rbx)
movb $0x1, 0x10(%rbx)
movl $0x0, 0x14(%rbx)
leaq 0x8(%rsp), %rdi
callq 0x56310
movb $0x1, %al
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/binary.cpp
// Function: smooth::Binary::SetBits(int&, unsigned int, unsigned int, int)
S::Int S::Binary::SetBits(Int &n, UnsignedInt startBit, UnsignedInt endBit, Int value)
{
	if (startBit >= 32 || endBit >= 32) return -1;

	for (UnsignedInt i = startBit; i <= endBit; i++)
	{
		SetBit(n, i, (value >> (i - startBit)) & 1);
	}

	return n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebx
movl %edx, %ecx
orl %esi, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x1f, %ecx
ja 0xa2e94
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r14
cmpl %edx, %esi
ja 0xa2e91
subl %r15d, %ebp
incl %ebp
xorl %r12d, %r12d
leal (%r15,%r12), %esi
xorl %edx, %edx
btl %r12d, %ebx
setb %dl
movq %r14, %rdi
callq 0x557f0
incl %r12d
cmpl %r12d, %ebp
jne 0xa2e74
movl (%r14), %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/config.cpp
// Function: smooth::Configuration::Configuration(smooth::String const&, bool)
S::Configuration::Configuration(const String &file, Bool create)
{
	ownRoot = NIL;

	configFile = NIL;

	activeConfig = ConfigurationDefaultID;

	Open(file, create);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
xorl %esi, %esi
callq 0x58e20
leaq 0x18(%rbx), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x58e20
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rbx)
leaq 0xcbdd4(%rip), %rsi     # 0x16ed30
movq %r14, %rdi
callq 0x555f0
movzbl %bpl, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x55460
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
jmp 0xa2f8e
movq %rax, %r15
movq %r14, %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x59200
movq %r15, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/config.cpp
// Function: smooth::Configuration::Close()
S::Int S::Configuration::Close()
{
	if (configFile != NIL)
	{
		delete configFile;

		configFile = NIL;

		fileName = NIL;
	}

	if (ownRoot != NIL)
	{
		delete ownRoot;

		ownRoot = NIL;
	}

	return Success();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x30(%rdi), %r14
testq %r14, %r14
je 0xa3345
movq %r14, %rdi
callq 0x55400
movl $0x28, %esi
movq %r14, %rdi
callq 0x55480
movq $0x0, 0x30(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x579e0
movq 0x38(%rbx), %r14
testq %r14, %r14
je 0xa336b
movq %r14, %rdi
callq 0x55f80
movl $0x30, %esi
movq %r14, %rdi
callq 0x55480
movq $0x0, 0x38(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/config.cpp
// Function: smooth::Configuration::Save()
S::Int S::Configuration::Save()
{
	if (configFile == NIL) return Error();

	XML::Node	*root = configFile->GetRootNode();

	if (fileName != NIL && root != NIL)
	{
		/* Create base directory first.
		 */
		Directory(File(fileName).GetFilePath()).Create();

		/* Save config file.
		 */
		XML::Node	*configurationNode = root->GetNodeByName(NodeConfigurationID);

		if (configurationNode != NIL && configurationNode->GetNOfNodes() >= 1) configFile->SaveFile(fileName);
	}

	return Success();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
testq %rdi, %rdi
je 0xa3463
callq 0x56e60
movq %rax, %r14
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %esi, %esi
callq 0x56bd0
xorb $0x1, %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0xa3468
leaq 0x20(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0x38(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x56800
leaq 0x38(%rsp), %rdi
callq 0x580e0
movq %rax, %r15
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %r15, %rsi
callq 0x58c60
leaq 0x68(%rsp), %rdi
callq 0x55930
leaq 0x68(%rsp), %rdi
callq 0x59210
leaq 0x8(%rsp), %rdi
callq 0x59200
leaq 0x38(%rsp), %rdi
callq 0x59178
leaq 0x20(%rsp), %rdi
callq 0x59200
leaq 0xcb90e(%rip), %rsi     # 0x16ed48
movq %r14, %rdi
callq 0x56810
xorl %ebp, %ebp
testq %rax, %rax
je 0xa3468
movq %rax, %rdi
callq 0x56050
testl %eax, %eax
jle 0xa3468
movq 0x30(%rbx), %rdi
movq %rbx, %rsi
callq 0x579c0
jmp 0xa3468
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x59210
jmp 0xa348a
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x59200
jmp 0xa349b
jmp 0xa3498
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x59178
jmp 0xa34aa
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/config.cpp
// Function: smooth::Configuration::AddConfiguration(smooth::String const&)
S::Int S::Configuration::AddConfiguration(const String &nConfig)
{
	if (configFile == NIL) return Error();

	XML::Node	*configuration = FindConfigurationNode(nConfig);

	if (configuration == NIL)
	{
		configFile->GetRootNode()->AddNode(NodeConfigurationID)->SetAttribute(AttributeNameID, nConfig);

		return Success();
	}

	return Error();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpq $0x0, 0x30(%rdi)
je 0xa3529
movq %rsi, %rbx
movq %rdi, %r14
callq 0x576f0
testq %rax, %rax
jne 0xa3529
movq 0x30(%r14), %rdi
callq 0x56e60
movq %rax, %r14
movq %rsp, %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0xcb846(%rip), %rsi     # 0x16ed48
movq %r14, %rdi
movq %r15, %rdx
callq 0x55820
leaq 0xcb894(%rip), %rsi     # 0x16eda8
movq %rax, %rdi
movq %rbx, %rdx
callq 0x581c0
movq %rsp, %rdi
callq 0x59200
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/config.cpp
// Function: smooth::Configuration::FindConfigurationNode(smooth::String const&) const
S::XML::Node *S::Configuration::FindConfigurationNode(const String &configuration) const
{
	XML::Node	*root = configFile->GetRootNode();

	if (root == NIL) return NIL;

	for (Int i = 0; i < root->GetNOfNodes(); i++)
	{
		XML::Node	*node = root->GetNthNode(i);

		if (node->GetName() != NodeConfigurationID) continue;

		XML::Attribute	*attributeName = node->GetAttributeByName(AttributeNameID);

		if (attributeName != NIL && attributeName->GetContent() == configuration) return node;
	}

	return NIL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x30(%rdi), %rdi
callq 0x56e60
testq %rax, %rax
je 0xa35de
movq %rax, %r14
movq %rax, %rdi
callq 0x56050
testl %eax, %eax
jle 0xa35de
leaq 0xcb7cc(%rip), %r15     # 0x16ed48
leaq 0xcb825(%rip), %r12     # 0x16eda8
xorl %ebp, %ebp
movq %r14, %rdi
movl %ebp, %esi
callq 0x57e20
movq %rax, %r13
movq %rax, %rdi
callq 0x57d50
movq %rax, %rdi
movq %r15, %rsi
callq 0x56fa0
testb %al, %al
jne 0xa35d0
movq %r13, %rdi
movq %r12, %rsi
callq 0x58d10
testq %rax, %rax
je 0xa35d0
movq %rax, %rdi
callq 0x55720
movq %rax, %rdi
movq %rbx, %rsi
callq 0x55900
testb %al, %al
jne 0xa35e1
incl %ebp
movq %r14, %rdi
callq 0x56050
cmpl %eax, %ebp
jl 0xa3585
xorl %r13d, %r13d
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/config.cpp
// Function: smooth::Configuration::RemoveConfiguration(smooth::String const&)
S::Int S::Configuration::RemoveConfiguration(const String &rConfig)
{
	if (configFile == NIL) return Error();

	XML::Node	*configuration = FindConfigurationNode(rConfig);

	if (configuration != NIL)
	{
		if (activeConfig == rConfig) SetActiveConfiguration(ConfigurationDefaultID);

		configFile->GetRootNode()->RemoveNode(configuration);

		return Success();
	}

	return Error();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpq $0x0, 0x30(%rdi)
je 0xa364f
movq %rsi, %r15
movq %rdi, %rbx
callq 0x576f0
testq %rax, %rax
je 0xa364f
movq %rax, %r14
leaq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0x55900
testb %al, %al
je 0xa3639
leaq 0xcb6ff(%rip), %rsi     # 0x16ed30
movq %rbx, %rdi
callq 0x56630
movq 0x30(%rbx), %rdi
callq 0x56e60
movq %rax, %rdi
movq %r14, %rsi
callq 0x57e50
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/config.cpp
// Function: smooth::Configuration::SetActiveConfiguration(smooth::String const&)
S::Int S::Configuration::SetActiveConfiguration(const String &nConfig)
{
	if (configFile == NIL) return Error();

	XML::Node	*configuration = FindConfigurationNode(nConfig);

	if (configuration == NIL) AddConfiguration(nConfig);

	activeConfig = nConfig;

	return Success();
}

// Assembly:
cmpq $0x0, 0x30(%rdi)
je 0xa369b
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x576f0
testq %rax, %rax
jne 0xa3682
movq %r14, %rdi
movq %rbx, %rsi
callq 0x56290
addq $0x18, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x555f0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/config.cpp
// Function: smooth::Configuration::GetNOfConfigurations() const
S::Int S::Configuration::GetNOfConfigurations() const
{
	XML::Node	*root = configFile->GetRootNode();

	if (root == NIL) return 0;

	Int	 count = 0;

	for (Int i = 0; i < root->GetNOfNodes(); i++)
	{
		XML::Node	*node = root->GetNthNode(i);

		if (node->GetName() != NodeConfigurationID) continue;

		count++;
	}

	return count;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x30(%rdi), %rdi
callq 0x56e60
xorl %ebp, %ebp
testq %rax, %rax
je 0xa3709
movq %rax, %rbx
movq %rax, %rdi
callq 0x56050
testl %eax, %eax
jle 0xa3709
xorl %r14d, %r14d
leaq 0xcb676(%rip), %r15     # 0x16ed48
xorl %ebp, %ebp
movq %rbx, %rdi
movl %r14d, %esi
callq 0x57e20
movq %rax, %rdi
callq 0x57d50
movq %rax, %rdi
movq %r15, %rsi
callq 0x56fa0
xorb $0x1, %al
movzbl %al, %eax
addl %eax, %ebp
incl %r14d
movq %rbx, %rdi
callq 0x56050
cmpl %eax, %r14d
jl 0xa36d4
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/config.cpp
// Function: smooth::Configuration::GetNthConfigurationName(int) const
S::String S::Configuration::GetNthConfigurationName(Int n) const
{
	XML::Node	*root = configFile->GetRootNode();

	if (root == NIL) return NIL;

	Int	 count = 0;

	for (Int i = 0; i < root->GetNOfNodes(); i++)
	{
		XML::Node	*node = root->GetNthNode(i);

		if (node->GetName() != NodeConfigurationID) continue;

		if (count++ == n)
		{
			XML::Attribute	*attributeName = node->GetAttributeByName(AttributeNameID);

			if (attributeName != NIL) return attributeName->GetContent();
			else			  return NIL;
		}
	}

	return NIL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rdi, %rbx
movq 0x30(%rsi), %rdi
callq 0x56e60
testq %rax, %rax
je 0xa3792
movq %rax, %r14
movq %rbx, (%rsp)
movq %rax, %rdi
callq 0x56050
testl %eax, %eax
jle 0xa378e
xorl %ebx, %ebx
leaq 0xcb5f8(%rip), %r15     # 0x16ed48
xorl %r12d, %r12d
movq %r14, %rdi
movl %r12d, %esi
callq 0x57e20
movq %rax, %r13
movq %rax, %rdi
callq 0x57d50
movq %rax, %rdi
movq %r15, %rsi
callq 0x56fa0
testb %al, %al
jne 0xa377e
cmpl %ebp, %ebx
je 0xa37ae
incl %ebx
incl %r12d
movq %r14, %rdi
callq 0x56050
cmpl %eax, %r12d
jl 0xa3753
movq (%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58e20
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xcb5f3(%rip), %rsi     # 0x16eda8
movq %r13, %rdi
callq 0x58d10
testq %rax, %rax
je 0xa378e
movq %rax, %rdi
callq 0x55720
movq (%rsp), %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x570b0
jmp 0xa379c
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/config.cpp
// Function: smooth::Configuration::SetParentConfiguration(smooth::String const&)
S::Int S::Configuration::SetParentConfiguration(const String &nParent)
{
	if (configFile == NIL) return Error();

	XML::Node	*configuration = FindConfigurationNode(activeConfig);

	if (configuration == NIL) return Error();

	configuration->SetAttribute(AttributeInheritingID, nParent);

	return Success();
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpq $0x0, 0x30(%rdi)
je 0xa3810
movq %rsi, %rbx
leaq 0x18(%rdi), %rsi
callq 0x576f0
testq %rax, %rax
je 0xa3810
leaq 0xcb58d(%rip), %rsi     # 0x16ed90
movq %rax, %rdi
movq %rbx, %rdx
callq 0x581c0
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/config.cpp
// Function: smooth::Configuration::GetConfigurationName() const
S::String S::Configuration::GetConfigurationName() const
{
	if (configFile == NIL) return NIL;

	XML::Node	*configuration = FindConfigurationNode(activeConfig);

	if (configuration == NIL) return NIL;

	return activeConfig;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x30(%rsi)
je 0xa3849
leaq 0x18(%rsi), %r14
movq %rsi, %rdi
movq %r14, %rsi
callq 0x576f0
testq %rax, %rax
je 0xa3849
movq %rbx, %rdi
movq %r14, %rsi
callq 0x570b0
jmp 0xa3853
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58e20
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/config.cpp
// Function: smooth::Configuration::SetConfigurationName(smooth::String const&)
S::Int S::Configuration::SetConfigurationName(const String &nName)
{
	if (configFile == NIL) return Error();

	XML::Node	*configuration = FindConfigurationNode(activeConfig);

	if (configuration == NIL) return Error();

	activeConfig = nName;

	configuration->SetAttribute(AttributeNameID, nName);

	return Success();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpq $0x0, 0x30(%rdi)
je 0xa38a7
movq %rsi, %rbx
leaq 0x18(%rdi), %r14
movq %r14, %rsi
callq 0x576f0
testq %rax, %rax
je 0xa38a7
movq %rax, %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x555f0
leaq 0xcb50e(%rip), %rsi     # 0x16eda8
movq %r15, %rdi
movq %rbx, %rdx
callq 0x581c0
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq