	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_uri_basename               ## -- Begin function svn_uri_basename
	.p2align	4, 0x90
_svn_uri_basename:                      ## @svn_uri_basename
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_strlen
	movl	%eax, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_svn_uri_is_canonical
	movl	%eax, %edi
	callq	_assert
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_svn_uri_is_root
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	leaq	L_.str(%rip), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r15d, %ecx
	movl	%r15d, %eax
	sarl	$31, %eax
	andl	%r15d, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-1(%rcx), %rdx
	cmpb	$47, -1(%rbx,%rcx)
	movq	%rdx, %rcx
	jne	LBB0_2
## %bb.4:
	incl	%edx
	movl	%edx, %eax
LBB0_5:
	cltq
	addq	%rax, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_svn_path_uri_decode            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_uri_basename               ; -- Begin function svn_uri_basename
	.p2align	2
_svn_uri_basename:                      ; @svn_uri_basename
	.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	x19, x1
	mov	x20, x0
	bl	_strlen
	mov	x21, x0
	mov	x0, x20
	mov	x1, #0
	bl	_svn_uri_is_canonical
	bl	_assert
	mov	x0, x20
	mov	x1, x21
	bl	_svn_uri_is_root
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	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
LBB0_2:
	cmp	w21, #0
	csel	w8, w21, wzr, lt
	sub	x9, x20, #1
	mov	w10, w21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x11, x10, #1
	ldrb	w12, [x9, x10]
	mov	x10, x11
	cmp	w12, #47
	b.ne	LBB0_3
; %bb.5:
	add	w8, w11, #1
LBB0_6:
	add	x0, x20, w8, sxtw
	mov	x1, x19
	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
	b	_svn_path_uri_decode
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

.subsections_via_symbols
