	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shelf_name_encode
_shelf_name_encode:                     ## @shelf_name_encode
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %esi
	incl	%esi
	movq	%rbx, %rdi
	callq	_apr_palloc
	movq	%rax, %r15
	movb	(%r13), %al
	testb	%al, %al
	je	LBB0_4
## %bb.1:
	incq	%r13
	leaq	L_.str.1(%rip), %r12
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %ecx
	movq	%rbx, %rdi
	movl	$3, %esi
	movq	%r12, %rdx
	callq	_apr_snprintf
	addq	$2, %rbx
	movzbl	(%r13), %eax
	incq	%r13
	testb	%al, %al
	jne	LBB0_2
## %bb.3:
	movq	%r15, (%r14)
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_SVN_ERR_BAD_CHANGELIST_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_svn_error_create               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN_ERR_BAD_CHANGELIST_NAME,4,2 ## @SVN_ERR_BAD_CHANGELIST_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Shelf name cannot be the empty string"

L_.str.1:                               ## @.str.1
	.asciz	"%02x"

	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_shelf_name_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shelf_name_encode
_shelf_name_encode:                     ; @shelf_name_encode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_strlen
	mov	w1, #1
	bfi	w1, w0, #1, #31
	mov	x0, x20
	bl	_apr_palloc
	ldrb	w8, [x21]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x23, x21, #1
Lloh0:
	adrp	x21, l_.str.1@PAGE
Lloh1:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	x22, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	w3, w8, #0xff
	mov	x0, x22
	mov	w1, #3
	mov	x2, x21
	bl	_apr_snprintf
	add	x22, x22, #2
	ldrb	w8, [x23], #1
	cbnz	w8, LBB0_2
; %bb.3:
	str	x20, [x19]
Lloh2:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh5:
	adrp	x8, _SVN_ERR_BAD_CHANGELIST_NAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SVN_ERR_BAD_CHANGELIST_NAME@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x2, x0
	mov	x0, x19
	mov	x1, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_svn_error_create
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN_ERR_BAD_CHANGELIST_NAME,4,2 ; @SVN_ERR_BAD_CHANGELIST_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Shelf name cannot be the empty string"

l_.str.1:                               ; @.str.1
	.asciz	"%02x"

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