// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r14
pushq %rbx
cmpl $0x0, 0x30(%rdi)
je 0xd679
movq %rdi, %rbx
callq 0xd80c
movl 0x24(%rbx), %eax
cmpl $0x1, %eax
je 0xd650
testl %eax, %eax
jne 0xd680
movslq 0x38(%rbx), %rax
cmpl 0x30(%rbx), %eax
jge 0xd764
movq 0x28(%rbx), %rcx
leal 0x1(%rax), %edx
movl %edx, 0x38(%rbx)
cmpb $0x7b, (%rcx,%rax)
jne 0xd792
movq %rbx, %rdi
callq 0xd80c
movl 0x38(%rbx), %eax
cmpl 0x30(%rbx), %eax
jge 0xd7a9
movslq %eax, %rcx
movq 0x28(%rbx), %rdx
leal 0x1(%rax), %esi
movl %esi, 0x38(%rbx)
cmpb $0x7d, (%rdx,%rcx)
je 0xd679
movl %eax, 0x38(%rbx)
jmp 0xd680
movslq 0x38(%rbx), %rax
cmpl 0x30(%rbx), %eax
jge 0xd77b
movq 0x28(%rbx), %rcx
leal 0x1(%rax), %edx
movl %edx, 0x38(%rbx)
movzbl (%rcx,%rax), %eax
cmpl $0x2c, %eax
je 0xd680
cmpl $0x7d, %eax
jne 0xd7c0
xorl %eax, %eax
jmp 0xd714
movq %rbx, %rdi
callq 0xd80c
movq %rbx, %rdi
callq 0xd89c
movq %rax, (%rbx)
movl %edx, 0x8(%rbx)
movq %rbx, %rdi
callq 0xd80c
movslq 0x38(%rbx), %rax
cmpl 0x30(%rbx), %eax
jge 0xd719
movq 0x28(%rbx), %rcx
leal 0x1(%rax), %edx
movl %edx, 0x38(%rbx)
cmpb $0x3a, (%rcx,%rax)
jne 0xd733
movq %rbx, %rdi
callq 0xd80c
movl 0x38(%rbx), %eax
cmpl 0x30(%rbx), %eax
jge 0xd74d
movslq %eax, %rcx
movq 0x28(%rbx), %rdx
leal 0x1(%rax), %esi
movl %esi, 0x38(%rbx)
movb (%rdx,%rcx), %cl
movl %eax, 0x38(%rbx)
cmpb $0x22, %cl
jne 0xd6ed
movq %rbx, %rdi
callq 0xd89c
jmp 0xd704
andb $-0x21, %cl
movq %rbx, %rdi
cmpb $0x5b, %cl
jne 0xd6ff
callq 0xd978
jmp 0xd704
callq 0xda36
movq %rax, 0x10(%rbx)
movl %edx, 0x18(%rbx)
movl $0x1, 0x24(%rbx)
movb $0x1, %al
popq %rbx
popq %r14
popq %rbp
retq
movl $0x30, %edi
callq 0x8170
movq %rax, %rbx
movq %rax, %rdi
callq 0xc254
jmp 0xd7d5
movl $0x30, %edi
callq 0x8170
movq %rax, %rbx
movq %rax, %rdi
callq 0xc254
jmp 0xd7d5
movl $0x30, %edi
callq 0x8170
movq %rax, %rbx
movq %rax, %rdi
callq 0xc254
jmp 0xd7d5
movl $0x30, %edi
callq 0x8170
movq %rax, %rbx
movq %rax, %rdi
callq 0xc254
jmp 0xd7d5
movl $0x30, %edi
callq 0x8170
movq %rax, %rbx
movq %rax, %rdi
callq 0xc254
jmp 0xd7d5
movl $0x30, %edi
callq 0x8170
movq %rax, %rbx
movq %rax, %rdi
callq 0xc254
jmp 0xd7d5
movl $0x30, %edi
callq 0x8170
movq %rax, %rbx
movq %rax, %rdi
callq 0xc254
jmp 0xd7d5
movl $0x30, %edi
callq 0x8170
movq %rax, %rbx
movq %rax, %rdi
callq 0xc254
leaq 0x10494(%rip), %rsi     # 0x1dc70
leaq -0x4d3(%rip), %rdx      # 0xd310
movq %rbx, %rdi
callq 0x8480
jmp 0xd7f9
jmp 0xd7f9
jmp 0xd7f9
jmp 0xd7f9
jmp 0xd7f9
jmp 0xd7f9
jmp 0xd7f9
movq %rax, %r14
movq %rbx, %rdi
callq 0x8220
movq %r14, %rdi
callq 0x84a0