LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/i18n/translator.cpp
// Function: smooth::I18n::Translator::LoadDescription(smooth::XML::Document const&, smooth::I18n::Language*)
S::Int S::I18n::Translator::LoadDescription(const XML::Document &doc, Language *language)
{
	/* Check arguments and return an error if they are not sane.
	 */
	if (doc.GetRootNode() == NIL || language == NIL) return Error();

	XML::Node	*root	= doc.GetRootNode();
	Error		 result = language->ParseHeader(root);

	if (result != Success()) return Error();

	return Success();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rsi, %rdi
callq 0x56e60
movq %rax, %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rbx, %rbx
je 0x9d50e
testq %rcx, %rcx
je 0x9d50e
movq %r14, %rdi
callq 0x56e60
movq (%rbx), %rcx
leaq 0x18(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq *0x18(%rcx)
movq 0xcf242(%rip), %rax     # 0x16c730
addq $0x10, %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movl $0x0, 0x8(%rsi)
movq %r14, %rdi
callq 0x566c0
movzbl %al, %eax
negl %eax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/i18n/translator.cpp
// Function: smooth::I18n::Translator::LoadData(smooth::XML::Document const&, smooth::I18n::Language*)
S::Int S::I18n::Translator::LoadData(const XML::Document &doc, Language *language)
{
	/* Check arguments and return an error if they are not sane.
	 */
	if (doc.GetRootNode() == NIL || language == NIL) return Error();

	XML::Node	*root	= doc.GetRootNode();
	Error		 result = language->Parse(root);

	if (result != Success()) return Error();

	return Success();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rsi, %rdi
callq 0x56e60
movq %rax, %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rbx, %rbx
je 0x9dbf8
testq %rcx, %rcx
je 0x9dbf8
movq %r14, %rdi
callq 0x56e60
movq (%rbx), %rcx
leaq 0x18(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq *0x10(%rcx)
movq 0xceb58(%rip), %rax     # 0x16c730
addq $0x10, %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movl $0x0, 0x8(%rsi)
movq %r14, %rdi
callq 0x566c0
movzbl %al, %eax
negl %eax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/i18n/translator.cpp
// Function: smooth::I18n::Translator::TranslateString(smooth::String const&, smooth::String const&)
const S::String &S::I18n::Translator::TranslateString(const String &string, const String &context)
{
	String	 prevContext = activeLanguage->GetContext();

	activeLanguage->SetContext(context);

	const String	&translation = activeLanguage->GetString(string);

	activeLanguage->SetContext(prevContext);

	if (translation == NIL)	return string;
	else			return translation;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq 0x78(%rdi), %rsi
addq $0x20, %rsi
leaq 0x8(%rsp), %rdi
callq 0x570b0
movq 0x78(%r15), %rdi
movq %r14, %rsi
callq 0x56140
movq 0x78(%r15), %rdi
movq %rbx, %rsi
callq 0x562e0
movq %rax, %r14
movq 0x78(%r15), %rdi
leaq 0x8(%rsp), %rsi
callq 0x56140
movq %r14, %rdi
xorl %esi, %esi
callq 0x55260
testb %al, %al
cmovneq %rbx, %r14
leaq 0x8(%rsp), %rdi
callq 0x59200
movq %r14, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x9dca4
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/i18n/../../include/smooth/templates/array/arraybackend.h
// Function: smooth::ArrayBackend<void*>::InsertAtPos(int, void* const&)
Int InsertAtPos(Int position, const s &value)
			{
				WriteLock	 lock(*this);
				Int		 index = greatestIndex + 1;

				if (!InsertAtPos(position, value, index)) index = -1;

				return index;
			}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r15
movq %rdi, (%rsp)
cmpb $0x1, 0x30(%rdi)
jne 0x9ddac
movq 0x38(%r15), %rdi
callq 0x551d0
movl 0xc(%r15), %r14d
incl %r14d
movq %r15, %rdi
movl %ebp, %esi
movq %rbx, %rdx
movl %r14d, %ecx
callq 0x9ddf6
testb %al, %al
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmovnel %r14d, %ebx
movq %rsp, %rdi
callq 0x56310
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x56310
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/i18n/../../include/smooth/templates/array/arraybackend.h
// Function: smooth::ArrayBackend<void*>::InsertAtPos(int, void* const&, int)
Bool InsertAtPos(Int position, const s &value, Int index)
			{
				WriteLock	 lock(*this);
				Int		 nOfEntries = this->nOfEntries;

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

				if (!IndexArray::InsertAtPos(position, index)) return False;

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

				memmove(entries + position + 1, entries + position, (nOfEntries - position) * sizeof(ArrayEntry
 *));

				entries[position] = new ArrayEntry
(value);

				return True;
			}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r15d
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
movq %rdi, (%rsp)
cmpb $0x1, 0x30(%rdi)
jne 0x9de1f
movq 0x38(%rbx), %rdi
callq 0x551d0
movl 0x8(%rbx), %r13d
movl %r13d, %r12d
subl %ebp, %r12d
setl %al
testl %ebp, %ebp
sets %cl
orb %al, %cl
jne 0x9de80
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x551f0
testb %al, %al
je 0x9de80
cmpl %r13d, 0x50(%rbx)
jne 0x9de72
leaq 0x40(%rbx), %rdi
cvtsi2sd %r13d, %xmm0
mulsd 0x561a3(%rip), %xmm0    # 0xf4000
movsd 0x561a3(%rip), %xmm1    # 0xf4008
maxsd %xmm0, %xmm1
cvttsd2si %xmm1, %esi
callq 0x5b01e
movq 0x48(%rbx), %rax
testq %rax, %rax
je 0x9de84
movq (%rax), %rcx
jmp 0x9de86
xorl %ebx, %ebx
jmp 0x9deca
xorl %ecx, %ecx
movl %ebp, %r15d
leaq (%rcx,%r15,8), %rdi
addq $0x8, %rdi
testq %rax, %rax
je 0x9de9b
movq (%rax), %rax
jmp 0x9de9d
xorl %eax, %eax
leaq (%rax,%r15,8), %rsi
movslq %r12d, %rdx
shlq $0x3, %rdx
callq 0x556d0
movl $0x8, %edi
callq 0x556b0
movq (%r14), %rcx
movq %rcx, (%rax)
movq 0x48(%rbx), %rcx
movq (%rcx), %rcx
movq %rax, (%rcx,%r15,8)
movb $0x1, %bl
movq %rsp, %rdi
callq 0x56310
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x56310
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/i18n/translator_internal.cpp
// Function: smooth::I18n::TranslatorInternal::GetSupportedLanguages()
S::Int S::I18n::TranslatorInternal::GetSupportedLanguages()
{
	SetInternalLanguageInfo("English", "Robert Kausch", "http://www.smooth-project.org/", False);

	for (Int i = 0; languageXMLs[i] != NIL; i++)
	{
		const char	*xml = languageXMLs[i];
		XML::Document	 doc;

		if (doc.ParseMemory((void *) xml, strlen(xml)) == Success())
		{
			Language	*language = new Language();

			language->magic = languageMagics[i];

			if (LoadDescription(doc, language) == Success()) AddLanguage(language);
		}
	}

	return Success();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
leaq 0x5a31e(%rip), %rsi     # 0xf8298
leaq 0x30(%rsp), %rdi
callq 0x579f0
leaq 0x5a315(%rip), %rsi     # 0xf82a0
leaq 0x18(%rsp), %rdi
callq 0x579f0
leaq 0x5a312(%rip), %rsi     # 0xf82ae
movq %rsp, %rdi
callq 0x579f0
leaq 0x30(%rsp), %rsi
leaq 0x18(%rsp), %rdx
movq %rsp, %rcx
movq %rbx, %rdi
xorl %r8d, %r8d
callq 0x58ae0
movq %rsp, %rdi
callq 0x59200
leaq 0x18(%rsp), %rdi
callq 0x59200
leaq 0x30(%rsp), %r14
movq %r14, %rdi
callq 0x59200
xorl %r12d, %r12d
leaq 0xcb30b(%rip), %r13     # 0x1692f0
leaq 0xcb494(%rip), %rbp     # 0x169480
movq (%r12,%r13), %r15
movq %r14, %rdi
callq 0x57be0
movq %r15, %rdi
callq 0x56370
movq %r14, %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0x58d20
testl %eax, %eax
jne 0x9e056
movl $0x158, %edi            # imm = 0x158
callq 0x556b0
movq %rax, %r15
movq %rax, %rdi
callq 0x572b0
movq (%r12,%rbp), %rsi
movq %r15, %rdi
addq $0x108, %rdi            # imm = 0x108
callq 0x55f40
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x57ca0
testl %eax, %eax
jne 0x9e056
movq %rbx, %rdi
movq %r15, %rsi
callq 0x55b30
movq %r14, %rdi
callq 0x55400
addq $0x8, %r12
cmpq $0x188, %r12            # imm = 0x188
jne 0x9dfec
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x59200
jmp 0x9e08c
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x59200
jmp 0x9e09b
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x59200
jmp 0x9e0c8
movq %rax, %rbx
movl $0x158, %esi            # imm = 0x158
movq %r15, %rdi
callq 0x55480
jmp 0x9e0be
jmp 0x9e0bb
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x55400
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/i18n/translator_internal.cpp
// Function: smooth::I18n::TranslatorInternal::ActivateLanguage(smooth::String const&)
S::Int S::I18n::TranslatorInternal::ActivateLanguage(const String &magic)
{
	foreach (Language *language, languages)
	{
		if (language->magic != magic) continue;

		activeLanguage = language;

		/* Load actual language data.
		 */
		if (magic != "internal" && activeLanguage->strings.Length() == 0 && activeLanguage->sections.Length() == 0)
		{
			for (Int i = 0; languageMagics[i] != NIL; i++)
			{
				if (magic != languageMagics[i]) continue;

				XML::Document	 doc;

				if (doc.ParseMemory((void *) languageXMLs[i], strlen(languageXMLs[i])) == Success()) LoadData(doc, activeLanguage);
			}
		}

		return Success();
	}

	return Error();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %r15
leaq 0x20(%rdi), %rax
movq %rax, 0x8(%rsp)
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl 0x28(%r15), %eax
decl %eax
cmpl %eax, %ebx
jge 0x9e213
incl %ebx
movq 0x8(%rsp), %rdi
movl %ebx, %esi
callq 0x60a40
movq (%rax), %r12
leaq 0x108(%r12), %r13
xorl %ecx, %ecx
testb $0x1, %cl
jne 0x9e110
movl %ecx, %ebp
movq %r13, %rdi
movq %r14, %rsi
callq 0x56fa0
movb $0x1, %cl
testb %al, %al
jne 0x9e139
movq %r12, 0x78(%r15)
movq %r14, %rdi
leaq 0x5a06f(%rip), %rsi     # 0xf81ce
callq 0x590a0
testb %al, %al
je 0x9e1fe
movq 0x78(%r15), %rax
cmpl $0x0, 0x48(%rax)
jne 0x9e1fe
cmpl $0x0, 0xa0(%rax)
jne 0x9e1fe
xorl %r12d, %r12d
movq %r15, (%rsp)
leaq 0xcb2ef(%rip), %rax     # 0x169480
movq (%r12,%rax), %rsi
movq %r14, %rdi
callq 0x590a0
testb %al, %al
jne 0x9e1f1
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x57be0
leaq 0xcb13b(%rip), %rax     # 0x1692f0
movq (%r12,%rax), %r13
movq %r13, %rdi
callq 0x56370
movq %r15, %rdi
movq (%rsp), %r15
movq %r13, %rsi
movl %eax, %edx
callq 0x58d20
testl %eax, %eax
jne 0x9e1e7
movq 0x78(%r15), %rdx
movq %r15, %rdi
leaq 0x10(%rsp), %rsi
callq 0x55db0
leaq 0x10(%rsp), %rdi
callq 0x55400
addq $0x8, %r12
cmpq $0x188, %r12            # imm = 0x188
jne 0x9e18a
testb $0x1, %bpl
jne 0x9e110
movzbl %bpl, %eax
andl $0x1, %eax
negl %eax
jmp 0x9e218
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x55400
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/driver.cpp
// Function: smooth::IO::Driver::Driver()
S::IO::Driver::Driver()
{
	streamID  = NIL;

	size	  = 2147483647;
	position  = 0;

	lastError = IO_ERROR_OK;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xce332(%rip), %rax     # 0x16cc58
addq $0x10, %rax
movq %rax, (%rdi)
leaq 0x20(%rdi), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x58e20
movq %r14, %rdi
xorl %esi, %esi
callq 0x579e0
movq $0x7fffffff, 0x8(%rbx)  # imm = 0x7FFFFFFF
movq $0x0, 0x10(%rbx)
movl $0x0, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq %r14, %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::InStream(int, smooth::IO::Driver*)
S::IO::InStream::InStream(Int type, Driver *iDriver)
{
	outStream	 = NIL;

	if (type != STREAM_DRIVER)		   { lastError = IO_ERROR_BADPARAM;	 return; }

	driver		 = iDriver;

	if (driver->GetLastError() != IO_ERROR_OK) { lastError = driver->GetLastError(); return; }

	streamType	 = STREAM_DRIVER;
	size		 = driver->GetSize();
	closefile	 = False;

	packageSize	 = defaultPackageSize;
	stdpacksize	 = packageSize;
	origpacksize	 = packageSize;
	currentBufferPos = defaultPackageSize;
	origsize	 = size;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
callq 0x569d0
movq 0xcd880(%rip), %rax     # 0x16c3b8
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x100(%rbx)
cmpl $0x2, %ebp
jne 0x9eb77
movq %r14, 0xe8(%rbx)
movq %r14, %rdi
callq 0x55190
testl %eax, %eax
je 0x9eb82
movq 0xe8(%rbx), %rdi
callq 0x55190
movw %ax, 0xf8(%rbx)
jmp 0x9ebb6
movw $0x2, 0xf8(%rbx)
jmp 0x9ebb6
movw $0x2, 0x8(%rbx)
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, 0x10(%rbx)
movb $0x0, 0xb(%rbx)
movq 0xcdef4(%rip), %rcx     # 0x16ca98
movl (%rcx), %ecx
movl %ecx, 0x38(%rbx)
movl %ecx, 0x3c(%rbx)
movl %ecx, 0x40(%rbx)
movl %ecx, 0x50(%rbx)
movq %rax, 0x18(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x573c0
movq %r14, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::InStream(int, smooth::String const&, int)
S::IO::InStream::InStream(Int type, const String &fileName, Int mode)
{
	outStream	 = NIL;

	if (type != STREAM_FILE)		   { lastError = IO_ERROR_BADPARAM;			return; }
	if (Directory(fileName).Exists())	   { lastError = IO_ERROR_BADPARAM;			return; }

	driver		 = new DriverANSI(File(fileName), mode);

	if (driver->GetLastError() != IO_ERROR_OK) { lastError = driver->GetLastError(); delete driver; return; }

	streamType	 = STREAM_DRIVER;
	size		 = driver->GetSize();

	packageSize	 = defaultPackageSize;
	stdpacksize	 = packageSize;
	origpacksize	 = packageSize;
	currentBufferPos = defaultPackageSize;
	origsize	 = size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movl %ecx, %ebp
movq %rdx, %r15
movl %esi, %r14d
movq %rdi, %rbx
callq 0x569d0
movq 0xcd7c6(%rip), %rax     # 0x16c3b8
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x100(%rbx)
cmpl $0x3, %r14d
jne 0x9ec4e
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %r15, %rsi
callq 0x58c60
leaq 0x38(%rsp), %rdi
callq 0x55440
movl %eax, %r14d
leaq 0x38(%rsp), %rdi
callq 0x59210
leaq 0x8(%rsp), %rdi
callq 0x59200
testb %r14b, %r14b
je 0x9ec65
movw $0x2, 0xf8(%rbx)
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x48, %edi
callq 0x556b0
movq %rax, %r14
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0x38(%rsp), %rdi
leaq 0x20(%rsp), %rdx
movq %r15, %rsi
callq 0x56800
leaq 0x8(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x58fa0
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
movl %ebp, %edx
callq 0x581b0
movq %r14, 0xe8(%rbx)
leaq 0x8(%rsp), %rdi
callq 0x59200
leaq 0x38(%rsp), %rdi
callq 0x59178
leaq 0x20(%rsp), %rdi
callq 0x59200
movq 0xe8(%rbx), %rdi
callq 0x55190
testl %eax, %eax
je 0x9ed11
movq 0xe8(%rbx), %rdi
callq 0x55190
movw %ax, 0xf8(%rbx)
movq 0xe8(%rbx), %rdi
testq %rdi, %rdi
je 0x9ec57
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x9ec57
movw $0x2, 0x8(%rbx)
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, 0x10(%rbx)
movq 0xcdd69(%rip), %rcx     # 0x16ca98
movl (%rcx), %ecx
movl %ecx, 0x38(%rbx)
movl %ecx, 0x3c(%rbx)
movl %ecx, 0x40(%rbx)
movl %ecx, 0x50(%rbx)
movq %rax, 0x18(%rbx)
jmp 0x9ec57
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x59200
jmp 0x9ed58
movq %rax, %r15
leaq 0x38(%rsp), %rdi
callq 0x59178
jmp 0x9ed67
movq %rax, %r15
leaq 0x20(%rsp), %rdi
callq 0x59200
jmp 0x9ed76
movq %rax, %r15
movl $0x48, %esi
movq %r14, %rdi
callq 0x55480
jmp 0x9eda8
movq %rax, %r15
leaq 0x38(%rsp), %rdi
callq 0x59210
jmp 0x9ed97
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x59200
jmp 0x9eda8
jmp 0x9eda5
movq %rax, %r15
movq %rbx, %rdi
callq 0x573c0
movq %r15, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::InStream(int, _IO_FILE*)
S::IO::InStream::InStream(Int type, FILE *openFile)
{
	outStream	 = NIL;

	if (type != STREAM_ANSI)		   { lastError = IO_ERROR_BADPARAM;			return; }

	driver		 = new DriverANSI(openFile);

	if (driver->GetLastError() != IO_ERROR_OK) { lastError = driver->GetLastError(); delete driver; return; }

	streamType	 = STREAM_DRIVER;
	size		 = driver->GetSize();
	currentFilePos	 = driver->GetPos();

	currentBufferPos = defaultPackageSize;
	origsize	 = size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
callq 0x569d0
movq 0xcd5e5(%rip), %rax     # 0x16c3b8
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x100(%rbx)
cmpl $0x4, %ebp
jne 0x9ee44
movl $0x48, %edi
callq 0x556b0
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x58470
movq %r15, 0xe8(%rbx)
movq %r15, %rdi
callq 0x55190
testl %eax, %eax
je 0x9ee4f
movq 0xe8(%rbx), %rdi
callq 0x55190
movw %ax, 0xf8(%rbx)
movq 0xe8(%rbx), %rdi
testq %rdi, %rdi
je 0x9ee8b
movq (%rdi), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmpq *0x8(%rax)
movw $0x2, 0xf8(%rbx)
jmp 0x9ee8b
movw $0x2, 0x8(%rbx)
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, 0x10(%rbx)
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
callq *0x48(%rax)
movq %rax, 0x48(%rbx)
movq 0xcdc1a(%rip), %rax     # 0x16ca98
movl (%rax), %eax
movl %eax, 0x50(%rbx)
movq 0x10(%rbx), %rax
movq %rax, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movl $0x48, %esi
movq %r15, %rdi
callq 0x55480
jmp 0x9eeab
movq %rax, %r14
movq %rbx, %rdi
callq 0x573c0
movq %r14, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::InStream(int, void*, long)
S::IO::InStream::InStream(Int type, Void *inBuffer, Long bufferSize)
{
	outStream	 = NIL;

	if (type != STREAM_BUFFER)		   { lastError = IO_ERROR_BADPARAM;			return; }

	driver		 = new DriverMemory(inBuffer, bufferSize);

	if (driver->GetLastError() != IO_ERROR_OK) { lastError = driver->GetLastError(); delete driver; return; }

	streamType	 = STREAM_DRIVER;
	size		 = driver->GetSize();

	currentBufferPos = packageSize;
	origsize	 = size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
callq 0x569d0
movq 0xcd4dd(%rip), %rax     # 0x16c3b8
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x100(%rbx)
cmpl $0x5, %ebp
jne 0x9ef4d
movl $0x40, %edi
callq 0x556b0
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
movl %r14d, %edx
callq 0x57470
movq %r12, 0xe8(%rbx)
movq %r12, %rdi
callq 0x55190
testl %eax, %eax
je 0x9ef58
movq 0xe8(%rbx), %rdi
callq 0x55190
movw %ax, 0xf8(%rbx)
movq 0xe8(%rbx), %rdi
testq %rdi, %rdi
je 0x9ef79
movq (%rdi), %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmpq *0x8(%rax)
movw $0x2, 0xf8(%rbx)
jmp 0x9ef79
movw $0x2, 0x8(%rbx)
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, 0x10(%rbx)
movl 0x38(%rbx), %ecx
movl %ecx, 0x50(%rbx)
movq %rax, 0x18(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movl $0x40, %esi
movq %r12, %rdi
callq 0x55480
jmp 0x9ef97
movq %rax, %r14
movq %rbx, %rdi
callq 0x573c0
movq %r14, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::InStream(int, smooth::IO::OutStream*)
S::IO::InStream::InStream(Int type, OutStream *out)
{
	outStream	 = NIL;

	if (type != STREAM_STREAM)				{ lastError = IO_ERROR_BADPARAM;   return; }
	if (out->streamType == STREAM_NONE || out->crosslinked)	{ lastError = IO_ERROR_OPNOTAVAIL; return; }

	streamType	 = STREAM_STREAM;

	crosslinked		= True;
	outStream		= out;
	outStream->inStream	= this;
	outStream->crosslinked	= True;

	packageSize		= defaultPackageSize;
	stdpacksize		= packageSize;
	origpacksize		= packageSize;

	if (outStream->streamType == STREAM_DRIVER)
	{
		driver		 = outStream->driver;

		streamType	 = STREAM_DRIVER;
		size		 = outStream->size;
		currentFilePos	 = outStream->currentFilePos;
		closefile	 = False;

		packageSize	 = 1;
		stdpacksize	 = packageSize;
		origpacksize	 = packageSize;
		currentBufferPos = packageSize;
		origsize	 = size;
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
callq 0x569d0
movq 0xcd3f8(%rip), %rax     # 0x16c3b8
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x100(%rbx)
cmpl $0x1, %ebp
jne 0x9eff1
cmpw $0x0, 0x8(%r14)
je 0x9efe6
cmpb $0x1, 0xa(%r14)
jne 0x9efff
movw $0x6, 0xf8(%rbx)
jmp 0x9effa
movw $0x2, 0xf8(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
movw $0x1, 0x8(%rbx)
movb $0x1, %al
movb %al, 0xa(%rbx)
movq %r14, 0x100(%rbx)
movq %rbx, 0x100(%r14)
movb %al, 0xa(%r14)
movq 0xcda75(%rip), %rax     # 0x16ca98
movl (%rax), %eax
movl %eax, 0x38(%rbx)
movl %eax, 0x3c(%rbx)
movl %eax, 0x40(%rbx)
cmpw $0x2, 0x8(%r14)
jne 0x9effa
movq 0xe8(%r14), %rax
movq %rax, 0xe8(%rbx)
movw $0x2, 0x8(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
movq 0x48(%r14), %rcx
movq %rcx, 0x48(%rbx)
movb $0x0, 0xb(%rbx)
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x38(%rbx)
movl $0x1, %ecx
movl %ecx, 0x40(%rbx)
movl %ecx, 0x50(%rbx)
movq %rax, 0x18(%rbx)
jmp 0x9effa
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::InputNumber(int)
S::Int64 S::IO::InStream::InputNumber(Int bytes)	// Intel byte order DCBA
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return -1; }
	if (bytes > 8 || bytes < 0)	{ lastError = IO_ERROR_BADPARAM; return -1; }

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

	Int64	 rval = 0;

	for (Int i = 0; i < bytes; i++)
	{
		if (currentFilePos >= (origfilepos + packageSize)) { lastError = IO_ERROR_UNKNOWN; return -1; }

		while (currentBufferPos >= packageSize)
		{
			if (!ReadData()) { lastError = IO_ERROR_NODATA; return -1; }
		}

		if (bytes <= 4)	rval += dataBuffer[currentBufferPos] * (1   << (i * 8));
		else		rval += dataBuffer[currentBufferPos] * (1LL << (i * 8));

		currentBufferPos++;
		currentFilePos++;
	}

	return rval;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0x9f309
movl %esi, %ebp
movw $0x2, %ax
cmpl $0x8, %esi
ja 0x9f313
cmpb $0x1, 0x60(%rbx)
jne 0x9f27a
cmpb $0x0, 0x61(%rbx)
jne 0x9f27a
movl $0x0, 0x64(%rbx)
movb $0x0, 0x60(%rbx)
testl %ebp, %ebp
je 0x9f32d
cmpl $0x2, %ebp
movl $0x1, %r15d
cmovgel %ebp, %r15d
xorl %r12d, %r12d
xorl %r14d, %r14d
movslq 0x38(%rbx), %rax
addq 0x58(%rbx), %rax
cmpq %rax, 0x48(%rbx)
jge 0x9f332
movslq 0x50(%rbx), %rax
cmpl 0x38(%rbx), %eax
jl 0x9f2be
movq %rbx, %rdi
callq 0x55a50
testb %al, %al
jne 0x9f2a7
jmp 0x9f30f
cmpl $0x4, %ebp
jg 0x9f2dd
movq 0x28(%rbx), %rcx
movq (%rcx), %rcx
movzbl (%rcx,%rax), %edx
leal (,%r12,8), %ecx
shll %cl, %edx
movslq %edx, %rdx
jmp 0x9f2f3
movq 0x28(%rbx), %rcx
movq (%rcx), %rcx
movzbl (%rcx,%rax), %edx
leal (,%r12,8), %ecx
shlq %cl, %rdx
incl %eax
movl %eax, 0x50(%rbx)
incq 0x48(%rbx)
addq %rdx, %r14
incq %r12
cmpq %r15, %r12
jne 0x9f295
jmp 0x9f321
movw $0x5, %ax
jmp 0x9f313
movw $0x8, %ax
movw %ax, 0xf8(%rbx)
movq $-0x1, %r14
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
jmp 0x9f321
movw $0x4, %ax
jmp 0x9f313
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::InputNumberRaw(int)
S::Int64 S::IO::InStream::InputNumberRaw(Int bytes)	// Raw byte order ABCD
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return -1; }
	if (bytes > 8 || bytes < 0)	{ lastError = IO_ERROR_BADPARAM; return -1; }

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

	Int64	 rval = 0;

	for (Int i = bytes - 1; i >= 0; i--)
	{
		if (currentFilePos >= (origfilepos + packageSize)) { lastError = IO_ERROR_UNKNOWN; return -1; }

		while (currentBufferPos >= packageSize)
		{
			if (!ReadData()) { lastError = IO_ERROR_NODATA; return -1; }
		}

		if (bytes <= 4)	rval += dataBuffer[currentBufferPos] * (1   << (i * 8));
		else		rval += dataBuffer[currentBufferPos] * (1LL << (i * 8));

		currentBufferPos++;
		currentFilePos++;
	}

	return rval;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0x9f409
movl %esi, %ebp
movw $0x2, %ax
cmpl $0x8, %esi
ja 0x9f413
cmpb $0x1, 0x60(%rbx)
jne 0x9f382
cmpb $0x0, 0x61(%rbx)
jne 0x9f382
movl $0x0, 0x64(%rbx)
movb $0x0, 0x60(%rbx)
testl %ebp, %ebp
je 0x9f42d
movl %ebp, %r15d
xorl %r14d, %r14d
movslq 0x38(%rbx), %rax
addq 0x58(%rbx), %rax
cmpq %rax, 0x48(%rbx)
jge 0x9f432
leaq -0x1(%r15), %r12
movslq 0x50(%rbx), %rax
cmpl 0x38(%rbx), %eax
jl 0x9f3bd
movq %rbx, %rdi
callq 0x55a50
testb %al, %al
jne 0x9f3a6
jmp 0x9f40f
cmpl $0x4, %ebp
jg 0x9f3dc
movq 0x28(%rbx), %rcx
movq (%rcx), %rcx
movzbl (%rcx,%rax), %edx
leal (,%r12,8), %ecx
shll %cl, %edx
movslq %edx, %rdx
jmp 0x9f3f2
movq 0x28(%rbx), %rcx
movq (%rcx), %rcx
movzbl (%rcx,%rax), %edx
leal (,%r12,8), %ecx
shlq %cl, %rdx
incl %eax
movl %eax, 0x50(%rbx)
incq 0x48(%rbx)
addq %rdx, %r14
cmpl $0x2, %r15d
movq %r12, %r15
jge 0x9f390
jmp 0x9f421
movw $0x5, %ax
jmp 0x9f413
movw $0x8, %ax
movw %ax, 0xf8(%rbx)
movq $-0x1, %r14
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
jmp 0x9f421
movw $0x4, %ax
jmp 0x9f413
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::InputBits(int)
S::Int64 S::IO::InStream::InputBits(Int bits)
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return -1; }
	if (bits > 64 || bits < 0)	{ lastError = IO_ERROR_BADPARAM; return -1; }

	if (!bitstreamActive) InitBitstream();

	Int64	 rval = 0;

	while (bitLength < bits)
	{
		if (currentFilePos >= (origfilepos + packageSize)) { lastError = IO_ERROR_UNKNOWN; return -1; }

		while (currentBufferPos >= packageSize)
		{
			if (!ReadData()) { lastError = IO_ERROR_NODATA; return -1; }
		}

		for (Int i = 0; i < 8; i++)
		{
			bitBuffer[bitLength] = IOGetBit(dataBuffer[currentBufferPos], i);
			bitLength++;
		}

		currentBufferPos++;
		currentFilePos++;
	}

	for (Int i = 0; i < bits; i++)
	{
		rval = rval | (Int64(bitBuffer[i]) << i);
	}

	bitLength = bitLength - bits;

	for (Int i = 0; i < bitLength; i++)
	{
		bitBuffer[i] = bitBuffer[i + bits];
	}

	return rval;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0x9f467
movl %esi, %ebp
movw $0x2, %ax
cmpl $0x40, %esi
ja 0x9f4fa
cmpb $0x0, 0x60(%rbx)
jne 0x9f4c7
movl $0x0, 0x64(%rbx)
movb $0x1, 0x60(%rbx)
jmp 0x9f4c7
movw $0x5, %ax
jmp 0x9f4fa
movslq 0x38(%rbx), %rax
addq 0x58(%rbx), %rax
cmpq %rax, 0x48(%rbx)
jge 0x9f539
movslq 0x50(%rbx), %rax
cmpl 0x38(%rbx), %eax
jl 0x9f499
movq %rbx, %rdi
callq 0x55a50
testb %al, %al
jne 0x9f482
jmp 0x9f4f6
movq 0x28(%rbx), %rcx
movq (%rcx), %rcx
xorl %edx, %edx
movzbl (%rcx,%rax), %esi
btl %edx, %esi
movslq 0x64(%rbx), %rsi
setb 0x68(%rbx,%rsi)
incl %esi
movl %esi, 0x64(%rbx)
incl %edx
cmpl $0x8, %edx
jne 0x9f4a2
incl %eax
movl %eax, 0x50(%rbx)
incq 0x48(%rbx)
movl 0x64(%rbx), %edx
cmpl %ebp, %edx
jl 0x9f470
testl %ebp, %ebp
je 0x9f50f
cmpl $0x2, %ebp
movl $0x1, %esi
cmovgel %ebp, %esi
xorl %ecx, %ecx
xorl %eax, %eax
movzbl 0x68(%rbx,%rcx), %edi
shlq %cl, %rdi
orq %rdi, %rax
incq %rcx
cmpq %rcx, %rsi
jne 0x9f4e1
jmp 0x9f511
movw $0x8, %ax
movw %ax, 0xf8(%rbx)
movq $-0x1, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
xorl %eax, %eax
subl %ebp, %edx
movl %edx, 0x64(%rbx)
jle 0x9f508
movl %ebp, %esi
movl %edx, %ecx
leaq (%rsi,%rbx), %rdx
addq $0x68, %rdx
xorl %esi, %esi
movb (%rdx,%rsi), %dil
movb %dil, 0x68(%rbx,%rsi)
incq %rsi
cmpq %rsi, %rcx
jne 0x9f526
jmp 0x9f508
movw $0x4, %ax
jmp 0x9f4fa
nop
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::InputString(int)
S::String S::IO::InStream::InputString(Int bytes)
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return NIL; }
	if (bytes <= 0)			{ lastError = IO_ERROR_BADPARAM; return NIL; }

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

	Int	 bytesleft	= bytes;
	Int	 databufferpos	= 0;

	Buffer<UnsignedByte>	 stringBuffer(bytes + 1);

	while (bytesleft)
	{
		if (currentFilePos >= (origfilepos + packageSize)) { lastError = IO_ERROR_UNKNOWN; return NIL; }

		while (currentBufferPos >= packageSize)
		{
			/* If no more data is available, set lastError and return NIL.
			 */
			if (!ReadData()) { lastError = IO_ERROR_NODATA; return NIL; }
		}

		/* Get amount of data read and copy to string buffer.
		 */
		Int	 amount = ((packageSize - currentBufferPos) < (bytesleft)) ? (packageSize - currentBufferPos) : (bytesleft);

		memcpy((UnsignedByte *) stringBuffer + databufferpos, (UnsignedByte *) dataBuffer + currentBufferPos, amount);

		bytesleft	 -= amount;
		databufferpos	 += amount;
		currentBufferPos += amount;
		currentFilePos	 += amount;
	}

	stringBuffer[bytes] = 0;

	return String((char *) (UnsignedByte *) stringBuffer);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpw $0x0, 0x8(%rsi)
je 0x9f63b
movl %edx, %r15d
testl %edx, %edx
jle 0x9f671
cmpb $0x1, 0x60(%r14)
jne 0x9f593
cmpb $0x0, 0x61(%r14)
jne 0x9f593
movl $0x0, 0x64(%r14)
movb $0x0, 0x60(%r14)
leal 0x1(%r15), %esi
movq %rsp, %rdi
callq 0x62006
xorl %r13d, %r13d
movl %r15d, %ebp
movslq 0x38(%r14), %rax
addq 0x58(%r14), %rax
cmpq %rax, 0x48(%r14)
jge 0x9f697
movslq 0x50(%r14), %rax
movl 0x38(%r14), %ecx
cmpl %eax, %ecx
jg 0x9f5d1
movq %r14, %rdi
callq 0x55a50
testb %al, %al
jne 0x9f5b7
jmp 0x9f647
subl %eax, %ecx
cmpl %ebp, %ecx
cmovgel %ebp, %ecx
movq 0x8(%rsp), %rdx
testq %rdx, %rdx
je 0x9f5e7
movq (%rdx), %rdi
jmp 0x9f5e9
xorl %edi, %edi
movq 0x28(%r14), %rdx
testq %rdx, %rdx
je 0x9f5f7
movq (%rdx), %rsi
jmp 0x9f5f9
xorl %esi, %esi
movslq %r13d, %r13
addq %r13, %rdi
addq %rax, %rsi
movslq %ecx, %r12
movq %r12, %rdx
callq 0x552d0
addl %r12d, %r13d
addl %r12d, 0x50(%r14)
addq %r12, 0x48(%r14)
subl %r12d, %ebp
jne 0x9f5a5
movq 0x8(%rsp), %rax
movq (%rax), %rax
movl %r15d, %ecx
movb $0x0, (%rax,%rcx)
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0x9f69d
movq (%rax), %rsi
jmp 0x9f69f
movw $0x5, 0xf8(%r14)
jmp 0x9f67b
movw $0x8, %ax
movw %ax, 0xf8(%r14)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0xc18cc(%rip), %rax     # 0x160f30
movq %rsp, %rdi
movq %rax, (%rdi)
callq 0x6207e
jmp 0x9f685
movw $0x2, 0xf8(%r14)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58e20
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movw $0x4, %ax
jmp 0x9f64b
xorl %esi, %esi
movq %rbx, %rdi
callq 0x579f0
jmp 0x9f65d
jmp 0x9f6ab
movq %rax, %rbx
leaq 0xc187b(%rip), %rax     # 0x160f30
movq %rsp, %rdi
movq %rax, (%rdi)
callq 0x6207e
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::InputLine()
S::String S::IO::InStream::InputLine()
{
	if (streamType == STREAM_NONE)		{ lastError = IO_ERROR_NOTOPEN; return NIL; }

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

	Long	 inpval;
	Int	 bytes = 0;

	Buffer<UnsignedByte>	 stringBuffer(1024);

	while (True)
	{
		for (Int i = 0; i < 1024; i++)
		{
			inpval = InputNumber(1);

			if (inpval == 0 || inpval == -1)
			{
				stringBuffer[bytes] = 0;

				return String((char *) (UnsignedByte *) stringBuffer);
			}

			if (inpval != 13 && inpval != 10)
			{
				stringBuffer[bytes++] = (char) inpval;
			}
			else
			{
				if (inpval == 13) InputNumber(1);

				stringBuffer[bytes] = 0;

				return String((char *) (UnsignedByte *) stringBuffer);
			}
		}

		stringBuffer.Resize(bytes + 1024);
	}

	return NIL; // never reached
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpw $0x0, 0x8(%rsi)
je 0x9f78d
movq %rbx, (%rsp)
cmpb $0x1, 0x60(%r14)
jne 0x9f706
cmpb $0x0, 0x61(%r14)
jne 0x9f706
movl $0x0, 0x64(%r14)
movb $0x0, 0x60(%r14)
leaq 0x10(%rsp), %rdi
movl $0x400, %esi            # imm = 0x400
callq 0x62006
xorl %r12d, %r12d
movabsq $0x100000000, %r13      # imm = 0x100000000
movslq %r12d, %r15
leal 0x400(%r15), %eax
movl %eax, 0xc(%rsp)
movq %r15, %rbx
shlq $0x20, %rbx
xorl %ebp, %ebp
movq %r14, %rdi
movl $0x1, %esi
callq 0x55e90
leaq 0x1(%rax), %rcx
cmpq $0x1, %rcx
jbe 0x9f7b3
cmpq $0xa, %rax
je 0x9f7b3
cmpq $0xd, %rax
je 0x9f7a6
movq 0x18(%rsp), %rcx
movq (%rcx), %rcx
movb %al, (%rcx,%r15)
incq %r15
decl %ebp
addq %r13, %rbx
cmpl $0xfffffc00, %ebp       # imm = 0xFFFFFC00
jne 0x9f739
subl %ebp, %r12d
movl 0xc(%rsp), %esi
subl %ebp, %esi
leaq 0x10(%rsp), %rdi
callq 0x62eaa
jmp 0x9f722
movw $0x5, 0xf8(%r14)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58e20
movq %rbx, %rax
jmp 0x9f7f5
movq %r14, %rdi
movl $0x1, %esi
callq 0x55e90
movq 0x18(%rsp), %rax
movq (%rax), %rax
sarq $0x20, %rbx
movb $0x0, (%rax,%rbx)
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x9f7d2
movq (%rax), %rsi
jmp 0x9f7d4
xorl %esi, %esi
movq (%rsp), %rdi
callq 0x579f0
leaq 0xc174c(%rip), %rax     # 0x160f30
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
callq 0x6207e
movq (%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9f808
jmp 0x9f808
movq %rax, %rbx
leaq 0xc171e(%rip), %rax     # 0x160f30
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
callq 0x6207e
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::InputData(void*, int)
S::Int S::IO::InStream::InputData(Void *pointer, Int bytes)
{
	if (streamType == STREAM_NONE)	 { lastError = IO_ERROR_NOTOPEN; return 0; }
	if (bytes > 0 && pointer == NIL) { lastError = IO_ERROR_BADPARAM; return 0; }
	if (bytes < 0)			 { lastError = IO_ERROR_BADPARAM; return 0; }

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

	Int	 bytesleft	= bytes;
	Int	 databufferpos	= 0;

	while (bytesleft)
	{
		if (currentFilePos >= (origfilepos + packageSize)) { lastError = IO_ERROR_UNKNOWN; return bytes - bytesleft; }

		while (currentBufferPos >= packageSize)
		{
			/* If no more data is available, set lastError and
			 * return the number of bytes actually read.
			 */
			if (!ReadData()) { lastError = IO_ERROR_NODATA; return bytes - bytesleft; }
		}

		/* Get amount of data read and copy to output buffer.
		 */
		Int	 amount = ((packageSize - currentBufferPos) < (bytesleft)) ? (packageSize - currentBufferPos) : (bytesleft);

		memcpy((UnsignedByte *) pointer + databufferpos, (UnsignedByte *) dataBuffer + currentBufferPos, amount);

		bytesleft	 -= amount;
		databufferpos	 += amount;
		currentBufferPos += amount;
		currentFilePos	 += amount;
	}

	return bytes;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
cmpw $0x0, 0x8(%rdi)
je 0x9f8ff
movl %edx, %ebx
movq %rsi, %r15
testl %edx, %edx
setle %al
testq %rsi, %rsi
setne %cl
orb %al, %cl
je 0x9f8f3
testl %ebx, %ebx
js 0x9f8f3
cmpb $0x1, 0x60(%r14)
jne 0x9f87c
cmpb $0x0, 0x61(%r14)
jne 0x9f87c
movl $0x0, 0x64(%r14)
movb $0x0, 0x60(%r14)
testl %ebx, %ebx
je 0x9f90b
xorl %r13d, %r13d
movl %ebx, %ebp
movslq 0x38(%r14), %rax
addq 0x58(%r14), %rax
cmpq %rax, 0x48(%r14)
jge 0x9f92a
movslq 0x50(%r14), %rax
movl 0x38(%r14), %ecx
cmpl %eax, %ecx
jg 0x9f8b5
movq %r14, %rdi
callq 0x55a50
testb %al, %al
jne 0x9f89b
jmp 0x9f91c
subl %eax, %ecx
cmpl %ebp, %ecx
cmovgel %ebp, %ecx
movq 0x28(%r14), %rdx
testq %rdx, %rdx
je 0x9f8ca
movq (%rdx), %rsi
jmp 0x9f8cc
xorl %esi, %esi
movslq %r13d, %r13
leaq (%r15,%r13), %rdi
addq %rax, %rsi
movslq %ecx, %r12
movq %r12, %rdx
callq 0x552d0
addl %r12d, %r13d
addl %r12d, 0x50(%r14)
addq %r12, 0x48(%r14)
subl %r12d, %ebp
jne 0x9f889
jmp 0x9f90b
movw $0x2, 0xf8(%r14)
jmp 0x9f909
movw $0x5, 0xf8(%r14)
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movw $0x8, 0xf8(%r14)
subl %ebp, %ebx
jmp 0x9f90b
movw $0x4, 0xf8(%r14)
jmp 0x9f926
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::SetPackageSize(int)
S::Bool S::IO::InStream::SetPackageSize(Int newPackageSize)
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return False; }
	if (!allowpackset)		{ lastError = IO_ERROR_OPNOTAVAIL; return False; }
	if (newPackageSize <= 0)	{ lastError = IO_ERROR_BADPARAM; return False; }

	if (bitstreamActive) CompleteBitstream();

	packageSize	 = newPackageSize;
	stdpacksize	 = packageSize;
	currentBufferPos = packageSize;

	Seek(currentFilePos);

	return True;
}

// Assembly:
cmpw $0x0, 0x8(%rdi)
je 0x9f973
cmpb $0x0, 0x44(%rdi)
je 0x9f97e
testl %esi, %esi
jle 0x9f989
cmpb $0x1, 0x60(%rdi)
jne 0x9f958
movl $0x0, 0x64(%rdi)
movb $0x0, 0x60(%rdi)
pushq %rax
movl %esi, 0x38(%rdi)
movl %esi, 0x3c(%rdi)
movl %esi, 0x50(%rdi)
movq (%rdi), %rax
movq 0x48(%rdi), %rsi
callq *0x28(%rax)
movb $0x1, %al
addq $0x8, %rsp
retq
movw $0x5, 0xf8(%rdi)
jmp 0x9f992
movw $0x6, 0xf8(%rdi)
jmp 0x9f992
movw $0x2, 0xf8(%rdi)
xorl %eax, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::SetFilter(smooth::IO::Filter*)
S::Bool S::IO::InStream::SetFilter(Filter *newFilter)
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return False; }
	if (filter != NIL)		{ lastError = IO_ERROR_BADPARAM; return False; }

	newFilter->SetDriver(driver);

	Seek(currentFilePos);

	if (newFilter->Activate() == False) { lastError = IO_ERROR_UNKNOWN; return False; }

	allowpackset = True;

	if	(newFilter->GetPackageSize() >   0) SetPackageSize(newFilter->GetPackageSize());
	else if (newFilter->GetPackageSize() == -1) SetPackageSize(size - currentFilePos);

	allowpackset = False;

	filter = newFilter;

	return True;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0x9f9b9
cmpq $0x0, 0xf0(%rbx)
je 0x9f9c4
movw $0x2, 0xf8(%rbx)
jmp 0x9fa0b
movw $0x5, 0xf8(%rbx)
jmp 0x9fa0b
movq %rsi, %r14
movq 0xe8(%rbx), %rax
movq %rax, 0x10(%rsi)
movq (%rbx), %rax
movq 0x48(%rbx), %rsi
movq %rbx, %rdi
callq *0x28(%rax)
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
testb %al, %al
je 0x9fa02
movb $0x1, 0x44(%rbx)
movl 0x8(%r14), %esi
testl %esi, %esi
jle 0x9fa15
movq %rbx, %rdi
callq 0x574a0
jmp 0x9fa1a
movw $0x4, 0xf8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
cmpl $-0x1, %esi
je 0x9fa29
movb $0x0, 0x44(%rbx)
movq %r14, 0xf0(%rbx)
movb $0x1, %al
jmp 0x9fa0d
movl 0x10(%rbx), %esi
subl 0x48(%rbx), %esi
jmp 0x9f9f8
nop
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::RemoveFilter()
S::Bool S::IO::InStream::RemoveFilter()
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return False; }
	if (filter == NIL)		{ lastError = IO_ERROR_BADPARAM; return False; }

	filter->Deactivate();
	filter = NIL;

	allowpackset = True;

	SetPackageSize(origpacksize);

	return True;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0x9fa6d
movq 0xf0(%rbx), %rdi
testq %rdi, %rdi
je 0x9fa78
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0xf0(%rbx)
movb $0x1, 0x44(%rbx)
movl 0x40(%rbx), %esi
movq %rbx, %rdi
callq 0x574a0
movb $0x1, %al
jmp 0x9fa83
movw $0x5, 0xf8(%rbx)
jmp 0x9fa81
movw $0x2, 0xf8(%rbx)
xorl %eax, %eax
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::Close()
S::Bool S::IO::InStream::Close()
{
	if (streamType == STREAM_NONE) { lastError = IO_ERROR_NOTOPEN; return False; }

	if (bitstreamActive) CompleteBitstream();

	while (filter != NIL) RemoveFilter();

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

		outStream->crosslinked	= False;
		outStream->inStream	= 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
je 0x9fb0c
cmpb $0x1, 0x60(%rbx)
jne 0x9fab1
movl $0x0, 0x64(%rbx)
movb $0x0, 0x60(%rbx)
jmp 0x9fab1
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
cmpq $0x0, 0xf0(%rbx)
jne 0x9faa8
cmpb $0x1, 0xa(%rbx)
jne 0x9faec
cmpb $0x1, 0xb(%rbx)
jne 0x9fad2
movq 0x100(%rbx), %rax
movb $0x1, 0xb(%rax)
movq 0x100(%rbx), %rax
xorl %ecx, %ecx
movb %cl, 0xa(%rax)
movq $0x0, 0x100(%rax)
movb %cl, 0xb(%rbx)
cmpb $0x1, 0xb(%rbx)
jne 0x9fb04
movq 0xe8(%rbx), %rdi
testq %rdi, %rdi
je 0x9fb04
movq (%rdi), %rax
callq *0x8(%rax)
movw $0x0, 0x8(%rbx)
jmp 0x9fb15
movw $0x5, 0xf8(%rbx)
testw %bp, %bp
setne %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::Seek(long long)
S::Bool S::IO::InStream::Seek(Int64 position)
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return False; }

	if (bitstreamActive) CompleteBitstream();

	Int64	 offset = position - currentFilePos;

	if (currentBufferPos + offset >= 0 && currentBufferPos + offset <= packageSize)
	{
		currentFilePos	  = position;
		currentBufferPos += offset;
	}
	else
	{
		if (driver->Seek(position) == -1) return False;

		currentFilePos	  = position;
		currentBufferPos  = packageSize;
		origfilepos	  = currentFilePos;
	}

	return True;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0x9fb6b
movq %rsi, %r14
cmpb $0x1, 0x60(%rbx)
jne 0x9fb44
movl $0x0, 0x64(%rbx)
movb $0x0, 0x60(%rbx)
movq %r14, %rax
subq 0x48(%rbx), %rax
movslq 0x50(%rbx), %rcx
movq %rax, %rdx
addq %rcx, %rdx
js 0x9fb76
movslq 0x38(%rbx), %rsi
cmpq %rsi, %rdx
jg 0x9fb76
movq %r14, 0x48(%rbx)
addl %ecx, %eax
movl %eax, 0x50(%rbx)
jmp 0x9fb9a
movw $0x5, 0xf8(%rbx)
jmp 0x9fb9e
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x20(%rax)
cmpq $-0x1, %rax
je 0x9fb9e
movq %r14, 0x48(%rbx)
movl 0x38(%rbx), %eax
movl %eax, 0x50(%rbx)
movq %r14, 0x58(%rbx)
movb $0x1, %al
jmp 0x9fba0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::OutStream(int, smooth::IO::Driver*)
S::IO::OutStream::OutStream(Int type, Driver *iDriver)
{
	inStream	= NIL;

	if (type != STREAM_DRIVER)		   { lastError = IO_ERROR_BADPARAM;	 return; }

	driver		= iDriver;

	if (driver->GetLastError() != IO_ERROR_OK) { lastError = driver->GetLastError(); return; }

	streamType	= STREAM_DRIVER;
	size		= driver->GetSize();
	currentFilePos	= driver->GetPos();
	closefile	= False;

	packageSize	= defaultPackageSize;
	stdpacksize	= packageSize;
	origpacksize	= packageSize;

	dataBuffer.Resize(packageSize);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
callq 0x569d0
movq 0xccfb8(%rip), %rax     # 0x16cb98
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x100(%rbx)
movw $0x2, %ax
cmpl $0x2, %ebp
jne 0x9fc1a
movq %r14, 0xe8(%rbx)
movq %r14, %rdi
callq 0x55190
testl %eax, %eax
je 0x9fc26
movq 0xe8(%rbx), %rdi
callq 0x55190
movw %ax, 0xf8(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
movw $0x2, 0x8(%rbx)
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, 0x10(%rbx)
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
callq *0x48(%rax)
movq %rax, 0x48(%rbx)
movb $0x0, 0xb(%rbx)
movq 0xccb6f(%rip), %rax     # 0x16c7c8
movl (%rax), %esi
movl %esi, 0x38(%rbx)
movl %esi, 0x3c(%rbx)
movl %esi, 0x40(%rbx)
leaq 0x20(%rbx), %rdi
callq 0x62eaa
jmp 0x9fc21
movq %rax, %r14
movq %rbx, %rdi
callq 0x573c0
movq %r14, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::OutStream(int, smooth::String const&, int)
S::IO::OutStream::OutStream(Int type, const String &fileName, Int mode)
{
	inStream	= NIL;

	if (type != STREAM_FILE)		   { lastError = IO_ERROR_BADPARAM;			return; }
	if (Directory(fileName).Exists())	   { lastError = IO_ERROR_BADPARAM;			return; }

	driver		= new DriverANSI(File(fileName), mode);

	if (driver->GetLastError() != IO_ERROR_OK) { lastError = driver->GetLastError(); delete driver; return; }

	streamType	= STREAM_DRIVER;
	size		= driver->GetSize();
	currentFilePos	= size;

	packageSize	= defaultPackageSize;
	stdpacksize	= packageSize;
	origpacksize	= packageSize;

	dataBuffer.Resize(packageSize);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movl %ecx, %ebp
movq %rdx, %r15
movl %esi, %r14d
movq %rdi, %rbx
callq 0x569d0
movq 0xccef2(%rip), %rax     # 0x16cb98
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x100(%rbx)
cmpl $0x3, %r14d
jne 0x9fd02
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %r15, %rsi
callq 0x58c60
leaq 0x38(%rsp), %rdi
callq 0x55440
movl %eax, %r14d
leaq 0x38(%rsp), %rdi
callq 0x59210
leaq 0x8(%rsp), %rdi
callq 0x59200
testb %r14b, %r14b
je 0x9fd19
movw $0x2, 0xf8(%rbx)
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x48, %edi
callq 0x556b0
movq %rax, %r14
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0x38(%rsp), %rdi
leaq 0x20(%rsp), %rdx
movq %r15, %rsi
callq 0x56800
leaq 0x8(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x58fa0
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
movl %ebp, %edx
callq 0x581b0
movq %r14, 0xe8(%rbx)
leaq 0x8(%rsp), %rdi
callq 0x59200
leaq 0x38(%rsp), %rdi
callq 0x59178
leaq 0x20(%rsp), %rdi
callq 0x59200
movq 0xe8(%rbx), %rdi
callq 0x55190
testl %eax, %eax
je 0x9fdc5
movq 0xe8(%rbx), %rdi
callq 0x55190
movw %ax, 0xf8(%rbx)
movq 0xe8(%rbx), %rdi
testq %rdi, %rdi
je 0x9fd0b
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x9fd0b
movw $0x2, 0x8(%rbx)
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, 0x10(%rbx)
movq %rax, 0x48(%rbx)
movq 0xcc9e1(%rip), %rax     # 0x16c7c8
movl (%rax), %esi
movl %esi, 0x38(%rbx)
movl %esi, 0x3c(%rbx)
movl %esi, 0x40(%rbx)
leaq 0x20(%rbx), %rdi
callq 0x62eaa
jmp 0x9fd0b
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x59200
jmp 0x9fe12
movq %rax, %r15
leaq 0x38(%rsp), %rdi
callq 0x59178
jmp 0x9fe21
movq %rax, %r15
leaq 0x20(%rsp), %rdi
callq 0x59200
jmp 0x9fe30
movq %rax, %r15
movl $0x48, %esi
movq %r14, %rdi
callq 0x55480
jmp 0x9fe62
movq %rax, %r15
leaq 0x38(%rsp), %rdi
callq 0x59210
jmp 0x9fe51
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x59200
jmp 0x9fe62
jmp 0x9fe5f
movq %rax, %r15
movq %rbx, %rdi
callq 0x573c0
movq %r15, %rdi
callq 0x57090