	.file	"extr_entropy.c_isc_entropy_createsamplesource.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	isc_entropy_createsamplesource
	.type	isc_entropy_createsamplesource, @function
isc_entropy_createsamplesource:
.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
	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
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	VALID_ENTROPY@PLT
	mov	edi, eax
	call	REQUIRE@PLT
	xor	edi, edi
	test	rbx, rbx
	je	.L2
	xor	edi, edi
	cmp	QWORD PTR [rbx], 0
	sete	dil
.L2:
	call	REQUIRE@PLT
	mov	rdi, rbp
	call	LOCK@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, 40
	call	isc_mem_get@PLT
	mov	r13, QWORD PTR ISC_R_NOMEMORY[rip]
	mov	r12, rax
	test	rax, rax
	je	.L4
	lea	rsi, 32[rax]
	mov	rdi, rbp
	call	samplesource_allocate@PLT
	cmp	QWORD PTR ISC_R_SUCCESS[rip], rax
	mov	r13, rax
	je	.L12
	mov	edi, DWORD PTR 4[rbp]
	mov	edx, 40
	mov	rsi, r12
	call	isc_mem_put@PLT
.L4:
	mov	rdi, rbp
	call	UNLOCK@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	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
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	QWORD PTR 16[r12], rbp
	mov	edi, DWORD PTR [r12]
	mov	edx, 4
	xor	esi, esi
	mov	QWORD PTR 8[r12], 0
	mov	eax, DWORD PTR SOURCE_MAGIC[rip]
	mov	DWORD PTR 28[r12], eax
	mov	eax, DWORD PTR ENTROPY_SOURCETYPE_SAMPLE[rip]
	mov	DWORD PTR 24[r12], eax
	call	memset@PLT
	mov	esi, DWORD PTR link[rip]
	mov	rdi, r12
	call	ISC_LINK_INIT@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	edx, DWORD PTR link[rip]
	mov	rsi, r12
	call	ISC_LIST_APPEND@PLT
	add	DWORD PTR 8[rbp], 1
	mov	rdi, rbp
	mov	QWORD PTR [rbx], r12
	call	UNLOCK@PLT
	mov	r13, QWORD PTR ISC_R_SUCCESS[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	rax, r13
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	isc_entropy_createsamplesource, .-isc_entropy_createsamplesource
	.comm	link,4,4
	.comm	SOURCE_MAGIC,4,4
	.comm	ISC_R_SUCCESS,8,8
	.comm	ISC_R_NOMEMORY,8,8
	.comm	ENTROPY_SOURCETYPE_SAMPLE,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_entropy.c_isc_entropy_createsamplesource.c"
	.text
	.align	2
	.global	isc_entropy_createsamplesource
	.syntax unified
	.arm
	.fpu softvfp
	.type	isc_entropy_createsamplesource, %function
isc_entropy_createsamplesource:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	mov	r4, r0
	bl	VALID_ENTROPY
	bl	REQUIRE
	cmp	r7, #0
	ldrne	r0, [r7]
	moveq	r0, r7
	clzne	r0, r0
	lsrne	r0, r0, #5
	bl	REQUIRE
	mov	r0, r4
	bl	LOCK
	mov	r1, #24
	ldr	r0, [r4, #4]
	bl	isc_mem_get
	subs	r5, r0, #0
	beq	.L10
	mov	r0, r4
	add	r1, r5, #20
	bl	samplesource_allocate
	ldr	r8, .L12
	mov	r6, r0
	ldr	r3, [r8]
	cmp	r3, r0
	beq	.L11
	mov	r1, r5
	mov	r2, #24
	ldr	r0, [r4, #4]
	bl	isc_mem_put
.L4:
	mov	r0, r4
	bl	UNLOCK
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r1, #0
	ldr	r2, .L12+4
	ldr	r3, .L12+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r6, .L12+12
	str	r3, [r5, #12]
	str	r2, [r5, #16]
	str	r1, [r5, #4]
	mov	r2, #4
	ldr	r0, [r5]
	str	r4, [r5, #8]
	bl	memset
	ldr	r1, [r6]
	mov	r0, r5
	bl	ISC_LINK_INIT
	ldr	r2, [r6]
	mov	r1, r5
	ldr	r0, [r4, #12]
	bl	ISC_LIST_APPEND
	ldr	r3, [r4, #8]
	mov	r0, r4
	add	r3, r3, #1
	str	r3, [r4, #8]
	str	r5, [r7]
	bl	UNLOCK
	ldr	r6, [r8]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, .L12+16
	ldr	r6, [r3]
	b	.L4
.L13:
	.align	2
.L12:
	.word	ISC_R_SUCCESS
	.word	SOURCE_MAGIC
	.word	ENTROPY_SOURCETYPE_SAMPLE
	.word	link
	.word	ISC_R_NOMEMORY
	.size	isc_entropy_createsamplesource, .-isc_entropy_createsamplesource
	.comm	link,4,4
	.comm	SOURCE_MAGIC,4,4
	.comm	ISC_R_SUCCESS,4,4
	.comm	ISC_R_NOMEMORY,4,4
	.comm	ENTROPY_SOURCETYPE_SAMPLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
