// File: /workspace/github_cpp_makefile_star2_O1/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 0xd6a1
movq %rdi, %rbx
callq 0xd834
movl 0x24(%rbx), %eax
cmpl $0x1, %eax
je 0xd678
testl %eax, %eax
jne 0xd6a8
movslq 0x38(%rbx), %rax
cmpl 0x30(%rbx), %eax
jge 0xd78c
movq 0x28(%rbx), %rcx
leal 0x1(%rax), %edx
movl %edx, 0x38(%rbx)
cmpb $0x7b, (%rcx,%rax)
jne 0xd7ba
movq %rbx, %rdi
callq 0xd834
movl 0x38(%rbx), %eax
cmpl 0x30(%rbx), %eax
jge 0xd7d1
movslq %eax, %rcx
movq 0x28(%rbx), %rdx
leal 0x1(%rax), %esi
movl %esi, 0x38(%rbx)
cmpb $0x7d, (%rdx,%rcx)
je 0xd6a1
movl %eax, 0x38(%rbx)
jmp 0xd6a8
movslq 0x38(%rbx), %rax
cmpl 0x30(%rbx), %eax
jge 0xd7a3
movq 0x28(%rbx), %rcx
leal 0x1(%rax), %edx
movl %edx, 0x38(%rbx)
movzbl (%rcx,%rax), %eax
cmpl $0x2c, %eax
je 0xd6a8
cmpl $0x7d, %eax
jne 0xd7e8
xorl %eax, %eax
jmp 0xd73c
movq %rbx, %rdi
callq 0xd834
movq %rbx, %rdi
callq 0xd8c4
movq %rax, (%rbx)
movl %edx, 0x8(%rbx)
movq %rbx, %rdi
callq 0xd834
movslq 0x38(%rbx), %rax
cmpl 0x30(%rbx), %eax
jge 0xd741
movq 0x28(%rbx), %rcx
leal 0x1(%rax), %edx
movl %edx, 0x38(%rbx)
cmpb $0x3a, (%rcx,%rax)
jne 0xd75b
movq %rbx, %rdi
callq 0xd834
movl 0x38(%rbx), %eax
cmpl 0x30(%rbx), %eax
jge 0xd775
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 0xd715
movq %rbx, %rdi
callq 0xd8c4
jmp 0xd72c
andb $-0x21, %cl
movq %rbx, %rdi
cmpb $0x5b, %cl
jne 0xd727
callq 0xd9b2
jmp 0xd72c
callq 0xda94
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 0xc238
jmp 0xd7fd
movl $0x30, %edi
callq 0x8170
movq %rax, %rbx
movq %rax, %rdi
callq 0xc238
jmp 0xd7fd
movl $0x30, %edi
callq 0x8170
movq %rax, %rbx
movq %rax, %rdi
callq 0xc238
jmp 0xd7fd
movl $0x30, %edi
callq 0x8170
movq %rax, %rbx
movq %rax, %rdi
callq 0xc238
jmp 0xd7fd
movl $0x30, %edi
callq 0x8170
movq %rax, %rbx
movq %rax, %rdi
callq 0xc238
jmp 0xd7fd
movl $0x30, %edi
callq 0x8170
movq %rax, %rbx
movq %rax, %rdi
callq 0xc238
jmp 0xd7fd
movl $0x30, %edi
callq 0x8170
movq %rax, %rbx
movq %rax, %rdi
callq 0xc238
jmp 0xd7fd
movl $0x30, %edi
callq 0x8170
movq %rax, %rbx
movq %rax, %rdi
callq 0xc238
leaq 0x1046c(%rip), %rsi     # 0x1dc70
leaq -0x4fb(%rip), %rdx      # 0xd310
movq %rbx, %rdi
callq 0x8480
jmp 0xd821
jmp 0xd821
jmp 0xd821
jmp 0xd821
jmp 0xd821
jmp 0xd821
jmp 0xd821
movq %rax, %r14
movq %rbx, %rdi
callq 0x8220
movq %r14, %rdi
callq 0x84a0