	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisFormatSdsCommandArgv      ## -- Begin function redisFormatSdsCommandArgv
	.p2align	4, 0x90
_redisFormatSdsCommandArgv:             ## @redisFormatSdsCommandArgv
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	$-1, %ecx
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movl	%esi, %r13d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %edi
	callq	_countDigits
	addl	$3, %eax
	movslq	%eax, %rbx
	testl	%r13d, %r13d
	jle	LBB0_7
## %bb.2:
	movl	%r13d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rdi
	callq	_strlen
	movq	%rax, %rdi
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_bulklen
	addq	%rax, %rbx
	incq	%r14
	cmpq	%r14, %r12
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15,%r14,8), %rdi
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	callq	_sdsempty
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_sdsMakeRoomFor
	testq	%rax, %rax
	movl	$-1, %ecx
	je	LBB0_17
## %bb.10:
	movslq	%r13d, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_sdscatfmt
	movq	%rax, %r14
	testl	%r13d, %r13d
	jle	LBB0_16
## %bb.11:
	movl	%r13d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15,%r12,8), %rdi
	callq	_strlen
	movq	%rax, %r13
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	callq	_sdscatfmt
	movq	(%r15,%r12,8), %rsi
	movq	%rax, %rdi
	movl	%r13d, %edx
	callq	_sdscatlen
	movq	%rax, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edx
	callq	_sdscatlen
	movq	%rax, %r14
	incq	%r12
	cmpq	%r12, -64(%rbp)                 ## 8-byte Folded Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	testq	%r15, %r15
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r15,%r12,8), %r13
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_8:
	movl	$-1, %ecx
	jmp	LBB0_17
LBB0_16:
	movq	%r14, %rdi
	callq	_sdslen
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_assert
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movl	%ebx, %ecx
LBB0_17:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*%i\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"$%u\r\n"

L_.str.2:                               ## @.str.2
	.asciz	"\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisFormatSdsCommandArgv      ; -- Begin function redisFormatSdsCommandArgv
	.p2align	2
_redisFormatSdsCommandArgv:             ; @redisFormatSdsCommandArgv
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x0, LBB0_15
; %bb.1:
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	mov	x0, x1
	bl	_countDigits
	add	w8, w0, #3
	sxtw	x19, w8
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w24, w23
	mov	x25, x21
	mov	x26, x22
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x26]
	bl	_strlen
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_bulklen
	add	x19, x0, x19
	add	x26, x26, #8
	add	x25, x25, #8
	subs	x24, x24, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x21, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x25]
	b	LBB0_4
LBB0_7:
	bl	_sdsempty
	cbz	x0, LBB0_15
; %bb.8:
	mov	x1, x19
	bl	_sdsMakeRoomFor
	cbz	x0, LBB0_15
; %bb.9:
	sxtw	x2, w23
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sdscatfmt
	mov	x24, x0
	cmp	w23, #1
	b.lt	LBB0_16
; %bb.10:
	mov	w27, w23
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
	mov	x28, x21
Lloh4:
	adrp	x25, l_.str.2@PAGE
Lloh5:
	add	x25, x25, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [x22]
	bl	_strlen
	mov	x26, x0
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x24
	mov	x1, x23
	mov	x2, x26
	bl	_sdscatfmt
	ldr	x1, [x22], #8
	mov	x2, x26
	bl	_sdscatlen
	mov	x1, x25
	mov	w2, #2
	bl	_sdscatlen
	mov	x24, x0
	add	x28, x28, #8
	subs	x27, x27, #1
	b.eq	LBB0_16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cbz	x21, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x26, [x28]
	b	LBB0_12
LBB0_15:
	mov	w19, #-1
	b	LBB0_17
LBB0_16:
	mov	x0, x24
	bl	_sdslen
	cmp	x0, x19
	cset	w0, eq
	bl	_assert
	str	x24, [x20]
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*%i\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"$%u\r\n"

l_.str.2:                               ; @.str.2
	.asciz	"\r\n"

.subsections_via_symbols
