LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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 0x9ea25
movl %esi, %ebp
movw $0x2, %ax
cmpl $0x8, %esi
ja 0x9ea2f
cmpb $0x1, 0x60(%rbx)
jne 0x9e99a
cmpb $0x0, 0x61(%rbx)
jne 0x9e99a
movl $0x0, 0x64(%rbx)
movb $0x0, 0x60(%rbx)
testl %ebp, %ebp
je 0x9ea49
movl %ebp, %r15d
movq 0x48(%rbx), %rcx
movl 0x38(%rbx), %eax
xorl %r14d, %r14d
cltq
addq 0x58(%rbx), %rax
cmpq %rax, %rcx
jge 0x9ea4e
leaq -0x1(%r15), %r12
movslq 0x50(%rbx), %rdx
movl 0x38(%rbx), %eax
cmpl %eax, %edx
jl 0x9e9db
movq %rbx, %rdi
callq 0x55a50
testb %al, %al
jne 0x9e9c2
jmp 0x9ea2b
movq 0x28(%rbx), %rcx
movq (%rcx), %rcx
movzbl (%rcx,%rdx), %esi
cmpl $0x4, %ebp
ja 0x9e9fa
leal (,%r12,8), %ecx
shll %cl, %esi
movslq %esi, %rsi
jmp 0x9ea07
movl %esi, %esi
leal (,%r12,8), %ecx
shlq %cl, %rsi
addq %rsi, %r14
incl %edx
movl %edx, 0x50(%rbx)
movq 0x48(%rbx), %rcx
incq %rcx
movq %rcx, 0x48(%rbx)
cmpl $0x2, %r15d
movq %r12, %r15
jge 0x9e9af
jmp 0x9ea3d
movw $0x5, %ax
jmp 0x9ea2f
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 0x9ea3d
movw $0x4, %ax
jmp 0x9ea2f
// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0x9ea7c
movl %esi, %ebp
movw $0x2, %ax
cmpl $0x40, %esi
ja 0x9eb3d
cmpb $0x1, 0x60(%rbx)
jne 0x9ea85
movl 0x64(%rbx), %edx
jmp 0x9ea92
movw $0x5, %ax
jmp 0x9eb3d
movl $0x0, 0x64(%rbx)
movb $0x1, 0x60(%rbx)
xorl %edx, %edx
cmpl %ebp, %edx
jge 0x9eb1a
movq 0x48(%rbx), %rcx
movl 0x38(%rbx), %eax
leaq 0x68(%rbx), %r14
cltq
addq 0x58(%rbx), %rax
cmpq %rax, %rcx
jge 0x9eb78
movslq 0x50(%rbx), %rcx
movl 0x38(%rbx), %eax
cmpl %eax, %ecx
jl 0x9eacd
movq %rbx, %rdi
callq 0x55a50
testb %al, %al
jne 0x9eab4
jmp 0x9eb39
movq 0x28(%rbx), %rdx
movq (%rdx), %rdi
movslq 0x64(%rbx), %r8
movl %r8d, %edx
addq %r14, %r8
xorl %esi, %esi
movzbl (%rdi,%rcx), %r9d
btl %esi, %r9d
setb (%r8,%rsi)
leal (%rdx,%rsi), %r9d
incl %r9d
movl %r9d, 0x64(%rbx)
incq %rsi
cmpl $0x8, %esi
jne 0x9eae0
incl %ecx
movl %ecx, 0x50(%rbx)
movq 0x48(%rbx), %rcx
incq %rcx
movq %rcx, 0x48(%rbx)
leal (%rdx,%rsi), %edi
cmpl %ebp, %edi
jl 0x9eaa5
addl %esi, %edx
movl %ebp, %esi
testl %ebp, %ebp
je 0x9eb50
xorl %ecx, %ecx
xorl %eax, %eax
movzbl 0x68(%rbx,%rcx), %edi
shlq %cl, %rdi
orq %rdi, %rax
incq %rcx
cmpq %rcx, %rsi
jne 0x9eb24
jmp 0x9eb52
movw $0x8, %ax
movw %ax, 0xf8(%rbx)
movq $-0x1, %rax
popq %rbx
popq %r14
popq %rbp
retq
xorl %eax, %eax
subl %ebp, %edx
movl %edx, 0x64(%rbx)
jle 0x9eb4b
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 0x9eb65
jmp 0x9eb4b
movw $0x4, %ax
jmp 0x9eb3d
// File: /workspace/github_c_makefile_star2_O3/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 0x9ec83
movl %edx, %r15d
testl %edx, %edx
jle 0x9ecb9
cmpb $0x1, 0x60(%r14)
jne 0x9ebd1
cmpb $0x0, 0x61(%r14)
jne 0x9ebd1
movl $0x0, 0x64(%r14)
movb $0x0, 0x60(%r14)
leal 0x1(%r15), %esi
movq %rsp, %rdi
callq 0x620b8
movq 0x48(%r14), %rax
xorl %r13d, %r13d
movl %r15d, %ebp
movslq 0x38(%r14), %rcx
addq 0x58(%r14), %rcx
cmpq %rcx, %rax
jge 0x9ecdf
movslq 0x50(%r14), %rax
movl 0x38(%r14), %ecx
cmpl %eax, %ecx
jg 0x9ec12
movq %r14, %rdi
callq 0x55a50
testb %al, %al
jne 0x9ebf8
jmp 0x9ec8f
subl %eax, %ecx
cmpl %ebp, %ecx
cmovgel %ebp, %ecx
movq 0x8(%rsp), %rdx
testq %rdx, %rdx
je 0x9ec28
movq (%rdx), %rdi
jmp 0x9ec2a
xorl %edi, %edi
movq 0x28(%r14), %rdx
testq %rdx, %rdx
je 0x9ec38
movq (%rdx), %rsi
jmp 0x9ec3a
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)
movq %r12, %rax
addq 0x48(%r14), %rax
movq %rax, 0x48(%r14)
subl %r12d, %ebp
jne 0x9ebe7
movq 0x8(%rsp), %rax
movq (%rax), %rax
movl %r15d, %ecx
movb $0x0, (%rax,%rcx)
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0x9ece5
movq (%rax), %rsi
jmp 0x9ece7
movw $0x5, 0xf8(%r14)
jmp 0x9ecc3
movw $0x8, %ax
movw %ax, 0xf8(%r14)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0xc12a4(%rip), %rax     # 0x15ff50
movq %rsp, %rdi
movq %rax, (%rdi)
callq 0x62130
jmp 0x9eccd
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 0x9ec93
xorl %esi, %esi
movq %rbx, %rdi
callq 0x579f0
jmp 0x9eca5
jmp 0x9ecf3
movq %rax, %rbx
leaq 0xc1253(%rip), %rax     # 0x15ff50
movq %rsp, %rdi
movq %rax, (%rdi)
callq 0x62130
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/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 $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpw $0x0, 0x8(%rsi)
je 0x9edba
cmpb $0x1, 0x60(%r14)
jne 0x9ed4a
cmpb $0x0, 0x61(%r14)
jne 0x9ed4a
movl $0x0, 0x64(%r14)
movb $0x0, 0x60(%r14)
movq %rsp, %rdi
movl $0x400, %esi            # imm = 0x400
callq 0x620b8
xorl %ebp, %ebp
movslq %ebp, %r12
leal 0x400(%r12), %r13d
movl $0xfffffc00, %r15d      # imm = 0xFFFFFC00
movq %r14, %rdi
movl $0x1, %esi
callq 0x55e90
leaq 0x1(%rax), %rcx
cmpq $0x1, %rcx
jbe 0x9eddd
cmpq $0xa, %rax
je 0x9eddd
cmpq $0xd, %rax
je 0x9edd0
movq 0x8(%rsp), %rcx
movq (%rcx), %rcx
movb %al, (%rcx,%r12)
incq %r12
decl %r15d
cmpl $0xfffff800, %r15d      # imm = 0xFFFFF800
jne 0x9ed6a
subl %r15d, %ebp
movq %rsp, %rdi
movl %ebp, %esi
callq 0x62f32
movl %r13d, %ebp
jmp 0x9ed59
movw $0x5, 0xf8(%r14)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58e20
jmp 0x9ee15
movq %r14, %rdi
movl $0x1, %esi
callq 0x55e90
movq 0x8(%rsp), %rax
movq (%rax), %rax
movb $0x0, (%rax,%r12)
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0x9edf9
movq (%rax), %rsi
jmp 0x9edfb
xorl %esi, %esi
movq %rbx, %rdi
callq 0x579f0
leaq 0xc1146(%rip), %rax     # 0x15ff50
movq %rsp, %rdi
movq %rax, (%rdi)
callq 0x62130
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9ee2b
jmp 0x9ee2b
movq %rax, %rbx
leaq 0xc111b(%rip), %rax     # 0x15ff50
movq %rsp, %rdi
movq %rax, (%rdi)
callq 0x62130
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/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 0x9ef29
movl %edx, %ebx
movq %rsi, %r15
testl %edx, %edx
setle %al
testq %rsi, %rsi
setne %cl
orb %al, %cl
je 0x9ef1d
testl %ebx, %ebx
js 0x9ef1d
cmpb $0x1, 0x60(%r14)
jne 0x9ee9c
cmpb $0x0, 0x61(%r14)
jne 0x9ee9c
movl $0x0, 0x64(%r14)
movb $0x0, 0x60(%r14)
testl %ebx, %ebx
je 0x9ef33
movq 0x48(%r14), %rax
xorl %r13d, %r13d
movl %ebx, %ebp
movslq 0x38(%r14), %rcx
addq 0x58(%r14), %rcx
cmpq %rcx, %rax
jge 0x9ef54
movslq 0x50(%r14), %rax
movl 0x38(%r14), %ecx
cmpl %eax, %ecx
jg 0x9eed8
movq %r14, %rdi
callq 0x55a50
testb %al, %al
jne 0x9eebe
jmp 0x9ef46
subl %eax, %ecx
cmpl %ebp, %ecx
cmovgel %ebp, %ecx
movq 0x28(%r14), %rdx
testq %rdx, %rdx
je 0x9eeed
movq (%rdx), %rsi
jmp 0x9eeef
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)
movq %r12, %rax
addq 0x48(%r14), %rax
movq %rax, 0x48(%r14)
subl %r12d, %ebp
jne 0x9eead
jmp 0x9ef35
movw $0x2, 0xf8(%r14)
jmp 0x9ef33
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 0x9ef35
movw $0x4, 0xf8(%r14)
jmp 0x9ef50
// File: /workspace/github_c_makefile_star2_O3/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 0x9ef9d
cmpb $0x0, 0x44(%rdi)
je 0x9efa8
testl %esi, %esi
jle 0x9efb3
cmpb $0x1, 0x60(%rdi)
jne 0x9ef82
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 0x9efbc
movw $0x6, 0xf8(%rdi)
jmp 0x9efbc
movw $0x2, 0xf8(%rdi)
xorl %eax, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x9efe3
cmpq $0x0, 0xf0(%rbx)
je 0x9efee
movw $0x2, 0xf8(%rbx)
jmp 0x9f035
movw $0x5, 0xf8(%rbx)
jmp 0x9f035
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 0x9f02c
movb $0x1, 0x44(%rbx)
movl 0x8(%r14), %esi
testl %esi, %esi
jle 0x9f03f
movq %rbx, %rdi
callq 0x574a0
jmp 0x9f044
movw $0x4, 0xf8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
cmpl $-0x1, %esi
je 0x9f053
movb $0x0, 0x44(%rbx)
movq %r14, 0xf0(%rbx)
movb $0x1, %al
jmp 0x9f037
movl 0x10(%rbx), %esi
subl 0x48(%rbx), %esi
jmp 0x9f022
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x9f097
movq 0xf0(%rbx), %rdi
testq %rdi, %rdi
je 0x9f0a2
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 0x9f0ad
movw $0x5, 0xf8(%rbx)
jmp 0x9f0ab
movw $0x2, 0xf8(%rbx)
xorl %eax, %eax
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x9f113
cmpb $0x1, 0x60(%rbx)
jne 0x9f0db
movl $0x0, 0x64(%rbx)
movb $0x0, 0x60(%rbx)
jmp 0x9f0db
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
cmpq $0x0, 0xf0(%rbx)
jne 0x9f0d2
movb 0xb(%rbx), %cl
cmpb $0x1, 0xa(%rbx)
jne 0x9f11e
movq 0x100(%rbx), %rax
testb $0x1, %cl
je 0x9f0fe
movb $0x1, 0xb(%rax)
xorl %ecx, %ecx
movb %cl, 0xa(%rax)
movq $0x0, 0x100(%rax)
movb %cl, 0xb(%rbx)
jmp 0x9f135
movw $0x5, 0xf8(%rbx)
jmp 0x9f13b
testb $0x1, %cl
je 0x9f135
movq 0xe8(%rbx), %rdi
testq %rdi, %rdi
je 0x9f135
movq (%rdi), %rax
callq *0x8(%rax)
movw $0x0, 0x8(%rbx)
testw %bp, %bp
setne %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x9f191
movq %rsi, %r14
cmpb $0x1, 0x60(%rbx)
jne 0x9f16a
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 0x9f19c
movslq 0x38(%rbx), %rsi
cmpq %rsi, %rdx
jg 0x9f19c
movq %r14, 0x48(%rbx)
addl %ecx, %eax
movl %eax, 0x50(%rbx)
jmp 0x9f1c0
movw $0x5, 0xf8(%rbx)
jmp 0x9f1c4
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x20(%rax)
cmpq $-0x1, %rax
je 0x9f1c4
movq %r14, 0x48(%rbx)
movl 0x38(%rbx), %eax
movl %eax, 0x50(%rbx)
movq %r14, 0x58(%rbx)
movb $0x1, %al
jmp 0x9f1c6
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xcc990(%rip), %rax     # 0x16bb98
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x100(%rbx)
movw $0x2, %ax
cmpl $0x2, %ebp
jne 0x9f242
movq %r14, 0xe8(%rbx)
movq %r14, %rdi
callq 0x55190
testl %eax, %eax
je 0x9f24e
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 0xcc547(%rip), %rax     # 0x16b7c8
movl (%rax), %esi
movl %esi, 0x38(%rbx)
movl %esi, 0x3c(%rbx)
movl %esi, 0x40(%rbx)
leaq 0x20(%rbx), %rdi
callq 0x62f32
jmp 0x9f249
movq %rax, %r14
movq %rbx, %rdi
callq 0x573c0
movq %r14, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/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 0xcc8ca(%rip), %rax     # 0x16bb98
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x100(%rbx)
cmpl $0x3, %r14d
jne 0x9f32a
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 0x9f341
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 0x9f3ed
movq 0xe8(%rbx), %rdi
callq 0x55190
movw %ax, 0xf8(%rbx)
movq 0xe8(%rbx), %rdi
testq %rdi, %rdi
je 0x9f333
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x9f333
movw $0x2, 0x8(%rbx)
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, 0x10(%rbx)
movq %rax, 0x48(%rbx)
movq 0xcc3b9(%rip), %rax     # 0x16b7c8
movl (%rax), %esi
movl %esi, 0x38(%rbx)
movl %esi, 0x3c(%rbx)
movl %esi, 0x40(%rbx)
leaq 0x20(%rbx), %rdi
callq 0x62f32
jmp 0x9f333
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x59200
jmp 0x9f43a
movq %rax, %r15
leaq 0x38(%rsp), %rdi
callq 0x59178
jmp 0x9f449
movq %rax, %r15
leaq 0x20(%rsp), %rdi
callq 0x59200
jmp 0x9f458
movq %rax, %r15
movl $0x48, %esi
movq %r14, %rdi
callq 0x55480
jmp 0x9f48a
movq %rax, %r15
leaq 0x38(%rsp), %rdi
callq 0x59210
jmp 0x9f479
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x59200
jmp 0x9f48a
jmp 0x9f487
movq %rax, %r15
movq %rbx, %rdi
callq 0x573c0
movq %r15, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::OutStream(int, _IO_FILE*)
S::IO::OutStream::OutStream(Int type, FILE *openFile)
{
	inStream	= 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();

	dataBuffer.Resize(packageSize);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
callq 0x569d0
movq 0xcc6e3(%rip), %rax     # 0x16bb98
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x100(%rbx)
cmpl $0x4, %ebp
jne 0x9f526
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 0x9f531
movq 0xe8(%rbx), %rdi
callq 0x55190
movw %ax, 0xf8(%rbx)
movq 0xe8(%rbx), %rdi
testq %rdi, %rdi
je 0x9f565
movq (%rdi), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmpq *0x8(%rax)
movw $0x2, 0xf8(%rbx)
jmp 0x9f565
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)
leaq 0x20(%rbx), %rdi
movl 0x38(%rbx), %esi
callq 0x62f32
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movl $0x48, %esi
movq %r15, %rdi
callq 0x55480
jmp 0x9f585
movq %rax, %r14
movq %rbx, %rdi
callq 0x573c0
movq %r14, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::OutStream(int, void*, long)
S::IO::OutStream::OutStream(Int type, Void *outBuffer, Long bufferSize)
{
	inStream	= NIL;

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

	driver		= new DriverMemory(outBuffer, bufferSize);

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

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

	dataBuffer.Resize(packageSize);
}

