// File: /workspace/github_cpp_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rdx, 0xd0(%rsp)
movq %rcx, 0xc8(%rsp)
cmpq $0x0, 0x8(%rdi)
je 0xa347
movq %r8, %rbx
movq %rsi, %rax
movq %rdi, %r14
leaq 0x9efd(%rip), %rsi      # 0x141fb
leaq 0xd8(%rsp), %r15
movq %r15, %rdi
movq %rax, %rdx
callq 0xa756
leaq 0xa8da(%rip), %rsi      # 0x14bf2
movq %r15, %rdi
callq 0x3600
leaq 0x78(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xa34e
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0xa355
xorl %ebx, %ebx
jmp 0xa680
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa8(%rsp), %rdi
leaq 0xd0(%rsp), %rdx
movq %r14, %rsi
callq 0xa7d8
movq 0x68(%rsp), %rcx
movq 0x70(%rsp), %r8
movq 0xb0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r15, %rcx
je 0xa3aa
movq 0x78(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xa3cf
leaq 0xb8(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0xa3ca
movq 0xb8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xa3e3
movq 0xa8(%rsp), %rsi
leaq 0x68(%rsp), %rdi
callq 0x3110
jmp 0xa3f4
leaq 0xa8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x33e0
leaq 0x38(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0xa418
movq %rsi, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0xa41e
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xa7b0(%rip), %rsi      # 0x14bf2
leaq 0x28(%rsp), %rdi
callq 0x3600
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xa473
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xa47b
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x88(%rsp), %rdi
leaq 0xc8(%rsp), %rdx
movq %r14, %rsi
callq 0xa7d8
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x90(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r13, %rcx
je 0xa4d0
movq 0x18(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xa4f5
leaq 0x98(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0xa4f0
movq 0x98(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xa509
movq 0x88(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x3110
jmp 0xa51a
leaq 0x88(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x33e0
leaq 0x58(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0xa53e
movq %rsi, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0xa544
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa577
callq 0x3350
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xa586
callq 0x3350
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa599
callq 0x3350
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa5af
callq 0x3350
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0xa5be
callq 0x3350
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa5d4
callq 0x3350
movq 0x8(%r14), %rdi
movq 0x48(%rsp), %rsi
xorl %eax, %eax
callq 0xe300
movq %rax, %r14
testq %rax, %rax
je 0xa606
movl (%r14), %eax
cmpl $0x2, %eax
je 0xa60a
cmpl $0x6, %eax
je 0xa5fe
testq %r14, %r14
je 0xa606
movq %r14, %rdi
callq 0xbc50
xorl %ebx, %ebx
jmp 0xa66d
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0xa8d0
cmpq $0x0, 0x20(%r14)
je 0xa663
xorl %ebp, %ebp
leaq 0x8(%rsp), %r15
leaq 0x28(%rsp), %r12
movq 0x28(%r14), %rax
movq (%rax,%rbp,8), %rax
movq 0x18(%rax), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x3170
movq %rbx, %rdi
movq %r15, %rsi
callq 0xb3b0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xa65a
callq 0x3350
incq %rbp
cmpq 0x20(%r14), %rbp
jb 0xa629
movb $0x1, %bl
movq %r14, %rdi
callq 0xbc50
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa680
callq 0x3350
movl %ebx, %eax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa6b2
callq 0x3350
jmp 0xa6b2
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xa6c6
callq 0x3350
jmp 0xa6c6
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa6de
callq 0x3350
jmp 0xa6de
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa6f9
callq 0x3350
jmp 0xa6f9
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0xa70d
callq 0x3350
jmp 0xa70d
movq %rax, %rbx
leaq 0xe8(%rsp), %rax
jmp 0xa735
jmp 0xa719
movq %rax, %rbx
jmp 0xa730
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xa730
callq 0x3350
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa743
callq 0x3350
movq %rbx, %rdi
callq 0x35b0