	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_relpath_basename           ## -- Begin function svn_relpath_basename
	.p2align	4, 0x90
_svn_relpath_basename:                  ## @svn_relpath_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
	callq	_relpath_is_canonical
	movl	%eax, %edi
	callq	_assert
	movl	%r15d, %edx
	movl	%r15d, %eax
	sarl	$31, %eax
	andl	%r15d, %eax
	movq	%rdx, %rcx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-1(%rcx), %rsi
	cmpb	$47, -1(%rbx,%rcx)
	movq	%rsi, %rcx
	jne	LBB0_1
## %bb.3:
	incl	%esi
	movl	%esi, %eax
LBB0_4:
	movslq	%eax, %rcx
	addq	%rcx, %rbx
	testq	%r14, %r14
	je	LBB0_5
## %bb.6:
	subl	%eax, %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_apr_pstrmemdup                 ## TAILCALL
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_relpath_basename           ; -- Begin function svn_relpath_basename
	.p2align	2
_svn_relpath_basename:                  ; @svn_relpath_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
	bl	_relpath_is_canonical
	bl	_assert
	mov	w8, w21
	cmp	w21, #0
	csel	w9, w21, wzr, lt
	sub	x10, x20, #1
	mov	x11, x8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w11, #1
	b.lt	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x12, x11, #1
	ldrb	w13, [x10, x11]
	mov	x11, x12
	cmp	w13, #47
	b.ne	LBB0_1
; %bb.3:
	add	w9, w12, #1
LBB0_4:
	add	x1, x20, w9, sxtw
	cbz	x19, LBB0_6
; %bb.5:
	sub	w2, w8, w9
	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
	b	_apr_pstrmemdup
LBB0_6:
	mov	x0, x1
	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
.subsections_via_symbols