// 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 0xcc5e3(%rip), %rax     # 0x16bb98
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x100(%rbx)
cmpl $0x5, %ebp
jne 0x9f627
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 0x9f632
movq 0xe8(%rbx), %rdi
callq 0x55190
movw %ax, 0xf8(%rbx)
movq 0xe8(%rbx), %rdi
testq %rdi, %rdi
je 0x9f655
movq (%rdi), %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmpq *0x8(%rax)
movw $0x2, 0xf8(%rbx)
jmp 0x9f655
movw $0x2, 0x8(%rbx)
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, 0x10(%rbx)
leaq 0x20(%rbx), %rdi
movl 0x38(%rbx), %esi
callq 0x62f32
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movl $0x40, %esi
movq %r12, %rdi
callq 0x55480
jmp 0x9f673
movq %rax, %r14
movq %rbx, %rdi
callq 0x573c0
movq %r14, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::OutStream(int, smooth::IO::InStream*)
S::IO::OutStream::OutStream(Int type, InStream *in)
{
	inStream	= NIL;

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

	streamType	= STREAM_STREAM;

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

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

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

		streamType	= STREAM_DRIVER;
		size		= inStream->origsize;
		currentFilePos	= inStream->currentFilePos;
		closefile	= False;

		packageSize	= 1;
		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 0xcc4fc(%rip), %rax     # 0x16bb98
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x100(%rbx)
movw $0x2, %ax
cmpl $0x1, %ebp
jne 0x9f6ca
movw $0x6, %ax
cmpw $0x0, 0x8(%r14)
je 0x9f6ca
cmpb $0x0, 0xa(%r14)
je 0x9f6d6
movw %ax, 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 0xcc0ce(%rip), %rax     # 0x16b7c8
movl (%rax), %eax
movl %eax, 0x38(%rbx)
movl %eax, 0x3c(%rbx)
movl %eax, 0x40(%rbx)
cmpw $0x2, 0x8(%r14)
jne 0x9f6d1
movq 0xe8(%r14), %rax
movq %rax, 0xe8(%rbx)
movw $0x2, 0x8(%rbx)
movq 0x18(%r14), %rax
movq %rax, 0x10(%rbx)
movq 0x48(%r14), %rax
movq %rax, 0x48(%rbx)
movb $0x0, 0xb(%rbx)
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x38(%rbx)
movl $0x1, 0x40(%rbx)
leaq 0x20(%rbx), %rdi
movl $0x1, %esi
callq 0x62f32
jmp 0x9f6d1
movq %rax, %r14
movq %rbx, %rdi
callq 0x573c0
movq %r14, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::Flush()
S::Bool S::IO::OutStream::Flush()
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return False; }
	if (packageSize <= 0)		{ lastError = IO_ERROR_UNKNOWN; return False; }

	if (currentBufferPos <= 0) return True;

	if (bitstreamActive) CompleteBitstream();

	Int	 ps		= packageSize;
	Int	 oldcpos	= currentBufferPos;

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

	if (currentBufferPos > 0)
	{
		packageSize = currentBufferPos;

		if (!WriteData())
		{
			packageSize = ps;

			{ lastError = IO_ERROR_UNKNOWN; return False; }
		}

		packageSize = ps;
	}

	return True;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0x9f84f
