// File: swxlion[P]swxJson/src/swxJsonParser.cpp
// Function: swxJson::JsonParser::generalProcess()
JsonPtr JsonParser::generalProcess()
{
	if(_wantKey || _wantComma || _wantSemicolon)
		throw JSON_ERROR_MSG(JosnInvalidContentError, "Json parser: content error.");

	if (strncmp(_pos, "true", 4) == 0)
	{
		_pos += 4;
		JsonPtr node(new Json(true));
		return insertNode(node);
	}

	else if (strncmp(_pos, "false", 5) == 0)
	{
		_pos += 5;
		JsonPtr node(new Json(false));
		return insertNode(node);
	}

	else if (strncmp(_pos, "null", 4) == 0)
	{
		_pos += 4;
		JsonPtr node(new Json(true));
		node->setNull();
		return insertNode(node);
	}
	else
		return processNumber();
}

// Assembly:
subq $0x118, %rsp            # imm = 0x118
movq %rdi, 0x58(%rsp)
movq %rdi, %rax
movq %rax, 0x60(%rsp)
movq %rdi, 0x110(%rsp)
movq %rsi, 0x108(%rsp)
movq 0x108(%rsp), %rax
movq %rax, 0x68(%rsp)
testb $0x1, 0x12e8(%rax)
jne 0x7c6fa
movq 0x68(%rsp), %rax
testb $0x1, 0x12ea(%rax)
jne 0x7c6fa
movq 0x68(%rsp), %rax
testb $0x1, 0x12eb(%rax)
je 0x7c7e9
movb $0x1, 0xd3(%rsp)
movl $0x60, %edi
callq 0x4a160
movq %rax, 0x48(%rsp)
leaq 0xe7(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0x4a530
movq 0x50(%rsp), %rdx
leaq 0x63f2(%rip), %rsi      # 0x82b21
leaq 0xe8(%rsp), %rdi
callq 0x4dcf0
jmp 0x7c73e
movq 0x48(%rsp), %rdi
leaq 0x63b6(%rip), %rsi      # 0x82b00
leaq 0x63c1(%rip), %rdx      # 0x82b12
movl $0x1e9, %ecx            # imm = 0x1E9
leaq 0xe8(%rsp), %r8
callq 0x7d0d0
jmp 0x7c765
movq 0x48(%rsp), %rdi
movb $0x0, 0xd3(%rsp)
leaq 0x1b5df(%rip), %rsi     # 0x97d58
leaq 0x9b0(%rip), %rdx       # 0x7d130
callq 0x4a500
jmp 0x7cb7c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
jmp 0x7c7c1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
leaq 0xe8(%rsp), %rdi
callq 0x4a5b8
leaq 0xe7(%rsp), %rdi
callq 0x4a390
testb $0x1, 0xd3(%rsp)
jne 0x7c7da
jmp 0x7c7e4
movq 0x48(%rsp), %rdi
callq 0x4a220
jmp 0x7cb6f
movq 0x68(%rsp), %rax
movq 0x12f0(%rax), %rdi
leaq 0x5fa4(%rip), %rsi      # 0x827a0
movl $0x4, %edx
callq 0x4a150
cmpl $0x0, %eax
jne 0x7c905
movq 0x68(%rsp), %rax
movq 0x12f0(%rax), %rcx
addq $0x4, %rcx
movq %rcx, 0x12f0(%rax)
movl $0x10, %edi
callq 0x4a310
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x40(%rsp)
movl $0x1, %esi
callq 0x739c0
jmp 0x7c847
movq 0x40(%rsp), %rsi
leaq 0xc0(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x720a0
movq 0x30(%rsp), %rsi
leaq 0xb0(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0x4e240
movq 0x58(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x7d140
jmp 0x7c88b
leaq 0xb0(%rsp), %rdi
callq 0x4e270
leaq 0xc0(%rsp), %rdi
callq 0x4e270
jmp 0x7cb62
movq 0x40(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
movl $0x10, %esi
callq 0x4a320
jmp 0x7cb6f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
leaq 0xb0(%rsp), %rdi
callq 0x4e270
leaq 0xc0(%rsp), %rdi
callq 0x4e270
jmp 0x7cb6f
movq 0x68(%rsp), %rax
movq 0x12f0(%rax), %rdi
leaq 0x5e8d(%rip), %rsi      # 0x827a5
movl $0x5, %edx
callq 0x4a150
cmpl $0x0, %eax
jne 0x7ca1e
movq 0x68(%rsp), %rax
movq 0x12f0(%rax), %rcx
addq $0x5, %rcx
movq %rcx, 0x12f0(%rax)
movl $0x10, %edi
callq 0x4a310
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x28(%rsp)
xorl %esi, %esi
callq 0x739c0
jmp 0x7c960
movq 0x28(%rsp), %rsi
leaq 0xa0(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x720a0
movq 0x18(%rsp), %rsi
leaq 0x90(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x4e240
movq 0x58(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x7d140
jmp 0x7c9a4
leaq 0x90(%rsp), %rdi
callq 0x4e270
leaq 0xa0(%rsp), %rdi
callq 0x4e270
jmp 0x7cb62
movq 0x28(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
movl $0x10, %esi
callq 0x4a320
jmp 0x7cb6f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x4e270
leaq 0xa0(%rsp), %rdi
callq 0x4e270
jmp 0x7cb6f
movq 0x68(%rsp), %rax
movq 0x12f0(%rax), %rdi
leaq 0x5d7a(%rip), %rsi      # 0x827ab
movl $0x4, %edx
callq 0x4a150
cmpl $0x0, %eax
jne 0x7cb53
movq 0x68(%rsp), %rax
movq 0x12f0(%rax), %rcx
addq $0x4, %rcx
movq %rcx, 0x12f0(%rax)
movl $0x10, %edi
callq 0x4a310
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x10(%rsp)
movl $0x1, %esi
callq 0x739c0
jmp 0x7ca7c
movq 0x10(%rsp), %rsi
leaq 0x80(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x720a0
movq 0x8(%rsp), %rdi
callq 0x4ddf0
movq %rax, %rdi
callq 0x6b680
jmp 0x7caa7
leaq 0x70(%rsp), %rdi
movq %rdi, (%rsp)
leaq 0x80(%rsp), %rsi
callq 0x4e240
movq 0x58(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq (%rsp), %rdx
callq 0x7d140
jmp 0x7cad2
leaq 0x70(%rsp), %rdi
callq 0x4e270
leaq 0x80(%rsp), %rdi
callq 0x4e270
jmp 0x7cb62
movq 0x10(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
movl $0x10, %esi
callq 0x4a320
jmp 0x7cb6f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
jmp 0x7cb44
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x4e270
leaq 0x80(%rsp), %rdi
callq 0x4e270
jmp 0x7cb6f
movq 0x68(%rsp), %rsi
movq 0x58(%rsp), %rdi
callq 0x7d2a0
movq 0x60(%rsp), %rax
addq $0x118, %rsp            # imm = 0x118
retq
movq 0xd8(%rsp), %rdi
callq 0x4a520
nopl (%rax)