// File: /workspace/github_cpp_makefile_star2_O3/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 $0x78, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x12f0(%rsi), %r15
movb (%r15), %sil
testb %sil, %sil
je 0x29c4c
xorl %eax, %eax
movl $0x1, %edx
xorl %ecx, %ecx
movzbl %sil, %edi
cmpb $0x1, 0x1000(%r14,%rdi)
jne 0x29bf2
cmpb $0x65, %sil
je 0x29bd7
cmpl $0x45, %edi
je 0x29bd7
cmpl $0x2e, %edi
jne 0x29bd9
incl %eax
jmp 0x29bd9
incl %ecx
leaq (%r15,%rdx), %rsi
movq %rsi, 0x12f0(%r14)
movb (%r15,%rdx), %sil
incq %rdx
testb %sil, %sil
jne 0x29bb4
jmp 0x29bf8
cmpq $0x1, %rdx
je 0x29c4c
cmpl $0x2, %ecx
jge 0x2a05f
testl %eax, %eax
setg %al
cmpl $0x1, %ecx
sete %bpl
orb %al, %bpl
movq $0x0, 0x20(%rsp)
callq 0x13050
movq %rax, %r13
movl $0x0, (%rax)
cmpb $0x1, %bpl
jne 0x29d22
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
callq 0x13200
movsd %xmm0, 0x30(%rsp)
xorl %r12d, %r12d
jmp 0x29d4a
leaq 0x3fa7(%rip), %rsi      # 0x2dbfa
movl $0x3, %edx
movq %r15, %rdi
callq 0x13320
testl %eax, %eax
je 0x29d5a
leaq 0x3f8f(%rip), %rsi      # 0x2dbfe
movl $0x8, %edx
movq %r15, %rdi
callq 0x13320
testl %eax, %eax
je 0x29ef6
leaq 0x3f7c(%rip), %rsi      # 0x2dc07
movl $0x3, %edx
movq %r15, %rdi
callq 0x13320
testl %eax, %eax
jne 0x2a0d4
addq $0x3, %r15
movq %r15, 0x12f0(%r14)
movl $0x10, %edi
callq 0x13290
movq %rax, %r15
movl $0x5, (%rax)
movl $0x8, %edi
callq 0x13290
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
movq %rcx, (%rax)
movq %rax, 0x8(%r15)
leaq 0x8(%rsp), %r12
movq %r15, -0x8(%r12)
movq %r12, %rdi
movq %r15, %rsi
callq 0x27a1a
movq -0x8(%r12), %rcx
movq (%r12), %rax
movq %rcx, 0x48(%rsp)
movq %rax, 0x50(%rsp)
testq %rax, %rax
je 0x29f71
movq 0xf2bf(%rip), %rcx      # 0x38fd0
cmpb $0x0, (%rcx)
je 0x29f6d
incl 0x8(%rax)
jmp 0x29f71
cmpb $0x2d, (%r15)
jne 0x29ddc
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
movl $0xa, %edx
callq 0x132e0
movq %rax, %r12
xorps %xmm0, %xmm0
movsd %xmm0, 0x30(%rsp)
movq $0x0, 0x28(%rsp)
xorl %eax, %eax
jmp 0x29e03
addq $0x3, %r15
movq %r15, 0x12f0(%r14)
movl $0x10, %edi
callq 0x13290
movq %rax, %r15
movl $0x5, (%rax)
movl $0x8, %edi
callq 0x13290
movabsq $0x7ff8000000000000, %rcx # imm = 0x7FF8000000000000
movq %rcx, (%rax)
movq %rax, 0x8(%r15)
leaq 0x8(%rsp), %r12
movq %r15, -0x8(%r12)
movq %r12, %rdi
movq %r15, %rsi
callq 0x27a1a
movq -0x8(%r12), %rcx
movq (%r12), %rax
movq %rcx, 0x68(%rsp)
movq %rax, 0x70(%rsp)
testq %rax, %rax
je 0x29f8c
movq 0xf205(%rip), %rcx      # 0x38fd0
cmpb $0x0, (%rcx)
je 0x29f88
incl 0x8(%rax)
jmp 0x29f8c
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
movl $0xa, %edx
callq 0x13270
movq %rax, %r12
shrq $0x3f, %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x30(%rsp)
movq %r12, 0x28(%rsp)
cmpl $0x0, (%r13)
jne 0x29fe7
movq 0x20(%rsp), %rcx
cmpq 0x12f0(%r14), %rcx
jne 0x29fe7
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
testb %bpl, %bpl
je 0x29e55
movl $0x10, %edi
callq 0x13290
movq %rax, %r15
movl $0x5, (%rax)
movl $0x8, %edi
callq 0x13290
movsd 0x30(%rsp), %xmm0
movsd %xmm0, (%rax)
jmp 0x29ea0
testb %al, %al
je 0x29e80
movl $0x10, %edi
callq 0x13290
movq %rax, %r15
movl $0x4, (%rax)
movl $0x8, %edi
callq 0x13290
movq 0x28(%rsp), %rcx
movq %rcx, (%rax)
jmp 0x29ea0
movl $0x10, %edi
callq 0x13290
movq %rax, %r15
movl $0x3, (%rax)
movl $0x8, %edi
callq 0x13290
movq %r12, (%rax)
movq %rax, 0x8(%r15)
movq %rsp, %rdi
movq %r15, %rsi
callq 0x2a592
movq (%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x38(%rsp)
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x29edc
movq 0xf102(%rip), %rcx      # 0x38fd0
cmpb $0x0, (%rcx)
je 0x29ed8
incl 0x8(%rax)
jmp 0x29edc
lock
incl 0x8(%rax)
leaq 0x38(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x29a62
movq 0x40(%rsp), %rdi
jmp 0x29fbc
addq $0x8, %r15
movq %r15, 0x12f0(%r14)
movl $0x10, %edi
callq 0x13290
movq %rax, %r15
movl $0x5, (%rax)
movl $0x8, %edi
callq 0x13290
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
movq %rcx, (%rax)
movq %rax, 0x8(%r15)
leaq 0x8(%rsp), %r12
movq %r15, -0x8(%r12)
movq %r12, %rdi
movq %r15, %rsi
callq 0x27a1a
movq -0x8(%r12), %rcx
movq (%r12), %rax
movq %rcx, 0x58(%rsp)
movq %rax, 0x60(%rsp)
testq %rax, %rax
je 0x29fa7
movq 0xf06d(%rip), %rcx      # 0x38fd0
cmpb $0x0, (%rcx)
je 0x29fa3
incl 0x8(%rax)
jmp 0x29fa7
lock
incl 0x8(%rax)
leaq 0x48(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x29a62
movq 0x50(%rsp), %rdi
jmp 0x29fbc
lock
incl 0x8(%rax)
leaq 0x68(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x29a62
movq 0x70(%rsp), %rdi
jmp 0x29fbc
lock
incl 0x8(%rax)
leaq 0x58(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x29a62
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x29fc6
callq 0x19f10
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x29fd5
callq 0x19f10
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x60, %edi
callq 0x13110
movq %rax, %r14
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x3c41(%rip), %rsi      # 0x2dc45
leaq 0x3c74(%rip), %rdx      # 0x2dc7f
movq %rsp, %rdi
callq 0x19f80
movb $0x1, %bpl
leaq 0x3adb(%rip), %rsi      # 0x2daf8
leaq 0x3be7(%rip), %rdx      # 0x2dc0b
movq %rsp, %r8
movq %r14, %rdi
movl $0x1c2, %ecx            # imm = 0x1C2
callq 0x2bf1c
leaq 0xed35(%rip), %rax      # 0x38d70
addq $0x10, %rax
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0xed0d(%rip), %rsi      # 0x38d58
leaq -0xfeb4(%rip), %rdx     # 0x1a19e
movq %r14, %rdi
callq 0x13410
jmp 0x2a147
movl $0x60, %edi
callq 0x13110
movq %rax, %r14
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x3b9d(%rip), %rsi      # 0x2dc19
leaq 0x3bc1(%rip), %rdx      # 0x2dc44
movq %rsp, %rdi
callq 0x19f80
movb $0x1, %bpl
leaq 0x3a63(%rip), %rsi      # 0x2daf8
leaq 0x3b6f(%rip), %rdx      # 0x2dc0b
movq %rsp, %r8
movq %r14, %rdi
movl $0x1ab, %ecx            # imm = 0x1AB
callq 0x2bf1c
leaq 0xecbd(%rip), %rax      # 0x38d70
addq $0x10, %rax
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0xec95(%rip), %rsi      # 0x38d58
leaq -0xff2c(%rip), %rdx     # 0x1a19e
movq %r14, %rdi
callq 0x13410
jmp 0x2a147
movl $0x60, %edi
callq 0x13110
movq %rax, %r14
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x3a28(%rip), %rsi      # 0x2db19
leaq 0x3a3c(%rip), %rdx      # 0x2db34
movq %rsp, %rdi
callq 0x19f80
movb $0x1, %bpl
leaq 0x39ee(%rip), %rsi      # 0x2daf8
leaq 0x3afa(%rip), %rdx      # 0x2dc0b
movq %rsp, %r8
movq %r14, %rdi
movl $0x1a7, %ecx            # imm = 0x1A7
callq 0x2bf1c
leaq 0xec48(%rip), %rax      # 0x38d70
addq $0x10, %rax
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0xec20(%rip), %rsi      # 0x38d58
leaq -0xffa1(%rip), %rdx     # 0x1a19e
movq %r14, %rdi
callq 0x13410
jmp 0x2a1b0
jmp 0x2a1d0
movq %rax, %rbx
movq 0x60(%rsp), %rdi
jmp 0x2a1a4
jmp 0x2a174
jmp 0x2a186
jmp 0x2a186
movq %rax, %rbx
movq 0x70(%rsp), %rdi
jmp 0x2a1a4
jmp 0x2a174
movq %rax, %rbx
movq 0x50(%rsp), %rdi
jmp 0x2a1a4
movq %rax, %rbx
movl $0x10, %esi
movq %r15, %rdi
callq 0x132a0
jmp 0x2a1ef
movq %rax, %rbx
movl $0x10, %esi
movq %r15, %rdi
callq 0x132a0
jmp 0x2a1e0
jmp 0x2a1b0
jmp 0x2a1d0
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x2a1e0
callq 0x19f10
jmp 0x2a1e0
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2a1c9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x132a0
testb %bpl, %bpl
jne 0x2a1d3
jmp 0x2a1ef
movq %rax, %rbx
movq %r14, %rdi
callq 0x131e0
jmp 0x2a1ef
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2a1ef
callq 0x19f10
movq %rbx, %rdi
callq 0x13430
nop