movl 0x38(%rbx), %r15d
movw $0x4, %r14w
testl %r15d, %r15d
jle 0x9f854
movl 0x50(%rbx), %r12d
movb $0x1, %bpl
testl %r12d, %r12d
jle 0x9f85e
cmpb $0x1, 0x60(%rbx)
jne 0x9f7f9
movq %rbx, %rdi
callq 0x56380
movl 0x38(%rbx), %r15d
movl 0x50(%rbx), %r12d
movq 0xf0(%rbx), %rax
testq %rax, %rax
je 0x9f834
cmpl $0x0, 0x8(%rax)
jle 0x9f834
cmpl %r12d, %r15d
jle 0x9f834
xorl %r13d, %r13d
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x55750
incl %r13d
movl 0x38(%rbx), %eax
subl %r12d, %eax
cmpl %eax, %r13d
jl 0x9f813
movl 0x50(%rbx), %r12d
testl %r12d, %r12d
jle 0x9f85e
movl %r12d, 0x38(%rbx)
movq %rbx, %rdi
callq 0x576a0
movl %r15d, 0x38(%rbx)
testb %al, %al
je 0x9f854
jmp 0x9f85e
movw $0x5, %r14w
movw %r14w, 0xf8(%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
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/io/outstream.cpp
// Function: smooth::IO::OutStream::CompleteBitstream()
S::Bool S::IO::OutStream::CompleteBitstream()
{
	if (bitLength > 0)
	{
		Int	out = 0;

		for (Int i = 0; i < 8; i++)
		{
			if (i < bitLength) out = out | (bitBuffer[i] << i);
		}

		keepBits = True;
		OutputNumber(out, 1);
		keepBits = False;
	}

	bitstreamActive = 0;

	return True;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movslq 0x64(%rdi), %rax
testq %rax, %rax
jle 0x9f8b0
xorl %ecx, %ecx
xorl %edx, %edx
cmpq %rax, %rcx
jae 0x9f88f
movzbl 0x68(%rbx,%rcx), %esi
shll %cl, %esi
orl %esi, %edx
incq %rcx
cmpq $0x8, %rcx
jne 0x9f881
movb $0x1, 0x61(%rbx)
movslq %edx, %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x55750
movb $0x0, 0x61(%rbx)
movb $0x0, 0x60(%rbx)
movb $0x1, %al
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::OutputNumber(long long, int)
S::Bool S::IO::OutStream::OutputNumber(Int64 number, Int bytes)
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return False; }
	if (packageSize <= 0)		{ lastError = IO_ERROR_UNKNOWN; return False; }
	if (bytes > 8 || bytes < 0)	{ lastError = IO_ERROR_BADPARAM; return False; }

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

	for (Int i = 0; i < bytes; i++)
	{
		if (currentBufferPos >= packageSize)
		{
			if (!WriteData()) { lastError = IO_ERROR_UNKNOWN; return False; }
		}

		dataBuffer[currentBufferPos] = IOGetByte(number, i);
		if (currentFilePos == size) size++;
		currentBufferPos++;
		currentFilePos++;
	}

	if (currentBufferPos >= packageSize)
	{
		if (!WriteData()) { lastError = IO_ERROR_UNKNOWN; return False; }
	}

	return True;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0x9f961
cmpl $0x0, 0x38(%rbx)
jle 0x9f967
movl %edx, %ebp
movw $0x2, %cx
cmpl $0x8, %edx
ja 0x9f96b
movq %rsi, %r14
cmpb $0x1, 0x60(%rbx)
jne 0x9f8fe
cmpb $0x0, 0x61(%rbx)
jne 0x9f8fe
movq %rbx, %rdi
callq 0x56380
testl %ebp, %ebp
je 0x9f97f
movl %ebp, %r12d
movl 0x50(%rbx), %eax
shlq $0x3, %r12
xorl %r15d, %r15d
cmpl 0x38(%rbx), %eax
jl 0x9f923
movq %rbx, %rdi
callq 0x576a0
testb %al, %al
je 0x9f967
movl 0x50(%rbx), %eax
movq %r14, %rdx
movl %r15d, %ecx
sarq %cl, %rdx
movq 0x28(%rbx), %rcx
movq (%rcx), %rcx
cltq
movb %dl, (%rcx,%rax)
movq 0x48(%rbx), %rax
leaq 0x1(%rax), %rcx
cmpq 0x10(%rbx), %rax
jne 0x9f94a
movq %rcx, 0x10(%rbx)
movl 0x50(%rbx), %eax
incl %eax
movl %eax, 0x50(%rbx)
movq %rcx, 0x48(%rbx)
addq $0x8, %r15
cmpq %r15, %r12
jne 0x9f90f
jmp 0x9f982
movw $0x5, %cx
jmp 0x9f96b
movw $0x4, %cx
movw %cx, 0xf8(%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl 0x50(%rbx), %eax
movb $0x1, %bpl
cmpl 0x38(%rbx), %eax
jl 0x9f974
movq %rbx, %rdi
callq 0x576a0
movw $0x4, %cx
testb %al, %al
je 0x9f96b
jmp 0x9f974
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::WriteData()
S::Bool S::IO::OutStream::WriteData()
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return False; }
	if (packageSize <= 0)		{ lastError = IO_ERROR_UNKNOWN; return False; }

	if (currentBufferPos < packageSize) return True;

	if (filter != NIL && filter->GetPackageSize() == -1)
	{
		dataBuffer.Resize(packageSize + defaultPackageSize);

		packageSize += defaultPackageSize;
		stdpacksize = packageSize;

		return True;
	}

	if (streamType == STREAM_DRIVER)
	{
		Int	 encsize = 0;

		dataBuffer.Resize(packageSize);

		if (filter == NIL) encsize = driver->WriteData(dataBuffer, packageSize);
		else		   encsize = filter->WriteData(dataBuffer);

		if (encsize == -1)
		{
			packageSize = 0;

			return False;
		}

		driver->Flush();

		if (size == currentFilePos) size -= (packageSize - encsize);

		currentFilePos	 -= (packageSize - encsize);
		currentBufferPos -= packageSize;
	}

	return True;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movzwl 0x8(%rdi), %eax
testw %ax, %ax
je 0x9f9fa
movl 0x38(%r14), %esi
testl %esi, %esi
jle 0x9fa06
movb $0x1, %bl
cmpl %esi, 0x50(%r14)
jl 0x9fa12
movq 0xf0(%r14), %rcx
testq %rcx, %rcx
je 0x9f9d1
cmpl $-0x1, 0x8(%rcx)
je 0x9fa1f
cmpw $0x2, %ax
jne 0x9fa12
leaq 0x20(%r14), %r15
movq %r15, %rdi
callq 0x62f32
movq 0xf0(%r14), %rdi
testq %rdi, %rdi
je 0x9fa43
movq (%rdi), %rax
movq %r15, %rsi
callq *0x20(%rax)
jmp 0x9fa64
movw $0x5, 0xf8(%r14)
jmp 0x9fa10
movw $0x4, 0xf8(%r14)
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20(%r14), %rdi
movq 0xcbd9e(%rip), %r15     # 0x16b7c8
addl (%r15), %esi
callq 0x62f32
movl 0x38(%r14), %eax
addl (%r15), %eax
movl %eax, 0x38(%r14)
movl %eax, 0x3c(%r14)
jmp 0x9fa12
movq 0x28(%r14), %rax
movq 0xe8(%r14), %rdi
testq %rax, %rax
je 0x9fa58
movq (%rax), %rsi
jmp 0x9fa5a
xorl %esi, %esi
movl 0x38(%r14), %edx
movq (%rdi), %rax
callq *0x18(%rax)
movl %eax, %ebp
cmpl $-0x1, %eax
je 0x9faa7
movq 0xe8(%r14), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
movq 0x10(%r14), %rdx
movq 0x48(%r14), %rcx
movl 0x38(%r14), %eax
movl %eax, %esi
subl %ebp, %esi
movslq %esi, %rsi
cmpq %rcx, %rdx
jne 0x9fa97
subq %rsi, %rdx
movq %rdx, 0x10(%r14)
subq %rsi, %rcx
movq %rcx, 0x48(%r14)
subl %eax, 0x50(%r14)
jmp 0x9fa12
movl $0x0, 0x38(%r14)
jmp 0x9fa10
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::OutputNumberRaw(long long, int)
S::Bool S::IO::OutStream::OutputNumberRaw(Int64 number, Int bytes)
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return False; }
	if (packageSize <= 0)		{ lastError = IO_ERROR_UNKNOWN; return False; }
	if (bytes > 8 || bytes < 0)	{ lastError = IO_ERROR_BADPARAM; return False; }

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

	for (Int i = bytes - 1; i >= 0; i--)
	{
		if (currentBufferPos >= packageSize)
		{
			if (!WriteData()) { lastError = IO_ERROR_UNKNOWN; return False; }
		}

		dataBuffer[currentBufferPos] = IOGetByte(number, i);
		if (currentFilePos == size) size++;
		currentBufferPos++;
		currentFilePos++;
	}

	if (currentBufferPos >= packageSize)
	{
		if (!WriteData()) { lastError = IO_ERROR_UNKNOWN; return False; }
	}

	return True;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0x9fb67
