// File: /workspace/github_cpp_makefile_star2_O2/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::lrange(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, long, long, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
bool Redis::lrange(const std::string& key, int64_t start, int64_t end, std::vector<std::string>& value)
{
    if(_context == NULL)
    {
        return false;
    }
    std::string cmd = "LRANGE " + key + " " + num2str<int64_t>(start) + " " + num2str<int64_t>(end) ;
    redisReply* _reply = (redisReply*)::redisCommand(_context, cmd.c_str());
    if (!isError(_reply)) 
    {
        if (_reply->type == REDIS_REPLY_ERROR) 
        {
            freeReply(_reply);
            return false;
        }
        if (_reply->type == REDIS_REPLY_ARRAY) 
        {
            value.reserve(_reply->elements);
            for (size_t i = 0; i < _reply->elements; ++i) 
            {
		value.push_back(_reply->element[i]->str);
            }
            freeReply(_reply);
            return true;
        }
    }
    freeReply(_reply);
    return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf0, %rsp
movq %rdx, 0x8(%rsp)
movq %rcx, (%rsp)
cmpq $0x0, 0x8(%rdi)
je 0x7716
movq %r8, %rbx
movq %rsi, %rax
movq %rdi, %r14
leaq 0x9bc1(%rip), %rsi      # 0x111d3
leaq 0xd0(%rsp), %r15
movq %r15, %rdi
movq %rax, %rdx
callq 0x7822
leaq 0xa5c6(%rip), %rdx      # 0x11bf2
leaq 0x90(%rsp), %rdi
movq %r15, %rsi
callq 0x78ff
leaq 0x70(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %r14, %rsi
callq 0x791e
leaq 0x30(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x7898
leaq 0xa586(%rip), %rdx      # 0x11bf2
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x78ff
leaq 0x50(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
callq 0x791e
leaq 0xb0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq 0x7898
leaq 0x50(%rsp), %rdi
callq 0x3180
leaq 0x10(%rsp), %rdi
callq 0x3180
leaq 0x30(%rsp), %rdi
callq 0x3180
leaq 0x70(%rsp), %rdi
callq 0x3180
leaq 0x90(%rsp), %rdi
callq 0x3180
leaq 0xd0(%rsp), %rdi
callq 0x3180
movq 0x8(%r14), %rdi
movq 0xb0(%rsp), %rsi
xorl %eax, %eax
callq 0xb190
movq %rax, %r14
testq %rax, %rax
je 0x771a
movl (%r14), %eax
cmpl $0x2, %eax
je 0x7726
cmpl $0x6, %eax
jne 0x771a
movq %r14, %rdi
callq 0x8ae0
jmp 0x7722
xorl %ebx, %ebx
jmp 0x778b
movq %r14, %rsi
callq 0x43f8
xorl %ebx, %ebx
jmp 0x777e
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x79c0
xorl %r13d, %r13d
leaq 0x10(%rsp), %r15
leaq 0x30(%rsp), %r12
cmpq 0x20(%r14), %r13
jae 0x7774
movq 0x28(%r14), %rax
movq (%rax,%r13,8), %rax
movq 0x18(%rax), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x3140
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8378
movq %r15, %rdi
callq 0x3180
incq %r13
jmp 0x773f
movb $0x1, %bl
movq %r14, %rdi
callq 0x8ae0
leaq 0xb0(%rsp), %rdi
callq 0x3180
movl %ebx, %eax
addq $0xf0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x3180
jmp 0x77b0
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x3180
jmp 0x77bf
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x3180
jmp 0x77ce
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x3180
jmp 0x77dd
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x3180
leaq 0xd0(%rsp), %rdi
jmp 0x7815
movq %rax, %rbx
jmp 0x77ea
jmp 0x780a
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x3180
jmp 0x780d
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x3180
movq %rbx, %rdi
callq 0x35a0