	.file	"extr_random.c_get_random_bytes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	get_random_bytes
	.type	get_random_bytes, @function
get_random_bytes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	esi, esi
	je	.L2
	mov	r13, rsp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, rbp
	mov	edx, ebx
	mov	rsi, r13
	call	memcpy@PLT
	movsx	rax, ebx
	add	rbp, rax
	sub	r12d, ebx
	je	.L2
.L4:
	mov	edi, r12d
	mov	esi, 8
	call	min@PLT
	mov	rdi, r13
	mov	ebx, eax
	call	arch_get_random_long@PLT
	test	eax, eax
	jne	.L15
.L2:
	xor	r8d, r8d
	xor	ecx, ecx
	mov	edx, r12d
	mov	rsi, rbp
	lea	rdi, nonblocking_pool[rip]
	call	extract_entropy@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_random_bytes, .-get_random_bytes
	.comm	nonblocking_pool,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_random.c_get_random_bytes.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_random_bytes
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_random_bytes, %function
get_random_bytes:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L17
	sub	sp, sp, #16
	subs	r5, r1, #0
	mov	r6, r0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bne	.L4
	b	.L2
.L15:
	mov	r0, r6
	mov	r2, r4
	add	r1, sp, #8
	bl	memcpy
	subs	r5, r5, r4
	add	r6, r6, r4
	beq	.L2
.L4:
	mov	r1, #4
	mov	r0, r5
	bl	min
	mov	r4, r0
	add	r0, sp, #8
	bl	arch_get_random_long
	cmp	r0, #0
	bne	.L15
.L2:
	mov	r3, #0
	mov	r2, r5
	str	r3, [sp]
	mov	r1, r6
	ldr	r0, .L17+4
	bl	extract_entropy
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	nonblocking_pool
	.size	get_random_bytes, .-get_random_bytes
	.comm	nonblocking_pool,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
