	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_split_cmdline                  ## -- Begin function split_cmdline
	.p2align	4, 0x90
_split_cmdline:                         ## @split_cmdline
	.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	%rsi, %rbx
	movq	%rdi, %r13
	movl	$128, %edi
	callq	_malloc
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rbx)
	movq	%r13, (%rax)
	movb	(%r13), %r15b
	testb	%r15b, %r15b
	je	LBB0_27
## %bb.1:
	leaq	1(%r13), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$16, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r14d, %rax
	movb	(%r13,%rax), %r15b
	testb	%r15b, %r15b
	je	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testb	%r12b, %r12b
	je	LBB0_3
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpb	%r12b, %r15b
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$92, %r15b
	jne	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$39, %r12b
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r14d, %r14
	movb	1(%r13,%r14), %r15b
	testb	%r15b, %r15b
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rax
	incl	%ebx
	movb	%r15b, (%r13,%rax)
	incl	%r14d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movsbl	%r15b, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rax
	incl	%ebx
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movb	$0, (%r13,%rax)
	movslq	%r14d, %rbx
	leal	1(%rbx), %ecx
	addq	-80(%rbp), %rbx                 ## 8-byte Folded Reload
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, %r14d
	movzbl	(%rbx), %eax
	testb	%al, %al
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movsbl	%al, %edi
	callq	_isspace
	leal	1(%r14), %ecx
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	%eax, %ebx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	jmp	LBB0_10
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$39, %r15b
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$34, %r15b
	jne	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	movl	%r15d, %r12d
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rdi
	movl	%eax, %r12d
	addl	$16, %r12d
	leal	128(,%rax,8), %esi
	callq	_realloc
	movq	%rax, (%r15)
	movl	%r12d, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movslq	%esi, %rcx
	addq	%r13, %rcx
	movslq	%ebx, %rdx
	incl	%ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rcx, (%rax,%rdx,8)
	jmp	LBB0_11
LBB0_13:
	movslq	%ebx, %rax
	movb	$0, (%r13,%rax)
	testb	%r12b, %r12b
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	je	LBB0_28
## %bb.14:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_free
	movq	$0, (%rbx)
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_26
LBB0_27:
	movb	$0, (%r13)
	movl	$1, %eax
LBB0_28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_free
	movq	$0, (%rbx)
	leaq	L_.str(%rip), %rdi
LBB0_26:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmdline ends with \\"

L_.str.1:                               ## @.str.1
	.asciz	"unclosed quote"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_split_cmdline                  ; -- Begin function split_cmdline
	.p2align	2
_split_cmdline:                         ; @split_cmdline
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w0, #128
	bl	_malloc
	str	x0, [x19]
	str	x20, [x0]
	ldrb	w27, [x20]
	cbz	w27, LBB0_24
; %bb.1:
	mov	w26, #0
	mov	w23, #0
	mov	w25, #0
	add	x22, x20, #1
	mov	w21, #1
	mov	w24, #16
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w26, #0
	add	w25, w25, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w27, [x20, w25, sxtw]
	cbz	w27, LBB0_22
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	tst	w26, #0xff
	b.eq	LBB0_11
LBB0_5:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w27, #0xff
	cmp	w8, w26, uxtb
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #92
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w26, #0xff
	cmp	w8, #39
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w25
	add	x25, x8, #1
	ldrb	w27, [x20, x25]
	cbz	w27, LBB0_26
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	w27, [x20, w23, sxtw]
	add	w8, w23, #1
	add	w25, w25, #1
	mov	x23, x8
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtb	w0, w27
	bl	_isspace
	cbz	x0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	sxtw	x8, w23
	add	x23, x8, #1
	strb	wzr, [x20, x8]
	add	w8, w25, #1
	add	x26, x22, w25, sxtw
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x25, x8
	ldrb	w8, [x26]
	cbz	w8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	sxtb	w0, w8
	bl	_isspace
	add	w8, w25, #1
	add	x26, x26, #1
	cbnz	x0, LBB0_13
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w21, w24
	b.ge	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19]
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w27, #0xff
	cmp	w8, #39
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #34
	b.ne	LBB0_5
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #1
	mov	x26, x27
	b	LBB0_3
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #16
	ldr	x0, [x19]
	lsl	w1, w24, #3
	bl	_realloc
	str	x0, [x19]
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w26, #0
	add	x8, x20, x23
	str	x8, [x0, w21, sxtw #3]
	add	w21, w21, #1
	b	LBB0_3
LBB0_22:
	strb	wzr, [x20, w23, sxtw]
	tst	w26, #0xff
	b.eq	LBB0_25
; %bb.23:
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_27
LBB0_24:
	strb	wzr, [x20]
	mov	w21, #1
LBB0_25:
	mov	x0, x21
	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
LBB0_26:
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_27:
	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
	b	_error
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmdline ends with \\"

l_.str.1:                               ; @.str.1
	.asciz	"unclosed quote"

.subsections_via_symbols
