	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_path
_parse_path:                            ## @parse_path
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rdi, %r15
	movq	_MAXPATHLEN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r15,%rbx), %edi
	movl	%ebx, %esi
	callq	_isvalid_fchar
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	js	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
	jmp	LBB0_8
LBB0_2:
	xorl	%r14d, %r14d
	cmpl	%eax, %r14d
	jl	LBB0_10
	jmp	LBB0_11
LBB0_5:
	movl	(%r12), %eax
LBB0_8:
	movl	%ebx, %r14d
	cmpl	%eax, %r14d
	jge	LBB0_11
LBB0_10:
	movl	%r14d, %eax
	cmpb	$0, (%r15,%rax)
	je	LBB0_12
LBB0_11:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_warnx
	movl	$-1, %r14d
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad pathname - '%s'"

	.no_dead_strip	_parse_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_path
_parse_path:                            ; @parse_path
	.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
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _MAXPATHLEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAXPATHLEN@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x19, x20]
	mov	x1, x20
	bl	_isvalid_fchar
	cbz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w0, #31, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_3
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	cmp	w20, w8
	b.lt	LBB0_9
	b	LBB0_10
LBB0_8:
	ldr	w8, [x21]
	cmp	w20, w8
	b.ge	LBB0_10
LBB0_9:
	ldrb	w8, [x19, w20, uxtw]
	cbz	w8, LBB0_12
LBB0_10:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_warnx
LBB0_11:
	mov	w20, #-1
LBB0_12:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad pathname - '%s'"

	.no_dead_strip	_parse_path
.subsections_via_symbols
