// File: /workspace/github_cpp_makefile_star2_O1/zeeev[P]DASVC/bamtools/src/third_party/jsoncpp/json_reader.cpp
// Function: Json::Reader::readObject(Json::Reader::Token&)
bool 
Reader::readObject( Token &tokenStart )
{
   Token tokenName;
   std::string name;
   currentValue() = Value( objectValue );
   while ( readToken( tokenName ) )
   {
      bool initialTokenOk = true;
      while ( tokenName.type_ == tokenComment  &&  initialTokenOk )
         initialTokenOk = readToken( tokenName );
      if  ( !initialTokenOk )
         break;
      if ( tokenName.type_ == tokenObjectEnd  &&  name.empty() )  // empty object
         return true;
      if ( tokenName.type_ != tokenString )
         break;
      
      name = "";
      if ( !decodeString( tokenName, name ) )
         return recoverFromError( tokenObjectEnd );

      Token colon;
      if ( !readToken( colon ) ||  colon.type_ != tokenMemberSeparator )
      {
         return addErrorAndRecover( "Missing ':' after object member name", 
                                    colon, 
                                    tokenObjectEnd );
      }
      Value &value = currentValue()[ name ];
      nodes_.push( &value );
      bool ok = readValue();
      nodes_.pop();
      if ( !ok ) // error already set
         return recoverFromError( tokenObjectEnd );

      Token comma;
      if ( !readToken( comma )
            ||  ( comma.type_ != tokenObjectEnd  &&  
                  comma.type_ != tokenArraySeparator &&
		  comma.type_ != tokenComment ) )
      {
         return addErrorAndRecover( "Missing ',' or '}' in object declaration", 
                                    comma, 
                                    tokenObjectEnd );
      }
      bool finalizeTokenOk = true;
      while ( comma.type_ == tokenComment &&
              finalizeTokenOk )
         finalizeTokenOk = readToken( comma );
      if ( comma.type_ == tokenObjectEnd )
         return true;
   }
   return addErrorAndRecover( "Missing '}' or object member name", 
                              tokenName, 
                              tokenObjectEnd );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %rsp, %rdi
movl $0x7, %esi
callq 0x6bf78
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x67890
movq 0x48(%rbx), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq %rsp, %rsi
callq 0x6c3fa
movq %rsp, %rdi
callq 0x6c31c
leaq 0x70(%rsp), %r14
leaq 0x20(%rsp), %r12
leaq 0x40(%rsp), %rbp
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6815a
movl 0x70(%rsp), %ecx
cmpl $0xc, %ecx
jne 0x678d4
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6815a
jmp 0x678be
cmpl $0x2, %ecx
je 0x678e8
cmpl $0x5, %ecx
je 0x67902
movl $0x3, %eax
jmp 0x67a69
cmpq $0x0, 0x28(%rsp)
je 0x67a61
movl $0x3, %eax
cmpl $0x5, %ecx
jne 0x67a69
movq 0x28(%rsp), %rdx
movq %r12, %rdi
xorl %esi, %esi
leaq 0xff08(%rip), %rcx      # 0x7781b
xorl %r8d, %r8d
callq 0x27900
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x68818
testb %al, %al
je 0x67986
movq %rbx, %rdi
leaq 0x58(%rsp), %rsi
callq 0x6815a
cmpl $0xb, 0x58(%rsp)
jne 0x67998
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
jne 0x6795b
movq 0x48(%rbx), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movq -0x8(%rax), %rdi
movq %r12, %rsi
callq 0x6d3b8
movq %rax, (%rsp)
movq 0x30(%rbx), %rcx
movq 0x40(%rbx), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rcx
je 0x679ee
movq %rax, (%rcx)
addq $0x8, 0x30(%rbx)
jmp 0x679f9
movq %rbx, %rdi
movl $0x2, %esi
callq 0x68b68
jmp 0x67a52
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rsp, %r15
movq %r15, %rdi
leaq 0xf8f7(%rip), %rsi      # 0x772a5
leaq 0xf914(%rip), %rdx      # 0x772c9
callq 0x2f1b2
movq %rbx, %rdi
movq %r15, %rsi
leaq 0x58(%rsp), %rdx
xorl %ecx, %ecx
callq 0x677a2
movq %rbx, %rdi
movl $0x2, %esi
callq 0x68b68
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x67a52
callq 0x27560
jmp 0x67a52
movq %rbx, %rdi
movq %rsp, %rsi
callq 0x69dd4
movq %rbx, %rdi
callq 0x67536
movl %eax, %r15d
movq %rbx, %rdi
callq 0x69d8c
testb %r15b, %r15b
je 0x67a45
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x6815a
movl 0x40(%rsp), %eax
cmpl $0xc, %eax
ja 0x67a77
movl $0x1404, %ecx           # imm = 0x1404
btl %eax, %ecx
jae 0x67a77
movl 0x40(%rsp), %eax
cmpl $0xc, %eax
jne 0x67a5c
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x6815a
jmp 0x67a2f
movq %rbx, %rdi
movl $0x2, %esi
callq 0x68b68
movl $0x1, %eax
xorl %r13d, %r13d
jmp 0x67a69
cmpl $0x2, %eax
jne 0x67a73
movb $0x1, %r13b
movl $0x1, %eax
testl %eax, %eax
je 0x678b3
jmp 0x67abb
xorl %eax, %eax
jmp 0x67a69
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rsp, %r15
movq %r15, %rdi
leaq 0xf83d(%rip), %rsi      # 0x772ca
leaq 0xf85e(%rip), %rdx      # 0x772f2
callq 0x2f1b2
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
xorl %ecx, %ecx
callq 0x677a2
movq %rbx, %rdi
movl $0x2, %esi
callq 0x68b68
jmp 0x679d9
cmpl $0x3, %eax
jne 0x67b13
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0xf821(%rip), %rsi      # 0x772f3
leaq 0xf83b(%rip), %rdx      # 0x77314
callq 0x2f1b2
movq %rsp, %rsi
leaq 0x70(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x677a2
movq %rbx, %rdi
movl $0x2, %esi
callq 0x68b68
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x67b10
callq 0x27560
xorl %r13d, %r13d
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x67b27
callq 0x27560
andb $0x1, %r13b
movl %r13d, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x67b89
jmp 0x67b67
jmp 0x67b89
jmp 0x67b89
jmp 0x67b89
jmp 0x67b67
movq %rax, %rbx
movq %rsp, %rdi
callq 0x6c31c
jmp 0x67b8c
movq %rax, %rdi
callq 0x2e1ed
jmp 0x67b89
jmp 0x67b89
jmp 0x67b89
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x67b8c
callq 0x27560
jmp 0x67b8c
jmp 0x67b89
jmp 0x67b89
jmp 0x67b89
jmp 0x67b89
jmp 0x67b89
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x67ba0
callq 0x27560
movq %rbx, %rdi
callq 0x27b20