	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function url_remove_final_relpath
_url_remove_final_relpath:              ## @url_remove_final_relpath
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	movq	%rbx, %rsi
	callq	_apr_pstrdup
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_svn_path_is_url
	movl	%eax, %edi
	callq	_SVN_ERR_ASSERT_NO_RETURN
	movq	%r12, %rdi
	callq	_svn_relpath_is_canonical
	movl	%eax, %edi
	callq	_SVN_ERR_ASSERT_NO_RETURN
	cmpb	$0, (%r12)
	je	LBB0_8
## %bb.1:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_svn_path_uri_encode
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_strlen
	movslq	%eax, %r14
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %rcx
	leaq	(%r14,%r15), %rax
	decq	%rax
	addq	%rbx, %rcx
	decq	%rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %edx
	cmpq	%rbx, %rcx
	jb	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	decq	%rax
	leaq	-1(%rcx), %rsi
	cmpb	(%rcx), %dl
	movq	%rsi, %rcx
	je	LBB0_2
	jmp	LBB0_7
LBB0_5:
	cmpb	$47, %dl
	jne	LBB0_7
## %bb.6:
	movb	$0, (%rax)
	jmp	LBB0_8
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_url_remove_final_relpath
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function url_remove_final_relpath
_url_remove_final_relpath:              ; @url_remove_final_relpath
	.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	x20, x3
	mov	x21, x1
	mov	x22, x0
	mov	x0, x2
	mov	x1, x22
	bl	_apr_pstrdup
	mov	x19, x0
	mov	x0, x22
	bl	_svn_path_is_url
	bl	_SVN_ERR_ASSERT_NO_RETURN
	mov	x0, x21
	bl	_svn_relpath_is_canonical
	bl	_SVN_ERR_ASSERT_NO_RETURN
	ldrb	w8, [x21]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_svn_path_uri_encode
	mov	x20, x0
	mov	x0, x19
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x21, w0
	mov	x0, x20
	bl	_strlen
	sub	x8, x21, #1
	add	x9, x20, w0, sxtw
	sub	x9, x9, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x19, x8]
	cmp	x9, x20
	b.lo	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w11, [x9], #-1
	sub	x8, x8, #1
	cmp	w10, w11
	b.eq	LBB0_2
	b	LBB0_6
LBB0_4:
	cmp	w10, #47
	b.ne	LBB0_6
; %bb.5:
	strb	wzr, [x19, x8]
	b	LBB0_7
LBB0_6:
	mov	x19, #0
LBB0_7:
	mov	x0, 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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_url_remove_final_relpath
.subsections_via_symbols
