// File: /workspace/github_cpp_makefile_star2_O1/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), %r12
movb (%r12), %dl
testb %dl, %dl
je 0x29e87
leaq 0x1(%r12), %r15
xorl %ecx, %ecx
xorl %eax, %eax
movzbl %dl, %esi
cmpb $0x1, 0x1000(%r14,%rsi)
jne 0x29e7c
cmpb $0x65, %dl
je 0x29e69
cmpl $0x45, %esi
je 0x29e69
cmpl $0x2e, %esi
jne 0x29e6b
incl %ecx
jmp 0x29e6b
incl %eax
movq %r15, 0x12f0(%r14)
movb (%r15), %dl
incq %r15
testb %dl, %dl
jne 0x29e48
decq %r15
testl %ecx, %ecx
setg %bpl
jmp 0x29e8e
xorl %eax, %eax
xorl %ebp, %ebp
movq %r12, %r15
cmpq %r15, %r12
je 0x29ee1
cmpl $0x2, %eax
jge 0x2a2e6
cmpl $0x1, %eax
sete %al
orb %al, %bpl
movq $0x0, 0x28(%rsp)
callq 0x13050
movq %rax, %r15
movl $0x0, (%rax)
cmpb $0x1, %bpl
jne 0x29fb7
leaq 0x28(%rsp), %rsi
movq %r12, %rdi
callq 0x13200
movsd %xmm0, 0x30(%rsp)
xorl %r12d, %r12d
jmp 0x29fdc
leaq 0x3d12(%rip), %rsi      # 0x2dbfa
movl $0x3, %edx
movq %r15, %rdi
callq 0x13320
testl %eax, %eax
je 0x2a11b
leaq 0x3cfa(%rip), %rsi      # 0x2dbfe
movl $0x8, %edx
movq %r15, %rdi
callq 0x13320
testl %eax, %eax
je 0x2a19d
leaq 0x3ce7(%rip), %rsi      # 0x2dc07
movl $0x3, %edx
movq %r15, %rdi
callq 0x13320
testl %eax, %eax
jne 0x2a35b
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 0x27cd8
movq -0x8(%r12), %rcx
movq (%r12), %rax
movq %rcx, 0x48(%rsp)
movq %rax, 0x50(%rsp)
testq %rax, %rax
je 0x2a218
movq 0xf02a(%rip), %rcx      # 0x38fd0
cmpb $0x0, (%rcx)
je 0x2a214
incl 0x8(%rax)
jmp 0x2a218
cmpb $0x2d, (%r12)
jne 0x29fe3
leaq 0x28(%rsp), %rsi
movq %r12, %rdi
movl $0xa, %edx
callq 0x132e0
movq %rax, %r12
xorps %xmm0, %xmm0
movsd %xmm0, 0x30(%rsp)
xorl %r13d, %r13d
xorl %eax, %eax
jmp 0x2a008
leaq 0x28(%rsp), %rsi
movq %r12, %rdi
movl $0xa, %edx
callq 0x13270
movq %rax, %r12
shrq $0x3f, %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x30(%rsp)
movq %r12, %r13
cmpl $0x0, (%r15)
jne 0x2a26e
movq 0x28(%rsp), %rcx
cmpq 0x12f0(%r14), %rcx
jne 0x2a26e
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
testb %bpl, %bpl
je 0x2a059
movl $0x10, %edi
callq 0x13290
movq %rax, %r15
movl $0x5, (%rax)
movl $0x8, %edi
callq 0x13290
movsd 0x30(%rsp), %xmm0
movsd %xmm0, (%rax)
jmp 0x2a09f
testb %al, %al
je 0x2a07f
movl $0x10, %edi
callq 0x13290
movq %rax, %r15
movl $0x4, (%rax)
movl $0x8, %edi
callq 0x13290
movq %r13, (%rax)
jmp 0x2a09f
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 0x2a81c
movq (%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x38(%rsp)
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x2a0db
movq 0xef03(%rip), %rcx      # 0x38fd0
cmpb $0x0, (%rcx)
je 0x2a0d7
incl 0x8(%rax)
jmp 0x2a0db
lock
incl 0x8(%rax)
leaq 0x38(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x29cf6
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x2a0fa
callq 0x19f34
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2a109
callq 0x19f34
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
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 0x27cd8
movq -0x8(%r12), %rcx
movq (%r12), %rax
movq %rcx, 0x68(%rsp)
movq %rax, 0x70(%rsp)
testq %rax, %rax
je 0x2a236
movq 0xee44(%rip), %rcx      # 0x38fd0
cmpb $0x0, (%rcx)
je 0x2a232
incl 0x8(%rax)
jmp 0x2a236
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 0x27cd8
movq -0x8(%r12), %rcx
movq (%r12), %rax
movq %rcx, 0x58(%rsp)
movq %rax, 0x60(%rsp)
testq %rax, %rax
je 0x2a254
movq 0xedc6(%rip), %rcx      # 0x38fd0
cmpb $0x0, (%rcx)
je 0x2a250
incl 0x8(%rax)
jmp 0x2a254
lock
incl 0x8(%rax)
leaq 0x48(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x29cf6
movq 0x50(%rsp), %rdi
jmp 0x2a0f0
lock
incl 0x8(%rax)
leaq 0x68(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x29cf6
movq 0x70(%rsp), %rdi
jmp 0x2a0f0
lock
incl 0x8(%rax)
leaq 0x58(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x29cf6
movq 0x60(%rsp), %rdi
jmp 0x2a0f0
movl $0x60, %edi
callq 0x13110
movq %rax, %r14
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x39ba(%rip), %rsi      # 0x2dc45
leaq 0x39ed(%rip), %rdx      # 0x2dc7f
movq %rsp, %rdi
callq 0x19fa4
movb $0x1, %bpl
leaq 0x3854(%rip), %rsi      # 0x2daf8
leaq 0x3960(%rip), %rdx      # 0x2dc0b
movq %rsp, %r8
movq %r14, %rdi
movl $0x1c2, %ecx            # imm = 0x1C2
callq 0x2c1b8
leaq 0xeaae(%rip), %rax      # 0x38d70
addq $0x10, %rax
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0xea86(%rip), %rsi      # 0x38d58
leaq -0x1011b(%rip), %rdx    # 0x1a1be
movq %r14, %rdi
callq 0x13410
jmp 0x2a3ce
movl $0x60, %edi
callq 0x13110
movq %rax, %r14
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x3916(%rip), %rsi      # 0x2dc19
leaq 0x393a(%rip), %rdx      # 0x2dc44
movq %rsp, %rdi
callq 0x19fa4
movb $0x1, %bpl
leaq 0x37dc(%rip), %rsi      # 0x2daf8
leaq 0x38e8(%rip), %rdx      # 0x2dc0b
movq %rsp, %r8
movq %r14, %rdi
movl $0x1ab, %ecx            # imm = 0x1AB
callq 0x2c1b8
leaq 0xea36(%rip), %rax      # 0x38d70
addq $0x10, %rax
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0xea0e(%rip), %rsi      # 0x38d58
leaq -0x10193(%rip), %rdx    # 0x1a1be
movq %r14, %rdi
callq 0x13410
jmp 0x2a3ce
movl $0x60, %edi
callq 0x13110
movq %rax, %r14
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x37a1(%rip), %rsi      # 0x2db19
leaq 0x37b5(%rip), %rdx      # 0x2db34
movq %rsp, %rdi
callq 0x19fa4
movb $0x1, %bpl
leaq 0x3767(%rip), %rsi      # 0x2daf8
leaq 0x3873(%rip), %rdx      # 0x2dc0b
movq %rsp, %r8
movq %r14, %rdi
movl $0x1a7, %ecx            # imm = 0x1A7
callq 0x2c1b8
leaq 0xe9c1(%rip), %rax      # 0x38d70
addq $0x10, %rax
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0xe999(%rip), %rsi      # 0x38d58
leaq -0x10208(%rip), %rdx    # 0x1a1be
movq %r14, %rdi
callq 0x13410
jmp 0x2a434
jmp 0x2a44f
movq %rax, %rbx
movq 0x60(%rsp), %rdi
jmp 0x2a428
jmp 0x2a3f4
movq %rax, %rbx
movq 0x70(%rsp), %rdi
jmp 0x2a428
jmp 0x2a3f4
movq %rax, %rbx
movq 0x50(%rsp), %rdi
jmp 0x2a428
movq %rax, %rbx
movl $0x10, %esi
movq %r15, %rdi
callq 0x132a0
jmp 0x2a476
jmp 0x2a40a
jmp 0x2a40a
movq %rax, %rbx
movl $0x10, %esi
movq %r15, %rdi
callq 0x132a0
jmp 0x2a467
jmp 0x2a434
jmp 0x2a44f
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x2a467
callq 0x19f34
jmp 0x2a467
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2a455
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x132a0
jmp 0x2a455
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x2a476
movq %r14, %rdi
callq 0x131e0
jmp 0x2a476
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2a476
callq 0x19f34
movq %rbx, %rdi
callq 0x13430