// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/ResolveLiteral.cpp
// Function: resolveDubLiteral(std::shared_ptr<TokenData>)
Action resolveDubLiteral(Token token)
{
	string in=token->getText();
	
	double val=0;
	int pointPos=0;
	
	for (auto i=in.begin(); i!=in.end(); ++i)
	{
		if (*i=='.' || *i=='_')
		{
			if (pointPos==0)
			{
				pointPos=10;
			}
			else
			{
				error.log(string() + "multiple decimal points tersedia pada nomor '" + in + "'", SOURCE_ERROR, token);
				return voidAction;
			}
		}
		else if (*i>='0' && *i<='9')
		{
			if (pointPos)
			{
				val+=(double)(*i-'0')/pointPos;
				pointPos*=10;
			}
			else
			{
				val=val*10+(*i-'0');
			}
		}
		else
		{
			error.log(string() + "bad character '" + *i + "' tersedia pada nomor '" + in + "'", SOURCE_ERROR, token);
			return voidAction;
		}
	}
	
	double out=val;
	return constGetAction(&out, Dub, token->getText(), globalNamespace);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rsi
leaq 0xa8(%rsp), %r15
movq %r15, %rdi
callq 0xa3b0
movq (%r15), %r12
movq 0x8(%r15), %rax
xorl %r15d, %r15d
xorpd %xmm0, %xmm0
pushq $0xa
popq %rcx
movsd 0x1c67d(%rip), %xmm1    # 0x58158
xorl %edx, %edx
cmpq %r15, %rax
je 0x3bb34
movzbl (%r12,%r15), %esi
cmpl $0x5f, %esi
je 0x3baf1
cmpl $0x2e, %esi
jne 0x3bafc
testl %edx, %edx
movl %ecx, %edx
je 0x3bb2f
jmp 0x3bbb5
leal -0x30(%rsi), %edi
cmpb $0x9, %dil
ja 0x3bc70
addl $-0x30, %esi
cvtsi2sd %esi, %xmm2
testl %edx, %edx
je 0x3bb25
cvtsi2sd %edx, %xmm3
divsd %xmm3, %xmm2
addsd %xmm2, %xmm0
imull $0xa, %edx, %edx
jmp 0x3bb2f
mulsd %xmm1, %xmm0
addsd %xmm2, %xmm0
xorl %edx, %edx
incq %r15
jmp 0x3badd
movsd %xmm0, 0x8(%rsp)
leaq 0x3e8ef(%rip), %rsi     # 0x7a430
leaq 0x28(%rsp), %rdi
callq 0x12c0a
movq (%r14), %rsi
leaq 0xc8(%rsp), %rdi
callq 0xa3b0
leaq 0x3e7fe(%rip), %rsi     # 0x7a360
leaq 0x78(%rsp), %r14
movq %r14, %rdi
callq 0x12bf6
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
leaq 0xc8(%rsp), %rcx
movq %rbx, %rdi
movq %r14, %r8
callq 0x4e48c
leaq 0x80(%rsp), %rdi
callq 0xc984
leaq 0xc8(%rsp), %rdi
callq 0xa558
leaq 0x30(%rsp), %rdi
callq 0xc984
jmp 0x3bd8a
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x1c5bc(%rip), %rdx     # 0x58189
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0xc882
leaq 0x8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0x184b5
leaq 0x1d658(%rip), %rdx     # 0x59252
leaq 0x148(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xc882
leaq 0x98(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x12e2e
leaq 0x3e6d5(%rip), %rdi     # 0x7a2fb
leaq 0x148(%rsp), %rsi
xorl %edx, %edx
movq %r15, %rcx
callq 0x19a6e
leaq 0xa0(%rsp), %rdi
callq 0xc984
leaq 0x148(%rsp), %rdi
callq 0xa558
leaq 0x8(%rsp), %rdi
callq 0xa558
leaq 0x58(%rsp), %rdi
callq 0xa558
leaq 0x38(%rsp), %rdi
jmp 0x3bd76
leaq 0xf8(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x1c4d5(%rip), %rdx     # 0x58160
leaq 0x108(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
callq 0xc882
movsbl (%r12,%r15), %edx
leaq 0x38(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x1aaca
leaq 0x1c4f9(%rip), %rdx     # 0x581b7
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0xc882
leaq 0x8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0x184b5
leaq 0x1d567(%rip), %rdx     # 0x59252
leaq 0x128(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xc882
leaq 0x88(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x12e2e
leaq 0x3e5e4(%rip), %rdi     # 0x7a2fb
leaq 0x128(%rsp), %rsi
xorl %edx, %edx
movq %r15, %rcx
callq 0x19a6e
leaq 0x90(%rsp), %rdi
callq 0xc984
leaq 0x128(%rsp), %rdi
callq 0xa558
leaq 0x8(%rsp), %rdi
callq 0xa558
leaq 0x58(%rsp), %rdi
callq 0xa558
leaq 0x38(%rsp), %rdi
callq 0xa558
leaq 0x108(%rsp), %rdi
callq 0xa558
leaq 0xe8(%rsp), %rdi
callq 0xa558
leaq 0x3e5ce(%rip), %rsi     # 0x7a350
movq %rbx, %rdi
callq 0x12c1e
leaq 0xa8(%rsp), %rdi
callq 0xa558
movq %rbx, %rax
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0xc984
leaq 0x128(%rsp), %rdi
callq 0xa558
jmp 0x3bdcb
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xa558
jmp 0x3bdda
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0xa558
jmp 0x3bde9
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0xa558
jmp 0x3bdf8
movq %rax, %rbx
leaq 0x108(%rsp), %rdi
callq 0xa558
leaq 0xe8(%rsp), %rdi
jmp 0x3be59
movq %rax, %rbx
jmp 0x3be05
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0xc984
leaq 0x148(%rsp), %rdi
callq 0xa558
jmp 0x3be36
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xa558
jmp 0x3be45
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0xa558
jmp 0x3be54
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0xa558
jmp 0x3be8c
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0xc984
leaq 0xc8(%rsp), %rdi
callq 0xa558
jmp 0x3be82
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xc984
leaq 0xa8(%rsp), %rdi
callq 0xa558
movq %rbx, %rdi
callq 0xa500