	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function argv_term
_argv_term:                             ## @argv_term
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	movl	$1, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	movl	$0, %r12d
	cmoveq	%rbx, %r12
	cmoveq	%r13, %r14
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_isspace
	testq	%r12, %r12
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	jmp	LBB0_3
LBB0_9:
	movq	%rbx, (%r15)
	testq	%r12, %r12
	jne	LBB0_7
LBB0_10:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_6:
	movq	%rbx, (%r15)
LBB0_7:
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_ASSERT
	leaq	1(%r14), %rdi
	callq	_malloc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_check_malloc_return
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	movb	$0, (%r15,%r14)
LBB0_11:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_argv_term
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function argv_term
_argv_term:                             ; @argv_term
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x22, [x0]
	ldrb	w8, [x22]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x21, x0
	mov	x19, #0
	mov	x20, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #0
	csel	x20, x22, xzr, eq
	csinc	x19, x19, xzr, ne
	ldrb	w8, [x22, #1]!
	cbnz	w8, LBB0_4
	b	LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, #1
	ldrb	w8, [x22, #1]!
	cbz	w8, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isspace
	cbz	x20, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w0, LBB0_3
; %bb.6:
	str	x22, [x21]
	b	LBB0_8
LBB0_7:
	str	x22, [x21]
	cbz	x20, LBB0_9
LBB0_8:
	cmp	x19, #0
	cset	w0, ne
	bl	_ASSERT
	add	x0, x19, #1
	bl	_malloc
	mov	x21, x0
	bl	_check_malloc_return
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	strb	wzr, [x21, x19]
	b	LBB0_10
LBB0_9:
	mov	x21, #0
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_argv_term
.subsections_via_symbols
