	.file	"extr_krb5kdf.c_n_fold.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	n_fold, @function
n_fold:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	r15, rcx
	je	.L20
	mov	r12, r15
	mov	rbx, rcx
	mov	edx, ecx
	test	ecx, ecx
	je	.L10
	mov	eax, r15d
	.p2align 4,,10
	.p2align 3
.L4:
	mov	ecx, edx
	xor	edx, edx
	div	ecx
	mov	eax, ecx
	test	edx, edx
	jne	.L4
	mov	r14d, ecx
.L3:
	mov	edx, r12d
	xor	esi, esi
	mov	rdi, rbp
	call	memset@PLT
	mov	rax, r15
	xor	edx, edx
	xor	r11d, r11d
	imul	rax, rbx
	mov	r10d, 8
	div	r14
	lea	r8d, -1[rax]
	movsx	r9, r8d
	test	r8d, r8d
	js	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, r9
	xor	edx, edx
	mov	r14d, r8d
	mov	ecx, r10d
	div	rbx
	sub	r9, 1
	lea	edx, [rax+rax*2]
	lea	r15d, [rax+rdx*4]
	xor	edx, edx
	mov	eax, r15d
	and	r15d, 7
	shr	eax, 3
	sub	ecx, r15d
	sub	r14d, eax
	mov	eax, r8d
	sub	r8d, 1
	div	r12d
	lea	eax, -1[r14]
	lea	rdi, 0[rbp+rdx]
	xor	edx, edx
	div	rbx
	mov	eax, r14d
	movzx	esi, BYTE PTR 0[r13+rdx]
	xor	edx, edx
	div	rbx
	sal	esi, cl
	mov	ecx, r15d
	movzx	eax, BYTE PTR 0[r13+rdx]
	sar	eax, cl
	or	esi, eax
	movzx	ecx, sil
	movzx	esi, BYTE PTR [rdi]
	add	ecx, esi
	add	ecx, r11d
	mov	BYTE PTR [rdi], cl
	shr	ecx, 8
	mov	r11d, ecx
	cmp	r8d, -1
	jne	.L7
	mov	eax, r12d
	lea	edi, -1[r12]
	neg	eax
	test	eax, eax
	jns	.L1
	and	r11d, 1
	je	.L1
	movsx	rdi, edi
	lea	ecx, -2[r12]
	add	rbp, rdi
	sub	ecx, ebp
	.p2align 4,,10
	.p2align 3
.L9:
	movzx	edx, BYTE PTR 0[rbp]
	mov	eax, edx
	add	edx, 1
	add	eax, 1
	mov	BYTE PTR 0[rbp], al
	lea	eax, [rcx+rbp]
	sub	rbp, 1
	not	eax
	shr	eax, 31
	test	dh, al
	jne	.L9
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdx, r15
	mov	rsi, r13
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	memcpy@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r14, r15
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	n_fold, .-n_fold
	.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_krb5kdf.c_n_fold.c"
	.text
	.global	__aeabi_uidivmod
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	n_fold, %function
n_fold:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmp	r3, r1
	mov	r8, r3
	mov	r10, r2
	sub	sp, sp, #12
	beq	.L2
	cmp	r3, #0
	mov	r6, r1
	movne	r9, r0
	movne	r7, r3
	movne	r4, r1
	beq	.L19
.L3:
	mov	r0, r4
	mov	r1, r7
	bl	__aeabi_uidivmod
	mov	r4, r7
	subs	r7, r1, #0
	bne	.L3
	mov	r2, r6
	mov	r0, r9
	bl	memset
	mov	r1, r4
	mul	r0, r6, r8
	bl	__aeabi_uidiv
	subs	r5, r0, #1
	bmi	.L1
.L6:
	mov	r1, r8
	mov	r0, r5
	bl	__aeabi_uidiv
	add	r4, r0, r0, lsl #1
	add	r4, r0, r4, lsl #2
	mov	r1, r6
	mov	r0, r5
	bl	__aeabi_uidivmod
	mov	r3, r1
	sub	fp, r5, r4, lsr #3
	sub	r0, fp, #1
	mov	r1, r8
	str	r3, [sp, #4]
	bl	__aeabi_uidivmod
	and	r4, r4, #7
	ldrb	ip, [r10, r1]	@ zero_extendqisi2
	rsb	r2, r4, #8
	mov	r0, fp
	mov	r1, r8
	lsl	fp, ip, r2
	bl	__aeabi_uidivmod
	ldr	r3, [sp, #4]
	ldrb	ip, [r10, r1]	@ zero_extendqisi2
	sub	r5, r5, #1
	orr	ip, fp, ip, asr r4
	ldrb	r4, [r9, r3]	@ zero_extendqisi2
	and	ip, ip, #255
	add	ip, ip, r4
	add	ip, ip, r7
	cmn	r5, #1
	strb	ip, [r9, r3]
	lsr	r7, ip, #8
	bne	.L6
	rsb	r3, r6, #0
	ands	r3, r7, r3, lsr #31
	beq	.L1
	add	r6, r9, r6
.L7:
	mov	r3, r6
	ldrb	r2, [r6, #-1]!	@ zero_extendqisi2
	sub	r3, r3, #2
	add	r2, r2, #1
	sub	r3, r3, r9
	lsr	r1, r2, #8
	cmp	r3, #0
	movlt	r3, #0
	andge	r3, r1, #1
	cmp	r3, #0
	strb	r2, [r6]
	bne	.L7
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r2, r3
	mov	r1, r10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	memcpy
.L19:
	mov	r2, r1
	mov	r1, r3
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	memset
	.size	n_fold, .-n_fold
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
