	.file	"extr_random-data.c_random_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Random number generator initialization failed.\n"
	.text
	.p2align 4
	.globl	random_init
	.type	random_init, @function
random_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	eax, 268435456
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	esi, esi
	cmovle	ebx, eax
	mov	edi, ebx
	call	zmalloc@PLT
	mov	ecx, r13d
	mov	rdx, r12
	mov	esi, ebp
	lea	rdi, B[rip]
	mov	DWORD PTR buffer[rip], eax
	mov	DWORD PTR qsize[rip], ebx
	mov	QWORD PTR qleft[rip], 0
	mov	QWORD PTR qright[rip], 0
	mov	QWORD PTR qtotal[rip], 0
	call	bbs_init@PLT
	test	rax, rax
	js	.L8
.L3:
	mov	ebx, 64
	lea	rbp, B[rip]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbp
	call	bbs_next_random_byte@PLT
	sub	ebx, 1
	jne	.L4
	add	rsp, 8
	.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
.L8:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	kprintf@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	random_init, .-random_init
	.comm	qtotal,8,8
	.comm	qsize,4,4
	.comm	qright,8,8
	.comm	qleft,8,8
	.comm	buffer,4,4
	.comm	B,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-data.c_random_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Random number generator initialization failed.\012\000"
	.text
	.align	2
	.global	random_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	random_init, %function
random_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r1, #0
	movle	r4, #268435456
	mov	r5, r0
	mov	r0, r4
	mov	r6, r2
	mov	r7, r3
	bl	zmalloc
	mov	ip, #0
	ldr	lr, .L10
	mov	r1, r5
	str	r4, [lr]
	ldr	lr, .L10+4
	ldr	r5, .L10+8
	str	r0, [lr]
	ldr	r4, .L10+12
	ldr	lr, .L10+16
	mov	r3, r7
	mov	r2, r6
	ldr	r0, .L10+20
	str	ip, [r5]
	str	ip, [r4]
	str	ip, [lr]
	bl	bbs_init
	cmp	r0, #0
	blt	.L9
.L3:
	mov	r4, #64
	ldr	r5, .L10+20
.L4:
	mov	r0, r5
	bl	bbs_next_random_byte
	subs	r4, r4, #1
	bne	.L4
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r0, .L10+24
	bl	kprintf
	mov	r0, #1
	bl	exit
	b	.L3
.L11:
	.align	2
.L10:
	.word	qsize
	.word	buffer
	.word	qleft
	.word	qright
	.word	qtotal
	.word	B
	.word	.LC0
	.size	random_init, .-random_init
	.comm	qtotal,4,4
	.comm	qsize,4,4
	.comm	qright,4,4
	.comm	qleft,4,4
	.comm	buffer,4,4
	.comm	B,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
