LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/config.cpp
// Function: smooth::Configuration::GetIntValue(smooth::String const&, smooth::String const&, int)
S::Int S::Configuration::GetIntValue(const String &section, const String &name, Int defValue)
{
	if (configFile == NIL) return defValue;

	XML::Node	*value = FindValueNode(section, name);

	if (value != NIL)
	{
		return value->GetContent().ToInt();
	}
	else
	{
		XML::Node	*configuration = FindConfigurationNode(activeConfig);
		XML::Attribute	*attributeInheriting = configuration->GetAttributeByName(AttributeInheritingID);

		if (attributeInheriting != NIL)
		{
			String	 oConfig = activeConfig;

			activeConfig = attributeInheriting->GetContent();

			Int	 retVal = GetIntValue(section, name, defValue);

			activeConfig = oConfig;

			return retVal;
		}

		return defValue;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %ebx
cmpq $0x0, 0x30(%rdi)
je 0xa3961
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
callq 0x57190
testq %rax, %rax
je 0xa38f7
movq %rax, %rdi
callq 0x58e00
movq %rax, %rdi
callq 0x568c0
movq %rax, %rbx
jmp 0xa3961
leaq 0x18(%r12), %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x576f0
leaq 0xcb482(%rip), %rsi     # 0x16ed90
movq %rax, %rdi
callq 0x58d10
testq %rax, %rax
je 0xa3961
movq %rax, %rbp
movq %rsp, %rdi
movq %r13, %rsi
callq 0x570b0
movq %rbp, %rdi
callq 0x55720
movq %r13, %rdi
movq %rax, %rsi
callq 0x555f0
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x56b10
movl %eax, %ebx
movq %rsp, %rsi
movq %r13, %rdi
callq 0x555f0
movq %rsp, %rdi
callq 0x59200
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa3974
movq %rax, %rbx
movq %rsp, %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/config.cpp
// Function: smooth::Configuration::FindValueNode(smooth::String const&, smooth::String const&) const
S::XML::Node *S::Configuration::FindValueNode(const String &sect, const String &name) const
{
	XML::Node	*section = FindSectionNode(sect);

	if (section == NIL) return NIL;

	for (Int i = 0; i < section->GetNOfNodes(); i++)
	{
		XML::Node	*node = section->GetNthNode(i);
		XML::Attribute	*attributeName = node->GetAttributeByName(AttributeNameID);

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

	return NIL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
callq 0x570c0
testq %rax, %rax
je 0xa39ff
movq %rax, %r15
movq %rax, %rdi
callq 0x56050
xorl %r14d, %r14d
testl %eax, %eax
jle 0xa3a07
leaq 0xcb3ef(%rip), %r12     # 0x16eda8
xorl %ebp, %ebp
movq %r15, %rdi
movl %ebp, %esi
callq 0x57e20
movq %rax, %r13
movq %rax, %rdi
movq %r12, %rsi
callq 0x58d10
testq %rax, %rax
je 0xa39ef
movq %rax, %rdi
callq 0x55720
movq %rax, %rdi
movq %rbx, %rsi
callq 0x55900
testb %al, %al
jne 0xa3a04
incl %ebp
movq %r15, %rdi
callq 0x56050
cmpl %eax, %ebp
jl 0xa39bb
jmp 0xa3a07
xorl %r14d, %r14d
jmp 0xa3a07
movq %r13, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/config.cpp
// Function: smooth::Configuration::SetIntValue(smooth::String const&, smooth::String const&, int)
S::Int S::Configuration::SetIntValue(const String &section, const String &name, Int newValue)
{
	if (configFile == NIL) return Error();

	XML::Node	*valueNode = FindValueNode(section, name);

	if (valueNode != NIL)
	{
		valueNode->SetContent(String::FromInt(newValue));
	}
	else
	{
		XML::Node	*sectionNode = FindSectionNode(section);

		if (sectionNode == NIL)
		{
			sectionNode = FindConfigurationNode(activeConfig)->AddNode(NodeSectionID);
			sectionNode->SetAttribute(AttributeNameID, section);
		}

		valueNode = sectionNode->AddNode(NodeValueID, String::FromInt(newValue));
		valueNode->SetAttribute(AttributeNameID, name);
	}

	return Success();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
cmpq $0x0, 0x30(%rdi)
je 0xa3a6f
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
callq 0x57190
testq %rax, %rax
je 0xa3a79
movq %rax, %r15
movslq %ebp, %rsi
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x56cf0
movq %r15, %rdi
movq %rbx, %rsi
callq 0x558f0
leaq 0x8(%rsp), %rdi
callq 0x59200
jmp 0xa3b1d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xa3b1f
movq %r12, %rdi
movq %r14, %rsi
callq 0x570c0
movq %rax, %r15
testq %rax, %rax
jne 0xa3adc
leaq 0x18(%r12), %rsi
movq %r12, %rdi
callq 0x576f0
movq %rax, %r15
leaq 0x8(%rsp), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0xcb2ae(%rip), %rsi     # 0x16ed60
movq %r15, %rdi
movq %r12, %rdx
callq 0x55820
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x59200
leaq 0xcb2d7(%rip), %rsi     # 0x16eda8
movq %r15, %rdi
movq %r14, %rdx
callq 0x581c0
movslq %ebp, %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x56cf0
leaq 0xcb285(%rip), %rsi     # 0x16ed78
movq %r15, %rdi
movq %r14, %rdx
callq 0x55820
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x59200
leaq 0xcb296(%rip), %rsi     # 0x16eda8
movq %r14, %rdi
movq %rbx, %rdx
callq 0x581c0
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa3b30
jmp 0xa3b30
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/classes/misc/config.cpp
// Function: smooth::Configuration::FindSectionNode(smooth::String const&) const
S::XML::Node *S::Configuration::FindSectionNode(const String &section) const
{
	XML::Node	*configuration = FindConfigurationNode(activeConfig);

	if (configuration == NIL) return NIL;

	for (Int i = 0; i < configuration->GetNOfNodes(); i++)
	{
		XML::Node	*node = configuration->GetNthNode(i);
		XML::Attribute	*attributeName = node->GetAttributeByName(AttributeNameID);

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

	return NIL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
leaq 0x18(%rdi), %rsi
callq 0x576f0
testq %rax, %rax
je 0xa3bc1
movq %rax, %r15
movq %rax, %rdi
callq 0x56050
xorl %r14d, %r14d
testl %eax, %eax
jle 0xa3bc9
leaq 0xcb22d(%rip), %r12     # 0x16eda8
xorl %ebp, %ebp
movq %r15, %rdi
movl %ebp, %esi
callq 0x57e20
movq %rax, %r13
movq %rax, %rdi
movq %r12, %rsi
callq 0x58d10
testq %rax, %rax
je 0xa3bb1
movq %rax, %rdi
callq 0x55720
movq %rax, %rdi
movq %rbx, %rsi
callq 0x55900
testb %al, %al
jne 0xa3bc6
incl %ebp
movq %r15, %rdi
callq 0x56050
cmpl %eax, %ebp
jl 0xa3b7d
jmp 0xa3bc9
xorl %r14d, %r14d
jmp 0xa3bc9
movq %r13, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/config.cpp
// Function: smooth::Configuration::GetStringValue(smooth::String const&, smooth::String const&, smooth::String const&)
S::String S::Configuration::GetStringValue(const String &section, const String &name, const String &defValue)
{
	if (configFile == NIL) return defValue;

	XML::Node	*value = FindValueNode(section, name);

	if (value != NIL)
	{
		return value->GetContent();
	}
	else
	{
		XML::Node	*configuration = FindConfigurationNode(activeConfig);
		XML::Attribute	*attributeInheriting = configuration->GetAttributeByName(AttributeInheritingID);

		if (attributeInheriting != NIL)
		{
			String	 oConfig = activeConfig;

			activeConfig = attributeInheriting->GetContent();

			String	 retVal = GetStringValue(section, name, defValue);

			activeConfig = oConfig;

			return retVal;
		}

		return defValue;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r14
movq %rdi, %rbx
cmpq $0x0, 0x30(%rsi)
je 0xa3ca6
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x57190
testq %rax, %rax
je 0xa3c2a
movq %rax, %rdi
callq 0x58e00
movq %rbx, %rdi
movq %rax, %rsi
jmp 0xa3cac
leaq 0x18(%r13), %rsi
movq %r13, %rdi
movq %rsi, 0x8(%rsp)
callq 0x576f0
leaq 0xcb14e(%rip), %rsi     # 0x16ed90
movq %rax, %rdi
callq 0x58d10
testq %rax, %rax
je 0xa3ca6
movq %rax, %rbp
leaq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x570b0
movq %rbp, %rdi
callq 0x55720
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
movq %rax, %rsi
callq 0x555f0
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r15, %rcx
movq %r14, %r8
callq 0x58140
leaq 0x10(%rsp), %rsi
movq %rbp, %rdi
callq 0x555f0
leaq 0x10(%rsp), %rdi
callq 0x59200
jmp 0xa3cb1
movq %rbx, %rdi
movq %r14, %rsi
callq 0x570b0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x59200
jmp 0xa3cd3
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x59200
movq %r14, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/config.cpp
// Function: smooth::Configuration::SetStringValue(smooth::String const&, smooth::String const&, smooth::String const&)
S::Int S::Configuration::SetStringValue(const String &section, const String &name, const String &newValue)
{
	if (configFile == NIL) return Error();

	XML::Node	*valueNode = FindValueNode(section, name);

	if (valueNode != NIL)
	{
		valueNode->SetContent(newValue);
	}
	else
	{
		XML::Node	*sectionNode = FindSectionNode(section);

		if (sectionNode == NIL)
		{
			sectionNode = FindConfigurationNode(activeConfig)->AddNode(NodeSectionID);
			sectionNode->SetAttribute(AttributeNameID, section);
		}

		valueNode = sectionNode->AddNode(NodeValueID, newValue);
		valueNode->SetAttribute(AttributeNameID, name);
	}

	return Success();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
cmpq $0x0, 0x30(%rdi)
je 0xa3d20
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
callq 0x57190
testq %rax, %rax
je 0xa3d2a
movq %rax, %rdi
movq %r14, %rsi
callq 0x558f0
jmp 0xa3db1
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xa3db3
movq %r12, %rdi
movq %r15, %rsi
callq 0x570c0
movq %rax, %r13
testq %rax, %rax
jne 0xa3d8d
leaq 0x18(%r12), %rsi
movq %r12, %rdi
callq 0x576f0
movq %rax, %r12
leaq 0x8(%rsp), %r13
movq %r13, %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0xcaffd(%rip), %rsi     # 0x16ed60
movq %r12, %rdi
movq %r13, %rdx
callq 0x55820
movq %rax, %r13
leaq 0x8(%rsp), %rdi
callq 0x59200
leaq 0xcb026(%rip), %rsi     # 0x16eda8
movq %r13, %rdi
movq %r15, %rdx
callq 0x581c0
leaq 0xcafe4(%rip), %rsi     # 0x16ed78
movq %r13, %rdi
movq %r14, %rdx
callq 0x55820
leaq 0xcb002(%rip), %rsi     # 0x16eda8
movq %rax, %rdi
movq %rbx, %rdx
callq 0x581c0
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
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/classes/misc/datetime.cpp
// Function: smooth::DateTime::SetYear(int)
S::Bool S::DateTime::SetYear(Int year)
{
	if (year < 0) return False;

	tm	 lt = localtime_p((time_t *) value);

	lt.tm_year = year - 1900;

	time_t	 t  = mktime(&lt);

	memcpy(value, &t, sizeof(time_t));

	return True;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movl %esi, %ebx
testl %esi, %esi
js 0xa4097
movq %rdi, %r14
movq (%rdi), %rdi
xorps %xmm0, %xmm0
movq %rsp, %r15
movaps %xmm0, 0x20(%r15)
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
movq $0x0, 0x30(%r15)
movq %r15, %rsi
callq 0x556c0
leal -0x76c(%rbx), %eax
movl %eax, 0x14(%r15)
movq %r15, %rdi
callq 0x56300
movq (%r14), %rcx
movq %rax, (%rcx)
testl %ebx, %ebx
setns %al
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/datetime.cpp
// Function: smooth::DateTime::SetMonth(int)
S::Bool S::DateTime::SetMonth(Int month)
{
	if (month <= 0 || month > 12) return False;

	tm	 lt = localtime_p((time_t *) value);

	lt.tm_mon  = month - 1;

	time_t	 t  = mktime(&lt);

	memcpy(value, &t, sizeof(time_t));

	return True;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movl %esi, %ebx
decl %ebx
cmpl $0xb, %ebx
ja 0xa40f4
movq %rdi, %r14
movq (%rdi), %rdi
xorps %xmm0, %xmm0
movq %rsp, %r15
movaps %xmm0, 0x20(%r15)
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
movq $0x0, 0x30(%r15)
movq %r15, %rsi
callq 0x556c0
movl %ebx, 0x10(%r15)
movq %r15, %rdi
callq 0x56300
movq (%r14), %rcx
movq %rax, (%rcx)
cmpl $0xc, %ebx
setb %al
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/datetime.cpp
// Function: smooth::DateTime::SetMinute(int)
S::Bool S::DateTime::SetMinute(Int min)
{
	if (min < 0 || min >= 60) return False;

	tm	 lt = localtime_p((time_t *) value);

	lt.tm_min  = min;

	time_t	 t  = mktime(&lt);

	memcpy(value, &t, sizeof(time_t));

	return True;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movl %esi, %ebx
cmpl $0x3b, %esi
ja 0xa42a6
movq %rdi, %r14
movq (%rdi), %rdi
xorps %xmm0, %xmm0
movq %rsp, %r15
movaps %xmm0, 0x20(%r15)
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
movq $0x0, 0x30(%r15)
movq %r15, %rsi
callq 0x556c0
movl %ebx, 0x4(%r15)
movq %r15, %rdi
callq 0x56300
movq (%r14), %rcx
movq %rax, (%rcx)
cmpl $0x3c, %ebx
setb %al
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/math.cpp
// Function: smooth::Math::Pow(int, int)
S::Float S::Math::Pow(Int in, Int ie)
{
	Float	 value = 1;

	if (ie >= 0) for (Int i = 0; i <  ie; i++) value *= in;
	else	     for (Int i = 0; i < -ie; i++) value /= in;

	return value;
}

// Assembly:
testl %esi, %esi
js 0xa43f6
je 0xa4418
cvtsi2sd %edi, %xmm1
movsd 0x4ef9c(%rip), %xmm0    # 0xf3388
mulsd %xmm1, %xmm0
decl %esi
jne 0xa43ec
jmp 0xa4417
negl %esi
cvtsi2sd %edi, %xmm1
cmpl $0x2, %esi
movl $0x1, %eax
cmovgel %esi, %eax
movsd 0x4ef79(%rip), %xmm0    # 0xf3388
divsd %xmm1, %xmm0
decl %eax
jne 0xa440f
retq
movsd 0x4ef68(%rip), %xmm0    # 0xf3388
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/math.cpp
// Function: smooth::Math::Pow(long long, long long)
S::Float S::Math::Pow(Int64 in, Int64 ie)
{
	Float	 value = 1;

	if (ie >= 0) for (Int i = 0; i <  ie; i++) value *= in;
	else	     for (Int i = 0; i < -ie; i++) value /= in;

	return value;
}

// Assembly:
testq %rsi, %rsi
js 0xa4441
je 0xa4468
cvtsi2sd %rdi, %xmm1
movsd 0x4ef52(%rip), %xmm0    # 0xf3388
mulsd %xmm1, %xmm0
decq %rsi
jne 0xa4436
jmp 0xa4467
negq %rsi
cvtsi2sd %rdi, %xmm1
cmpq $0x2, %rsi
movl $0x1, %eax
cmovgeq %rsi, %rax
movsd 0x4ef2a(%rip), %xmm0    # 0xf3388
divsd %xmm1, %xmm0
decq %rax
jne 0xa445e
retq
movsd 0x4ef18(%rip), %xmm0    # 0xf3388
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/number.cpp
// Function: smooth::Number::FromIntString(smooth::String const&)
S::Number S::Number::FromIntString(const String &string)
{
	Int	 first = string[0];
	Int	 sign  = (first == '-' ? -1 : 1);
	Int	 skip  = 0;

	if (first == '-' || first == '+') skip = 1;

	Int	 length = string.Length();
	Int	 digits = 0;

	for (Int i = skip; i < length; i++)
	{
		Int	 digit = string[i];

		if ((digit >= '0' && digit <= '9')) digits++;
		else				    break;
	}

	Int64	 value = 0;

	for (Int i = 0; i < digits; i++)
	{
		value += Int64(string[skip + i] - '0') * (Int64) Math::Pow(10, digits - i - 1);
	}

	return value * sign;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, (%rsp)
xorl %r12d, %r12d
movq %rsi, %rdi
xorl %esi, %esi
callq 0x57fe0
movl %eax, %r14d
leal -0x2b(%r14), %eax
xorl %r13d, %r13d
testl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
sete %r13b
movq %r15, %rdi
callq 0x57180
movl %eax, %ebp
subl %r13d, %ebp
jle 0xa4856
movl %r13d, %ebx
subl %eax, %ebx
leal (%r12,%r13), %esi
movq %r15, %rdi
callq 0x57fe0
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0xa4817
incl %r12d
movl %ebx, %eax
addl %r12d, %eax
jne 0xa47f4
movl %ebp, %r12d
jmp 0xa481c
testl %r12d, %r12d
je 0xa4856
decl %r12d
xorl %ebp, %ebp
movq %r15, %rdi
movl %r13d, %esi
callq 0x57fe0
addl $-0x30, %eax
movslq %eax, %rbx
movl $0xa, %edi
movl %r12d, %esi
callq 0x56010
cvttsd2si %xmm0, %rax
imulq %rbx, %rax
addq %rax, %rbp
incl %r13d
addl $-0x1, %r12d
jb 0xa4821
jmp 0xa4858
xorl %ebp, %ebp
movq %rbp, %rsi
negq %rsi
cmpl $0x2d, %r14d
cmovneq %rbp, %rsi
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0x59050
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/number.cpp
// Function: smooth::Number::FromFloatString(smooth::String const&)
S::Number S::Number::FromFloatString(const String &string)
{
	Int	 first = string[0];
	Int	 sign  = (first == '-' ? -1 : 1);
	Int	 skip  = 0;

	if (first == '-' || first == '+') skip = 1;

	Int	 length = string.Length();
	Int	 digits = 0;

	for (Int i = skip; i < length; i++)
	{
		Int	 digit = string[i];

		if ((digit >= '0' && digit <= '9')) digits++;
		else				    break;
	}

	Int	 digitsafp = 0;

	if (string[skip + digits] == '.')
	{
		for (Int i = skip + digits + 1; i < length; i++)
		{
			Int	 digit = string[i];

			if ((digit >= '0' && digit <= '9')) digitsafp++;
			else				    break;
		}
	}

	Float	 value = Math::Abs(Int64(Number::FromIntString(string)));

	for (Int i = 0; i < digitsafp; i++)
	{
		value += Float(string[skip + digits + 1 + i] - '0') * Math::Pow(10, 0 - i - 1);
	}

	return value * sign;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, 0x18(%rsp)
xorl %r13d, %r13d
movq %rsi, %rdi
xorl %esi, %esi
callq 0x57fe0
movq %rax, 0x10(%rsp)
addl $-0x2b, %eax
xorl %ebx, %ebx
testl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
sete %bl
movq %r14, %rdi
callq 0x57180
movl %eax, %r12d
movl %eax, %ebp
movl $0x0, %r15d
subl %ebx, %ebp
jle 0xa48f2
xorl %r15d, %r15d
leal (%rbx,%r15), %esi
movq %r14, %rdi
callq 0x57fe0
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0xa48f2
incl %r15d
cmpl %r15d, %ebp
jne 0xa48d3
movl %ebp, %r15d
leal (%r15,%rbx), %ebp
movq %r14, %rdi
movl %ebp, %esi
callq 0x57fe0
cmpl $0x2e, %eax
jne 0xa492c
addl %r15d, %ebx
incl %ebx
xorl %ecx, %ecx
movl %ecx, %r13d
leal (%rbx,%r13), %esi
cmpl %r12d, %esi
jge 0xa492c
movq %r14, %rdi
callq 0x57fe0
addl $-0x30, %eax
leal 0x1(%r13), %ecx
cmpl $0xa, %eax
jb 0xa490c
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x55ee0
movq (%r12), %rax
movq %rax, %rcx
sarq $0x3f, %rcx
orq $0x1, %rcx
testq %rax, %rax
cmoveq %rax, %rcx
imulq %rax, %rcx
cvtsi2sd %rcx, %xmm0
movsd %xmm0, 0x8(%rsp)
movq %r12, %rdi
callq 0x58d60
testl %r13d, %r13d
je 0xa49d0
incl %ebp
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movsd 0x8(%rsp), %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r14, %rdi
movl %ebp, %esi
callq 0x57fe0
addl $-0x30, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x20(%rsp)
movl $0xa, %edi
movl %r12d, %esi
callq 0x56010
movsd 0x8(%rsp), %xmm1
mulsd 0x20(%rsp), %xmm0
addsd %xmm0, %xmm1
leal (%r12,%r13), %eax
decl %eax
movl %r12d, %ecx
decl %ecx
incl %ebp
movl %ecx, %r12d
cmpl $-0x1, %eax
jne 0xa497c
jmp 0xa49d6
movsd 0x8(%rsp), %xmm1
xorl %eax, %eax
cmpl $0x2d, 0x10(%rsp)
setne %al
leal -0x1(%rax,%rax), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd %xmm1, %xmm0
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x560c0
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/number.cpp
// Function: smooth::Number::FromHexString(smooth::String const&)
S::Number S::Number::FromHexString(const String &string)
{
	Int	 first  = string[0];
	Int	 second = string[1];
	Int	 skip	= 0;

	if (first == '0' && (second == 'x' || second == 'X')) skip = 2;

	Int	 length = string.Length();
	Int	 digits = 0;

	for (Int i = skip; i < length; i++)
	{
		Int	 digit = string[i];

		if ((digit >= '0' && digit <= '9') ||
		    (digit >= 'A' && digit <= 'F') ||
		    (digit >= 'a' && digit <= 'f')) digits++;
		else				    break;
	}

	Int64	 value = 0;

	for (Int i = 0; i < digits; i++)
	{
		Int	 digit = string[skip + i];

		if	(digit >= '0' && digit <= '9') value += (Int64(digit - '0')	 << ((digits - i - 1) * 4));
		else if (digit >= 'A' && digit <= 'F') value += (Int64(digit - 'A' + 10) << ((digits - i - 1) * 4));
		else if (digit >= 'a' && digit <= 'f') value += (Int64(digit - 'a' + 10) << ((digits - i - 1) * 4));
	}

	return value;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
xorl %r14d, %r14d
movq %rsi, %rdi
xorl %esi, %esi
callq 0x57fe0
movl %eax, %ebp
movq %r15, %rdi
movl $0x1, %esi
callq 0x57fe0
xorl $0x30, %ebp
andl $-0x21, %eax
xorl $0x58, %eax
xorl %r12d, %r12d
orl %ebp, %eax
sete %r12b
addl %r12d, %r12d
movq %r15, %rdi
callq 0x57180
movl %eax, %ebp
subl %r12d, %ebp
jle 0xa4aea
movabsq $0x3f0000003f, %r13     # imm = 0x3F0000003F
leal (%r12,%r14), %esi
movq %r15, %rdi
callq 0x57fe0
leal -0x30(%rax), %ecx
cmpl $0xa, %ecx
jb 0xa4a8f
addl $-0x41, %eax
cmpl $0x25, %eax
ja 0xa4b07
btq %rax, %r13
jae 0xa4b07
incl %r14d
cmpl %r14d, %ebp
jne 0xa4a6d
movl %ebp, %r14d
movl %r14d, %r13d
leal -0x4(,%r14,4), %ebp
xorl %r14d, %r14d
movq %r15, %rdi
movl %r12d, %esi
callq 0x57fe0
leal -0x30(%rax), %ecx
cmpl $0x9, %ecx
ja 0xa4abf
movl %ecx, %eax
jmp 0xa4ad7
leal -0x41(%rax), %ecx
cmpl $0x5, %ecx
ja 0xa4acc
addl $-0x37, %eax
jmp 0xa4ad7
leal -0x61(%rax), %ecx
cmpl $0x5, %ecx
ja 0xa4adf
addl $-0x57, %eax
movl %ebp, %ecx
shlq %cl, %rax
addq %rax, %r14
incl %r12d
addl $-0x4, %ebp
decq %r13
jne 0xa4aa8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x59050
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %r14d, %r14d
jne 0xa4a9a
xorl %r14d, %r14d
jmp 0xa4aea
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/number.cpp
// Function: smooth::Number::ToIntString() const
S::String S::Number::ToIntString() const
{
	if (intValue == 0) return kZero;

	String	 string;
	Int	 length = (Int) Math::Log10(Math::Abs(intValue)) + 1;

	for (Int i = 0; i < length; i++)
	{
		string[i] = '0' + Int64(Math::Abs(intValue) / Math::Pow(10, length - i - 1)) % 10;
	}

	if (intValue < 0) string = String(kMinus).Append(string);

	return string;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
cmpq $0x0, (%rsi)
je 0xa4c24
movq %rsi, %r14
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58e20
movq (%r14), %rax
movq %rax, %rcx
sarq $0x3f, %rcx
orq $0x1, %rcx
testq %rax, %rax
cmoveq %rax, %rcx
imulq %rax, %rcx
cvtsi2sd %rcx, %xmm0
callq 0x563c0
cvttsd2si %xmm0, %ebp
testl %ebp, %ebp
js 0xa4be9
xorl %r15d, %r15d
movq (%r14), %r12
movq %r12, %r13
sarq $0x3f, %r13
orq $0x1, %r13
testq %r12, %r12
cmoveq %r12, %r13
movl $0xa, %edi
movl %ebp, %esi
callq 0x56010
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x58990
movq %rax, %rcx
imulq %r12, %r13
xorps %xmm0, %xmm0
cvtsi2sd %r13, %xmm0
divsd 0x8(%rsp), %xmm0
cvttsd2si %xmm0, %rsi
movq %rsi, %rax
movabsq $0x6666666666666667, %rdx # imm = 0x6666666666666667
imulq %rdx
movq %rdx, %rax
shrq $0x3f, %rax
shrq $0x2, %rdx
addl %eax, %edx
addl %edx, %edx
leal (%rdx,%rdx,4), %eax
subl %eax, %esi
addl $0x30, %esi
movl %esi, (%rcx)
incl %r15d
addl $-0x1, %ebp
jb 0xa4b6c
cmpq $0x0, (%r14)
jns 0xa4c33
leaq 0xca1ea(%rip), %rsi     # 0x16ede0
leaq 0x10(%rsp), %rdi
callq 0x570b0
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x562f0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x555f0
leaq 0x10(%rsp), %rdi
callq 0x59200
jmp 0xa4c33
leaq 0xca19d(%rip), %rsi     # 0x16edc8
movq %rbx, %rdi
callq 0x570b0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa4c58
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x59200
jmp 0xa4c5b
jmp 0xa4c58
movq %rax, %r14
movq %rbx, %rdi
callq 0x59200
movq %r14, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/number.cpp
// Function: smooth::Number::ToHexString(int) const
S::String S::Number::ToHexString(Int length) const
{
	String	 string;
	Int	 stringPos = 0;

	for (Int i = 0; i < 16; i++)
	{
		if	(((intValue >> (4 * (15 - i))) & 15) >= 10) string[stringPos++] = 'a' + ((intValue >> (4 * (15 - i))) & 15) - 10;
		else if (((intValue >> (4 * (15 - i))) & 15) >=  1) string[stringPos++] = '0' + ((intValue >> (4 * (15 - i))) & 15);
		else if (stringPos			     >   0) string[stringPos++] = '0';
	}

	if (length != -1)
	{
		/* Add leading zeros if necessary.
		 */
		if (string.Length() < length) string = String().FillN('0', length - string.Length()).Append(string);

		/* Cut string if too long.
		 */
		if (string.Length() > length) string = string.Tail(length);
	}

	return string;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
xorl %r15d, %r15d
xorl %esi, %esi
callq 0x58e20
movl $0x3c, %r12d
movq (%r14), %r13
movl %r12d, %ecx
sarq %cl, %r13
andl $0xf, %r13d
cmpq $0xa, %r13
jb 0xa4fdf
movq %rbx, %rdi
movl %r15d, %esi
callq 0x58990
incl %r15d
addl $0x57, %r13d
jmp 0xa4ff6
testq %r13, %r13
je 0xa5005
movq %rbx, %rdi
movl %r15d, %esi
callq 0x58990
incl %r15d
orl $0x30, %r13d
movl %r13d, (%rax)
addq $-0x4, %r12
cmpq $-0x4, %r12
jne 0xa4fb8
jmp 0xa5020
testl %r15d, %r15d
jle 0xa4ff9
movq %rbx, %rdi
movl %r15d, %esi
callq 0x58990
incl %r15d
movl $0x30, (%rax)
jmp 0xa4ff9
cmpl $-0x1, %ebp
je 0xa509e
movq %rbx, %rdi
callq 0x57180
cmpl %ebp, %eax
jge 0xa5072
movq %rsp, %rdi
xorl %esi, %esi
callq 0x58e20
movq %rbx, %rdi
callq 0x57180
movl %ebp, %edx
subl %eax, %edx
movq %rsp, %rdi
movl $0x30, %esi
callq 0x57bf0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x562f0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x555f0
movq %rsp, %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57180
cmpl %ebp, %eax
jle 0xa509e
movq %rsp, %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x57f90
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x555f0
movq %rsp, %rdi
callq 0x59200
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa50b6
jmp 0xa50c5
jmp 0xa50c5
movq %rax, %r14
movq %rsp, %rdi
callq 0x59200
jmp 0xa50c8
jmp 0xa50c5
movq %rax, %r14
movq %rbx, %rdi
callq 0x59200
movq %r14, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/string.cpp
// Function: smooth::String::operator=(wchar_t const*)
S::String &S::String::operator =(const wchar_t *newString)
{
	Clean();

	if (newString != NIL)
	{
		Int	 size = wcslen(newString) + 1;

		wString.Resize(size);

		wcsncpy(wString, newString, size);
	}

	return *this;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
callq 0xa7094
testq %r14, %r14
je 0xa520b
movq %r14, %rdi
callq 0x57220
movq %rax, %r15
incl %r15d
movq %rbx, %rdi
movl %r15d, %esi
callq 0xa7094
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0xa51fe
movq (%rax), %rdi
jmp 0xa5200
xorl %edi, %edi
movslq %r15d, %rdx
movq %r14, %rsi
callq 0x58ce0
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/string.cpp
// Function: smooth::String::operator=(smooth::String const&)
S::String &S::String::operator =(const String &newString)
{
	if (&newString == this) return *this;

	Clean();

	if (newString.wString.Size() > 0)
	{
		Int	 size = newString.wString.Size();

		wString.Resize(size);

		wcsncpy(wString, newString.wString, size);
	}

	return *this;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq %rdi, %rsi
je 0xa52a4
movq %rsi, %r15
movq %rbx, %rdi
xorl %esi, %esi
callq 0xa7094
movslq 0x10(%r15), %r14
testq %r14, %r14
jle 0xa52a4
movq %rbx, %rdi
movl %r14d, %esi
callq 0xa7094
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0xa528a
movq (%rax), %rdi
jmp 0xa528c
xorl %edi, %edi
movq 0x8(%r15), %rax
testq %rax, %rax
je 0xa529a
movq (%rax), %rsi
jmp 0xa529c
xorl %esi, %esi
movq %r14, %rdx
callq 0x58ce0
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/string.cpp
// Function: smooth::String::DeleteTemporaryBuffers(bool)
S::Void S::String::DeleteTemporaryBuffers(Bool all)
{
	/* Free all but the most recent 8 buffers.
	 */
	if (allocatedBuffers != NIL)
	{
		Int	 nOfEntries = allocatedBuffers->Length();

		for (Int i = 0; i < nOfEntries - (all ? 0 : 8); i++)
		{
			delete [] allocatedBuffers->GetFirst();

			allocatedBuffers->RemoveNth(0);
		}

		if (all)
		{
			delete allocatedBuffers;

			allocatedBuffers = NIL;
		}
	}

	/* When purging all, also free iconv buffer and I/O format strings.
	 */
	if (all)
	{
		if (iconvBuffer) delete iconvBuffer;

		if (inputFormat	 != NIL) delete [] inputFormat;
		if (outputFormat != NIL) delete [] outputFormat;

		inputFormat  = NIL;
		outputFormat = NIL;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebp
leaq 0xc6062(%rip), %rdi     # 0x16b330
callq 0x566e0
movq %rax, %rbx
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0xa533e
leaq 0x8(%rax), %r14
movl 0x8(%rcx), %eax
movzbl %bpl, %ecx
leal (%rax,%rcx,8), %r15d
addl $-0x8, %r15d
testl %r15d, %r15d
jle 0xa5322
movq (%r14), %rdi
callq 0x60af6
movq (%rax), %rdi
testq %rdi, %rdi
je 0xa5312
callq 0x561e0
movq (%r14), %rdi
movq (%rdi), %rax
xorl %esi, %esi
callq *0x18(%rax)
decl %r15d
jne 0xa52fd
testb %bpl, %bpl
je 0xa538f
movq (%r14), %rdi
testq %rdi, %rdi
je 0xa5335
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, (%r14)
jmp 0xa5343
testb %bpl, %bpl
je 0xa538f
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0xa5355
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rax
movq %rax, %r14
movq 0x18(%rax), %rdi
testq %rdi, %rdi
je 0xa536c
callq 0x561e0
leaq 0x18(%r14), %r14
leaq 0x20(%rbx), %rbx
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xa5387
callq 0x561e0
xorl %eax, %eax
movq %rax, (%r14)
movq %rax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/string.cpp
// Function: smooth::String::AddTemporaryBuffer(char*)
S::Void S::String::AddTemporaryBuffer(char *buffer)
{
	/* Free old buffers and add new.
	 */
	if (allocatedBuffers == NIL) allocatedBuffers = new BufferArray();

	if (allocatedBuffers->Length() >= 8) DeleteTemporaryBuffers();

	allocatedBuffers->Add(buffer);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0xc5f7b(%rip), %rdi     # 0x16b330
callq 0x566e0
leaq 0x8(%rax), %r15
movq (%r15), %r14
testq %r14, %r14
jne 0xa53fe
movl $0x58, %edi
callq 0x556b0
movq %rax, %r14
movq %rax, %rdi
callq 0x55d90
leaq 0xba41b(%rip), %rax     # 0x15f800
movq %rax, 0x40(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%r14)
leaq 0xc3a40(%rip), %rax     # 0x168e38
movq %rax, (%r14)
movq %r14, (%r15)
cmpl $0x8, 0x8(%r14)
jl 0xa540f
xorl %edi, %edi
callq 0x58440
movq (%r15), %r14
leaq 0x8(%rsp), %rsi
movq %rbx, (%rsi)
movq %r14, %rdi
callq 0x5aed8
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movl $0x58, %esi
movq %r14, %rdi
callq 0x55480
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/string.cpp
// Function: smooth::String::EncodeBase64() const
S::String S::String::EncodeBase64() const
{
	if (wString.Size() == 0) return NIL;

	const char		*utf8string = ConvertTo("UTF-8");
	int			 length	    = strlen(utf8string);

	Buffer<UnsignedByte>	 buffer(length);

	strncpy((char *) (UnsignedByte *) buffer, utf8string, length);

	return Encoding::Base64(buffer).Encode();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
cmpl $0x0, 0x10(%rsi)
je 0xa5525
leaq 0x6cde9(%rip), %rax     # 0x1122d6
movq %rsi, %rdi
movq %rax, %rsi
callq 0x57940
movq %rax, %r14
movq %rax, %rdi
callq 0x56370
movq %rax, %r15
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movl %r15d, %esi
callq 0x620b8
movq 0x8(%r12), %rax
testq %rax, %rax
je 0xa5531
movq (%rax), %rdi
jmp 0xa5533
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58e20
jmp 0xa557d
xorl %edi, %edi
movslq %r15d, %rdx
movq %r14, %rsi
callq 0x556a0
leaq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x567c0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x58c40
leaq 0x8(%rsp), %rdi
callq 0x55f50
leaq 0xba9e0(%rip), %rax     # 0x15ff50
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
callq 0x62130
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x55f50
jmp 0xa559e
movq %rax, %rbx
leaq 0xba9ab(%rip), %rax     # 0x15ff50
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
callq 0x62130
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/string.cpp
// Function: smooth::String::DecodeBase64() const
S::String S::String::DecodeBase64() const
{
	if (wString.Size() == 0) return NIL;

	Buffer<UnsignedByte>	 buffer;
	String			 string;

	Encoding::Base64(buffer).Decode(*this);

	string.ImportFrom("UTF-8", (char *) (UnsignedByte *) buffer);

	return string;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
cmpl $0x0, 0x10(%rsi)
je 0xa57f2
movq %rsi, %r14
leaq 0xba7a4(%rip), %r15     # 0x15ff50
movq %r15, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58e20
movq %rsp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x567c0
movq %rsp, %rdi
movq %r14, %rsi
callq 0x59040
movq %rsp, %rdi
callq 0x55f50
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0xa57fe
movq (%rax), %rdx
jmp 0xa5800
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58e20
jmp 0xa581c
xorl %edx, %edx
leaq 0x6cacf(%rip), %rsi     # 0x1122d6
movq %rbx, %rdi
callq 0x56950
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
callq 0x62130
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0xa5838
movq %rax, %r14
movq %rsp, %rdi
callq 0x55f50
jmp 0xa583b
movq %rax, %r14
movq %rbx, %rdi
callq 0x59200
jmp 0xa5848
movq %rax, %r14
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
callq 0x62130
movq %r14, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/string.cpp
// Function: smooth::String::SetInputFormat(char const*)
const char *S::String::SetInputFormat(const char *iFormat)
{
	if (iFormat == NIL) return SetInputFormat(GetDefaultEncoding());

	/* Return immediately if requested format equals current.
	 */
	if (inputFormat != NIL && strcmp(iFormat, inputFormat) == 0) return inputFormat;

	/* Backup input format and set new one.
	 */
	char	*previousInputFormat = inputFormat;

	inputFormat = NIL;

	if (strcmp(iFormat, GetDefaultEncoding()) != 0)
	{
		int	 length = strlen(iFormat) + 1;

		inputFormat = new char [length];

		strncpy(inputFormat, iFormat, length);
	}

	/* Add previous format to temporary buffers list.
	 */
	if (previousInputFormat != NIL)
	{
		AddTemporaryBuffer(previousInputFormat);

		return previousInputFormat;
	}

	return GetDefaultEncoding();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
leaq 0x6c720(%rip), %rax     # 0x1122d6
movq %rdi, %r14
movq %rax, %rdi
testq %r14, %r14
je 0xa5bb6
leaq 0xc5768(%rip), %rdi     # 0x16b330
callq 0x566e0
movq %rax, %r15
movq 0x18(%rax), %rbx
testq %rbx, %rbx
je 0xa5beb
movq %r14, %rdi
movq %rbx, %rsi
callq 0x57bc0
testl %eax, %eax
je 0xa5c44
leaq 0x18(%r15), %r13
movq $0x0, (%r13)
leaq 0x6c6d5(%rip), %r15     # 0x1122d6
movq %r14, %rdi
movq %r15, %rsi
callq 0x57bc0
testl %eax, %eax
je 0xa5c37
movq %r14, %rdi
callq 0x56370
incl %eax
movslq %eax, %r12
movq %r12, %rdi
callq 0x56670
movq %rax, (%r13)
movq %rax, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x556a0
testq %rbx, %rbx
je 0xa5c47
movq %rbx, %rdi
callq 0x588c0
movq %rbx, %r15
movq %r15, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/string.cpp
// Function: smooth::String::SetOutputFormat(char const*)
const char *S::String::SetOutputFormat(const char *oFormat)
{
	if (oFormat == NIL) return SetOutputFormat(GetDefaultEncoding());

	/* Return immediately if requested format equals current.
	 */
	if (outputFormat != NIL && strcmp(oFormat, outputFormat) == 0) return outputFormat;

	/* Backup output format and set new one.
	 */
	char	*previousOutputFormat = outputFormat;

	outputFormat = NIL;

	if (strcmp(oFormat, GetDefaultEncoding()) != 0)
	{
		int	 length = strlen(oFormat) + 1;

		outputFormat = new char [length];

		strncpy(outputFormat, oFormat, length);
	}

	/* Add previous format to temporary buffers list.
	 */
	if (previousOutputFormat != NIL)
	{
		AddTemporaryBuffer(previousOutputFormat);

		return previousOutputFormat;
	}

	return GetDefaultEncoding();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
leaq 0x6c64e(%rip), %rax     # 0x1122d6
movq %rdi, %r14
movq %rax, %rdi
testq %r14, %r14
je 0xa5c88
leaq 0xc5696(%rip), %rdi     # 0x16b330
callq 0x566e0
movq %rax, %r15
movq 0x20(%rax), %rbx
testq %rbx, %rbx
je 0xa5cbd
movq %r14, %rdi
movq %rbx, %rsi
callq 0x57bc0
testl %eax, %eax
je 0xa5d16
leaq 0x20(%r15), %r13
movq $0x0, (%r13)
leaq 0x6c603(%rip), %r15     # 0x1122d6
movq %r14, %rdi
movq %r15, %rsi
callq 0x57bc0
testl %eax, %eax
je 0xa5d09
movq %r14, %rdi
callq 0x56370
incl %eax
movslq %eax, %r12
movq %r12, %rdi
callq 0x56670
movq %rax, (%r13)
movq %rax, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x556a0
testq %rbx, %rbx
je 0xa5d19
movq %rbx, %rdi
callq 0x588c0
movq %rbx, %r15
movq %r15, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/string.cpp
// Function: smooth::String::operator[](int)
wchar_t &S::String::operator [](int n)
{
	static wchar_t	 dummy = 0;

	if (n < 0) return dummy;

	if (n + 1 >= wString.Size())
	{
		Int	 length = Length();

		/* Allocate more memory than actually
		 * needed to speed up string operations.
		 */
		wString.Resize(n + Math::Max(10, Math::Min(n / 10, 100000)));

		wmemset(wString + length, 0, wString.Size() - length);
	}

	return wString[n];
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
js 0xa5f9b
movl %esi, %r15d
movq %rdi, %r14
leal 0x1(%r15), %ecx
movl 0x10(%rdi), %eax
movl %esi, %ebx
cmpl %eax, %ecx
jl 0xa6005
testl %eax, %eax
je 0xa5fa4
movq 0x8(%r14), %rax
testq %rax, %rax
je 0xa5fa9
movq (%rax), %rdi
jmp 0xa5fab
leaq 0xc8e7e(%rip), %rbx     # 0x16ee20
jmp 0xa6010
xorl %r12d, %r12d
jmp 0xa5fb3
xorl %edi, %edi
callq 0x57220
movq %rax, %r12
movl $0xcccccccd, %eax       # imm = 0xCCCCCCCD
imulq %rbx, %rax
shrq $0x23, %rax
movl $0x186a0, %ecx          # imm = 0x186A0
cmpl %ecx, %eax
cmovbl %eax, %ecx
cmpl $0xb, %ecx
movl $0xa, %esi
cmovael %ecx, %esi
addl %r15d, %esi
movq %r14, %rdi
callq 0xa7094
movq 0x8(%r14), %rax
testq %rax, %rax
je 0xa5fee
movq (%rax), %rax
jmp 0xa5ff0
xorl %eax, %eax
movslq %r12d, %rcx
leaq (%rax,%rcx,4), %rdi
movslq 0x10(%r14), %rdx
subq %rcx, %rdx
xorl %esi, %esi
callq 0x56550
movq 0x8(%r14), %rax
shlq $0x2, %rbx
addq (%rax), %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/string.cpp
// Function: smooth::String::Compare(smooth::String const&) const
S::Int S::String::Compare(const String &str) const
{
	Int	 len1 = Length();
	Int	 len2 = str.Length();

	if	(len1 != len2)					       return len1 - len2;
	else if (len1 > 0 && wcsncmp(wString, str.wString, len1) != 0) return 1;

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
xorl %r12d, %r12d
cmpl $0x0, 0x10(%rdi)
movl $0x0, %r14d
je 0xa615f
movq 0x8(%r15), %rax
testq %rax, %rax
je 0xa6155
movq (%rax), %rdi
jmp 0xa6157
xorl %edi, %edi
callq 0x57220
movq %rax, %r14
cmpl $0x0, 0x10(%rbx)
je 0xa617d
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0xa6173
movq (%rax), %rdi
jmp 0xa6175
xorl %edi, %edi
callq 0x57220
movq %rax, %r12
movl %r14d, %eax
subl %r12d, %eax
jne 0xa61bf
testl %r14d, %r14d
jle 0xa61bd
movq 0x8(%r15), %rax
testq %rax, %rax
je 0xa6198
movq (%rax), %rdi
jmp 0xa619a
xorl %edi, %edi
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0xa61a8
movq (%rax), %rsi
jmp 0xa61aa
xorl %esi, %esi
movl %r14d, %edx
callq 0x572f0
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0xa61bf
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/string.cpp
// Function: smooth::String::operator==(smooth::String const&) const
S::Bool S::String::operator ==(const String &str) const
{
	if (wString.Size() == 0 && str.wString.Size() == 0) return True;
	if (wString.Size() == 0 && str.wString.Size() != 0) if (str.wString[0] == 0) return True;
	if (wString.Size() != 0 && str.wString.Size() == 0) if (wString[0] == 0) return True;
	if (wString.Size() == 0 || str.wString.Size() == 0) return False;

	if (!Compare(str)) return True;
	else		   return False;
}

// Assembly:
cmpl $0x0, 0x10(%rdi)
movl 0x10(%rsi), %eax
je 0xa6281
testl %eax, %eax
je 0xa628b
pushq %rax
callq 0x585c0
testl %eax, %eax
sete %al
addq $0x8, %rsp
retq
testl %eax, %eax
je 0xa6299
movq 0x8(%rsi), %rax
jmp 0xa628f
movq 0x8(%rdi), %rax
movq (%rax), %rax
cmpl $0x0, (%rax)
sete %al
retq
movb $0x1, %al
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/string.cpp
// Function: smooth::String::operator!=(smooth::String const&) const
S::Bool S::String::operator !=(const String &str) const
{
	if (wString.Size() == 0 && str.wString.Size() == 0) return False;
	if (wString.Size() == 0 && str.wString.Size() != 0) if (str.wString[0] == 0) return False;
	if (wString.Size() != 0 && str.wString.Size() == 0) if (wString[0] == 0) return False;
	if (wString.Size() == 0 || str.wString.Size() == 0) return True;

	if (Compare(str) != 0) return True;
	else		       return False;
}

// Assembly:
cmpl $0x0, 0x10(%rdi)
movl 0x10(%rsi), %eax
je 0xa6405
testl %eax, %eax
je 0xa640f
pushq %rax
callq 0x585c0
testl %eax, %eax
setne %al
addq $0x8, %rsp
retq
testl %eax, %eax
je 0xa641d
movq 0x8(%rsi), %rax
jmp 0xa6413
movq 0x8(%rdi), %rax
movq (%rax), %rax
cmpl $0x0, (%rax)
setne %al
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/string.cpp
// Function: smooth::String::Find(smooth::String const&) const
S::Int S::String::Find(const String &str) const
{
	if (str	  == NIL) return 0;
	if (*this == NIL) return -1;

	wchar_t* start = wcsstr(wString, str.wString);

	if (start != NIL) return start - wString;

	return -1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
xorl %ebx, %ebx
cmpl $0x0, 0x10(%rsi)
je 0xa6466
movq 0x8(%rsi), %rax
movq (%rax), %rsi
cmpl $0x0, (%rsi)
je 0xa6466
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpl $0x0, 0x10(%rdi)
je 0xa6466
movq 0x8(%rdi), %rax
movq (%rax), %r14
cmpl $0x0, (%r14)
je 0xa6466
movq %r14, %rdi
callq 0x56270
testq %rax, %rax
je 0xa6466
subq %r14, %rax
shrq $0x2, %rax
movl %eax, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/string.cpp
// Function: smooth::String::FindLast(smooth::String const&) const
S::Int S::String::FindLast(const String &str) const
{
	if (str == NIL) return Length();

	Int	 len1 = Length();
	Int	 len2 = str.Length();

	for (Int i = len1 - len2; i >= 0; i--)
	{
		if (wcsncmp(wString + i, str.wString, len2) == 0) return i;
	}

	return -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r12
cmpl $0x0, 0x10(%rsi)
je 0xa64a7
movq 0x8(%rsi), %rax
movq (%rax), %rbx
cmpl $0x0, (%rbx)
je 0xa64a7
cmpl $0x0, 0x10(%r12)
je 0xa64c3
movq 0x8(%r12), %rax
testq %rax, %rax
je 0xa64d4
movq (%rax), %rdi
jmp 0xa64d6
cmpl $0x0, 0x10(%r12)
je 0xa64be
movq 0x8(%r12), %rax
testq %rax, %rax
je 0xa64c8
movq (%rax), %rdi
jmp 0xa64ca
xorl %r14d, %r14d
jmp 0xa6534
xorl %r15d, %r15d
jmp 0xa64de
xorl %edi, %edi
callq 0x57220
movq %rax, %r14
jmp 0xa6534
xorl %edi, %edi
callq 0x57220
movq %rax, %r15
movq %rbx, %rdi
callq 0x57220
subl %eax, %r15d
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
js 0xa6534
movq 0x8(%r12), %r13
movslq %eax, %r12
movl %r15d, %ebp
shlq $0x2, %rbp
testq %r13, %r13
je 0xa650b
movq (%r13), %rdi
jmp 0xa650d
xorl %edi, %edi
addq %rbp, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x572f0
testl %eax, %eax
je 0xa6531
leal -0x1(%r15), %eax
addq $-0x4, %rbp
testl %r15d, %r15d
movl %eax, %r15d
jg 0xa6500
jmp 0xa6534
movl %r15d, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/misc/string.cpp
// Function: smooth::String::Append(smooth::String const&)
S::String &S::String::Append(const String &str)
{
	if (str == NIL) return *this;

	Int	 len1 = Length();
	Int	 len2 = str.Length();

	wString.Resize(len1 + len2 + 1);

	wcsncpy(wString + len1, str.wString, len2);

	wString[len1 + len2] = 0;

	return *this;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, 0x10(%rsi)
je 0xa65ef
movq %rsi, %r14
movq 0x8(%rsi), %rax
movq (%rax), %r15
cmpl $0x0, (%r15)
je 0xa65ef
cmpl $0x0, 0x10(%rbx)
je 0xa6583
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0xa6588
movq (%rax), %rdi
jmp 0xa658a
xorl %r12d, %r12d
jmp 0xa6592
xorl %edi, %edi
callq 0x57220
movq %rax, %r12
movq %r15, %rdi
callq 0x57220
movq %rax, %r15
leal (%r12,%rax), %esi
incl %esi
movq %rbx, %rdi
callq 0xa7094
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0xa65b9
movq (%rax), %rax
jmp 0xa65bb
xorl %eax, %eax
movslq %r12d, %rcx
leal (%r15,%r12), %ebp
leaq (%rax,%rcx,4), %rdi
movq 0x8(%r14), %rax
testq %rax, %rax
je 0xa65d4
movq (%rax), %rsi
jmp 0xa65d6
xorl %esi, %esi
movslq %r15d, %rdx
callq 0x58ce0
movq 0x8(%rbx), %rax
movq (%rax), %rax
movslq %ebp, %rcx
movl $0x0, (%rax,%rcx,4)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop