	.file	"extr_rng.c_crypto_get_default_rng.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"stdrng"
	.text
	.p2align 4
	.globl	crypto_get_default_rng
	.type	crypto_get_default_rng, @function
crypto_get_default_rng:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdi, crypto_default_rng_lock[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	mutex_lock@PLT
	cmp	QWORD PTR crypto_default_rng[rip], 0
	je	.L7
.L2:
	add	DWORD PTR crypto_default_rng_refcnt[rip], 1
	xor	r12d, r12d
.L3:
	lea	rdi, crypto_default_rng_lock[rip]
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	edx, edx
	xor	esi, esi
	lea	rdi, .LC0[rip]
	call	crypto_alloc_rng@PLT
	mov	rbp, rax
	mov	rdi, rax
	call	PTR_ERR@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L3
	mov	rdi, rbp
	call	crypto_rng_seedsize@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	edx, eax
	call	crypto_rng_reset@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	QWORD PTR crypto_default_rng[rip], rbp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, rbp
	call	crypto_free_rng@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	crypto_get_default_rng, .-crypto_get_default_rng
	.comm	crypto_default_rng_refcnt,4,4
	.comm	crypto_default_rng_lock,4,4
	.comm	crypto_default_rng,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_rng.c_crypto_get_default_rng.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"stdrng\000"
	.text
	.align	2
	.global	crypto_get_default_rng
	.syntax unified
	.arm
	.fpu softvfp
	.type	crypto_get_default_rng, %function
crypto_get_default_rng:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L8
	ldr	r0, .L8+4
	bl	mutex_lock
	ldr	r2, [r5]
	cmp	r2, #0
	beq	.L7
.L2:
	mov	r4, #0
	ldr	r2, .L8+8
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
.L3:
	ldr	r0, .L8+4
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r1, r2
	ldr	r0, .L8+12
	bl	crypto_alloc_rng
	mov	r6, r0
	bl	PTR_ERR
	mov	r4, r0
	mov	r0, r6
	bl	IS_ERR
	subs	r7, r0, #0
	bne	.L3
	mov	r0, r6
	bl	crypto_rng_seedsize
	mov	r1, r7
	mov	r2, r0
	mov	r0, r6
	bl	crypto_rng_reset
	subs	r4, r0, #0
	streq	r6, [r5]
	beq	.L2
	mov	r0, r6
	bl	crypto_free_rng
	b	.L3
.L9:
	.align	2
.L8:
	.word	crypto_default_rng
	.word	crypto_default_rng_lock
	.word	crypto_default_rng_refcnt
	.word	.LC0
	.size	crypto_get_default_rng, .-crypto_get_default_rng
	.comm	crypto_default_rng_refcnt,4,4
	.comm	crypto_default_rng_lock,4,4
	.comm	crypto_default_rng,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