cmpl $0x0, 0x38(%rbx)
jle 0x9fb6d
movl %edx, %ebp
movw $0x2, %cx
cmpl $0x8, %edx
ja 0x9fb71
movq %rsi, %r14
cmpb $0x1, 0x60(%rbx)
jne 0x9faf9
cmpb $0x0, 0x61(%rbx)
jne 0x9faf9
movq %rbx, %rdi
callq 0x56380
testl %ebp, %ebp
je 0x9fb87
movl %ebp, %ecx
movl 0x50(%rbx), %eax
incl %ebp
leaq -0x8(,%rcx,8), %r15
cmpl 0x38(%rbx), %eax
jl 0x9fb24
movq %rbx, %rdi
callq 0x576a0
testb %al, %al
je 0x9fb6d
movl 0x50(%rbx), %eax
movl %r15d, %ecx
andb $-0x8, %cl
movq %r14, %rdx
sarq %cl, %rdx
movq 0x28(%rbx), %rcx
movq (%rcx), %rcx
cltq
movb %dl, (%rcx,%rax)
movq 0x48(%rbx), %rax
leaq 0x1(%rax), %rcx
cmpq 0x10(%rbx), %rax
jne 0x9fb4e
movq %rcx, 0x10(%rbx)
movl 0x50(%rbx), %eax
incl %eax
movl %eax, 0x50(%rbx)
movq %rcx, 0x48(%rbx)
decl %ebp
addq $-0x8, %r15
cmpl $0x1, %ebp
jg 0x9fb10
jmp 0x9fb8a
movw $0x5, %cx
jmp 0x9fb71
movw $0x4, %cx
movw %cx, 0xf8(%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl 0x50(%rbx), %eax
movb $0x1, %bpl
cmpl 0x38(%rbx), %eax
jl 0x9fb7a
movq %rbx, %rdi
callq 0x576a0
movw $0x4, %cx
testb %al, %al
je 0x9fb71
jmp 0x9fb7a
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::OutputBits(long long, int)
S::Bool S::IO::OutStream::OutputBits(Int64 number, Int bits)
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return False; }
	if (packageSize <= 0)		{ lastError = IO_ERROR_UNKNOWN; return False; }
	if (bits > 64 || bits < 0)	{ lastError = IO_ERROR_BADPARAM; return False; }

	if (!bitstreamActive) InitBitstream();

	for (Int j = 0; j < bits; j++)
	{
		bitBuffer[bitLength] = IOGetBit(number, j);
		bitLength++;
	}

	while (bitLength >= 8)
	{
		unsigned char	 out = 0;

		for (Int i = 0; i < 8; i++) out = out | (bitBuffer[i] << i);

		bitLength = bitLength - 8;

		for (Int j = 0; j < bitLength; j++) bitBuffer[j] = bitBuffer[j + 8];

		dataBuffer[currentBufferPos] = out;

		if (currentFilePos == size) size++;

		currentBufferPos++;
		currentFilePos++;

		if (currentBufferPos >= packageSize)
		{
			if (!WriteData()) { lastError = IO_ERROR_UNKNOWN; return False; }
		}
	}

	return True;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0x9fc0b
