LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/xml/node.cpp
// Function: smooth::XML::Node::AddNode(smooth::String const&, smooth::String const&)
S::XML::Node *S::XML::Node::AddNode(const String &iName, const String &iContent)
{
	Node	*node = new Node(iName, iContent);

	if (subnodes == NIL) subnodes = new Array<Node *, Void *>();

	node->SetNodeID(subnodes->Add(node));

	return node;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movl $0x30, %edi
callq 0x556b0
movq %rax, %rbx
movq %rax, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x567b0
movq 0x8(%r14), %r15
testq %r15, %r15
jne 0xb456b
movl $0x58, %edi
callq 0x556b0
movq %rax, %r15
movq %rax, %rdi
callq 0x55d90
leaq 0xab2af(%rip), %rax     # 0x15f800
movq %rax, 0x40(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%r15)
leaq 0xb4f8c(%rip), %rax     # 0x1694f0
movq %rax, (%r15)
movq %r15, 0x8(%r14)
movq %rsp, %rsi
movq %rbx, (%rsi)
movq %r15, %rdi
callq 0x5aed8
movl %eax, 0x10(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movl $0x58, %esi
movq %r15, %rdi
jmp 0xb45a3
movq %rax, %r14
movl $0x30, %esi
movq %rbx, %rdi
callq 0x55480
movq %r14, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/xml/node.cpp
// Function: smooth::XML::Node::RemoveNode(smooth::XML::Node*)
S::Int S::XML::Node::RemoveNode(Node *node)
{
	if (node == NIL) return Error();

	subnodes->Remove(node->GetNodeID());

	delete node;

	return Success();
}

// Assembly:
testq %rsi, %rsi
je 0xb45de
pushq %rbx
movq %rsi, %rbx
movq 0x8(%rdi), %rdi
movl 0x10(%rsi), %esi
callq 0x58bb0
movq %rbx, %rdi
callq 0x55f80
movl $0x30, %esi
movq %rbx, %rdi
callq 0x55480
xorl %eax, %eax
popq %rbx
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/xml/xul/button.cpp
// Function: smooth::XML::XUL::Button::Button(smooth::XML::Node*)
S::XML::XUL::Button::Button(Node *node) : Widget(node)
{
	button = NIL;

	defaultWidth = 80;
	defaultHeight = 22;

	if (node != NIL)
	{
		button = new GUI::Button(GetXMLAttributeValue(node, "label"), GUI::Point(0, 0), GUI::Size(0, 0));

		if (GetXMLAttributeValue(node, "disabled") == "true") button->Deactivate();
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x579a0
leaq 0xb4a04(%rip), %rax     # 0x1695d0
movq %rax, (%rbx)
movq $0x0, 0x80(%rbx)
movabsq $0x1600000050, %rax     # imm = 0x1600000050
movq %rax, 0x48(%rbx)
testq %r14, %r14
je 0xb4cbd
movl $0x5c8, %edi            # imm = 0x5C8
callq 0x556b0
movq %rax, %r15
leaq 0x5dead(%rip), %rsi     # 0x112ab2
leaq 0x8(%rsp), %rdi
callq 0x579f0
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x56490
xorl %eax, %eax
leaq 0x40(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x38(%rsp), %rcx
movq %rax, (%rcx)
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
callq 0x573b0
movq %r15, 0x80(%rbx)
leaq 0x20(%rsp), %rdi
callq 0x59200
leaq 0x8(%rsp), %rdi
callq 0x59200
leaq 0x5de9d(%rip), %rsi     # 0x112b02
leaq 0x8(%rsp), %rdi
callq 0x579f0
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x56490
leaq 0x5db57(%rip), %rsi     # 0x1127e2
leaq 0x20(%rsp), %rdi
callq 0x57ef0
movl %eax, %ebp
leaq 0x20(%rsp), %rdi
callq 0x59200
leaq 0x8(%rsp), %rdi
callq 0x59200
testb %bpl, %bpl
je 0xb4cbd
movq 0x80(%rbx), %rdi
movq (%rdi), %rax
callq *0x70(%rax)
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x59200
jmp 0xb4cda
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x59200
jmp 0xb4d1b
jmp 0xb4d18
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x59200
jmp 0xb4cfa
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x59200
jmp 0xb4d09
movq %rax, %r14
movl $0x5c8, %esi            # imm = 0x5C8
movq %r15, %rdi
callq 0x55480
jmp 0xb4d1b
movq %rax, %r14
movq %rbx, %rdi
callq 0x59020
movq %r14, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/xml/xul/renderer.cpp
// Function: smooth::XML::XUL::Renderer::LoadXUL(smooth::String const&)
S::Int S::XML::XUL::Renderer::LoadXUL(const String &fileName)
{
	CloseXUL();

	Int		 rVal	= Error();
	Document	*xul	= new Document();

	xul->LoadFile(fileName);

	if (xul->GetRootNode() != NIL) rVal = RenderXUL(xul);

	delete xul;

	return rVal;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movq 0x80(%rdi), %rdi
testq %rdi, %rdi
je 0xb578f
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x80(%r14)
movl $0x28, %edi
callq 0x556b0
movq %rax, %rbx
movq %rax, %rdi
callq 0x57be0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x55520
movq %rbx, %rdi
callq 0x56e60
testq %rax, %rax
je 0xb57d6
movq %r14, %rdi
movq %rbx, %rsi
callq 0x58330
movl %eax, %ebp
jmp 0xb57db
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq %rbx, %rdi
callq 0x55400
movl $0x28, %esi
movq %rbx, %rdi
callq 0x55480
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movl $0x28, %esi
movq %rbx, %rdi
callq 0x55480
movq %r14, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/xml/xul/widget.cpp
// Function: smooth::XML::XUL::Widget::GetXMLAttributeValue(smooth::XML::Node*, smooth::String const&) const
S::String S::XML::XUL::Widget::GetXMLAttributeValue(Node *node, const String &attribute) const
{
	if (node != NIL)
	{
		if (node->GetAttributeByName(attribute) != NIL)
		{
			return node->GetAttributeByName(attribute)->GetContent();
		}
	}

	return NIL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
testq %rdx, %rdx
je 0xb610d
movq %rcx, %r14
movq %rdx, %r15
movq %rdx, %rdi
movq %rcx, %rsi
callq 0x58d10
testq %rax, %rax
je 0xb610d
movq %r15, %rdi
movq %r14, %rsi
callq 0x58d10
movq %rax, %rdi
callq 0x55720
movq %rbx, %rdi
movq %rax, %rsi
callq 0x570b0
jmp 0xb6117
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58e20
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/xml/xul/window.cpp
// Function: smooth::XML::XUL::Window::~Window()
S::XML::XUL::Window::~Window()
{
	for (Int i = 0; i < widgets.Length(); i++) delete widgets.GetNth(i);

	widgets.RemoveAll();

	if (titlebar != NIL)	Object::DeleteObject(titlebar);
	if (window != NIL)	Object::DeleteObject(window);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0xb309a(%rip), %rax     # 0x169818
movq %rax, (%rdi)
leaq 0x90(%rdi), %r14
cmpl $0x0, 0x98(%rdi)
jle 0xb67b5
xorl %ebp, %ebp
movq %r14, %rdi
movl %ebp, %esi
callq 0x5b074
movq (%rax), %rdi
testq %rdi, %rdi
je 0xb67ab
movq (%rdi), %rax
callq *0x8(%rax)
incl %ebp
cmpl 0x98(%rbx), %ebp
jl 0xb6793
movq %r14, %rdi
callq 0x5ada0
movq 0x88(%rbx), %rdi
testq %rdi, %rdi
je 0xb67ce
callq 0x58cc0
movq 0x80(%rbx), %rdi
testq %rdi, %rdi
je 0xb67df
callq 0x58cc0
movq %r14, %rdi
callq 0x5b0ee
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x59020
jmp 0xb67f5
movq %rax, %rdi
callq 0x5aeae
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/codecs.cpp
// Function: PCIIO::CompressPCI(smooth::IO::OutStream*)
Bool PCIIO::CompressPCI(PCIOut out)
{
	IO::FilterBZip2	*filter = NULL;

	palentries   = 0;
	bits	     = 0;
	bitssaa	     = 0;
	bitsnrle     = 0;
	bitssaanrle  = 0;

	previousLine = new Int [sizex];

	for (Int x = 0; x < sizex; x++) previousLine[x] = 0;
	for (Int x = 0; x < 338;   x++) palette[x]	= 0;

	if (compression == BZIP2)
	{
		filter = new IO::FilterBZip2();

		out->SetFilter(filter);
	}

	for (Int y = 0; y < sizey; y++) WriteLine(out, y);

	if (compression == BZIP2)
	{
		out->RemoveFilter();

		delete filter;
	}

	delete [] previousLine;

	return True;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %eax, %eax
movl %eax, 0xc003a(%rip)     # 0x176870
movl %eax, 0xc0038(%rip)     # 0x176874
movl %eax, 0xc0036(%rip)     # 0x176878
movl %eax, 0xc0034(%rip)     # 0x17687c
movl %eax, 0xc0032(%rip)     # 0x176880
movslq 0x10(%rdi), %r12
leaq (,%r12,4), %r15
testq %r12, %r12
movq $-0x1, %rdi
cmovnsq %r15, %rdi
callq 0x56670
movq %rax, 0xbf9dc(%rip)     # 0x176250
testq %r12, %r12
jle 0xb6886
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x55f20
leaq 0xbf9d3(%rip), %rdi     # 0x176260
xorl %r15d, %r15d
movl $0x548, %edx            # imm = 0x548
xorl %esi, %esi
callq 0x55f20
cmpl $0x4, 0x50(%r14)
jne 0xb68c4
movl $0x18, %edi
callq 0x556b0
movq %rax, %r15
movq %rax, %rdi
callq 0x58ff0
movq (%rbx), %rax
movq %rbx, %rdi
movq %r15, %rsi
callq *0x10(%rax)
cmpl $0x0, 0x14(%r14)
jle 0xb68e2
xorl %ebp, %ebp
movq %r14, %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0xb6934
incl %ebp
cmpl 0x14(%r14), %ebp
jl 0xb68cd
cmpl $0x4, 0x50(%r14)
jne 0xb6900
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
testq %r15, %r15
je 0xb6900
movq (%r15), %rax
movq %r15, %rdi
callq *0x8(%rax)
movq 0xbf949(%rip), %rdi     # 0x176250
testq %rdi, %rdi
je 0xb6911
callq 0x561e0
movb $0x1, %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x18, %esi
movq %r15, %rdi
callq 0x55480
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/codecs.cpp
// Function: PCIIO::DecompressPCI(smooth::IO::InStream*)
Bool PCIIO::DecompressPCI(PCIIn in)
{
	IO::FilterBZip2	*filter = NULL;

	palentries   = 0;
	bits	     = 0;
	bitssaa	     = 0;
	bitsnrle     = 0;
	bitssaanrle  = 0;

	previousLine = new Int [sizex];

	for (Int x = 0; x < sizex; x++) previousLine[x] = 0;
	for (Int x = 0; x < 338;   x++) palette[x]  = 0;

	if (compression == BZIP2)
	{
		filter = new IO::FilterBZip2();

		in->SetFilter(filter);
	}

	for (Int y = 0; y < sizey; y++) ReadLine(in, y);

	if (compression == BZIP2)
	{
		in->RemoveFilter();

		delete filter;
	}

	delete [] previousLine;

	return True;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %eax, %eax
movl %eax, 0xbf590(%rip)     # 0x176870
movl %eax, 0xbf58e(%rip)     # 0x176874
movl %eax, 0xbf58c(%rip)     # 0x176878
movl %eax, 0xbf58a(%rip)     # 0x17687c
movl %eax, 0xbf588(%rip)     # 0x176880
movslq 0x10(%rdi), %r12
leaq (,%r12,4), %r15
testq %r12, %r12
movq $-0x1, %rdi
cmovnsq %r15, %rdi
callq 0x56670
movq %rax, 0xbef32(%rip)     # 0x176250
testq %r12, %r12
jle 0xb7330
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x55f20
leaq 0xbef29(%rip), %rdi     # 0x176260
xorl %r15d, %r15d
movl $0x548, %edx            # imm = 0x548
xorl %esi, %esi
callq 0x55f20
cmpl $0x4, 0x50(%r14)
jne 0xb736e
movl $0x18, %edi
callq 0x556b0
movq %rax, %r15
movq %rax, %rdi
callq 0x58ff0
movq (%rbx), %rax
movq %rbx, %rdi
movq %r15, %rsi
callq *0x10(%rax)
cmpl $0x0, 0x14(%r14)
jle 0xb738c
xorl %ebp, %ebp
movq %r14, %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0xb73de
incl %ebp
cmpl 0x14(%r14), %ebp
jl 0xb7377
cmpl $0x4, 0x50(%r14)
jne 0xb73aa
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
testq %r15, %r15
je 0xb73aa
movq (%r15), %rax
movq %r15, %rdi
callq *0x8(%rax)
movq 0xbee9f(%rip), %rdi     # 0x176250
testq %rdi, %rdi
je 0xb73bb
callq 0x561e0
movb $0x1, %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x18, %esi
movq %r15, %rdi
callq 0x55480
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/codecs.cpp
// Function: GetRLE(int*, int, int, int)
int GetRLE(int line[], int sx, int x, int maxbits)
{
	if (x == sx - 1) return 0;

	int	 rle = 0;

	for (int i = x + 1; i < x + Math::Pow(2l, maxbits); i++)
	{
		if (line[i] == line[x]) rle++;
		else			break;

		if (i == sx - 1) break;
	}

	return rle;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, 0x4(%rsp)
movl %esi, %r15d
leal -0x1(%r15), %eax
xorl %r13d, %r13d
subl %edx, %eax
movl %eax, (%rsp)
je 0xb7d79
movl %edx, %r14d
movq %rdi, %r12
cvtsi2sd %edx, %xmm0
movsd %xmm0, 0x8(%rsp)
movslq %edx, %rbp
incl %r14d
leaq (%rdi,%rbp,4), %rbx
addq $0x4, %rbx
negl %r15d
addq %r14, %r15
xorl %r13d, %r13d
leal (%r14,%r13), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x10(%rsp)
movl $0x2, %edi
movl 0x4(%rsp), %esi
callq 0x56010
addsd 0x8(%rsp), %xmm0
ucomisd 0x10(%rsp), %xmm0
jbe 0xb7d79
movl (%rbx,%r13,4), %eax
cmpl (%r12,%rbp,4), %eax
jne 0xb7d79
incq %r13
movl %r15d, %eax
addl %r13d, %eax
jne 0xb7d31
movl (%rsp), %eax
movl %eax, %r13d
movl %r13d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/codecs.cpp
// Function: RotatePaletteEntry(int)
int RotatePaletteEntry(int entry)
{
	Int	 col = palette[entry];

	for (Int x = entry; x < palentries - 1; x++) palette[x] = palette[x + 1];

	palette[palentries - 1] = col;

	return 1;
}

// Assembly:
movslq %edi, %rcx
leaq 0xbd062(%rip), %rax     # 0x176260
movl (%rax,%rcx,4), %edx
movslq 0xbd668(%rip), %rsi     # 0x176870
leal -0x1(%rsi), %edi
cmpl %ecx, %edi
jle 0xb9221
incq %rcx
movl (%rax,%rcx,4), %edi
movl %edi, -0x4(%rax,%rcx,4)
incq %rcx
cmpq %rcx, %rsi
jne 0xb9212
movl %edx, -0x4(%rax,%rsi,4)
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/codecs.cpp
// Function: GetVRLE(int*, int*, int, int, int)
int GetVRLE(int line[], int prevline[], int sx, int x, int maxbits)
{
	if (x == sx - 1) return 0;

	int	 rle = 0;

	for (int i = x + 1; i < x + Math::Pow(2l, maxbits); i++)
	{
		if (line[i] == prevline[i]) rle++;
		else			    break;

		if (i == sx - 1) break;
	}

	return rle;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, 0xc(%rsp)
movq %rsi, 0x18(%rsp)
leal -0x1(%rdx), %eax
xorl %ebp, %ebp
subl %ecx, %eax
je 0xb92c7
movl %ecx, %r14d
movq %rdi, %r12
movl %eax, 0x8(%rsp)
cvtsi2sd %ecx, %xmm0
movsd %xmm0, 0x10(%rsp)
movslq %ecx, %r13
incq %r13
movl %ecx, %r15d
subl %edx, %r15d
xorl %ebp, %ebp
movl $0x1, %ebx
leal (%r14,%rbx), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x20(%rsp)
movl $0x2, %edi
movl 0xc(%rsp), %esi
callq 0x56010
addsd 0x10(%rsp), %xmm0
ucomisd 0x20(%rsp), %xmm0
jbe 0xb92c3
movl (%r12,%r13,4), %eax
movq 0x18(%rsp), %rcx
cmpl (%rcx,%r13,4), %eax
jne 0xb92c7
incl %ebp
incl %ebx
incq %r13
movl %r15d, %eax
addl %ebx, %eax
jne 0xb9273
movl 0x8(%rsp), %ebp
jmp 0xb92c7
decl %ebx
movl %ebx, %ebp
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/init.cpp
// Function: smooth::AddInitFunction(int (*)())
S::Int S::AddInitFunction(Int (*initFunction)())
{
	if (initFunction == NIL) return Error();

	if (initFunctions == NIL) initFunctions = new Array<Int (*)(), Void *>;

	initFunctions->Add(initFunction);

	return Success();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, (%rsp)
testq %rdi, %rdi
je 0xb9690
movq 0xbd2a4(%rip), %rbx     # 0x1768e8
testq %rbx, %rbx
jne 0xb9681
movl $0x58, %edi
callq 0x556b0
movq %rax, %rbx
movq %rax, %rdi
callq 0x55d90
leaq 0xa619b(%rip), %rax     # 0x15f800
movq %rax, 0x40(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rbx)
leaq 0xb0231(%rip), %rax     # 0x1698a8
movq %rax, (%rbx)
movq %rbx, 0xbd267(%rip)     # 0x1768e8
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x5aed8
xorl %eax, %eax
jmp 0xb9695
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movl $0x58, %esi
movq %rbx, %rdi
callq 0x55480
movq %r14, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/init.cpp
// Function: smooth::AddFreeFunction(int (*)())
S::Int S::AddFreeFunction(Int (*freeFunction)())
{
	if (freeFunction == NIL) return Error();

	if (freeFunctions == NIL) freeFunctions = new Array<Int (*)(), Void *>;

	freeFunctions->Add(freeFunction);

	return Success();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, (%rsp)
testq %rdi, %rdi
je 0xb9715
movq 0xbd227(%rip), %rbx     # 0x1768f0
testq %rbx, %rbx
jne 0xb9706
movl $0x58, %edi
callq 0x556b0
movq %rax, %rbx
movq %rax, %rdi
callq 0x55d90
leaq 0xa6116(%rip), %rax     # 0x15f800
movq %rax, 0x40(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rbx)
leaq 0xb01ac(%rip), %rax     # 0x1698a8
movq %rax, (%rbx)
movq %rbx, 0xbd1ea(%rip)     # 0x1768f0
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x5aed8
xorl %eax, %eax
jmp 0xb971a
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movl $0x58, %esi
movq %rbx, %rdi
callq 0x55480
movq %r14, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/init.cpp
// Function: smooth::Init()
S::Bool S::Init()
{
	if (initCount++) return True;

	/* Init system backends.
	 */
	if (Backends::Backend::InitBackends() == Error()) return False;

	/* Call registered init functions.
	 */
	foreach (Int (*initFunction)(), (*initFunctions))
	{
		if (initFunction() != Success())
		{
			/* Deinit system backends.
			 */
			Backends::Backend::DeinitBackends();

			return False;
		}
	}

#if defined __WIN32__
	if (hDllInstance == NIL) hDllInstance = hInstance;

	SMOOTHICON = (HICON) LoadImage(hDllInstance, MAKEINTRESOURCE(IDI_ICON), IMAGE_ICON, 0, 0, LR_DEFAULTSIZE | LR_LOADMAP3DCOLORS | LR_SHARED);

	if (LoadIconvDLL() == True) Setup::useIconv = True;

	use_iconv = (Setup::useIconv ? 1 : 0);
#endif

	/* Init internationalization system.
	 */
	I18n::Translator::defaultTranslator = new I18n::TranslatorInternal();
	I18n::Translator::defaultTranslator->SelectUserDefaultLanguage();

	Setup::rightToLeft = I18n::Translator::defaultTranslator->IsActiveLanguageRightToLeft();

	/* Finished initializing.
	 */
	initializing = False;

	/* Start waiting threads.
	 */
	for (Int i = 0; i < Object::GetNOfObjects(); i++)
	{
		Object	*object = Object::GetNthObject(i);

		if (object == NIL) continue;

		if (object->GetObjectType() == Threads::Thread::classID &&
		    ((Threads::Thread *) object)->GetStatus() == Threads::THREAD_STARTME) ((Threads::Thread *) object)->Start();
	}

	return True;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0xbd199(%rip), %eax     # 0x1768e0
leal 0x1(%rax), %ecx
movl %ecx, 0xbd190(%rip)     # 0x1768e0
movb $0x1, %bl
testl %eax, %eax
jne 0xb983b
callq 0x5a9f2
cmpl $-0x1, %eax
je 0xb9839
movq 0xbd179(%rip), %rdi     # 0x1768e8
cmpl $0x0, 0x8(%rdi)
jle 0xb979d
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
incl %ebp
movl %ebp, %esi
callq 0x60a9a
callq *(%rax)
testl %eax, %eax
jne 0xb9834
movq 0xbd154(%rip), %rdi     # 0x1768e8
movl 0x8(%rdi), %eax
decl %eax
cmpl %eax, %ebp
jl 0xb977a
movl $0x80, %edi
callq 0x556b0
movq %rax, %r14
movq %rax, %rdi
callq 0x9d540
movq 0xb1c2f(%rip), %r15     # 0x16b3e8
movq %r14, (%r15)
movq %r14, %rdi
callq 0x57430
movq (%r15), %rdi
callq 0x55490
movq 0xb230d(%rip), %rcx     # 0x16bae0
movb %al, (%rcx)
movb $0x0, 0xb4acc(%rip)     # 0x16e2a8
callq 0x575e0
testl %eax, %eax
jle 0xb983b
movq 0xb2244(%rip), %rax     # 0x16ba30
xorl %ebp, %ebp
movswl (%rax), %r14d
movl %ebp, %edi
callq 0x58800
testq %rax, %rax
je 0xb9827
movq %rax, %r15
leaq 0x20(%rax), %rdi
movl %r14d, %esi
callq 0x57520
testb %al, %al
je 0xb9827
movq %r15, %rdi
callq 0x567a0
cmpw $0x3, %ax
jne 0xb9827
movq %r15, %rdi
callq 0x57c00
incl %ebp
callq 0x575e0
cmpl %eax, %ebp
jl 0xb97f2
jmp 0xb983b
callq 0x5ab42
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x80, %esi
movq %r14, %rdi
callq 0x55480
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/pciio.cpp
// Function: PCIIO::PCIIO(smooth::GUI::Bitmap const&)
PCIIO::PCIIO(const S::GUI::Bitmap &b)
{
	cfNames[Color::RGB]	= "RGB";
	cfNames[Color::RGBA]	= "RGA";
	cfNames[Color::HSV]	= "HSV";
	cfNames[Color::YUV]	= "YUV";
	cfNames[Color::CMY]	= "CMY";
	cfNames[Color::CMYK]	= "CMK";
	cfNames[Color::GRAY]	= "GRY";

	cpNames[RAW]		= "RAW";
	cpNames[PCI]		= "PCI";
	cpNames[RLE]		= "RLE";
	cpNames[JPEG]		= "JPG";
	cpNames[BZIP2]		= "BZ2";

	majorversion		= PCIMajorVersion;
	minorversion		= PCIMinorVersion;
	compression		= RAW;
	colorspace		= Color::RGB;
	quality			= 100;
	description		= NIL;

	dpix			= 75;
	dpiy			= 75;
	bpcc			= 8;
	overwrite		= True;
	imageid			= 0;
	imagename		= NIL;
	rlebits			= 8;

	bmp			= b;

	sizex			= bmp.GetSize().cx;
	sizey			= bmp.GetSize().cy;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r13
movq %rdi, %r15
leaq 0x8(%rdi), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58950
leaq 0x20(%r15), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0x38(%r15), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0xbce9c(%rip), %rdi     # 0x176900
leaq 0x5935e(%rip), %rsi     # 0x112dc9
callq 0x55f40
leaq 0xbcea1(%rip), %rdi     # 0x176918
leaq 0x5934f(%rip), %rsi     # 0x112dcd
callq 0x55f40
leaq 0xbcea6(%rip), %rdi     # 0x176930
leaq 0x59340(%rip), %rsi     # 0x112dd1
callq 0x55f40
leaq 0xbceab(%rip), %rdi     # 0x176948
leaq 0x59331(%rip), %rsi     # 0x112dd5
callq 0x55f40
leaq 0xbceb0(%rip), %rdi     # 0x176960
leaq 0x59322(%rip), %rsi     # 0x112dd9
callq 0x55f40
leaq 0xbceb5(%rip), %rdi     # 0x176978
leaq 0x59313(%rip), %rsi     # 0x112ddd
callq 0x55f40
leaq 0xbceba(%rip), %rdi     # 0x176990
leaq 0x59304(%rip), %rsi     # 0x112de1
callq 0x55f40
leaq 0xbcec7(%rip), %rdi     # 0x1769b0
leaq 0x592f5(%rip), %rsi     # 0x112de5
callq 0x55f40
leaq 0xbcecc(%rip), %rdi     # 0x1769c8
leaq 0x592e6(%rip), %rsi     # 0x112de9
callq 0x55f40
leaq 0xbcee9(%rip), %rdi     # 0x1769f8
leaq 0x592d7(%rip), %rsi     # 0x112ded
callq 0x55f40
leaq 0xbcebe(%rip), %rdi     # 0x1769e0
leaq 0x592c8(%rip), %rsi     # 0x112df1
callq 0x55f40
leaq 0xbcedb(%rip), %rdi     # 0x176a10
leaq 0x592b9(%rip), %rsi     # 0x112df5
callq 0x55f40
movabsq $0x200000001, %rax      # imm = 0x200000001
movq %rax, (%r15)
movl $0x0, 0x50(%r15)
movabsq $0x6400000000, %rax     # imm = 0x6400000000
movq %rax, 0x58(%r15)
movq %r14, %rdi
xorl %esi, %esi
callq 0x579e0
movabsq $0x4b0000004b, %rax     # imm = 0x4B0000004B
movq %rax, 0x18(%r15)
movl $0x8, 0x54(%r15)
movb $0x1, 0x64(%r15)
movl $0x0, 0x68(%r15)
movq %r12, %rdi
xorl %esi, %esi
callq 0x579e0
movl $0x8, 0x60(%r15)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x582c0
movq %rbx, %rdi
callq 0x58410
movl (%rax), %eax
movl %eax, 0x10(%r15)
movq %rbx, %rdi
callq 0x58410
movl 0x4(%rax), %eax
movl %eax, 0x14(%r15)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r15
jmp 0xb9bea
movq %rax, %r15
jmp 0xb9bf2
movq %rax, %r15
movq %r12, %rdi
callq 0x59200
movq %r14, %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x59148
movq %r15, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/pciio.cpp
// Function: PCIIO::PCIIO()
PCIIO::PCIIO()
{
	cfNames[Color::RGB]	= "RGB";
	cfNames[Color::RGBA]	= "RGA";
	cfNames[Color::HSV]	= "HSV";
	cfNames[Color::YUV]	= "YUV";
	cfNames[Color::CMY]	= "CMY";
	cfNames[Color::CMYK]	= "CMK";
	cfNames[Color::GRAY]	= "GRY";

	cpNames[RAW]		= "RAW";
	cpNames[PCI]		= "PCI";
	cpNames[RLE]		= "RLE";
	cpNames[JPEG]		= "JPG";
	cpNames[BZIP2]		= "BZ2";

	majorversion		= PCIMajorVersion;
	minorversion		= PCIMinorVersion;
	compression		= RAW;
	colorspace		= Color::RGB;
	quality			= 100;
	description		= NIL;

	dpix			= 75;
	dpiy			= 75;
	bpcc			= 8;
	overwrite		= True;
	imageid			= 0;
	imagename		= NIL;
	rlebits			= 8;

	sizex			= 0;
	sizey			= 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
leaq 0x8(%rdi), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58950
leaq 0x20(%r15), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0x38(%r15), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0xbccc2(%rip), %rdi     # 0x176900
leaq 0x59184(%rip), %rsi     # 0x112dc9
callq 0x55f40
leaq 0xbccc7(%rip), %rdi     # 0x176918
leaq 0x59175(%rip), %rsi     # 0x112dcd
callq 0x55f40
leaq 0xbcccc(%rip), %rdi     # 0x176930
leaq 0x59166(%rip), %rsi     # 0x112dd1
callq 0x55f40
leaq 0xbccd1(%rip), %rdi     # 0x176948
leaq 0x59157(%rip), %rsi     # 0x112dd5
callq 0x55f40
leaq 0xbccd6(%rip), %rdi     # 0x176960
leaq 0x59148(%rip), %rsi     # 0x112dd9
callq 0x55f40
leaq 0xbccdb(%rip), %rdi     # 0x176978
leaq 0x59139(%rip), %rsi     # 0x112ddd
callq 0x55f40
leaq 0xbcce0(%rip), %rdi     # 0x176990
leaq 0x5912a(%rip), %rsi     # 0x112de1
callq 0x55f40
leaq 0xbcced(%rip), %rdi     # 0x1769b0
leaq 0x5911b(%rip), %rsi     # 0x112de5
callq 0x55f40
leaq 0xbccf2(%rip), %rdi     # 0x1769c8
leaq 0x5910c(%rip), %rsi     # 0x112de9
callq 0x55f40
leaq 0xbcd0f(%rip), %rdi     # 0x1769f8
leaq 0x590fd(%rip), %rsi     # 0x112ded
callq 0x55f40
leaq 0xbcce4(%rip), %rdi     # 0x1769e0
leaq 0x590ee(%rip), %rsi     # 0x112df1
callq 0x55f40
leaq 0xbcd01(%rip), %rdi     # 0x176a10
leaq 0x590df(%rip), %rsi     # 0x112df5
callq 0x55f40
movabsq $0x200000001, %rax      # imm = 0x200000001
movq %rax, (%r15)
movl $0x0, 0x50(%r15)
movabsq $0x6400000000, %rax     # imm = 0x6400000000
movq %rax, 0x58(%r15)
movq %r14, %rdi
xorl %esi, %esi
callq 0x579e0
movabsq $0x4b0000004b, %rax     # imm = 0x4B0000004B
movq %rax, 0x18(%r15)
movl $0x8, 0x54(%r15)
movb $0x1, 0x64(%r15)
movl $0x0, 0x68(%r15)
movq %r12, %rdi
xorl %esi, %esi
callq 0x579e0
movl $0x8, 0x60(%r15)
movq $0x0, 0x10(%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r15
jmp 0xb9da6
movq %rax, %r15
jmp 0xb9dae
movq %rax, %r15
movq %r12, %rdi
callq 0x59200
movq %r14, %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x59148
movq %r15, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/pciio.cpp
// Function: PCIIO::WriteIMAGTAG(smooth::IO::OutStream*)
bool PCIIO::WriteIMAGTAG(PCIOut out)
{
	out->OutputString("IMAG");
	out->OutputNumber(majorversion, 1);
	out->OutputNumber(minorversion, 1);
	out->OutputNumber(imageid, 4);
	out->OutputNumber(0 + 14, 4);

	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x58d52(%rip), %rsi     # 0x112dfe
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x579f0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x55ab0
leaq 0x8(%rsp), %rdi
callq 0x59200
movslq (%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x55750
movslq 0x4(%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x55750
movslq 0x68(%r14), %rsi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x55750
movl $0xe, %esi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x55750
movb $0x1, %al
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/pciio.cpp
// Function: PCIIO::WriteRESOTAG(smooth::IO::OutStream*)
bool PCIIO::WriteRESOTAG(PCIOut out)
{
	out->OutputString("RESO");
	out->OutputNumber(majorversion, 1);
	out->OutputNumber(minorversion, 1);
	out->OutputNumber(imageid, 4);
	out->OutputNumber(16 + 14, 4);
	out->OutputNumber(sizex, 4);
	out->OutputNumber(sizey, 4);
	out->OutputNumber(dpix, 4);
	out->OutputNumber(dpiy, 4);

	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x58cb9(%rip), %rsi     # 0x112e03
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x579f0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x55ab0
leaq 0x8(%rsp), %rdi
callq 0x59200
movslq (%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x55750
movslq 0x4(%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x55750
movslq 0x68(%r14), %rsi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x55750
movl $0x1e, %esi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x55750
movslq 0x10(%r14), %rsi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x55750
movslq 0x14(%r14), %rsi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x55750
movslq 0x18(%r14), %rsi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x55750
movslq 0x1c(%r14), %rsi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x55750
movb $0x1, %al
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/pciio.cpp
// Function: PCIIO::WriteFORMTAG(smooth::IO::OutStream*)
bool PCIIO::WriteFORMTAG(PCIOut out)
{
	out->OutputString("FORM");
	out->OutputNumber(majorversion, 1);
	out->OutputNumber(minorversion, 1);
	out->OutputNumber(imageid, 4);

	if (compression == RLE)	out->OutputNumber(6 + 14, 4);
	else			out->OutputNumber(5 + 14, 4);

	out->OutputString(cfNames[colorspace]);
	out->OutputNumber(bpcc, 1);
	out->OutputNumber(compression, 1);

	if (compression == RLE)	out->OutputNumber(rlebits, 1);

	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x6fc91(%rip), %rsi     # 0x129ebd
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x579f0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x55ab0
leaq 0x8(%rsp), %rdi
callq 0x59200
movslq (%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x55750
movslq 0x4(%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x55750
movslq 0x68(%r14), %rsi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x55750
xorl %esi, %esi
cmpl $0x3, 0x50(%r14)
sete %sil
addq $0x13, %rsi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x55750
movl 0x58(%r14), %eax
leaq (%rax,%rax,2), %rax
leaq 0xbc655(%rip), %rcx     # 0x176900
leaq (%rcx,%rax,8), %rsi
movq %rbx, %rdi
callq 0x55ab0
movslq 0x54(%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x55750
movslq 0x50(%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x55750
cmpl $0x3, 0x50(%r14)
jne 0xba2f1
movslq 0x60(%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x55750
movb $0x1, %al
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/pciio.cpp
// Function: PCIIO::WriteDESCTAG(smooth::IO::OutStream*)
bool PCIIO::WriteDESCTAG(PCIOut out)
{
	out->OutputString("DESC");
	out->OutputNumber(majorversion, 1);
	out->OutputNumber(minorversion, 1);
	out->OutputNumber(imageid, 4);
	out->OutputNumber(description.Length() + 14, 4);
	out->OutputString(description);

	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x58ae0(%rip), %rsi     # 0x112e08
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x579f0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x55ab0
leaq 0x8(%rsp), %rdi
callq 0x59200
movslq (%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x55750
movslq 0x4(%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x55750
movslq 0x68(%r14), %rsi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x55750
addq $0x20, %r14
movq %r14, %rdi
callq 0x57180
addl $0xe, %eax
movslq %eax, %rsi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x55750
movq %rbx, %rdi
movq %r14, %rsi
callq 0x55ab0
movb $0x1, %al
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/pciio.cpp
// Function: PCIIO::WriteDATATAG(smooth::IO::OutStream*)
bool PCIIO::WriteDATATAG(PCIOut out)
{
	out->OutputString("DATA");
	out->OutputNumber(majorversion, 1);
	out->OutputNumber(minorversion, 1);
	out->OutputNumber(imageid, 4);

	int	 dpos = out->GetPos();

	out->OutputNumber(0 + 14, 4);

	CompressPCI(out);

	out->RelSeek(0);

	int	 npos = out->GetPos();
	int	 dsize = npos - dpos - 4;

	out->Seek(dpos);
	out->OutputNumber(dsize + 14, 4);
	out->Seek(npos);

	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x58978(%rip), %rsi     # 0x112e0d
movq %rsp, %r15
movq %r15, %rdi
callq 0x579f0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x55ab0
movq %rsp, %rdi
callq 0x59200
movslq (%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x55750
movslq 0x4(%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x55750
movslq 0x68(%r14), %rsi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x55750
cmpw $0x0, 0x8(%rbx)
je 0xba4f2
movq 0x48(%rbx), %r15
jmp 0xba502
movw $0x5, 0xf8(%rbx)
movq $-0x1, %r15
movl $0xe, %esi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x55750
movq %r14, %rdi
movq %rbx, %rsi
callq 0xb6820
movq (%rbx), %rax
movq %rbx, %rdi
xorl %esi, %esi
callq *0x30(%rax)
cmpw $0x0, 0x8(%rbx)
je 0xba537
movq 0x48(%rbx), %r14
jmp 0xba547
movw $0x5, 0xf8(%rbx)
movq $-0x1, %r14
movl %r14d, %ebp
subl %r15d, %ebp
movslq %r15d, %rsi
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x28(%rax)
addl $0xa, %ebp
movslq %ebp, %rsi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x55750
movslq %r14d, %rsi
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x28(%rax)
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/pciio.cpp
// Function: PCIIO::ReadPCI(smooth::IO::InStream*)
bool PCIIO::ReadPCI(PCIIn instream)
{
	if (instream->GetLastError() != IO::IO_ERROR_OK) return false;

	if (imagename != NIL) FindImageID(instream);

	if (ReadPCIFTAG(instream) == false) return false;
	if (ReadIMAGTAG(instream) == false) return false;
	if (ReadRESOTAG(instream) == false) return false;
	if (ReadFORMTAG(instream) == false) return false;

	ReadDESCTAG(instream);

	if (ReadDATATAG(instream) == false) return false;

	return true;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpw $0x0, 0xf8(%rsi)
jne 0xba61f
movq %rsi, %rbx
movq %rdi, %r14
addq $0x38, %rdi
xorl %esi, %esi
callq 0x56bd0
testb %al, %al
je 0xba5c6
movq %r14, %rdi
movq %rbx, %rsi
callq 0xba62a
movq %r14, %rdi
movq %rbx, %rsi
callq 0xba7c2
testb %al, %al
je 0xba61f
movq %r14, %rdi
movq %rbx, %rsi
callq 0xba936
testb %al, %al
je 0xba61f
movq %r14, %rdi
movq %rbx, %rsi
callq 0xbaaa2
testb %al, %al
je 0xba61f
movq %r14, %rdi
movq %rbx, %rsi
callq 0xbac52
testb %al, %al
je 0xba61f
movq %r14, %rdi
movq %rbx, %rsi
callq 0xbae88
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xbb018
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/pciio.cpp
// Function: PCIIO::FindImageID(smooth::IO::InStream*)
bool PCIIO::FindImageID(PCIIn in)
{
	int	 imageid = 0;

	in->Seek(0);

	do
	{
		static String	 nameTag = "NAME";

		if (in->InputString(4).Compare(nameTag) == 0)
		{
			in->RelSeek(2);

			imageid = in->InputNumber(4);

			if (in->InputString(in->InputNumber(4) - 14).Compare(imagename) == 0)
			{
				this->imageid = imageid;

				return true;
			}
		}
		else
		{
			in->RelSeek(6);

			in->RelSeek(in->InputNumber(4) - 14);
		}
	}
	while (in->Size() > in->GetPos());

	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
movq %rsi, %rdi
xorl %esi, %esi
callq *0x28(%rax)
movq %rbx, 0x8(%rsp)
leaq 0x38(%rbx), %r15
leaq 0xbc4af(%rip), %r13     # 0x176b08
leaq 0x10(%rsp), %r12
movb 0xbc4bc(%rip), %al      # 0x176b20
testb %al, %al
je 0xba728
movq %r12, %rdi
movq %r14, %rsi
movl $0x4, %edx
callq 0x589a0
movq %r12, %rdi
movq %r13, %rsi
callq 0x585c0
movl %eax, %ebp
movq %r12, %rdi
callq 0x59200
movq (%r14), %rax
movq 0x30(%rax), %rax
testl %ebp, %ebp
je 0xba6c2
movl $0x6, %esi
movq %r14, %rdi
callq *%rax
movq %r14, %rdi
movl $0x4, %esi
callq 0x55e90
leaq -0xe(%rax), %rsi
movq (%r14), %rax
movq %r14, %rdi
callq *0x30(%rax)
jmp 0xba710
movl $0x2, %esi
movq %r14, %rdi
callq *%rax
movq %r14, %rdi
movl $0x4, %esi
callq 0x55e90
movq %rax, %rbp
movq %r14, %rdi
movl $0x4, %esi
callq 0x55e90
leal -0xe(%rax), %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x589a0
movq %r12, %rdi
movq %r15, %rsi
callq 0x585c0
movl %eax, %ebx
movq %r12, %rdi
callq 0x59200
testl %ebx, %ebx
je 0xba78d
cmpw $0x0, 0x8(%r14)
je 0xba772
movq 0x10(%r14), %rax
cmpq 0x48(%r14), %rax
jg 0xba65e
jmp 0xba77c
leaq 0xbc3f1(%rip), %rdi     # 0x176b20
callq 0x56120
testl %eax, %eax
je 0xba66c
movq %r13, %rdi
leaq 0x58ca4(%rip), %rsi     # 0x1133ea
callq 0x579f0
movq 0xb17de(%rip), %rdi     # 0x16bf30
movq %r13, %rsi
leaq 0xb3924(%rip), %rdx     # 0x16e080
callq 0x57e10
leaq 0xbc3b8(%rip), %rdi     # 0x176b20
callq 0x56b80
jmp 0xba66c
movw $0x5, 0xf8(%r14)
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %rax
movl %ebp, 0x68(%rax)
movb $0x1, %al
jmp 0xba77e
movq %rax, %rbx
leaq 0xbc37d(%rip), %rdi     # 0x176b20
callq 0x56420
jmp 0xba7b9
jmp 0xba7ac
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/pciio.cpp
// Function: PCIIO::ReadPCIFTAG(smooth::IO::InStream*)
bool PCIIO::ReadPCIFTAG(PCIIn in)
{
	in->Seek(0);

	do
	{
		static String	 pcifTag = "PCIF";

		if (in->InputString(4).Compare(pcifTag) == 0)
		{
			majorversion = in->InputNumber(1);
			minorversion = in->InputNumber(1);

			if (in->InputNumber(4) != -1)	return false;
			if (in->InputNumber(4) != 14)	return false;
			else				return true;
		}
		else
		{
			in->RelSeek(6);

			in->RelSeek(in->InputNumber(4) - 14);
		}
	}
	while (in->Size() > in->GetPos());

	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rax
movq %rsi, %rdi
xorl %esi, %esi
callq *0x28(%rax)
leaq 0xbc240(%rip), %r12     # 0x176a28
leaq 0xb3891(%rip), %r15     # 0x16e080
movq %rsp, %r13
movb 0xbc248(%rip), %al      # 0x176a40
testb %al, %al
je 0xba86b
movq %r13, %rdi
movq %rbx, %rsi
movl $0x4, %edx
callq 0x589a0
movq %r13, %rdi
movq %r12, %rsi
callq 0x585c0
movl %eax, %ebp
movq %r13, %rdi
callq 0x59200
testl %ebp, %ebp
je 0xba8ad
movq (%rbx), %rax
movl $0x6, %esi
movq %rbx, %rdi
callq *0x30(%rax)
movq %rbx, %rdi
movl $0x4, %esi
callq 0x55e90
leaq -0xe(%rax), %rsi
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x30(%rax)
cmpw $0x0, 0x8(%rbx)
je 0xba8f7
movq 0x10(%rbx), %rax
cmpq 0x48(%rbx), %rax
jg 0xba7f2
jmp 0xba900
leaq 0xbc1ce(%rip), %rdi     # 0x176a40
callq 0x56120
testl %eax, %eax
je 0xba7fc
movq %r12, %rdi
leaq 0x58574(%rip), %rsi     # 0x112df9
callq 0x579f0
movq 0xb169f(%rip), %rdi     # 0x16bf30
movq %r12, %rsi
movq %r15, %rdx
callq 0x57e10
leaq 0xbc19d(%rip), %rdi     # 0x176a40
callq 0x56b80
jmp 0xba7fc
movq %rbx, %rdi
movl $0x1, %esi
callq 0x55e90
movl %eax, (%r14)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x55e90
movl %eax, 0x4(%r14)
movq %rbx, %rdi
movl $0x4, %esi
callq 0x55e90
cmpq $-0x1, %rax
jne 0xba900
movq %rbx, %rdi
movl $0x4, %esi
callq 0x55e90
cmpq $0xe, %rax
sete %al
jmp 0xba902
movw $0x5, 0xf8(%rbx)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xbc125(%rip), %rdi     # 0x176a40
callq 0x56420
jmp 0xba92d
movq %rax, %rbx
movq %rsp, %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/pciio.cpp
// Function: PCIIO::ReadIMAGTAG(smooth::IO::InStream*)
bool PCIIO::ReadIMAGTAG(PCIIn in)
{
	in->Seek(0);

	do
	{
		static String	 imagTag = "IMAG";

		if (in->InputString(4).Compare(imagTag) == 0)
		{
			in->RelSeek(2);

			if (in->InputNumber(4) == imageid)
			{
				if (in->InputNumber(4) != 14)	return false;
				else				return true;
			}
			else
			{
				in->RelSeek(in->InputNumber(4) - 14);
			}
		}
		else
		{
			in->RelSeek(6);

			in->RelSeek(in->InputNumber(4) - 14);
		}
	}
	while (in->Size() > in->GetPos());

	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rax
movq %rsi, %rdi
xorl %esi, %esi
callq *0x28(%rax)
leaq 0xbc0ec(%rip), %r12     # 0x176a48
movq %rsp, %r13
movb 0xbc0fb(%rip), %al      # 0x176a60
testb %al, %al
je 0xbaa11
movq %r13, %rdi
movq %rbx, %rsi
movl $0x4, %edx
callq 0x589a0
movq %r13, %rdi
movq %r12, %rsi
callq 0x585c0
movl %eax, %ebp
movq %r13, %rdi
callq 0x59200
movq (%rbx), %rax
movq 0x30(%rax), %rax
testl %ebp, %ebp
je 0xba9b6
movl $0x6, %esi
movq %rbx, %rdi
callq *%rax
movq %rbx, %rdi
movl $0x4, %esi
callq 0x55e90
jmp 0xba9ea
movl $0x2, %esi
movq %rbx, %rdi
callq *%rax
movq %rbx, %rdi
movl $0x4, %esi
callq 0x55e90
movq %rax, %rbp
movslq 0x68(%r14), %r15
movq %rbx, %rdi
movl $0x4, %esi
callq 0x55e90
cmpq %r15, %rbp
je 0xbaa75
addq $-0xe, %rax
movq (%rbx), %rcx
movq %rbx, %rdi
movq %rax, %rsi
callq *0x30(%rcx)
cmpw $0x0, 0x8(%rbx)
je 0xbaa5b
movq 0x10(%rbx), %rax
cmpq 0x48(%rbx), %rax
jg 0xba95f
jmp 0xbaa64
leaq 0xbc048(%rip), %rdi     # 0x176a60
callq 0x56120
testl %eax, %eax
je 0xba96d
movq %r12, %rdi
leaq 0x583cf(%rip), %rsi     # 0x112dfe
callq 0x579f0
movq 0xb14f5(%rip), %rdi     # 0x16bf30
movq %r12, %rsi
leaq 0xb363b(%rip), %rdx     # 0x16e080
callq 0x57e10
leaq 0xbc00f(%rip), %rdi     # 0x176a60
callq 0x56b80
jmp 0xba96d
movw $0x5, 0xf8(%rbx)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0xe, %rax
sete %al
jmp 0xbaa66
movq %rax, %rbx
leaq 0xbbfd8(%rip), %rdi     # 0x176a60
callq 0x56420
jmp 0xbaa9a
movq %rax, %rbx
movq %rsp, %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/pciio.cpp
// Function: PCIIO::ReadRESOTAG(smooth::IO::InStream*)
bool PCIIO::ReadRESOTAG(PCIIn in)
{
	in->Seek(0);

	do
	{
		static String	 resoTag = "RESO";

		if (in->InputString(4).Compare(resoTag) == 0)
		{
			in->RelSeek(2);

			if (in->InputNumber(4) == imageid)
			{
				if (in->InputNumber(4) != 30)	return false;
				else
				{
					sizex = in->InputNumber(4);
					sizey = in->InputNumber(4);
					dpix = in->InputNumber(4);
					dpiy = in->InputNumber(4);

					return true;
				}
			}
			else
			{
				in->RelSeek(in->InputNumber(4) - 14);
			}
		}
		else
		{
			in->RelSeek(6);

			in->RelSeek(in->InputNumber(4) - 14);
		}
	}
	while (in->Size() > in->GetPos());

	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
movq %rsi, %rdi
xorl %esi, %esi
callq *0x28(%rax)
leaq 0xbbfa0(%rip), %r12     # 0x176a68
movq %rsp, %r13
movb 0xbbfaf(%rip), %al      # 0x176a80
testb %al, %al
je 0xbab7e
movq %r13, %rdi
movq %r14, %rsi
movl $0x4, %edx
callq 0x589a0
movq %r13, %rdi
movq %r12, %rsi
callq 0x585c0
movl %eax, %ebp
movq %r13, %rdi
callq 0x59200
movq (%r14), %rax
movq 0x30(%rax), %rax
testl %ebp, %ebp
je 0xbab22
movl $0x6, %esi
movq %r14, %rdi
callq *%rax
movq %r14, %rdi
movl $0x4, %esi
callq 0x55e90
jmp 0xbab56
movl $0x2, %esi
movq %r14, %rdi
callq *%rax
movq %r14, %rdi
movl $0x4, %esi
callq 0x55e90
movq %rax, %rbp
movslq 0x68(%rbx), %r15
movq %r14, %rdi
movl $0x4, %esi
callq 0x55e90
cmpq %r15, %rbp
je 0xbabe3
addq $-0xe, %rax
movq (%r14), %rcx
movq %r14, %rdi
movq %rax, %rsi
callq *0x30(%rcx)
cmpw $0x0, 0x8(%r14)
je 0xbabc8
movq 0x10(%r14), %rax
cmpq 0x48(%r14), %rax
jg 0xbaacb
jmp 0xbabd2
leaq 0xbbefb(%rip), %rdi     # 0x176a80
callq 0x56120
testl %eax, %eax
je 0xbaad9
movq %r12, %rdi
leaq 0x58267(%rip), %rsi     # 0x112e03
callq 0x579f0
movq 0xb1388(%rip), %rdi     # 0x16bf30
movq %r12, %rsi
leaq 0xb34ce(%rip), %rdx     # 0x16e080
callq 0x57e10
leaq 0xbbec2(%rip), %rdi     # 0x176a80
callq 0x56b80
jmp 0xbaad9
movw $0x5, 0xf8(%r14)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x1e, %rax
jne 0xbabd2
movq %r14, %rdi
movl $0x4, %esi
callq 0x55e90
movl %eax, 0x10(%rbx)
movq %r14, %rdi
movl $0x4, %esi
callq 0x55e90
movl %eax, 0x14(%rbx)
movq %r14, %rdi
movl $0x4, %esi
callq 0x55e90
movl %eax, 0x18(%rbx)
movq %r14, %rdi
movl $0x4, %esi
callq 0x55e90
movl %eax, 0x1c(%rbx)
movb $0x1, %al
jmp 0xbabd4
movq %rax, %rbx
leaq 0xbbe49(%rip), %rdi     # 0x176a80
callq 0x56420
jmp 0xbac49
movq %rax, %rbx
movq %rsp, %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/misc/pciio.cpp
// Function: PCIIO::ReadDESCTAG(smooth::IO::InStream*)
bool PCIIO::ReadDESCTAG(PCIIn in)
{
	in->Seek(0);

	do
	{
		static String	 descTag = "DESC";

		if (in->InputString(4).Compare(descTag) == 0)
		{
			in->RelSeek(2);

			if (in->InputNumber(4) == imageid)
			{
				description = in->InputString(in->InputNumber(4) - 14);

				return true;
			}
			else
			{
				in->RelSeek(in->InputNumber(4) - 14);
			}
		}
		else
		{
			in->RelSeek(6);

			in->RelSeek(in->InputNumber(4) - 14);
		}
	}
	while (in->Size() > in->GetPos());

	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
movq %rsi, %rdi
xorl %esi, %esi
callq *0x28(%rax)
leaq 0xbbbfa(%rip), %r12     # 0x176aa8
leaq 0xb31cb(%rip), %r15     # 0x16e080
movq %rsp, %r13
movb 0xbbc02(%rip), %al      # 0x176ac0
testb %al, %al
je 0xbaf58
movq %r13, %rdi
movq %r14, %rsi
movl $0x4, %edx
callq 0x589a0
movq %r13, %rdi
movq %r12, %rsi
callq 0x585c0
movl %eax, %ebp
movq %r13, %rdi
callq 0x59200
movq (%r14), %rax
movq 0x30(%rax), %rax
testl %ebp, %ebp
je 0xbaf02
movl $0x6, %esi
movq %r14, %rdi
callq *%rax
jmp 0xbaf26
movl $0x2, %esi
movq %r14, %rdi
callq *%rax
movq %r14, %rdi
movl $0x4, %esi
callq 0x55e90
movslq 0x68(%rbx), %rcx
cmpq %rcx, %rax
je 0xbafb9
movq %r14, %rdi
movl $0x4, %esi
callq 0x55e90
leaq -0xe(%rax), %rsi
movq (%r14), %rax
movq %r14, %rdi
callq *0x30(%rax)
cmpw $0x0, 0x8(%r14)
je 0xbaf9e
movq 0x10(%r14), %rax
cmpq 0x48(%r14), %rax
jg 0xbaeb8
jmp 0xbafa8
leaq 0xbbb61(%rip), %rdi     # 0x176ac0
callq 0x56120
testl %eax, %eax
je 0xbaec6
movq %r12, %rdi
leaq 0x57e92(%rip), %rsi     # 0x112e08
callq 0x579f0
movq 0xb0fae(%rip), %rdi     # 0x16bf30
movq %r12, %rsi
movq %r15, %rdx
callq 0x57e10
leaq 0xbbb2c(%rip), %rdi     # 0x176ac0
callq 0x56b80
jmp 0xbaec6
movw $0x5, 0xf8(%r14)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movl $0x4, %esi
callq 0x55e90
leal -0xe(%rax), %edx
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x589a0
addq $0x20, %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x555f0
movq %rsp, %rdi
callq 0x59200
movb $0x1, %al
jmp 0xbafaa
movq %rax, %rbx
leaq 0xbbac4(%rip), %rdi     # 0x176ac0
callq 0x56420
jmp 0xbb010
jmp 0xbb005
movq %rax, %rbx
movq %rsp, %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090