// File: /workspace/github_cpp_makefile_star2_O1/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 $0x138, %rsp            # imm = 0x138
movq %r9, %r13
movq %rcx, %r15
movq %rsi, %rax
movq %rdi, %r14
movl %edx, 0x14(%rsp)
movl %r8d, 0x10(%rsp)
leaq 0xb233(%rip), %rsi      # 0x141d4
leaq 0x118(%rsp), %r12
movq %r12, %rdi
movq %rax, %rdx
callq 0xa756
leaq 0xbc37(%rip), %rsi      # 0x14bf2
movq %r12, %rdi
callq 0x3600
leaq 0xc8(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8ff4
movq %rdx, 0xb8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc8(%rsp)
jmp 0x8ffc
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0xc0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xd8(%rsp), %rdi
leaq 0x14(%rsp), %rdx
movq %r14, %rsi
callq 0x41b0
movq 0xb8(%rsp), %rcx
movq 0xc0(%rsp), %r8
movq 0xe0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x905a
movq 0xc8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x907f
leaq 0xe8(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x907a
movq 0xe8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x9096
movq 0xd8(%rsp), %rsi
leaq 0xb8(%rsp), %rdi
callq 0x3110
jmp 0x90a7
leaq 0xd8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x33e0
leaq 0x48(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x90cb
movq %rsi, 0x38(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x48(%rsp)
jmp 0x90d1
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x40(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
cmpq $0x0, 0x8(%r15)
je 0x910e
leaq 0xb019(%rip), %rsi      # 0x14115
leaq 0x98(%rsp), %rdi
movq %r15, %rdx
callq 0xa756
jmp 0x9131
leaq 0xa8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xb181(%rip), %rdx      # 0x142a2
leaq 0x98(%rsp), %rdi
movq %rdx, %rsi
callq 0x42a6
leaq 0x48(%rsp), %r15
movq -0x10(%r15), %rcx
movq -0x8(%r15), %r8
movq 0xa0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r15, %rcx
je 0x9159
movq 0x48(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x917e
leaq 0xa8(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x9179
movq 0xa8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x9192
movq 0x98(%rsp), %rsi
leaq 0x38(%rsp), %rdi
callq 0x3110
jmp 0x91a3
leaq 0x98(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x33e0
leaq 0x68(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x91c7
movq %rsi, 0x58(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x68(%rsp)
jmp 0x91cd
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x60(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movl 0x10(%rsp), %ebp
testl %ebp, %ebp
setns 0xf(%rsp)
js 0x9251
leaq 0xf8(%rsp), %rdi
leaq 0x10(%rsp), %rdx
movq %r14, %rsi
callq 0x41b0
leaq 0xaf0a(%rip), %rcx      # 0x1411d
leaq 0xf8(%rsp), %rdi
movl $0x7, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x33e0
leaq 0x28(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x9273
movq %rsi, 0x18(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x28(%rsp)
jmp 0x9279
movq %r12, %rbx
leaq 0x28(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xb03e(%rip), %rdx      # 0x142a2
leaq 0x18(%rsp), %rdi
movq %rdx, %rsi
callq 0x42a6
jmp 0x9294
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %r12, %rbx
movq 0x8(%rax), %rdx
movq %rdx, 0x20(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x68(%rsp), %r12
movq -0x10(%r12), %rcx
movq -0x8(%r12), %r8
movq 0x20(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x92bb
movq 0x68(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x92da
leaq 0x28(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x92d5
movq 0x28(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x92eb
movq 0x18(%rsp), %rsi
leaq 0x58(%rsp), %rdi
callq 0x3110
jmp 0x92f9
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x33e0
leaq 0x88(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x9323
movq %rsi, 0x78(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x88(%rsp)
jmp 0x9329
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x80(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x935c
callq 0x3350
testl %ebp, %ebp
js 0x9376
leaq 0x108(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9376
callq 0x3350
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x9385
callq 0x3350
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x939b
callq 0x3350
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x93aa
callq 0x3350
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x93c0
callq 0x3350
movq 0xb8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x93d2
callq 0x3350
leaq 0x128(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x93e8
callq 0x3350
leaq 0x78(%rsp), %rsi
movq %r14, %rdi
movq %r13, %rdx
callq 0x5434
movl %eax, %ebx
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9410
callq 0x3350
movl %ebx, %eax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x948b
movq %r12, %rbx
movq %rax, %r14
movb $0x1, 0xf(%rsp)
jmp 0x9469
movq %r12, %rbx
movq %rax, %r14
movb $0x1, 0xf(%rsp)
jmp 0x9486
movq %rax, %r14
leaq 0x88(%rsp), %rax
jmp 0x951c
movq %rax, %r14
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9469
callq 0x3350
cmpb $0x0, 0xf(%rsp)
je 0x9486
leaq 0x108(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9486
callq 0x3350
cmpb $0x0, 0xf(%rsp)
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x94a6
callq 0x3350
jmp 0x94a6
movq %r12, %rbx
movq %rax, %r14
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x94c4
callq 0x3350
jmp 0x94c4
movq %r12, %rbx
movq %rax, %r14
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x94df
callq 0x3350
jmp 0x94df
movq %r12, %rbx
movq %rax, %r14
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x94fd
callq 0x3350
jmp 0x94fd
movq %r12, %rbx
movq %rax, %r14
movq 0xb8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x9514
callq 0x3350
jmp 0x9514
movq %rax, %r14
leaq 0x128(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x952a
callq 0x3350
movq %r14, %rdi
callq 0x35b0