cmpl $0x0, 0x38(%rbx)
jle 0x9fca3
movw $0x2, %ax
cmpl $0x40, %edx
ja 0x9fca7
cmpb $0x0, 0x60(%rbx)
jne 0x9fbde
movl $0x0, 0x64(%rbx)
movb $0x1, 0x60(%rbx)
testl %edx, %edx
je 0x9fc14
movslq 0x64(%rbx), %rcx
movl %ecx, %eax
movl %edx, %edx
leaq (%rcx,%rbx), %rdi
addq $0x68, %rdi
xorl %ecx, %ecx
btq %rcx, %rsi
setb (%rdi,%rcx)
incq %rcx
cmpq %rcx, %rdx
jne 0x9fbf4
addl %ecx, %eax
movl %eax, 0x64(%rbx)
jmp 0x9fc17
movw $0x5, %ax
jmp 0x9fca7
movl 0x64(%rbx), %eax
movb $0x1, %bpl
cmpl $0x8, %eax
jl 0x9fcb0
leaq 0x68(%rbx), %r14
leaq 0x70(%rbx), %r15
xorl %ecx, %ecx
xorl %r12d, %r12d
movzbl 0x68(%rbx,%rcx), %edx
shll %cl, %edx
orb %dl, %r12b
incq %rcx
cmpq $0x8, %rcx
jne 0x9fc30
leal -0x8(%rax), %ecx
movl %ecx, 0x64(%rbx)
cmpl $0x9, %eax
jl 0x9fc5b
movl %ecx, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x556d0
movslq 0x50(%rbx), %rax
movq 0x28(%rbx), %rcx
movq (%rcx), %rcx
movb %r12b, (%rcx,%rax)
movq 0x48(%rbx), %rcx
leaq 0x1(%rcx), %rax
cmpq 0x10(%rbx), %rcx
jne 0x9fc7c
movq %rax, 0x10(%rbx)
movl 0x50(%rbx), %ecx
incl %ecx
movl %ecx, 0x50(%rbx)
movq %rax, 0x48(%rbx)
cmpl 0x38(%rbx), %ecx
jl 0x9fc99
movq %rbx, %rdi
callq 0x576a0
testb %al, %al
je 0x9fca3
movl 0x64(%rbx), %eax
cmpl $0x7, %eax
jg 0x9fc2b
jmp 0x9fcb0
movw $0x4, %ax
movw %ax, 0xf8(%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::OutputString(smooth::String const&)
S::Bool S::IO::OutStream::OutputString(const String &string)
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return False; }
	if (packageSize <= 0)		{ lastError = IO_ERROR_UNKNOWN; return False; }
	if (string == NIL)		{ lastError = IO_ERROR_BADPARAM; return False; }

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

	/* Convert the string to char * here once to avoid
	 * having to convert it again and again later.
	 */
	const char	*value		= string;

	Int		 bytesleft	= strlen(value);
	Int		 databufferpos	= 0;

	while (bytesleft)
	{
		Int	 amount = ((packageSize - currentBufferPos) < (bytesleft)) ? (packageSize - currentBufferPos) : (bytesleft);

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

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

		if (size < currentFilePos) size = currentFilePos;

		if (!WriteData()) { lastError = IO_ERROR_UNKNOWN; return False; }
	}

	return True;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0x9fd99
