	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pathlen_without_trailing_slash
_pathlen_without_trailing_slash:        ## @pathlen_without_trailing_slash
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_strlen
	movq	%rax, %rcx
	movq	_DEFAULT_SLASH@GOTPCREL(%rip), %rax
	movb	(%rax), %dl
	movl	%ecx, %esi
	testl	%ecx, %ecx
	movl	$1, %eax
	cmovlel	%ecx, %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$2, %esi
	jl	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-1(%rsi), %rcx
	cmpb	%dl, -1(%rbx,%rsi)
	movq	%rcx, %rsi
	je	LBB0_1
## %bb.3:
	incl	%ecx
	movl	%ecx, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_SLASH,1,0              ## @DEFAULT_SLASH
	.no_dead_strip	_pathlen_without_trailing_slash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pathlen_without_trailing_slash
_pathlen_without_trailing_slash:        ; @pathlen_without_trailing_slash
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_strlen
Lloh0:
	adrp	x8, _DEFAULT_SLASH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_SLASH@GOTPAGEOFF]
	ldrb	w8, [x8]
	and	x9, x0, #0xffffffff
	cmp	w0, #1
	csinc	w0, w0, wzr, lt
	sub	x10, x19, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #2
	b.lt	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x11, x9, #1
	ldrb	w12, [x10, x9]
	mov	x9, x11
	cmp	w12, w8
	b.eq	LBB0_1
; %bb.3:
	add	w0, w11, #1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_SLASH,1,0              ; @DEFAULT_SLASH
	.no_dead_strip	_pathlen_without_trailing_slash
.subsections_via_symbols
