	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_arg                      ## -- Begin function parse_arg
	.p2align	4, 0x90
_parse_arg:                             ## @parse_arg
	.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	%rsi, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_MAX_ARG_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	-1(%rcx), %r13
	cmpq	%rcx, %rax
	cmovbq	%rax, %r13
	movq	_MAX_ARG_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$3, %edx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_memcpy
	movb	$0, (%r15,%r13)
	movq	_MAX_ARG_COUNT@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_8
## %bb.5:
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r15
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, (%r14,%rbx,8)
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_8
LBB0_3:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ARG_LEN,8,3                ## @MAX_ARG_LEN
	.comm	_MAX_ARG_COUNT,4,2              ## @MAX_ARG_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	":"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_arg                      ; -- Begin function parse_arg
	.p2align	2
_parse_arg:                             ; @parse_arg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	str	x1, [sp, #8]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_strlen
	cbz	x0, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _MAX_ARG_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_ARG_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x9, x8, #1
	cmp	x0, x8
	csel	x22, x0, x9, lo
Lloh3:
	adrp	x23, _MAX_ARG_COUNT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_ARG_COUNT@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	w2, w8, #3
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	strb	wzr, [x20, x22]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x20, #0
Lloh5:
	adrp	x21, l_.str@PAGE
Lloh6:
	add	x21, x21, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x21
	bl	_strsep
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x0, [x19, x20, lsl #3]
	add	x20, x20, #1
	ldrsw	x8, [x23]
	cmp	x20, x8
	b.lt	LBB0_4
	b	LBB0_8
LBB0_6:
	mov	w20, #-1
	b	LBB0_8
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ARG_LEN,8,3                ; @MAX_ARG_LEN
	.comm	_MAX_ARG_COUNT,4,2              ; @MAX_ARG_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	":"

.subsections_via_symbols
