	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_opt__arg_canonicalize_url  ## -- Begin function svn_opt__arg_canonicalize_url
	.p2align	4, 0x90
_svn_opt__arg_canonicalize_url:         ## @svn_opt__arg_canonicalize_url
	.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	%rdx, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_svn_path_uri_from_iri
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_svn_path_uri_autoescape
	movq	%rax, %r12
	movq	_SVN_PATH_LOCAL_SEPARATOR@GOTPCREL(%rip), %rbx
	movsbl	(%rbx), %esi
	movq	%rax, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_apr_pstrdup
	movq	%rax, %r12
	movb	(%rax), %cl
	testb	%cl, %cl
	je	LBB0_6
## %bb.2:
	movq	%r12, %rax
	incq	%rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%rax), %ecx
	incq	%rax
	testb	%cl, %cl
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	(%rbx), %cl
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	$47, -1(%rax)
	jmp	LBB0_5
LBB0_6:
	movq	%r12, %rdi
	callq	_svn_path_is_backpath_present
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	_SVN_ERR_BAD_URL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	movq	%r12, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_svn_error_createf              ## TAILCALL
LBB0_7:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_svn_uri_canonicalize
	movq	%rax, (%r14)
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN_PATH_LOCAL_SEPARATOR,1,0   ## @SVN_PATH_LOCAL_SEPARATOR
	.comm	_SVN_ERR_BAD_URL,4,2            ## @SVN_ERR_BAD_URL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"URL '%s' contains a '..' element"

	.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_opt__arg_canonicalize_url  ; -- Begin function svn_opt__arg_canonicalize_url
	.p2align	2
_svn_opt__arg_canonicalize_url:         ; @svn_opt__arg_canonicalize_url
	.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, x2
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	bl	_svn_path_uri_from_iri
	mov	x1, x20
	bl	_svn_path_uri_autoescape
	mov	x21, x0
Lloh0:
	adrp	x22, _SVN_PATH_LOCAL_SEPARATOR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SVN_PATH_LOCAL_SEPARATOR@GOTPAGEOFF]
	ldrsb	w1, [x22]
	bl	_strchr
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_apr_pstrdup
	mov	x21, x0
	ldrb	w10, [x0]
	cbz	w10, LBB0_6
; %bb.2:
	add	x8, x21, #1
	mov	w9, #47
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w10, [x8], #1
	cbz	w10, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x22]
	cmp	w10, w11
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sturb	w9, [x8, #-1]
	b	LBB0_3
LBB0_6:
	mov	x0, x21
	bl	_svn_path_is_backpath_present
	cbz	x0, LBB0_8
; %bb.7:
Lloh2:
	adrp	x8, _SVN_ERR_BAD_URL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SVN_ERR_BAD_URL@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	mov	x3, x21
	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_error_createf
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	bl	_svn_uri_canonicalize
	str	x0, [x19]
Lloh7:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	x0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN_PATH_LOCAL_SEPARATOR,1,0   ; @SVN_PATH_LOCAL_SEPARATOR
	.comm	_SVN_ERR_BAD_URL,4,2            ; @SVN_ERR_BAD_URL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"URL '%s' contains a '..' element"

	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
.subsections_via_symbols
