// File: /workspace/github_cpp_makefile_star2_O2/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::sscan(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, 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>>>>&)
int32_t Redis::sscan(const std::string& key, int32_t cursor, const std::string& pattern, int32_t count, std::vector<std::string>& keys)
{
    std::string cmd = "SSCAN " + key + " " + num2str<int32_t>(cursor)
                    + (pattern.empty() ? "" : (" MATCH " + pattern))
                    + (count < 0 ? "" : " COUNT " + num2str<int32_t>(count));
    return execScan(cmd, keys);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x130, %rsp            # imm = 0x130
movq %r9, %rbx
movl %r8d, %ebp
movq %rcx, %r15
movq %rsi, %rax
movq %rdi, %r14
movl %edx, 0xc(%rsp)
movl %r8d, 0x8(%rsp)
leaq 0xa63a(%rip), %rsi      # 0x111ac
leaq 0x110(%rsp), %r12
movq %r12, %rdi
movq %rax, %rdx
callq 0x7822
leaq 0xb066(%rip), %rdx      # 0x11bf2
leaq 0x90(%rsp), %rdi
movq %r12, %rsi
callq 0x78ff
leaq 0x70(%rsp), %rdi
leaq 0xc(%rsp), %rdx
movq %r14, %rsi
callq 0x3de4
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x7898
movq 0x8(%r15), %r12
testq %r12, %r12
je 0x6be7
leaq 0xa515(%rip), %rsi      # 0x110ed
leaq 0x50(%rsp), %rdi
movq %r15, %rdx
callq 0x7822
jmp 0x6bfd
leaq 0xa6b6(%rip), %rsi      # 0x112a4
leaq 0x50(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x3140
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq 0x7898
testl %ebp, %ebp
js 0x6c45
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %r14, %rsi
callq 0x3de4
leaq 0xa4c1(%rip), %rsi      # 0x110f5
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x7994
jmp 0x6c5b
leaq 0xa658(%rip), %rsi      # 0x112a4
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x3140
leaq 0xf0(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0x7898
leaq 0x30(%rsp), %rdi
callq 0x3180
testl %ebp, %ebp
js 0x6c8d
leaq 0x10(%rsp), %rdi
callq 0x3180
leaq 0xd0(%rsp), %rdi
callq 0x3180
leaq 0x50(%rsp), %rdi
callq 0x3180
testq %r12, %r12
leaq 0xb0(%rsp), %rdi
callq 0x3180
leaq 0x70(%rsp), %rdi
callq 0x3180
leaq 0x90(%rsp), %rdi
callq 0x3180
leaq 0x110(%rsp), %rdi
callq 0x3180
leaq 0xf0(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x4b2e
movl %eax, %ebx
leaq 0xf0(%rsp), %rdi
callq 0x3180
movl %ebx, %eax
addq $0x130, %rsp            # imm = 0x130
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6d13
movq %rax, %rbx
jmp 0x6d36
movq %rax, %rbx
jmp 0x6d40
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
jmp 0x6d90
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x3180
testl %ebp, %ebp
js 0x6d40
leaq 0x10(%rsp), %rdi
callq 0x3180
leaq 0xd0(%rsp), %rdi
callq 0x3180
jmp 0x6d52
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x3180
jmp 0x6d61
movq %rax, %rbx
testq %r12, %r12
leaq 0xb0(%rsp), %rdi
callq 0x3180
leaq 0x70(%rsp), %rdi
callq 0x3180
leaq 0x90(%rsp), %rdi
callq 0x3180
leaq 0x110(%rsp), %rdi
callq 0x3180
movq %rbx, %rdi
callq 0x35a0
movq %rax, %rbx
jmp 0x6d71
movq %rax, %rbx
jmp 0x6d7b
movq %rax, %rbx
jmp 0x6d88