	.file	"extr_shelve.c_shelf_name_encode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Shelf name cannot be the empty string"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%02x"
	.text
	.p2align 4
	.type	shelf_name_encode, @function
shelf_name_encode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	strlen@PLT
	mov	rdi, rbp
	lea	rbp, .LC1[rip]
	lea	esi, 1[rax+rax]
	call	apr_palloc@PLT
	movzx	ecx, BYTE PTR [rbx]
	mov	r12, rax
	mov	r14, rax
	test	cl, cl
	je	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	movzx	ecx, cl
	mov	rdi, r14
	add	rbx, 1
	mov	rdx, rbp
	mov	esi, 3
	add	r14, 2
	call	apr_snprintf@PLT
	movzx	ecx, BYTE PTR [rbx]
	test	cl, cl
	jne	.L2
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, QWORD PTR SVN_NO_ERROR[rip]
	mov	QWORD PTR 0[r13], r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	_@PLT
	mov	edi, DWORD PTR SVN_ERR_BAD_CHANGELIST_NAME[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	esi, esi
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	edx, eax
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	svn_error_create@PLT
	.cfi_endproc
.LFE0:
	.size	shelf_name_encode, .-shelf_name_encode
	.comm	SVN_NO_ERROR,8,8
	.comm	SVN_ERR_BAD_CHANGELIST_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_shelve.c_shelf_name_encode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Shelf name cannot be the empty string\000"
	.align	2
.LC1:
	.ascii	"%02x\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	shelf_name_encode, %function
shelf_name_encode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r0
	sub	sp, sp, #8
	mov	r0, r1
	mov	r5, r1
	mov	r4, r2
	bl	strlen
	lsl	r1, r0, #1
	add	r1, r1, #1
	mov	r0, r4
	bl	apr_palloc
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
	mov	r7, r0
	mov	r4, r0
	ldr	r6, .L8
.L2:
	mov	r0, r4
	mov	r2, r6
	mov	r1, #3
	bl	apr_snprintf
	ldrb	r3, [r5, #1]!	@ zero_extendqisi2
	add	r4, r4, #2
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L8+4
	str	r7, [r8]
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r2, .L8+8
	ldr	r0, .L8+12
	ldr	r4, [r2]
	str	r3, [sp, #4]
	bl	_
	ldr	r3, [sp, #4]
	mov	r2, r0
	mov	r1, r3
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	svn_error_create
.L9:
	.align	2
.L8:
	.word	.LC1
	.word	SVN_NO_ERROR
	.word	SVN_ERR_BAD_CHANGELIST_NAME
	.word	.LC0
	.size	shelf_name_encode, .-shelf_name_encode
	.comm	SVN_NO_ERROR,4,4
	.comm	SVN_ERR_BAD_CHANGELIST_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
