	.file	"extr_redis_commands.c_redis_fmt_scan_cmd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"COUNT"
.LC1:
	.string	"MATCH"
	.text
	.p2align 4
	.globl	redis_fmt_scan_cmd
	.type	redis_fmt_scan_cmd, @function
redis_fmt_scan_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	pxor	xmm0, xmm0
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	QWORD PTR 8[rsp], r9
	mov	edx, DWORD PTR 128[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR TYPE_SCAN[rip], rsi
	movaps	XMMWORD PTR 32[rsp], xmm0
	setne	sil
	movzx	esi, sil
	add	esi, 1
	test	edx, edx
	lea	eax, 2[rsi]
	cmovg	esi, eax
	lea	rax, kw.1947[rip]
	cmp	QWORD PTR 136[rsp], 0
	mov	rdx, QWORD PTR [rax+r15*8]
	mov	DWORD PTR 28[rsp], esi
	mov	QWORD PTR 16[rsp], rdx
	mov	rdi, rdx
	jle	.L24
	call	strlen@PLT
	mov	esi, DWORD PTR 28[rsp]
	mov	rdx, QWORD PTR 16[rsp]
	lea	r14, 32[rsp]
	mov	ecx, eax
	mov	rdi, r14
	add	esi, 2
	call	redis_cmd_init_sstr@PLT
	cmp	r15, QWORD PTR TYPE_SCAN[rip]
	jne	.L9
	mov	rsi, rbp
	mov	rdi, r14
	call	redis_cmd_append_sstr_long@PLT
.L8:
	mov	edx, 5
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	redis_cmd_append_sstr@PLT
	mov	rsi, QWORD PTR 136[rsp]
	mov	rdi, r14
	call	redis_cmd_append_sstr_long@PLT
	mov	eax, DWORD PTR 128[rsp]
	test	eax, eax
	jne	.L25
.L7:
	mov	rax, QWORD PTR 32[rsp]
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR 40[rsp]
	mov	rbx, QWORD PTR 56[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L26
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	call	strlen@PLT
	lea	r14, 32[rsp]
	mov	rdx, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR 28[rsp]
	mov	ecx, eax
	mov	rdi, r14
	call	redis_cmd_init_sstr@PLT
	cmp	QWORD PTR TYPE_SCAN[rip], r15
	je	.L5
.L9:
	mov	edx, r13d
	mov	rsi, r12
	mov	rdi, r14
	call	redis_cmd_append_sstr@PLT
.L5:
	mov	rsi, rbp
	mov	rdi, r14
	call	redis_cmd_append_sstr_long@PLT
	cmp	QWORD PTR 136[rsp], 0
	jne	.L8
	mov	eax, DWORD PTR 128[rsp]
	test	eax, eax
	je	.L7
.L25:
	mov	rdi, r14
	mov	edx, 5
	lea	rsi, .LC1[rip]
	call	redis_cmd_append_sstr@PLT
	mov	edx, DWORD PTR 128[rsp]
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, r14
	call	redis_cmd_append_sstr@PLT
	jmp	.L7
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	redis_fmt_scan_cmd, .-redis_fmt_scan_cmd
	.section	.rodata.str1.1
.LC2:
	.string	"SCAN"
.LC3:
	.string	"SSCAN"
.LC4:
	.string	"HSCAN"
.LC5:
	.string	"ZSCAN"
	.section	.data.rel.ro.local,"aw"
	.align 32
	.type	kw.1947, @object
	.size	kw.1947, 32
kw.1947:
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.comm	TYPE_SCAN,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_redis_commands.c_redis_fmt_scan_cmd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"COUNT\000"
	.align	2
.LC1:
	.ascii	"MATCH\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	redis_fmt_scan_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	redis_fmt_scan_cmd, %function
redis_fmt_scan_cmd:
	@ args = 16, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldr	r10, .L27
	mov	ip, #0
	ldr	r1, [r10]
	mov	r7, r3
	cmp	r1, r4
	movne	r9, #2
	moveq	r9, #1
	ldr	r3, .L27+4
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r3, .L27+8
	ldr	r1, [sp, #64]
	ldr	r8, [r3, r4, lsl #2]
	cmp	r1, ip
	mov	r5, r0
	mov	r0, r8
	mov	r6, r2
	addgt	r9, r9, #2
	str	ip, [sp]
	str	ip, [sp, #4]
	str	ip, [sp, #8]
	bl	strlen
	ldr	r3, [sp, #68]
	mov	r2, r8
	cmp	r3, #0
	ldr	fp, [sp, #60]
	mov	r3, r0
	ble	.L24
	mov	r0, sp
	add	r1, r9, #2
	bl	redis_cmd_init_sstr
	ldr	r3, [r10]
	cmp	r4, r3
	bne	.L9
	mov	r0, sp
	ldr	r1, [sp, #56]
	bl	redis_cmd_append_sstr_long
.L8:
	mov	r2, #5
	ldr	r1, .L27+12
	mov	r0, sp
	bl	redis_cmd_append_sstr
	mov	r0, sp
	ldr	r1, [sp, #68]
	bl	redis_cmd_append_sstr_long
	ldr	r3, [sp, #64]
	cmp	r3, #0
	bne	.L25
.L7:
	ldr	r3, [sp]
	ldr	r0, [sp, #4]
	str	r3, [r5]
	ldr	r3, .L27+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	mov	r1, r9
	mov	r0, sp
	bl	redis_cmd_init_sstr
	ldr	r3, [r10]
	cmp	r3, r4
	beq	.L5
.L9:
	mov	r2, r7
	mov	r1, r6
	mov	r0, sp
	bl	redis_cmd_append_sstr
.L5:
	mov	r0, sp
	ldr	r1, [sp, #56]
	bl	redis_cmd_append_sstr_long
	ldr	r3, [sp, #68]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [sp, #64]
	cmp	r3, #0
	beq	.L7
.L25:
	mov	r2, #5
	mov	r0, sp
	ldr	r1, .L27+16
	bl	redis_cmd_append_sstr
	mov	r1, fp
	mov	r0, sp
	ldr	r2, [sp, #64]
	bl	redis_cmd_append_sstr
	b	.L7
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	TYPE_SCAN
	.word	.LC2
	.word	.LANCHOR0
	.word	.LC0
	.word	.LC1
	.size	redis_fmt_scan_cmd, .-redis_fmt_scan_cmd
	.section	.rodata.str1.4
	.align	2
.LC3:
	.ascii	"SCAN\000"
	.align	2
.LC4:
	.ascii	"SSCAN\000"
	.align	2
.LC5:
	.ascii	"HSCAN\000"
	.align	2
.LC6:
	.ascii	"ZSCAN\000"
	.comm	TYPE_SCAN,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	kw.4231, %object
	.size	kw.4231, 16
kw.4231:
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
