// File: /workspace/github_cpp_makefile_star2_O2/swxlion[P]swxJson/src/swxJsonParser.cpp
// Function: swxJson::JsonParser::processNumber()
JsonPtr processNumber()
	{
		int dot = 0;
		int e = 0;
		char *_start = _pos;
		while (*_pos != 0 && _numberChars[*_pos])
		{
			if (*_pos == '.')
				dot++;
			else if (*_pos == 'E' || *_pos == 'e')
				e++;

			_pos++;
		}

		if (_start == _pos)
		{
			if (strncasecmp(_pos, "nan", 3) == 0)
			{
				_pos += 3;
				JsonPtr node(new Json(NAN));
				return insertNode(node);
			}
			if (strncasecmp(_pos, "Infinity", 8) == 0)
			{
				_pos += 8;
				JsonPtr node(new Json(INFINITY));
				return insertNode(node);
			}
			if (strncasecmp(_pos, "inf", 3) == 0)
			{
				_pos += 3;
				JsonPtr node(new Json(INFINITY));
				return insertNode(node);
			}
			throw JSON_ERROR_MSG(JosnInvalidContentError, "Json parser: content error.");
		}

		if (e > 1)
			throw JSON_ERROR_MSG(JosnInvalidContentError, "Json parser: content error, invalid number.");

		bool realType = (dot > 0|| e > 0);
		double d = 0;
		intmax_t i = 0;
		uintmax_t u = 0;
		bool unsignedNumber = false;
		char *endptr = NULL;

		errno = 0;
		if (realType)
			d = strtod(_start, &endptr);
		else if (*_start == '-')
			i = strtoimax(_start, &endptr, 10);
		else
		{
			u = strtoumax(_start, &endptr, 10);
			i = (intmax_t)u;

			unsignedNumber = i < 0;
		}
		
		if (errno || endptr != _pos)
			throw JSON_ERROR_MSG(JosnInvalidContentError, "Json parser: content error, invalid number or huge number.");

		JsonPtr node;
		if (realType)
			node.reset(new Json(d));
		else if (unsignedNumber)
			node.reset(new Json(u));
		else
			node.reset(new Json(i));

		return insertNode(node);
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x12f0(%rsi), %r15
leaq 0x1(%r15), %rsi
xorl %edx, %edx
xorl %eax, %eax
xorl %ecx, %ecx
movzbl -0x1(%rsi), %edi
testq %rdi, %rdi
je 0x2cdc1
cmpb $0x1, 0x1000(%r14,%rdi)
jne 0x2cdc1
cmpq $0x65, %rdi
je 0x2cdb0
cmpl $0x45, %edi
je 0x2cdb0
cmpl $0x2e, %edi
jne 0x2cdb2
incl %ecx
jmp 0x2cdb2
incl %eax
movq %rsi, 0x12f0(%r14)
decq %rdx
incq %rsi
jmp 0x2cd88
testq %rdx, %rdx
je 0x2ce16
movq %rbx, 0x40(%rsp)
cmpl $0x2, %eax
jge 0x2d103
testl %ecx, %ecx
setg %cl
cmpl $0x1, %eax
sete %bl
orb %cl, %bl
andq $0x0, 0x8(%rsp)
callq 0x1b040
movq %rax, %r12
andl $0x0, (%rax)
cmpb $0x1, %bl
jne 0x2cec2
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x1b1f0
movsd %xmm0, 0x38(%rsp)
xorl %r13d, %r13d
jmp 0x2cee4
leaq 0x2dd5(%rip), %rsi      # 0x2fbf2
pushq $0x3
popq %rdx
movq %r15, %rdi
callq 0x1b310
testl %eax, %eax
je 0x2cfe3
leaq 0x2dbf(%rip), %rsi      # 0x2fbf6
pushq $0x8
popq %rdx
movq %r15, %rdi
callq 0x1b310
testl %eax, %eax
je 0x2d044
leaq 0x2dae(%rip), %rsi      # 0x2fbff
pushq $0x3
popq %rdx
movq %r15, %rdi
callq 0x1b310
testl %eax, %eax
jne 0x2d161
addq $0x3, %r15
movq %r15, 0x12f0(%r14)
pushq $0x10
popq %rdi
callq 0x1b290
movq %rax, %r15
movsd 0x2c3e(%rip), %xmm0     # 0x2fac0
movq %rax, %rdi
callq 0x2a8be
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x2ab28
leaq 0x58(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x1efb8
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2cc7e
leaq 0x60(%rsp), %rdi
jmp 0x2cfbf
cmpb $0x2d, (%r15)
jne 0x2ceea
leaq 0x8(%rsp), %rsi
pushq $0xa
popq %rdx
movq %r15, %rdi
callq 0x1b2d0
movq %rax, %r13
xorps %xmm0, %xmm0
movsd %xmm0, 0x38(%rsp)
xorl %ebp, %ebp
xorl %eax, %eax
jmp 0x2cf0d
leaq 0x8(%rsp), %rsi
pushq $0xa
popq %rdx
movq %r15, %rdi
callq 0x1b270
movq %rax, %r13
shrq $0x3f, %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x38(%rsp)
movq %r13, %rbp
cmpl $0x0, (%r12)
jne 0x2d0a2
movq 0x8(%rsp), %rcx
cmpq 0x12f0(%r14), %rcx
jne 0x2d0a2
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
testb %bl, %bl
je 0x2cf56
pushq $0x10
popq %rdi
callq 0x1b290
movq 0x40(%rsp), %rbx
movq %rax, %r15
movq %rax, %rdi
movsd 0x38(%rsp), %xmm0
callq 0x2a8be
jmp 0x2cf8d
testb %al, %al
movq 0x40(%rsp), %rbx
je 0x2cf77
pushq $0x10
popq %rdi
callq 0x1b290
movq %rax, %r15
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2a916
jmp 0x2cf8d
pushq $0x10
popq %rdi
callq 0x1b290
movq %rax, %r15
movq %rax, %rdi
movq %r13, %rsi
callq 0x2a8ee
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x2d50e
leaq 0x48(%rsp), %r15
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x1efb8
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2cc7e
leaq 0x50(%rsp), %rdi
callq 0x1efec
leaq 0x18(%rsp), %rdi
callq 0x1efec
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addq $0x3, %r15
movq %r15, 0x12f0(%r14)
pushq $0x10
popq %rdi
callq 0x1b290
movq %rax, %r15
movsd 0x2ac7(%rip), %xmm0     # 0x2fac8
movq %rax, %rdi
callq 0x2a8be
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x2ab28
leaq 0x78(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x1efb8
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2cc7e
leaq 0x80(%rsp), %rdi
jmp 0x2cfbf
addq $0x8, %r15
movq %r15, 0x12f0(%r14)
pushq $0x10
popq %rdi
callq 0x1b290
movq %rax, %r15
movsd 0x2a5e(%rip), %xmm0     # 0x2fac0
movq %rax, %rdi
callq 0x2a8be
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x2ab28
leaq 0x68(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x1efb8
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2cc7e
leaq 0x70(%rsp), %rdi
jmp 0x2cfbf
pushq $0x60
popq %rdi
callq 0x1b110
movq %rax, %r14
leaq 0x2b89(%rip), %rsi      # 0x2fc3d
leaq 0x10(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x1d34a
movb $0x1, %bpl
leaq 0x2a23(%rip), %rsi      # 0x2faf0
leaq 0x2b2f(%rip), %rdx      # 0x2fc03
leaq 0x10(%rsp), %r8
movq %r14, %rdi
movl $0x1c2, %ecx            # imm = 0x1C2
callq 0x2cc64
xorl %ebp, %ebp
leaq 0xfc79(%rip), %rsi      # 0x3cd68
leaq -0xdea0(%rip), %rdx     # 0x1f256
movq %r14, %rdi
callq 0x1b3f0
jmp 0x2d1bd
pushq $0x60
popq %rdi
callq 0x1b110
movq %rax, %r14
leaq 0x2afc(%rip), %rsi      # 0x2fc11
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x1d34a
movb $0x1, %bpl
leaq 0x29c2(%rip), %rsi      # 0x2faf0
leaq 0x2ace(%rip), %rdx      # 0x2fc03
leaq 0x10(%rsp), %r8
movq %r14, %rdi
movl $0x1ab, %ecx            # imm = 0x1AB
callq 0x2cc64
xorl %ebp, %ebp
leaq 0xfc18(%rip), %rsi      # 0x3cd68
leaq -0xdf01(%rip), %rdx     # 0x1f256
movq %r14, %rdi
callq 0x1b3f0
jmp 0x2d1bd
pushq $0x60
popq %rdi
callq 0x1b110
movq %rax, %r14
leaq 0x299e(%rip), %rsi      # 0x2fb11
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x1d34a
movb $0x1, %bpl
leaq 0x2964(%rip), %rsi      # 0x2faf0
leaq 0x2a70(%rip), %rdx      # 0x2fc03
leaq 0x10(%rsp), %r8
movq %r14, %rdi
movl $0x1a7, %ecx            # imm = 0x1A7
callq 0x2cc64
xorl %ebp, %ebp
leaq 0xfbba(%rip), %rsi      # 0x3cd68
leaq -0xdf5f(%rip), %rdx     # 0x1f256
movq %r14, %rdi
callq 0x1b3f0
jmp 0x2d21d
jmp 0x2d231
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
jmp 0x2d216
jmp 0x2d1e6
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
jmp 0x2d216
jmp 0x2d1e6
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
jmp 0x2d216
movq %rax, %rbx
pushq $0x10
popq %rsi
movq %r15, %rdi
callq 0x1b2a0
jmp 0x2d24b
jmp 0x2d1fa
jmp 0x2d1fa
movq %rax, %rbx
pushq $0x10
popq %rsi
movq %r15, %rdi
callq 0x1b2a0
jmp 0x2d241
jmp 0x2d21d
jmp 0x2d231
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x1efec
jmp 0x2d241
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x1b458
testb %bpl, %bpl
jne 0x2d234
jmp 0x2d24b
movq %rax, %rbx
movq %r14, %rdi
callq 0x1b1c0
jmp 0x2d24b
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x1efec
movq %rbx, %rdi
callq 0x1b410
nop