	.file	"extr_arc4random.c__rs_stir.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_rs_stir, @function
_rs_stir:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	sub	rsp, 16
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	mov	r12d, DWORD PTR IVSZ[rip]
	add	r12d, DWORD PTR KEYSZ[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movsx	rax, r12d
	mov	rcx, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L21:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L21
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L22
.L4:
	sal	r12d, 2
	mov	r13, rsp
	mov	esi, r12d
	mov	rdi, r13
	call	getentropy@PLT
	cmp	eax, -1
	je	.L23
.L6:
	cmp	QWORD PTR rs[rip], 0
	mov	esi, r12d
	mov	rdi, r13
	je	.L24
.L10:
	call	_rs_rekey@PLT
.L11:
	mov	esi, r12d
	mov	rdi, r13
	call	explicit_bzero@PLT
	mov	rax, QWORD PTR rs[rip]
	xor	esi, esi
	mov	edx, 4
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR rsx[rip]
	mov	edi, DWORD PTR [rax]
	call	memset@PLT
	mov	rax, QWORD PTR rs[rip]
	mov	DWORD PTR [rax], 1600000
	mov	rax, QWORD PTR -24[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	lea	rsp, -16[rbp]
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	rax, QWORD PTR ENOSYS[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L7
.L8:
	mov	edi, 9
	call	exit@PLT
	cmp	QWORD PTR rs[rip], 0
	mov	esi, r12d
	mov	rdi, r13
	jne	.L10
.L24:
	call	_rs_init@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L22:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, r12d
	mov	rdi, r13
	call	fallback_getentropy_urandom@PLT
	cmp	eax, -1
	jne	.L6
	jmp	.L8
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_rs_stir, .-_rs_stir
	.comm	rsx,8,8
	.comm	rs,8,8
	.comm	errno,8,8
	.comm	SIGKILL,4,4
	.comm	KEYSZ,4,4
	.comm	IVSZ,4,4
	.comm	ENOSYS,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_arc4random.c__rs_stir.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rs_stir, %function
_rs_stir:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #12
	ldr	r2, .L18
	ldr	r3, .L18+4
	ldr	r4, [r2]
	ldr	r1, [r3]
	ldr	r3, .L18+8
	add	r4, r4, r1
	lsl	r4, r4, #2
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	add	r3, r4, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r5, sp
	mov	r1, r4
	mov	r0, r5
	bl	getentropy
	cmn	r0, #1
	beq	.L15
.L3:
	ldr	r6, .L18+12
	mov	r1, r4
	ldr	r3, [r6]
	mov	r0, r5
	cmp	r3, #0
	beq	.L16
	bl	_rs_rekey
.L8:
	mov	r1, r4
	mov	r0, r5
	bl	explicit_bzero
	mov	r1, #0
	ldr	r3, .L18+16
	ldr	r2, [r6]
	ldr	r3, [r3]
	str	r1, [r2, #4]
	ldr	r0, [r3]
	mov	r2, #4
	bl	memset
	ldr	r3, [r6]
	ldr	r2, .L18+20
	str	r2, [r3]
	ldr	r3, .L18+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L15:
	ldr	r2, .L18+24
	ldr	r3, .L18+28
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L4
.L5:
	mov	r0, #9
	bl	exit
	b	.L3
.L16:
	bl	_rs_init
	b	.L8
.L4:
	mov	r1, r4
	mov	r0, r5
	bl	fallback_getentropy_urandom
	cmn	r0, #1
	bne	.L3
	b	.L5
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	KEYSZ
	.word	IVSZ
	.word	.LC0
	.word	rs
	.word	rsx
	.word	1600000
	.word	errno
	.word	ENOSYS
	.size	_rs_stir, .-_rs_stir
	.comm	rsx,4,4
	.comm	rs,4,4
	.comm	errno,4,4
	.comm	SIGKILL,4,4
	.comm	KEYSZ,4,4
	.comm	IVSZ,4,4
	.comm	ENOSYS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
