	.file	"extr_n2-drv.c_n2rng_check_selftest_buffer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Selftest passed on unit %lu\n"
.LC1:
	.string	"Selftest failed on unit %lu\n"
	.text
	.p2align 4
	.type	n2rng_check_selftest_buffer, @function
n2rng_check_selftest_buffer:
.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
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, DWORD PTR RNG_v1_SELFTEST_VAL[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rax, QWORD PTR 8[rdi]
	mov	eax, DWORD PTR [rax]
	add	eax, -128
	cmp	eax, 4
	mov	eax, DWORD PTR SELFTEST_LOOPS_MAX[rip]
	cmovnb	ebp, DWORD PTR RNG_v2_SELFTEST_VAL[rip]
	test	eax, eax
	jle	.L7
	xor	r14d, r14d
	xor	ebx, ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR SELFTEST_POLY[rip]
	mov	esi, ebp
	mov	edx, 1
	add	r14d, 1
	call	advance_polynomial@PLT
	cmp	DWORD PTR SELFTEST_LOOPS_MAX[rip], r14d
	mov	ebp, eax
	jle	.L7
.L3:
	mov	esi, ebp
	mov	rdi, r12
	call	n2rng_test_buffer_find@PLT
	add	ebx, eax
	cmp	DWORD PTR SELFTEST_MATCH_GOAL[rip], ebx
	jg	.L14
	cmp	DWORD PTR SELFTEST_LOOPS_MAX[rip], r14d
	mov	rdi, QWORD PTR [r12]
	jle	.L7
	mov	rdx, r13
	xor	r14d, r14d
	lea	rsi, .LC0[rip]
	call	dev_info@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
.L7:
	.cfi_restore_state
	mov	rdi, QWORD PTR [r12]
	mov	r14d, DWORD PTR ENODEV[rip]
	mov	rdx, r13
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	neg	r14d
	mov	rdi, r12
	call	n2rng_dump_test_buffer@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
	.cfi_endproc
.LFE0:
	.size	n2rng_check_selftest_buffer, .-n2rng_check_selftest_buffer
	.comm	SELFTEST_POLY,4,4
	.comm	SELFTEST_MATCH_GOAL,4,4
	.comm	SELFTEST_LOOPS_MAX,4,4
	.comm	RNG_v2_SELFTEST_VAL,4,4
	.comm	RNG_v1_SELFTEST_VAL,4,4
	.comm	ENODEV,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_n2-drv.c_n2rng_check_selftest_buffer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Selftest passed on unit %lu\012\000"
	.align	2
.LC1:
	.ascii	"Selftest failed on unit %lu\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	n2rng_check_selftest_buffer, %function
n2rng_check_selftest_buffer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #4]
	mov	r7, r0
	ldr	r3, [r3]
	mov	fp, r1
	sub	r3, r3, #128
	cmp	r3, #3
	bhi	.L2
	ldr	r3, .L15
	ldr	r4, [r3]
.L5:
	ldr	r8, .L15+4
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L12
	mov	r6, #0
	ldr	r9, .L15+8
	mov	r5, r6
	ldr	r10, .L15+12
	b	.L3
.L14:
	mov	r1, r4
	mov	r2, #1
	ldr	r0, [r10]
	bl	advance_polynomial
	ldr	r3, [r8]
	add	r6, r6, #1
	cmp	r3, r6
	mov	r4, r0
	ble	.L12
.L3:
	mov	r1, r4
	mov	r0, r7
	bl	n2rng_test_buffer_find
	ldr	r3, [r9]
	add	r5, r5, r0
	cmp	r3, r5
	bgt	.L14
	ldr	r3, [r8]
	ldr	r0, [r7]
	cmp	r3, r6
	ble	.L7
	mov	r4, #0
	mov	r2, fp
	ldr	r1, .L15+16
	bl	dev_info
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	ldr	r0, [r7]
.L7:
	ldr	r3, .L15+20
	mov	r2, fp
	ldr	r4, [r3]
	ldr	r1, .L15+24
	bl	dev_err
	rsb	r4, r4, #0
	mov	r0, r7
	bl	n2rng_dump_test_buffer
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L15+28
	ldr	r4, [r3]
	b	.L5
.L16:
	.align	2
.L15:
	.word	RNG_v1_SELFTEST_VAL
	.word	SELFTEST_LOOPS_MAX
	.word	SELFTEST_MATCH_GOAL
	.word	SELFTEST_POLY
	.word	.LC0
	.word	ENODEV
	.word	.LC1
	.word	RNG_v2_SELFTEST_VAL
	.size	n2rng_check_selftest_buffer, .-n2rng_check_selftest_buffer
	.comm	SELFTEST_POLY,4,4
	.comm	SELFTEST_MATCH_GOAL,4,4
	.comm	SELFTEST_LOOPS_MAX,4,4
	.comm	RNG_v2_SELFTEST_VAL,4,4
	.comm	RNG_v1_SELFTEST_VAL,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
