	.file	"extr_key-gen.c_svn_fs_base__next_key.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	svn_fs_base__next_key
	.type	svn_fs_base__next_key, @function
svn_fs_base__next_key:
.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, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	xor	edi, edi
	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	r14d, DWORD PTR [rsi]
	mov	rbx, QWORD PTR TRUE[rip]
	test	r14d, r14d
	je	.L2
	mov	edi, 1
	cmp	r14d, 1
	je	.L2
	xor	edi, edi
	cmp	BYTE PTR [r12], 48
	setne	dil
.L2:
	call	SVN_ERR_ASSERT_NO_RETURN@PLT
	lea	ecx, -1[r14]
	movsx	rax, ecx
	movzx	edx, BYTE PTR [r12+rax]
	lea	esi, -97[rdx]
	cmp	sil, 25
	jbe	.L3
	lea	esi, -48[rdx]
	cmp	sil, 9
	ja	.L10
.L3:
	movsx	rdi, r14d
	mov	ecx, ecx
	mov	esi, 97
	sub	rdi, 1
	sub	rdi, rcx
	.p2align 4,,10
	.p2align 3
.L12:
	test	rbx, rbx
	je	.L5
	cmp	dl, 122
	je	.L32
	lea	ecx, 1[rdx]
	cmp	dl, 57
	mov	rbx, QWORD PTR FALSE[rip]
	cmove	ecx, esi
	mov	BYTE PTR 0[rbp+rax], cl
.L7:
	cmp	rdi, rax
	je	.L9
.L33:
	sub	rax, 1
	movzx	edx, BYTE PTR [r12+rax]
	lea	ecx, -48[rdx]
	cmp	cl, 9
	jbe	.L12
	lea	ecx, -97[rdx]
	cmp	cl, 25
	jbe	.L12
.L10:
	mov	DWORD PTR 0[r13], 0
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L5:
	.cfi_restore_state
	mov	BYTE PTR 0[rbp+rax], dl
	cmp	rdi, rax
	jne	.L33
.L9:
	xor	eax, eax
	test	rbx, rbx
	setne	al
	xor	edi, edi
	add	eax, r14d
	mov	DWORD PTR 0[r13], eax
	cmp	eax, DWORD PTR MAX_KEY_SIZE[rip]
	setl	dil
	call	assert@PLT
	movsx	rax, DWORD PTR 0[r13]
	mov	BYTE PTR 0[rbp+rax], 0
	test	rbx, rbx
	je	.L1
	lea	rdi, 1[rbp]
	mov	edx, r14d
	mov	rsi, rbp
	call	memmove@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	BYTE PTR 0[rbp], 49
	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
.L32:
	.cfi_restore_state
	mov	BYTE PTR 0[rbp+rax], 48
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	svn_fs_base__next_key, .-svn_fs_base__next_key
	.comm	TRUE,8,8
	.comm	MAX_KEY_SIZE,4,4
	.comm	FALSE,8,8
	.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_key-gen.c_svn_fs_base__next_key.c"
	.text
	.align	2
	.global	svn_fs_base__next_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	svn_fs_base__next_key, %function
svn_fs_base__next_key:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r10, [r1]
	ldr	r3, .L21
	cmp	r10, #0
	mov	r9, r1
	mov	r6, r0
	mov	r7, r2
	ldr	r8, [r3]
	beq	.L13
	cmp	r10, #1
	beq	.L13
	ldrb	r0, [r0]	@ zero_extendqisi2
	subs	r0, r0, #48
	movne	r0, #1
	b	.L2
.L13:
	mov	r0, r10
.L2:
	bl	SVN_ERR_ASSERT_NO_RETURN
	sub	ip, r10, #1
	ldrb	r3, [r6, ip]	@ zero_extendqisi2
	sub	r1, r3, #97
	sub	r2, r3, #48
	cmp	r1, #25
	cmphi	r2, #9
	bhi	.L10
	add	lr, r6, ip
	mov	r0, #97
	mov	r1, #48
	ldr	r2, .L21+4
	add	ip, r7, ip
	b	.L11
.L20:
	ldrb	r3, [lr, #-1]!	@ zero_extendqisi2
	sub	ip, ip, #1
	sub	r5, r3, #48
	sub	r4, r3, #97
	cmp	r5, #9
	cmphi	r4, #25
	bhi	.L10
.L11:
	cmp	r8, #0
	strbeq	r3, [ip]
	beq	.L7
	cmp	r3, #122
	add	r4, r3, #1
	strbeq	r1, [ip]
	beq	.L7
	cmp	r3, #57
	ldr	r8, [r2]
	strbeq	r0, [ip]
	strbne	r4, [ip]
.L7:
	cmp	lr, r6
	bne	.L20
	cmp	r8, #0
	moveq	r3, r10
	addne	r3, r10, #1
	ldr	r2, .L21+8
	str	r3, [r9]
	ldr	r0, [r2]
	cmp	r3, r0
	movge	r0, #0
	movlt	r0, #1
	bl	assert
	mov	r2, #0
	ldr	r3, [r9]
	cmp	r8, r2
	strb	r2, [r7, r3]
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r2, r10
	mov	r1, r7
	add	r0, r7, #1
	bl	memmove
	mov	r3, #49
	strb	r3, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r3, #0
	str	r3, [r9]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	.align	2
.L21:
	.word	TRUE
	.word	FALSE
	.word	MAX_KEY_SIZE
	.size	svn_fs_base__next_key, .-svn_fs_base__next_key
	.comm	TRUE,4,4
	.comm	MAX_KEY_SIZE,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
