// File: lega911[P]ijson/src/json.cpp
// Function: Json::scan()
bool Json::scan() {
    if(_data.empty()) return false;
    strip();
    if(_status == 0) {
        if(next() != '{') throw error::InvalidData();
        strip();
        if(next() == '}') return false;
        index--;
    } else if(_status == 1) {
        char a = next();
        if(a == '}') return false;
        if(a != ',') throw error::InvalidData();
    }

    strip();
    key = read_string();
    strip();
    if(next() != ':') throw error::InvalidData();
    strip();
    char a = next();
    index--;

    if(a == '"') value = read_string();
    else if(a == '{' || a == '[') value = read_object();
    else value = read_value();

    _status = 1;
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
addq $0x28, %rdi
callq 0x1eb40
testb $0x1, %al
jne 0x236f9
jmp 0x23702
movb $0x0, -0x1(%rbp)
jmp 0x23a35
movq -0xb0(%rbp), %rdi
callq 0x23a50
movq -0xb0(%rbp), %rax
cmpl $0x0, 0x24(%rax)
jne 0x237c6
movq -0xb0(%rbp), %rdi
callq 0x24130
movsbl %al, %eax
cmpl $0x7b, %eax
je 0x23788
movl $0x30, %edi
callq 0x19180
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xb8(%rbp)
callq 0x1ee60
jmp 0x23751
movq -0xb8(%rbp), %rdi
leaq 0x234f9(%rip), %rsi     # 0x46c58
leaq -0x4a66(%rip), %rdx     # 0x1ed00
callq 0x19480
movq -0xb8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
callq 0x19210
jmp 0x23a43
movq -0xb0(%rbp), %rdi
callq 0x23a50
movq -0xb0(%rbp), %rdi
callq 0x24130
movsbl %al, %eax
cmpl $0x7d, %eax
jne 0x237b1
movb $0x0, -0x1(%rbp)
jmp 0x23a35
movq -0xb0(%rbp), %rax
movl 0x38(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x38(%rax)
jmp 0x2385a
movq -0xb0(%rbp), %rax
cmpl $0x1, 0x24(%rax)
jne 0x23858
movq -0xb0(%rbp), %rdi
callq 0x24130
movb %al, -0x1d(%rbp)
movsbl -0x1d(%rbp), %eax
cmpl $0x7d, %eax
jne 0x237f8
movb $0x0, -0x1(%rbp)
jmp 0x23a35
movsbl -0x1d(%rbp), %eax
cmpl $0x2c, %eax
je 0x23856
movl $0x30, %edi
callq 0x19180
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xc0(%rbp)
callq 0x1ee60
jmp 0x2381f
movq -0xc0(%rbp), %rdi
leaq 0x2342b(%rip), %rsi     # 0x46c58
leaq -0x4b34(%rip), %rdx     # 0x1ed00
callq 0x19480
movq -0xc0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
callq 0x19210
jmp 0x23a43
jmp 0x23858
jmp 0x2385a
movq -0xb0(%rbp), %rdi
callq 0x23a50
movq -0xb0(%rbp), %rdi
callq 0x23b30
movq -0xb0(%rbp), %rdi
movl %edx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x30(%rbp)
movl -0x38(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x30(%rbp), %rax
movq %rax, (%rdi)
movl -0x28(%rbp), %eax
movl %eax, 0x8(%rdi)
callq 0x23a50
movq -0xb0(%rbp), %rdi
callq 0x24130
movsbl %al, %eax
cmpl $0x3a, %eax
je 0x23909
movl $0x30, %edi
callq 0x19180
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xc8(%rbp)
callq 0x1ee60
jmp 0x238d2
movq -0xc8(%rbp), %rdi
leaq 0x23378(%rip), %rsi     # 0x46c58
leaq -0x4be7(%rip), %rdx     # 0x1ed00
callq 0x19480
movq -0xc8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
callq 0x19210
jmp 0x23a43
movq -0xb0(%rbp), %rdi
callq 0x23a50
movq -0xb0(%rbp), %rdi
callq 0x24130
movb %al, %cl
movq -0xb0(%rbp), %rax
movb %cl, -0x41(%rbp)
movl 0x38(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x38(%rax)
movsbl -0x41(%rbp), %eax
cmpl $0x22, %eax
jne 0x2397d
movq -0xb0(%rbp), %rdi
callq 0x23b30
movq %rax, %rcx
movq -0xb0(%rbp), %rax
movl %edx, -0x60(%rbp)
movq %rcx, -0x68(%rbp)
movq -0x68(%rbp), %rcx
movq %rcx, -0x58(%rbp)
movl -0x60(%rbp), %ecx
movl %ecx, -0x50(%rbp)
movq -0x58(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl -0x50(%rbp), %ecx
movl %ecx, 0x18(%rax)
jmp 0x23a23
movsbl -0x41(%rbp), %eax
cmpl $0x7b, %eax
je 0x2398f
movsbl -0x41(%rbp), %eax
cmpl $0x5b, %eax
jne 0x239d0
movq -0xb0(%rbp), %rdi
callq 0x23ca0
movq %rax, %rcx
movq -0xb0(%rbp), %rax
movl %edx, -0x80(%rbp)
movq %rcx, -0x88(%rbp)
movq -0x88(%rbp), %rcx
movq %rcx, -0x78(%rbp)
movl -0x80(%rbp), %ecx
movl %ecx, -0x70(%rbp)
movq -0x78(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl -0x70(%rbp), %ecx
movl %ecx, 0x18(%rax)
jmp 0x23a21
movq -0xb0(%rbp), %rdi
callq 0x23d80
movq %rax, %rcx
movq -0xb0(%rbp), %rax
movl %edx, -0xa0(%rbp)
movq %rcx, -0xa8(%rbp)
movq -0xa8(%rbp), %rcx
movq %rcx, -0x98(%rbp)
movl -0xa0(%rbp), %ecx
movl %ecx, -0x90(%rbp)
movq -0x98(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl -0x90(%rbp), %ecx
movl %ecx, 0x18(%rax)
jmp 0x23a23
movq -0xb0(%rbp), %rax
movl $0x1, 0x24(%rax)
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0xd0, %rsp
popq %rbp
retq
movq -0x18(%rbp), %rdi
callq 0x194a0
nopl (%rax)