// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x70(%rbp)
movq %rdi, %rax
movq %rax, -0x68(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x5c900
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %edx
movl $0x1, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpl $0x2d, %edx
cmovel %ecx, %eax
movl %eax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
cmpl $0x2d, -0x14(%rbp)
je 0xf1555
cmpl $0x2b, -0x14(%rbp)
jne 0xf155c
movl $0x1, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x5b800
movl %eax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x20(%rbp), %eax
jge 0xf15b2
movq -0x10(%rbp), %rdi
movl -0x28(%rbp), %esi
callq 0x5c900
movl %eax, -0x2c(%rbp)
cmpl $0x30, -0x2c(%rbp)
jl 0xf15a3
cmpl $0x39, -0x2c(%rbp)
jg 0xf15a3
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xf15a5
jmp 0xf15b2
jmp 0xf15a7
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xf1575
movl $0x0, -0x30(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
addl -0x24(%rbp), %esi
callq 0x5c900
cmpl $0x2e, %eax
jne 0xf1618
movl -0x1c(%rbp), %eax
addl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x20(%rbp), %eax
jge 0xf1616
movq -0x10(%rbp), %rdi
movl -0x34(%rbp), %esi
callq 0x5c900
movl %eax, -0x38(%rbp)
cmpl $0x30, -0x38(%rbp)
jl 0xf1607
cmpl $0x39, -0x38(%rbp)
jg 0xf1607
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0xf1609
jmp 0xf1616
jmp 0xf160b
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0xf15d9
jmp 0xf1618
movq -0x10(%rbp), %rsi
leaq -0x50(%rbp), %rdi
movq %rdi, -0x80(%rbp)
callq 0x5a1c0
movq -0x80(%rbp), %rdi
callq 0x5dbe0
movq %rax, %rdi
callq 0x5a5d0
movq %rax, -0x78(%rbp)
jmp 0xf1640
movq -0x78(%rbp), %rax
cvtsi2sd %rax, %xmm0
movsd %xmm0, -0x88(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x5d990
movsd -0x88(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movl $0x0, -0x60(%rbp)
movl -0x60(%rbp), %eax
cmpl -0x30(%rbp), %eax
jge 0xf16eb
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
addl -0x24(%rbp), %esi
addl $0x1, %esi
addl -0x60(%rbp), %esi
callq 0x5c900
subl $0x30, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0x90(%rbp)
xorl %esi, %esi
subl -0x60(%rbp), %esi
subl $0x1, %esi
movl $0xa, %edi
callq 0x5a330
movaps %xmm0, %xmm2
movsd -0x90(%rbp), %xmm0
movsd -0x40(%rbp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rbp)
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0xf166e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x5d990
jmp 0xf170f
movq -0x70(%rbp), %rdi
movsd -0x40(%rbp), %xmm0
cvtsi2sdl -0x18(%rbp), %xmm1
mulsd %xmm1, %xmm0
callq 0x5a450
movq -0x68(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
movq -0x58(%rbp), %rdi
callq 0x5b6b0
nopl (%rax,%rax)