	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trim_last_path_component
_trim_last_path_component:              ## @trim_last_path_component
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	(%rdi), %r9
	leal	1(%r9), %r10d
	movq	%r9, %rdx
	shlq	$32, %rdx
	movabsq	$-4294967296, %r8               ## imm = 0xFFFFFFFF00000000
	movq	%r9, %rcx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r10d, %esi
	movq	%rdx, %rax
	subq	$1, %rcx
	jb	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rdi), %r11
	leal	-1(%rsi), %r10d
	leaq	(%rax,%r8), %rdx
	cmpb	$47, -1(%r11,%r9)
	movq	%rcx, %r9
	je	LBB0_1
LBB0_3:
	sarq	$32, %rax
	movq	%rax, %rcx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	subq	$1, %rcx
	jb	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rdi), %rdx
	decl	%esi
	cmpb	$47, -1(%rdx,%rax)
	movq	%rcx, %rax
	jne	LBB0_4
## %bb.6:
                                        ## kill: def $esi killed $esi killed $rsi
	popq	%rbp
	jmp	_strbuf_setlen                  ## TAILCALL
LBB0_7:
	xorl	%esi, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	popq	%rbp
	jmp	_strbuf_setlen                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_trim_last_path_component
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trim_last_path_component
_trim_last_path_component:              ; @trim_last_path_component
	.cfi_startproc
; %bb.0:
	ldrsw	x10, [x0]
	sub	x8, x10, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x10
	cmn	x8, #1
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x10, [x0, #8]
	ldrb	w11, [x10, x8]
	sub	w10, w9, #1
	sub	x8, x8, #1
	cmp	w11, #47
	b.eq	LBB0_1
LBB0_3:
	sxtw	x8, w9
	sub	x8, x8, #1
	add	w1, w9, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmn	x8, #1
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x0, #8]
	ldrb	w9, [x9, x8]
	sub	w1, w1, #1
	sub	x8, x8, #1
	cmp	w9, #47
	b.ne	LBB0_4
; %bb.6:
	b	_strbuf_setlen
LBB0_7:
	mov	w1, #0
	b	_strbuf_setlen
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_trim_last_path_component
.subsections_via_symbols
