	.file	"extr_rng.c_crypto_rng_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	crypto_rng_reset
	.type	crypto_rng_reset, @function
crypto_rng_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r14, QWORD PTR [rdi]
	mov	rdi, r14
	call	crypto_stats_get@PLT
	test	rbp, rbp
	jne	.L6
	test	r15d, r15d
	je	.L6
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, r15d
	call	kmalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rbp, rax
	neg	r12d
	test	rax, rax
	je	.L1
	mov	esi, r15d
	mov	rdi, rax
	mov	rbx, rbp
	call	get_random_bytes_wait@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	xor	ebx, ebx
.L2:
	mov	rdi, r13
	call	crypto_rng_alg@PLT
	mov	rsi, rbp
	mov	rdi, r13
	mov	edx, r15d
	call	[QWORD PTR [rax]]
	mov	rdi, r14
	mov	esi, eax
	mov	r12d, eax
	call	crypto_stats_rng_seed@PLT
.L5:
	mov	rdi, rbx
	call	kzfree@PLT
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	.cfi_endproc
.LFE0:
	.size	crypto_rng_reset, .-crypto_rng_reset
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_rng.c_crypto_rng_reset.c"
	.text
	.align	2
	.global	crypto_rng_reset
	.syntax unified
	.arm
	.fpu softvfp
	.type	crypto_rng_reset, %function
crypto_rng_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r2
	mov	r4, r1
	ldr	r8, [r0]
	mov	r9, r0
	mov	r0, r8
	bl	crypto_stats_get
	subs	r3, r7, #0
	movne	r3, #1
	cmp	r4, #0
	movne	r3, #0
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L11
	mov	r0, r7
	ldr	r1, [r3]
	bl	kmalloc
	subs	r4, r0, #0
	beq	.L10
	mov	r1, r7
	bl	get_random_bytes_wait
	subs	r6, r0, #0
	mov	r5, r4
	beq	.L2
	b	.L5
.L6:
	mov	r5, r3
.L2:
	mov	r0, r9
	bl	crypto_rng_alg
	mov	r1, r4
	ldr	r3, [r0]
	mov	r2, r7
	mov	r0, r9
	blx	r3
	mov	r6, r0
	mov	r0, r8
	mov	r1, r6
	bl	crypto_stats_rng_seed
.L5:
	mov	r0, r5
	bl	kzfree
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r3, .L11+4
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	crypto_rng_reset, .-crypto_rng_reset
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
