	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_uri_get_file_url_from_dirent ## -- Begin function svn_uri_get_file_url_from_dirent
	.p2align	4, 0x90
_svn_uri_get_file_url_from_dirent:      ## @svn_uri_get_file_url_from_dirent
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, -32(%rbp)
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_svn_dirent_is_canonical
	movl	%eax, %edi
	callq	_assert
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_svn_dirent_get_absolute
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-32(%rbp), %rdi
	movq	%r15, %rsi
	callq	_svn_path_uri_encode
	movq	%rax, -32(%rbp)
	cmpb	$47, (%rax)
	jne	LBB0_3
## %bb.1:
	cmpb	$0, 1(%rax)
	jne	LBB0_3
## %bb.2:
	movq	$0, -32(%rbp)
	xorl	%eax, %eax
LBB0_3:
	movq	_SVN_VA_NULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_apr_pstrcat
	movq	%rax, (%r14)
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file://"

	.comm	_SVN_VA_NULL,4,2                ## @SVN_VA_NULL
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_uri_get_file_url_from_dirent ; -- Begin function svn_uri_get_file_url_from_dirent
	.p2align	2
_svn_uri_get_file_url_from_dirent:      ; @svn_uri_get_file_url_from_dirent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	x1, [sp, #8]
	mov	x0, x1
	mov	x1, x2
	bl	_svn_dirent_is_canonical
	bl	_assert
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x20
	bl	_svn_dirent_get_absolute
	bl	_SVN_ERR
	ldr	x0, [sp, #8]
	mov	x1, x20
	bl	_svn_path_uri_encode
	mov	x2, x0
	str	x0, [sp, #8]
	ldrb	w8, [x0]
	cmp	w8, #47
	b.ne	LBB0_3
; %bb.1:
	ldrb	w8, [x2, #1]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	x2, #0
	str	xzr, [sp, #8]
LBB0_3:
Lloh0:
	adrp	x8, _SVN_VA_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVN_VA_NULL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_apr_pstrcat
	str	x0, [x19]
Lloh5:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file://"

	.comm	_SVN_VA_NULL,4,2                ; @SVN_VA_NULL
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
.subsections_via_symbols
