// File: /workspace/github_cpp_makefile_star2_O1/zeeev[P]DASVC/bamtools/src/third_party/jsoncpp/json_reader.cpp
// Function: Json::Reader::decodeDouble(Json::Reader::Token&)
bool 
Reader::decodeDouble( Token &token )
{
   double value = 0;
   const int bufferSize = 32;
   int count;
   int length = int(token.end_ - token.start_);
   if ( length <= bufferSize )
   {
      Char buffer[bufferSize];
      memcpy( buffer, token.start_, length );
      buffer[length] = 0;
      count = sscanf( buffer, "%lf", &value );
   }
   else
   {
      std::string buffer( token.start_, token.end_ );
      count = sscanf( buffer.c_str(), "%lf", &value );
   }

   if ( count != 1 )
      return addError( "'" + std::string( token.start_, token.end_ ) + "' is not a number.", token );
   currentValue() = value;
   return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rsi, %r15
movq %rdi, %r14
movq $0x0, 0x8(%rsp)
movq 0x8(%rsi), %rsi
movq 0x10(%r15), %rdx
movq %rdx, %rax
subq %rsi, %rax
cmpl $0x20, %eax
jg 0x68cd9
movslq %eax, %rbx
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rdx
callq 0x274c0
movb $0x0, 0x10(%rsp,%rbx)
leaq 0xe662(%rip), %rsi      # 0x77328
leaq 0x8(%rsp), %rdx
movq %r12, %rdi
xorl %eax, %eax
callq 0x27460
movl %eax, %ebx
jmp 0x68d16
leaq 0x20(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0x2f1b2
movq (%r12), %rdi
leaq 0xe62e(%rip), %rsi      # 0x77328
leaq 0x8(%rsp), %rdx
xorl %eax, %eax
callq 0x27460
movl %eax, %ebx
movq (%r12), %rdi
cmpq %r13, %rdi
je 0x68d16
callq 0x27560
cmpl $0x1, %ebx
jne 0x68d5f
movsd 0x8(%rsp), %xmm0
leaq 0x10(%rsp), %rdi
callq 0x6c02e
movq 0x30(%r14), %rax
cmpq 0x38(%r14), %rax
jne 0x68d42
movq 0x48(%r14), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq 0x10(%rsp), %rsi
callq 0x6c3fa
leaq 0x10(%rsp), %rdi
callq 0x6c31c
jmp 0x68e05
movq 0x8(%r15), %rsi
movq 0x10(%r15), %rdx
leaq 0x40(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x30(%rsp), %rdi
callq 0x2f1b2
leaq 0xb61e(%rip), %rsi      # 0x743a0
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x40c12
leaq 0x20(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x2f122
leaq 0xe55d(%rip), %rsi      # 0x77315
leaq 0x10(%rsp), %rdi
callq 0x27c10
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x677a2
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x68de3
callq 0x27560
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x68df6
callq 0x27560
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x68e05
callq 0x27560
cmpl $0x1, %ebx
sete %al
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x68e1b
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x68e32
callq 0x27560
jmp 0x68e32
movq %rax, %rbx
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x68e4a
callq 0x27560
jmp 0x68e4a
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x68e6d
callq 0x27560
jmp 0x68e6d
movq %rax, %rbx
jmp 0x68e6d
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x6c31c
movq %rbx, %rdi
callq 0x27b20
movq %rax, %rdi
callq 0x2e1ed
nop