// File: /workspace/github_cpp_makefile_star2_O3/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 0x46fe4
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0xb0(%r14), %rsi
movq 0xb8(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0x1ded4
cmpq $0x3, 0x8(%r12)
jb 0x25729
movq 0xb0(%r14), %rax
movsbl 0x1(%rax), %edi
callq 0x10650
testl %eax, %eax
je 0x25729
movq 0x8(%rsp), %r13
movzbl 0x1(%r13), %eax
orl $0x20, %eax
cmpl $0x62, %eax
jne 0x257f4
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 0x259f8
movl (%r12), %ecx
testl %ecx, %ecx
je 0x2584c
cmpl $0x22, %ecx
leaq 0x18(%rsp), %rbp
jne 0x25859
leaq 0x5e3bf(%rip), %rdi     # 0x83ae3
callq 0x105a0
leaq 0x5de9e(%rip), %rsi     # 0x835ce
leaq 0x8(%rsp), %rdi
callq 0x10110
testl %eax, %eax
je 0x257d1
leaq 0x5de89(%rip), %rsi     # 0x835d2
leaq 0x8(%rsp), %rdi
callq 0x10110
testl %eax, %eax
je 0x257dd
leaq 0x8(%rsp), %rdi
movl $0x2e, %esi
xorl %edx, %edx
callq 0x10530
cmpq $-0x1, %rax
je 0x2589f
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 0x25a04
movl (%r12), %eax
testl %eax, %eax
je 0x2592c
cmpl $0x22, %eax
leaq 0x18(%rsp), %rbp
jne 0x25939
leaq 0x5e31d(%rip), %rdi     # 0x83ae9
callq 0x105a0
movabsq $0x7ff0000000000000, %rax # imm = 0x7FF0000000000000
jmp 0x257e7
movabsq $0x7ff8000000000000, %rax # imm = 0x7FF8000000000000
leaq 0x28(%rsp), %rdi
movq %rax, (%rdi)
jmp 0x25942
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 0x25a10
movl (%r12), %ecx
testl %ecx, %ecx
je 0x25910
cmpl $0x22, %ecx
leaq 0x18(%rsp), %rbp
jne 0x2591d
leaq 0x5e29c(%rip), %rdi     # 0x83ae3
callq 0x105a0
movl 0x4(%rsp), %ecx
movl %ecx, (%r12)
leaq 0x18(%rsp), %rbp
leaq 0x70(%rsp), %rdi
movq %rax, (%rdi)
callq 0x47014
leaq 0x28(%rsp), %rsi
movq %rax, (%rsi)
movl %edx, 0x8(%rsi)
leaq 0x60(%rsp), %rdi
callq 0x47034
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2595c
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2595c
movq 0x8(%rsp), %r13
cmpq $0x1, 0x10(%rsp)
jne 0x258bd
movsbl (%r13), %eax
leal -0x30(%rax), %ecx
cmpl $0xa, %ecx
jae 0x259eb
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 0x25a1c
movl (%r12), %ecx
testl %ecx, %ecx
je 0x25910
cmpl $0x22, %ecx
leaq 0x18(%rsp), %rbp
jne 0x2591d
leaq 0x5e1d8(%rip), %rdi     # 0x83ae3
callq 0x105a0
movl 0x4(%rsp), %ecx
movl %ecx, (%r12)
leaq 0x18(%rsp), %rbp
leaq 0x38(%rsp), %rdi
movq %rax, (%rdi)
callq 0x47014
jmp 0x25947
movl 0x4(%rsp), %eax
movl %eax, (%r12)
leaq 0x18(%rsp), %rbp
leaq 0x38(%rsp), %rdi
movsd %xmm0, (%rdi)
callq 0x46ff4
leaq 0x40(%rsp), %rsi
movq %rax, (%rsi)
movl %edx, 0x8(%rsi)
leaq 0x60(%rsp), %rdi
callq 0x47034
leaq 0x28(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x3fd84
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 0x37986
movq 0x40(%rsp), %rax
movq %rax, (%rbx)
movq 0x48(%rsp), %r15
xorl %eax, %eax
movq %rax, 0x48(%rsp)
movq %r15, 0x8(%rbx)
movq %rax, 0x40(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x3fe06
movq %r14, %rdi
callq 0x2549e
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x259d9
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 %al, %eax
leaq 0x28(%rsp), %rdi
jmp 0x25922
leaq 0x5e0e4(%rip), %rdi     # 0x83ae3
callq 0x10240
leaq 0x5e0de(%rip), %rdi     # 0x83ae9
callq 0x10240
leaq 0x5e0cc(%rip), %rdi     # 0x83ae3
callq 0x10240
leaq 0x5e0c0(%rip), %rdi     # 0x83ae3
callq 0x10240
jmp 0x25a2e
jmp 0x25a2e
jmp 0x25a92
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x25a95
movl 0x4(%rsp), %eax
movl %eax, (%r12)
jmp 0x25a95
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x25a54
movl 0x4(%rsp), %eax
movl %eax, (%r12)
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x25a95
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x25a95
movq %rax, %rbx
testq %r15, %r15
je 0x25a95
movq %r15, %rdi
callq 0x1e5bc
jmp 0x25a95
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3fe06
jmp 0x25a95
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x25ab1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x103d0
movq %rbx, %rdi
callq 0x106f0
nop