	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function path_remove_last_component
_path_remove_last_component:            ## @path_remove_last_component
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_path_canonicalize
	movq	%rax, %rdi
	callq	_strlen
	movq	_PATH_SEPARATOR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edx
	movl	%eax, %esi
	sarl	$31, %esi
	andl	%eax, %esi
	decl	%esi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edx, %edx
	jle	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	decq	%rdx
	movl	%edx, %eax
	cmpb	%cl, (%rbx,%rax)
	jne	LBB0_1
## %bb.3:
	movl	%edx, %esi
LBB0_4:
	xorl	%edx, %edx
	testl	%esi, %esi
	cmovgl	%esi, %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_apr_pstrndup                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_SEPARATOR,1,0             ## @PATH_SEPARATOR
	.no_dead_strip	_path_remove_last_component
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function path_remove_last_component
_path_remove_last_component:            ; @path_remove_last_component
	.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	x20, x1
	mov	x19, x0
	bl	_path_canonicalize
	bl	_strlen
Lloh0:
	adrp	x8, _PATH_SEPARATOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PATH_SEPARATOR@GOTPAGEOFF]
	ldrb	w10, [x8]
	mov	w9, w0
	cmp	w0, #0
	csel	w8, w0, wzr, lt
	sub	w8, w8, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x9, x9, #1
	ldrb	w11, [x19, w9, uxtw]
	cmp	w11, w10
	b.ne	LBB0_1
; %bb.3:
	mov	x8, x9
LBB0_4:
	cmp	w8, #0
	csel	w2, w8, wzr, gt
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_apr_pstrndup
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_SEPARATOR,1,0             ; @PATH_SEPARATOR
	.no_dead_strip	_path_remove_last_component
.subsections_via_symbols