cmpl $0x0, 0x38(%rbx)
jle 0x9fd93
movq %rsi, %r14
movq %rsi, %rdi
xorl %esi, %esi
callq 0x55260
movw $0x2, %cx
testb %al, %al
jne 0x9fd9d
cmpb $0x1, 0x60(%rbx)
jne 0x9fd1a
cmpb $0x0, 0x61(%rbx)
jne 0x9fd1a
movq %rbx, %rdi
callq 0x56380
movq %r14, %rdi
callq 0x585e0
movq %rax, %r14
movq %rax, %rdi
callq 0x56370
movq %rax, %r15
xorl %r13d, %r13d
testl %r15d, %r15d
je 0x9fdb5
movl 0x38(%rbx), %ebp
movslq 0x50(%rbx), %rax
subl %eax, %ebp
cmpl %r15d, %ebp
cmovgel %r15d, %ebp
movq 0x28(%rbx), %rcx
testq %rcx, %rcx
je 0x9fd56
movq (%rcx), %rdi
jmp 0x9fd58
xorl %edi, %edi
addq %rax, %rdi
movslq %r13d, %rsi
addq %r14, %rsi
movslq %ebp, %r12
movq %r12, %rdx
callq 0x552d0
addl %ebp, 0x50(%rbx)
addq 0x48(%rbx), %r12
movq %r12, 0x48(%rbx)
cmpq %r12, 0x10(%rbx)
jge 0x9fd81
movq %r12, 0x10(%rbx)
subl %ebp, %r15d
addl %ebp, %r13d
movq %rbx, %rdi
callq 0x576a0
testb %al, %al
jne 0x9fd33
movw $0x4, %cx
jmp 0x9fd9d
movw $0x5, %cx
movw %cx, 0xf8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %al
jmp 0x9fda6
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::OutputData(void const*, int)
S::Bool S::IO::OutStream::OutputData(const Void *pointer, Int bytes)
{
	if (streamType == STREAM_NONE)	 { lastError = IO_ERROR_NOTOPEN; return False; }
	if (packageSize <= 0)		 { lastError = IO_ERROR_UNKNOWN; return False; }
	if (bytes > 0 && pointer == NIL) { lastError = IO_ERROR_BADPARAM; return False; }
	if (bytes < 0)			 { lastError = IO_ERROR_BADPARAM; return False; }

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

	Int	 bytesleft	= bytes;
	Int	 databufferpos	= 0;

	while (bytesleft)
	{
		Int	 amount = ((packageSize - currentBufferPos) < (bytesleft)) ? (packageSize - currentBufferPos) : (bytesleft);

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

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

		if (size < currentFilePos) size = currentFilePos;

		if (!WriteData()) { lastError = IO_ERROR_UNKNOWN; return False; }
	}

	return True;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0x9fec9
cmpl $0x0, 0x38(%rbx)
jle 0x9fec3
movl %edx, %ebp
movq %rsi, %r14
testq %rsi, %rsi
sete %al
testl %edx, %edx
setg %cl
sets %dl
andb %al, %cl
orb %dl, %cl
movw $0x2, %ax
jne 0x9fecd
cmpb $0x1, 0x60(%rbx)
jne 0x9fe5a
cmpb $0x0, 0x61(%rbx)
jne 0x9fe5a
movq %rbx, %rdi
callq 0x56380
xorl %r12d, %r12d
testl %ebp, %ebp
je 0x9fee5
movl 0x38(%rbx), %r13d
movslq 0x50(%rbx), %rax
subl %eax, %r13d
cmpl %ebp, %r13d
cmovgel %ebp, %r13d
movq 0x28(%rbx), %rcx
testq %rcx, %rcx
je 0x9fe85
movq (%rcx), %rdi
jmp 0x9fe87
xorl %edi, %edi
addq %rax, %rdi
movslq %r12d, %rsi
addq %r14, %rsi
movslq %r13d, %r15
movq %r15, %rdx
callq 0x552d0
addl %r13d, 0x50(%rbx)
addq 0x48(%rbx), %r15
movq %r15, 0x48(%rbx)
cmpq %r15, 0x10(%rbx)
jge 0x9feb1
movq %r15, 0x10(%rbx)
subl %r13d, %ebp
addl %r13d, %r12d
movq %rbx, %rdi
callq 0x576a0
testb %al, %al
jne 0x9fe5d
movw $0x4, %ax
jmp 0x9fecd
movw $0x5, %ax
movw %ax, 0xf8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %al
jmp 0x9fed6
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::SetPackageSize(int)
S::Bool S::IO::OutStream::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; }

	Flush();

	dataBuffer.Resize(newPackageSize);

	packageSize = newPackageSize;
	stdpacksize = packageSize;

	return True;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0x9ff20
