	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_fmt_scan_cmd             ## -- Begin function redis_fmt_scan_cmd
	.p2align	4, 0x90
_redis_fmt_scan_cmd:                    ## @redis_fmt_scan_cmd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, %rbx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_TYPE_SCAN@GOTPCREL(%rip), %r15
	xorl	%eax, %eax
	cmpq	%rsi, (%r15)
	sete	%al
	xorl	%ecx, %ecx
	cmpl	$0, 16(%rbp)
	setg	%cl
	addl	%ecx, %ecx
	xorl	%edx, %edx
	cmpq	$0, 24(%rbp)
	setg	%dl
	leal	(%rcx,%rdx,2), %r13d
	subl	%eax, %r13d
	addl	$2, %r13d
	leaq	_redis_fmt_scan_cmd.kw(%rip), %rax
	movq	(%rax,%rsi,8), %r14
	movq	%r14, %rdi
	callq	_strlen
	leaq	-64(%rbp), %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_redis_cmd_init_sstr
	cmpq	%r12, (%r15)
	je	LBB0_2
## %bb.1:
	leaq	-64(%rbp), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_redis_cmd_append_sstr
LBB0_2:
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_redis_cmd_append_sstr_long
	movq	24(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.4(%rip), %rsi
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	movl	$5, %edx
	callq	_redis_cmd_append_sstr
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_redis_cmd_append_sstr_long
LBB0_4:
	movl	16(%rbp), %ebx
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	leaq	L_.str.5(%rip), %rsi
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	movl	$5, %edx
	callq	_redis_cmd_append_sstr
	movq	%r14, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_redis_cmd_append_sstr
LBB0_6:
	movq	-64(%rbp), %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	-56(%rbp), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @redis_fmt_scan_cmd.kw
_redis_fmt_scan_cmd.kw:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	L_.str.3

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SCAN"

L_.str.1:                               ## @.str.1
	.asciz	"SSCAN"

L_.str.2:                               ## @.str.2
	.asciz	"HSCAN"

L_.str.3:                               ## @.str.3
	.asciz	"ZSCAN"

	.comm	_TYPE_SCAN,8,3                  ## @TYPE_SCAN
L_.str.4:                               ## @.str.4
	.asciz	"COUNT"

L_.str.5:                               ## @.str.5
	.asciz	"MATCH"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_fmt_scan_cmd             ; -- Begin function redis_fmt_scan_cmd
	.p2align	2
_redis_fmt_scan_cmd:                    ; @redis_fmt_scan_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x7
	mov	x19, x6
	str	x5, [sp, #8]                    ; 8-byte Folded Spill
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x20, x0
	cmp	w6, #0
	cset	w8, gt
	cmp	x7, #0
	cset	w9, gt
Lloh0:
	adrp	x21, _TYPE_SCAN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TYPE_SCAN@GOTPAGEOFF]
	stp	xzr, xzr, [sp, #16]
	ldr	x10, [x21]
	cmp	x10, x1
	mov	w10, #1
	cinc	w10, w10, ne
	lsl	w9, w9, #1
	add	w8, w9, w8, lsl #1
	add	w27, w8, w10
Lloh2:
	adrp	x8, _redis_fmt_scan_cmd.kw@PAGE
Lloh3:
	add	x8, x8, _redis_fmt_scan_cmd.kw@PAGEOFF
	ldr	x28, [x8, x1, lsl #3]
	mov	x0, x28
	bl	_strlen
	mov	x3, x0
	add	x0, sp, #16
	mov	x1, x27
	mov	x2, x28
	bl	_redis_cmd_init_sstr
	ldr	x8, [x21]
	cmp	x8, x26
	b.eq	LBB0_2
; %bb.1:
	add	x0, sp, #16
	mov	x1, x25
	mov	x2, x24
	bl	_redis_cmd_append_sstr
LBB0_2:
	add	x0, sp, #16
	mov	x1, x23
	bl	_redis_cmd_append_sstr_long
	cbz	x22, LBB0_4
; %bb.3:
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #16
	mov	w2, #5
	bl	_redis_cmd_append_sstr
	add	x0, sp, #16
	mov	x1, x22
	bl	_redis_cmd_append_sstr_long
LBB0_4:
	cbz	w19, LBB0_6
; %bb.5:
Lloh6:
	adrp	x1, l_.str.5@PAGE
Lloh7:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #16
	mov	w2, #5
	bl	_redis_cmd_append_sstr
	add	x0, sp, #16
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x19
	bl	_redis_cmd_append_sstr
LBB0_6:
	ldr	x8, [sp, #16]
	str	x8, [x20]
	ldr	w0, [sp, #24]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @redis_fmt_scan_cmd.kw
_redis_fmt_scan_cmd.kw:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SCAN"

l_.str.1:                               ; @.str.1
	.asciz	"SSCAN"

l_.str.2:                               ; @.str.2
	.asciz	"HSCAN"

l_.str.3:                               ; @.str.3
	.asciz	"ZSCAN"

	.comm	_TYPE_SCAN,8,3                  ; @TYPE_SCAN
l_.str.4:                               ; @.str.4
	.asciz	"COUNT"

l_.str.5:                               ; @.str.5
	.asciz	"MATCH"

.subsections_via_symbols
