	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trim_directory
_trim_directory:                        ## @trim_directory
	.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
	callq	_skip_drive
	cmpb	$0, (%rax)
	je	LBB0_13
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_strlen
	movslq	%eax, %rbx
	decq	%rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r14,%rbx), %r15
	movsbl	(%r14,%rbx), %edi
	callq	_IS_DIR_SEP
	decq	%rbx
	cmpq	%r14, %r15
	jbe	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	addq	$2, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r14,%rbx), %r15
	decq	%r15
	movsbl	-1(%r14,%rbx), %edi
	callq	_IS_DIR_SEP
	decq	%rbx
	cmpq	%r14, %r15
	jbe	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%rax, %rax
	je	LBB0_5
LBB0_7:
	leaq	(%r14,%rbx), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r15
	movq	%rbx, %r12
	cmpq	%r14, %r13
	jbe	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leaq	-1(%r15), %r13
	movsbl	-1(%r15), %edi
	callq	_IS_DIR_SEP
	leaq	-1(%r12), %rbx
	testq	%rax, %rax
	jne	LBB0_8
LBB0_10:
	testq	%r12, %r12
	jne	LBB0_12
## %bb.11:
	movsbl	(%r14), %edi
	callq	_IS_DIR_SEP
	cmpq	$1, %rax
	sbbq	$-1, %r14
	movq	%r14, %r15
LBB0_12:
	movb	$0, (%r15)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_trim_directory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trim_directory
_trim_directory:                        ; @trim_directory
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_skip_drive
	ldrb	w8, [x0]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x19, x0
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	mov	x21, #0
	sxtw	x20, w0
	add	x22, x19, x20
	sub	x23, x22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x23, x21
	ldrsb	w0, [x24]
	bl	_IS_DIR_SEP
	sub	x21, x21, #1
	cmp	x24, x19
	b.ls	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	x0, LBB0_2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x22, x21
	ldrsb	w0, [x23]
	bl	_IS_DIR_SEP
	sub	x21, x21, #1
	cmp	x23, x19
	b.ls	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x0, LBB0_4
LBB0_6:
	add	x23, x19, x20
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x21
	add	x8, x23, x21
	add	x8, x8, #1
	cmp	x8, x19
	b.ls	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrsb	w0, [x23, x22]
	bl	_IS_DIR_SEP
	sub	x21, x22, #1
	cbnz	x0, LBB0_7
LBB0_9:
	add	x8, x20, x22
	cmn	x8, #1
	b.eq	LBB0_11
; %bb.10:
	add	x8, x19, x20
	add	x8, x8, x22
	add	x8, x8, #1
	b	LBB0_12
LBB0_11:
	mov	x20, x19
	ldrsb	w0, [x20], #1
	bl	_IS_DIR_SEP
	cmp	x0, #0
	csel	x8, x19, x20, eq
LBB0_12:
	strb	wzr, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_trim_directory
.subsections_via_symbols
