// File: /workspace/github_cpp_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %r9, %rbx
movq %rcx, %r15
movq %rsi, %rax
movq %rdi, %r14
movl %edx, 0x4(%rsp)
movl %r8d, (%rsp)
leaq 0xb2cc(%rip), %rsi      # 0x141d4
leaq 0x108(%rsp), %r12
movq %r12, %rdi
movq %rax, %rdx
callq 0xa64c
leaq 0xbcd0(%rip), %rsi      # 0x14bf2
movq %r12, %rdi
callq 0x3600
leaq 0xb8(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8f5b
movq %rdx, 0xa8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb8(%rsp)
jmp 0x8f63
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0xb0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xc8(%rsp), %rdi
leaq 0x4(%rsp), %rdx
movq %r14, %rsi
callq 0x41be
movq 0xa8(%rsp), %rcx
movq 0xb0(%rsp), %r8
movq 0xd0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x8fc1
movq 0xb8(%rsp), %rdi
movq 0xc8(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x8fed
leaq 0xd8(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x8fe8
movq 0xd8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x8ffc
leaq 0xa8(%rsp), %rdi
callq 0x3110
jmp 0x900d
leaq 0xc8(%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 0x9031
movq %rsi, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x9037
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)
cmpq $0x0, 0x8(%r15)
je 0x9074
leaq 0xb0b3(%rip), %rsi      # 0x14115
leaq 0x88(%rsp), %rdi
movq %r15, %rdx
callq 0xa64c
jmp 0x9097
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xb21b(%rip), %rdx      # 0x142a2
leaq 0x88(%rsp), %rdi
movq %rdx, %rsi
callq 0x42ba
leaq 0x38(%rsp), %r15
movq -0x10(%r15), %rcx
movq -0x8(%r15), %r8
movq 0x90(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r15, %rcx
je 0x90bf
movq 0x38(%rsp), %rdi
movq 0x88(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x90eb
leaq 0x98(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x90e6
movq 0x98(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x90f7
leaq 0x28(%rsp), %rdi
callq 0x3110
jmp 0x9108
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 0x912c
movq %rsi, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x9132
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)
movl (%rsp), %ebp
testl %ebp, %ebp
js 0x91ae
leaq 0xe8(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
callq 0x41be
leaq 0xafad(%rip), %rcx      # 0x1411d
leaq 0xe8(%rsp), %rdi
movl $0x7, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x33e0
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x91cd
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x91d3
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xb0e4(%rip), %rdx      # 0x142a2
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq 0x42ba
jmp 0x91eb
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x58(%rsp), %r13
movq -0x10(%r13), %rcx
movq -0x8(%r13), %r8
movq 0x10(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x9210
movq 0x58(%rsp), %rdi
movq 0x8(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x9233
leaq 0x18(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x922e
movq 0x18(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x923f
leaq 0x48(%rsp), %rdi
callq 0x3110
jmp 0x924d
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x33e0
leaq 0x78(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x9271
movq %rsi, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x9277
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x92a7
callq 0x3350
testl %ebp, %ebp
js 0x92c1
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x92c1
callq 0x3350
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x92d0
callq 0x3350
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x92e6
callq 0x3350
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x92f5
callq 0x3350
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x930b
callq 0x3350
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x931d
callq 0x3350
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9333
callq 0x3350
leaq 0x68(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x5414
movl %eax, %ebx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9358
callq 0x3350
movl %ebx, %eax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9373
movq %rax, %rbx
jmp 0x939f
movq %rax, %rbx
jmp 0x93b5
movq %rax, %rbx
leaq 0x78(%rsp), %rax
jmp 0x943a
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x939b
callq 0x3350
testl %ebp, %ebp
js 0x93b5
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x93b5
callq 0x3350
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x93cd
callq 0x3350
jmp 0x93cd
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x93e8
callq 0x3350
jmp 0x93e8
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9400
callq 0x3350
jmp 0x9400
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x941b
callq 0x3350
jmp 0x941b
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9432
callq 0x3350
jmp 0x9432
movq %rax, %rbx
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9448
callq 0x3350
movq %rbx, %rdi
callq 0x35b0