cmpb $0x0, 0x44(%rbx)
je 0x9ff2b
movl %esi, %ebp
testl %esi, %esi
jle 0x9ff36
movq %rbx, %rdi
callq 0x58d30
leaq 0x20(%rbx), %rdi
movl %ebp, %esi
callq 0x62f32
movl %ebp, 0x38(%rbx)
movl %ebp, 0x3c(%rbx)
movb $0x1, %al
jmp 0x9ff41
movw $0x5, 0xf8(%rbx)
jmp 0x9ff3f
movw $0x6, 0xf8(%rbx)
jmp 0x9ff3f
movw $0x2, 0xf8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/outstream.cpp
// Function: smooth::IO::OutStream::SetFilter(smooth::IO::Filter*)
S::Bool S::IO::OutStream::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);

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

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

	Flush();

	filter = newFilter;

	allowpackset = True;

	if (filter->GetPackageSize() > 0)
	{
		SetPackageSize(filter->GetPackageSize());	// package size must be eqv filter size

		allowpackset = False;
	}
	else if (filter->GetPackageSize() == -1)
	{
		SetPackageSize(defaultPackageSize);

		allowpackset = False;
	}

	return True;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0x9ff6b
cmpq $0x0, 0xf0(%rbx)
je 0x9ff76
movw $0x2, 0xf8(%rbx)
jmp 0x9ffda
movw $0x5, 0xf8(%rbx)
jmp 0x9ffda
movq %rsi, %r14
movq 0xe8(%rbx), %rax
movq %rax, 0x10(%rsi)
movq (%rsi), %rax
movq %rsi, %rdi
callq *0x10(%rax)
testb %al, %al
je 0x9ffd1
cmpb $0x1, 0x60(%rbx)
jne 0x9ffa5
cmpb $0x0, 0x61(%rbx)
jne 0x9ffa5
movq %rbx, %rdi
callq 0x56380
movq %rbx, %rdi
callq 0x58d30
movq %r14, 0xf0(%rbx)
movb $0x1, 0x44(%rbx)
movl 0x8(%r14), %esi
testl %esi, %esi
jle 0x9ffe3
movq %rbx, %rdi
callq 0x56350
movb $0x0, 0x44(%rbx)
movb $0x1, %bpl
jmp 0x9ffdc
movw $0x4, 0xf8(%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
movb $0x1, %bpl
cmpl $-0x1, %esi
jne 0x9ffdc
movq 0xcb7d6(%rip), %rax     # 0x16b7c8
movl (%rax), %esi
movq %rbx, %rdi
callq 0x56350
movb $0x0, 0x44(%rbx)
jmp 0x9ffdc