// File: /workspace/github_cpp_makefile_star2_O3/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 0x6863d
movslq %eax, %rbx
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rdx
callq 0x274c0
movb $0x0, 0x10(%rsp,%rbx)
leaq 0xdcfe(%rip), %rsi      # 0x76328
leaq 0x8(%rsp), %rdx
movq %r12, %rdi
xorl %eax, %eax
callq 0x27460
movl %eax, %ebx
jmp 0x6867a
leaq 0x20(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0x2f1a0
movq (%r12), %rdi
leaq 0xdcca(%rip), %rsi      # 0x76328
leaq 0x8(%rsp), %rdx
xorl %eax, %eax
callq 0x27460
movl %eax, %ebx
movq (%r12), %rdi
cmpq %r13, %rdi
je 0x6867a
callq 0x27560
cmpl $0x1, %ebx
jne 0x686c3
movsd 0x8(%rsp), %xmm0
leaq 0x10(%rsp), %rdi
callq 0x6b9f4
movq 0x30(%r14), %rax
cmpq 0x38(%r14), %rax
jne 0x686a6
movq 0x48(%r14), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq 0x10(%rsp), %rsi
callq 0x6bdc0
leaq 0x10(%rsp), %rdi
callq 0x6bce2
jmp 0x68769
movq 0x8(%r15), %rsi
movq 0x10(%r15), %rdx
leaq 0x40(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x30(%rsp), %rdi
callq 0x2f1a0
leaq 0xacd2(%rip), %rsi      # 0x733b8
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x40b3d
leaq 0x20(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x2f10a
leaq 0xdbf9(%rip), %rsi      # 0x76315
leaq 0x10(%rsp), %rdi
callq 0x27c00
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x671fe
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x68747
callq 0x27560
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6875a
callq 0x27560
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x68769
callq 0x27560
cmpl $0x1, %ebx
sete %al
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x6877f
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x68796
callq 0x27560
jmp 0x68796
movq %rax, %rbx
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x687ae
callq 0x27560
jmp 0x687ae
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x687d1
callq 0x27560
jmp 0x687d1
movq %rax, %rbx
jmp 0x687d1
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x6bce2
movq %rbx, %rdi
callq 0x27b10
movq %rax, %rdi
callq 0x2e1cd
nop