	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chop_last_dir
_chop_last_dir:                         ## @chop_last_dir
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_find_last_dir_sep
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movb	$0, (%rax)
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movq	(%rbx), %r14
	movq	%r14, %rdi
	movl	$58, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movb	$0, (%rax)
	movl	$1, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testl	%r15d, %r15d
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_die
	movq	(%rbx), %r14
LBB0_7:
	movq	%r14, %rdi
	callq	_free
	leaq	L_.str(%rip), %rdi
	callq	_xstrdup
	movq	%rax, (%rbx)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

L_.str.1:                               ## @.str.1
	.asciz	"cannot strip one component off url '%s'"

	.no_dead_strip	_chop_last_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chop_last_dir
_chop_last_dir:                         ; @chop_last_dir
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0]
	bl	_find_last_dir_sep
	cbz	x0, LBB0_2
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	strb	wzr, [x8]
	b	LBB0_8
LBB0_2:
	ldr	x20, [x19]
	mov	x0, x20
	mov	w1, #58
	bl	_strrchr
	cbz	x0, LBB0_4
; %bb.3:
	strb	wzr, [x0]
	mov	w0, #1
	b	LBB0_8
LBB0_4:
	cbnz	w21, LBB0_6
; %bb.5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_strcmp
	cbnz	w0, LBB0_7
LBB0_6:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	ldr	x1, [x19]
	bl	_die
	ldr	x20, [x19]
LBB0_7:
	mov	x0, x20
	bl	_free
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_xstrdup
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_8:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

l_.str.1:                               ; @.str.1
	.asciz	"cannot strip one component off url '%s'"

	.no_dead_strip	_chop_last_dir
.subsections_via_symbols
