	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisFormatCommandArgv         ## -- Begin function redisFormatCommandArgv
	.p2align	4, 0x90
_redisFormatCommandArgv:                ## @redisFormatCommandArgv
	.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	%rcx, %r12
	movl	$-1, %ecx
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.1:
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_countDigits
	movl	%eax, %r13d
	addl	$3, %r13d
	testl	%ebx, %ebx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	jle	LBB0_7
## %bb.2:
	movl	%ebx, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rdi
	callq	_strlen
	movq	%rax, %rdi
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_bulklen
	addl	%eax, %r13d
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12,%rbx,8), %rdi
	jmp	LBB0_6
LBB0_7:
	leal	1(%r13), %edi
	callq	_malloc
	testq	%rax, %rax
	movl	$-1, %ecx
	je	LBB0_15
## %bb.8:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movslq	%r14d, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_sprintf
	movl	%eax, %ebx
	testl	%r14d, %r14d
	jle	LBB0_14
## %bb.9:
	movl	%r14d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14,%r15,8), %rdi
	callq	_strlen
	movq	%rax, %r12
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movslq	%ebx, %rbx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	leaq	(%rbx,%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	callq	_sprintf
	addl	%eax, %ebx
	movslq	%ebx, %rbx
	leaq	(%rbx,%r13), %rdi
	movq	(%r14,%r15,8), %rsi
	movq	%r12, %rdx
	callq	_memcpy
	leal	(%rbx,%r12), %eax
	cltq
	movw	$2573, (%r13,%rax)              ## imm = 0xA0D
	addl	%r12d, %ebx
	addl	$2, %ebx
	incq	%r15
	cmpq	%r15, -80(%rbp)                 ## 8-byte Folded Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r12,%r15,8), %r12
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_14:
	xorl	%edi, %edi
	cmpl	%r13d, %ebx
	sete	%dil
	callq	_assert
	movslq	%ebx, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movb	$0, (%rcx,%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movl	%r13d, %ecx
LBB0_15:
	movl	%ecx, %eax
	addq	$56, %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	"*%d\r\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisFormatCommandArgv         ; -- Begin function redisFormatCommandArgv
	.p2align	2
_redisFormatCommandArgv:                ; @redisFormatCommandArgv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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_14
; %bb.1:
	mov	x20, x3
	mov	x22, x2
	mov	x24, x1
	mov	x26, x0
	mov	x0, x1
	bl	_countDigits
	add	w19, w0, #3
	cmp	w24, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w21, w24
	mov	x23, x20
	mov	x25, x22
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x25]
	bl	_strlen
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_bulklen
	add	w19, w19, w0
	add	x25, x25, #8
	add	x23, x23, #8
	subs	x21, x21, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x20, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x23]
	b	LBB0_4
LBB0_7:
	add	w0, w19, #1
	bl	_malloc
	cbz	x0, LBB0_14
; %bb.8:
	mov	x23, x0
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
	sxtw	x2, w24
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sprintf
	mov	x25, x0
	cmp	w24, #1
	b.lt	LBB0_15
; %bb.9:
	mov	w27, w24
	mov	w28, #2573
	mov	x21, x20
Lloh2:
	adrp	x24, l_.str.1@PAGE
Lloh3:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x22]
	bl	_strlen
	mov	x26, x0
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	sxtw	x25, w25
	add	x0, x23, x25
	mov	x1, x24
	mov	x2, x26
	bl	_sprintf
	add	x25, x25, w0, sxtw
	add	x0, x23, x25
	ldr	x1, [x22], #8
	mov	x2, x26
	bl	_memcpy
	add	w8, w25, w26
	strh	w28, [x23, w8, sxtw]
	add	w25, w8, #2
	add	x21, x21, #8
	subs	x27, x27, #1
	b.eq	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cbz	x20, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x26, [x21]
	b	LBB0_11
LBB0_14:
	mov	w19, #-1
	b	LBB0_16
LBB0_15:
	cmp	w25, w19
	cset	w0, eq
	bl	_assert
	strb	wzr, [x23, w25, sxtw]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x23, [x8]
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*%d\r\n"

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

.subsections_via_symbols
