// File: /workspace/github_cpp_makefile_star2_O1/Nallantli[P]Rossa/main/rossa/node_parser/node_parser.cpp
// Function: node_parser_t::parseNumNode(std::vector<node_scope_t, std::allocator<node_scope_t>>*)
ptr_node_t node_parser_t::parseNumNode(std::vector<node_scope_t> *scopes)
{
	number_t numValue;
	std::string numStr = currentToken.valueString;
	if (numStr.size() > 2 && isalpha(currentToken.valueString[1]))
	{
		switch (numStr[1])
		{
		case 'b':
		case 'B':
			numValue = number_t::Long(std::stoll(numStr.substr(2), nullptr, 2));
			break;
		default:
			numValue = number_t::Long(std::stoll(numStr, nullptr, 0));
			break;
		}
	}
	else if (numStr == "inf")
	{
		numValue = number_t::Double(INFINITY);
	}
	else if (numStr == "nan")
	{
		numValue = number_t::Double(NAN);
	}
	else if (numStr.find('.') != std::string::npos)
	{
		numValue = number_t::Double(std::stod(numStr));
	}
	else if (numStr.length() == 1 && !isdigit(numStr[0]))
	{
		numValue = number_t::Long(static_cast<unsigned char>(numStr[0]));
	}
	else
	{
		numValue = number_t::Long(std::stoll(numStr, nullptr, 10));
	}
	const ptr_node_t n = std::make_shared<ContainerNode>(*scopes, symbol_t::Number(numValue), currentToken);
	nextToken();
	return n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x60(%rsp), %rdi
callq 0x47838
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0xb0(%r14), %rsi
movq 0xb8(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0x1e014
cmpq $0x3, 0x8(%r12)
jb 0x258e5
movq 0xb0(%r14), %rax
movsbl 0x1(%rax), %edi
callq 0x10650
testl %eax, %eax
je 0x258e5
movq 0x8(%rsp), %r13
movzbl 0x1(%r13), %eax
orl $0x20, %eax
cmpl $0x62, %eax
jne 0x259b0
leaq 0x40(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl $0x2, %edx
movq $-0x1, %rcx
callq 0x10410
movq 0x40(%rsp), %r13
callq 0x10050
movq %rax, %r12
movl (%rax), %eax
movl %eax, 0x4(%rsp)
movl $0x0, (%r12)
leaq 0x38(%rsp), %rbp
movq %r13, %rdi
movq %rbp, %rsi
movl $0x2, %edx
callq 0x10080
cmpq %r13, (%rbp)
je 0x25bbb
movl (%r12), %ecx
testl %ecx, %ecx
je 0x25a08
cmpl $0x22, %ecx
leaq 0x18(%rsp), %r13
jne 0x25a15
leaq 0x5f1e3(%rip), %rdi     # 0x84ac3
callq 0x105a0
leaq 0x5ece2(%rip), %rsi     # 0x845ce
leaq 0x8(%rsp), %rdi
callq 0x10110
testl %eax, %eax
je 0x2598d
leaq 0x5eccd(%rip), %rsi     # 0x845d2
leaq 0x8(%rsp), %rdi
callq 0x10110
testl %eax, %eax
je 0x25999
leaq 0x8(%rsp), %rdi
movl $0x2e, %esi
xorl %edx, %edx
callq 0x10530
cmpq $-0x1, %rax
je 0x25a5b
movq 0x8(%rsp), %r13
callq 0x10050
movq %rax, %r12
movl (%rax), %eax
movl %eax, 0x4(%rsp)
movl $0x0, (%r12)
leaq 0x28(%rsp), %rbp
movq %r13, %rdi
movq %rbp, %rsi
callq 0x10300
cmpq %r13, (%rbp)
je 0x25bc7
movl (%r12), %eax
testl %eax, %eax
je 0x25aeb
cmpl $0x22, %eax
leaq 0x18(%rsp), %r13
jne 0x25af8
leaq 0x5f141(%rip), %rdi     # 0x84ac9
callq 0x105a0
movabsq $0x7ff0000000000000, %rax # imm = 0x7FF0000000000000
jmp 0x259a3
movabsq $0x7ff8000000000000, %rax # imm = 0x7FF8000000000000
leaq 0x28(%rsp), %rdi
movq %rax, (%rdi)
jmp 0x25b01
callq 0x10050
movq %rax, %r12
movl (%rax), %eax
movl %eax, 0x4(%rsp)
movl $0x0, (%r12)
leaq 0x28(%rsp), %rbp
movq %r13, %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq 0x10080
cmpq %r13, (%rbp)
je 0x25bd3
movl (%r12), %ecx
testl %ecx, %ecx
je 0x25acf
cmpl $0x22, %ecx
leaq 0x18(%rsp), %r13
jne 0x25adc
leaq 0x5f0c0(%rip), %rdi     # 0x84ac3
callq 0x105a0
movl 0x4(%rsp), %ecx
movl %ecx, (%r12)
leaq 0x18(%rsp), %r13
leaq 0x70(%rsp), %rdi
movq %rax, (%rdi)
callq 0x47868
leaq 0x28(%rsp), %rsi
movq %rax, (%rsi)
movl %edx, 0x8(%rsi)
leaq 0x60(%rsp), %rdi
callq 0x47888
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x25b1b
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x25b1b
cmpq $0x1, 0x10(%rsp)
jne 0x25a77
movq 0x8(%rsp), %rax
movsbl (%rax), %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
jae 0x25bae
movq 0x8(%rsp), %r13
callq 0x10050
movq %rax, %r12
movl (%rax), %eax
movl %eax, 0x4(%rsp)
movl $0x0, (%r12)
leaq 0x28(%rsp), %rbp
movq %r13, %rdi
movq %rbp, %rsi
movl $0xa, %edx
callq 0x10080
cmpq %r13, (%rbp)
je 0x25bdf
movl (%r12), %ecx
testl %ecx, %ecx
je 0x25acf
cmpl $0x22, %ecx
leaq 0x18(%rsp), %r13
jne 0x25adc
leaq 0x5eff9(%rip), %rdi     # 0x84ac3
callq 0x105a0
movl 0x4(%rsp), %ecx
movl %ecx, (%r12)
leaq 0x18(%rsp), %r13
leaq 0x38(%rsp), %rdi
movq %rax, (%rdi)
callq 0x47868
jmp 0x25b06
movl 0x4(%rsp), %eax
movl %eax, (%r12)
leaq 0x18(%rsp), %r13
leaq 0x38(%rsp), %rdi
movsd %xmm0, (%rdi)
callq 0x47848
leaq 0x40(%rsp), %rsi
movq %rax, (%rsi)
movl %edx, 0x8(%rsi)
leaq 0x60(%rsp), %rdi
callq 0x47888
leaq 0x28(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x40458
leaq 0x58(%r14), %r9
leaq 0x48(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x40(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0x28(%rsp), %r8
movq %r15, %rcx
callq 0x37e92
movq 0x40(%rsp), %rax
movq %rax, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq 0x48(%rsp), %r15
movq %rax, 0x48(%rsp)
movq %r15, 0x8(%rbx)
movq %rax, 0x40(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x404da
movq %r14, %rdi
callq 0x2565a
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x25b9c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x103d0
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzbl (%rax), %eax
leaq 0x28(%rsp), %rdi
jmp 0x25ae1
leaq 0x5ef01(%rip), %rdi     # 0x84ac3
callq 0x10240
leaq 0x5eefb(%rip), %rdi     # 0x84ac9
callq 0x10240
leaq 0x5eee9(%rip), %rdi     # 0x84ac3
callq 0x10240
leaq 0x5eedd(%rip), %rdi     # 0x84ac3
callq 0x10240
jmp 0x25bf1
jmp 0x25bf1
jmp 0x25c55
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x25c58
movl 0x4(%rsp), %eax
movl %eax, (%r12)
jmp 0x25c58
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x25c17
movl 0x4(%rsp), %eax
movl %eax, (%r12)
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x25c58
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x25c58
movq %rax, %rbx
testq %r15, %r15
je 0x25c58
movq %r15, %rdi
callq 0x1e6ee
jmp 0x25c58
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x404da
jmp 0x25c58
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x25c74
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x103d0
movq %rbx, %rdi
callq 0x106f0