	.file	"extr_libzfs_crypto.c_pkcs11_get_urandom.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/dev/urandom"
	.text
	.p2align 4
	.type	pkcs11_get_urandom, @function
pkcs11_get_urandom:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	lea	rdi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR O_RDONLY[rip]
	call	open@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	r14d, eax
	test	rbp, rbp
	je	.L6
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, rbp
	lea	rsi, 0[r13+r12*4]
	mov	edi, r14d
	sub	rdx, r12
	call	read@PLT
	add	r12, rax
	cmp	rbp, r12
	ja	.L4
.L3:
	mov	edi, r14d
	call	close@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	r12d, r12d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	pkcs11_get_urandom, .-pkcs11_get_urandom
	.comm	O_RDONLY,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_libzfs_crypto.c_pkcs11_get_urandom.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/dev/urandom\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pkcs11_get_urandom, %function
pkcs11_get_urandom:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L10
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r5, r1
	ldr	r0, .L10+4
	ldr	r1, [r3]
	bl	open
	subs	r6, r0, #0
	movlt	r4, r6
	blt	.L1
	cmp	r5, #0
	beq	.L6
	mov	r4, #0
.L4:
	sub	r2, r5, r4
	add	r1, r7, r4, lsl #2
	mov	r0, r6
	bl	read
	add	r4, r4, r0
	cmp	r5, r4
	bhi	.L4
.L3:
	mov	r0, r6
	bl	close
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r4, r5
	b	.L3
.L11:
	.align	2
.L10:
	.word	O_RDONLY
	.word	.LC0
	.size	pkcs11_get_urandom, .-pkcs11_get_urandom
	.comm	O_RDONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
