	.file	"extr_entropy.c_entropy_gather_internal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	entropy_gather_internal, @function
entropy_gather_internal:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rdi
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MBEDTLS_ENTROPY_MAX_GATHER[rip]
	mov	rsi, rsp
	mov	rdx, rax
	add	rax, 15
	mov	rcx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rcx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L3
.L27:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L27
.L3:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L28
.L4:
	mov	eax, DWORD PTR [r15]
	mov	r9d, DWORD PTR MBEDTLS_ERR_ENTROPY_NO_SOURCES_DEFINED[rip]
	mov	r14, rsp
	test	eax, eax
	je	.L1
	lea	rax, -64[rbp]
	mov	r13d, 0
	mov	r12d, 0
	mov	QWORD PTR -80[rbp], rax
	jg	.L6
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	add	r13, 1
	cmp	DWORD PTR [r15], r13d
	jle	.L10
.L29:
	mov	edx, DWORD PTR MBEDTLS_ENTROPY_MAX_GATHER[rip]
.L6:
	mov	rax, QWORD PTR 8[r15]
	mov	rbx, r13
	mov	edi, 1
	mov	DWORD PTR -68[rbp], r13d
	sal	rbx, 5
	mov	rsi, QWORD PTR MBEDTLS_ENTROPY_SOURCE_STRONG[rip]
	mov	rcx, QWORD PTR -80[rbp]
	add	rax, rbx
	cmp	QWORD PTR [rax], rsi
	mov	QWORD PTR -64[rbp], 0
	mov	rsi, r14
	cmove	r12d, edi
	mov	edi, DWORD PTR 24[rax]
	call	[QWORD PTR 8[rax]]
	mov	r9d, eax
	test	eax, eax
	jne	.L1
	mov	rcx, QWORD PTR -64[rbp]
	test	rcx, rcx
	je	.L9
	movzx	esi, BYTE PTR -68[rbp]
	mov	rdx, r14
	mov	rdi, r15
	mov	DWORD PTR -72[rbp], eax
	add	r13, 1
	call	entropy_update@PLT
	add	rbx, QWORD PTR 8[r15]
	mov	rax, QWORD PTR -64[rbp]
	mov	r9d, DWORD PTR -72[rbp]
	add	QWORD PTR 16[rbx], rax
	cmp	DWORD PTR [r15], r13d
	jg	.L29
.L10:
	test	r12d, r12d
	je	.L11
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	lea	rsp, -40[rbp]
	mov	eax, r9d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r9d, DWORD PTR MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE[rip]
	jmp	.L1
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	entropy_gather_internal, .-entropy_gather_internal
	.comm	MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE,4,4
	.comm	MBEDTLS_ERR_ENTROPY_NO_SOURCES_DEFINED,4,4
	.comm	MBEDTLS_ENTROPY_SOURCE_STRONG,8,8
	.comm	MBEDTLS_ENTROPY_MAX_GATHER,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_entropy_gather_internal.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	entropy_gather_internal, %function
entropy_gather_internal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	ldr	r2, .L22
	ldr	r3, [r0]
	ldr	r2, [r2]
	cmp	r3, #0
	add	r3, r2, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L22+4
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	beq	.L2
	ble	.L8
	mov	r4, #0
	mov	r6, r0
	mov	r8, sp
	mov	r7, r4
	ldr	r10, .L22+8
	b	.L3
.L6:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L7
.L20:
	ldr	r3, .L22
	ldr	r2, [r3]
.L3:
	mov	r0, #0
	ldr	r1, [r6, #4]
	ldr	ip, [r10]
	add	r3, r1, r4, lsl #4
	ldr	r1, [r1, r4, lsl #4]
	ldr	r5, [r3, #4]
	cmp	r1, ip
	str	r0, [fp, #-44]
	mov	r1, r8
	ldr	r0, [r3, #12]
	sub	r3, fp, #44
	moveq	r7, #1
	blx	r5
	subs	r5, r0, #0
	lsl	r9, r4, #4
	bne	.L1
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L6
	mov	r2, r8
	and	r1, r4, #255
	mov	r0, r6
	bl	entropy_update
	ldr	r3, [r6, #4]
	ldr	r2, [fp, #-44]
	add	r9, r3, r9
	ldr	r3, [r9, #8]
	add	r4, r4, #1
	add	r3, r3, r2
	str	r3, [r9, #8]
	ldr	r3, [r6]
	cmp	r3, r4
	bgt	.L20
.L7:
	cmp	r7, #0
	beq	.L8
.L1:
	ldr	r3, .L22+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r5
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L22+12
	ldr	r5, [r3]
	b	.L1
.L8:
	ldr	r3, .L22+16
	ldr	r5, [r3]
	b	.L1
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	MBEDTLS_ENTROPY_MAX_GATHER
	.word	.LC0
	.word	MBEDTLS_ENTROPY_SOURCE_STRONG
	.word	MBEDTLS_ERR_ENTROPY_NO_SOURCES_DEFINED
	.word	MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE
	.size	entropy_gather_internal, .-entropy_gather_internal
	.comm	MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE,4,4
	.comm	MBEDTLS_ERR_ENTROPY_NO_SOURCES_DEFINED,4,4
	.comm	MBEDTLS_ENTROPY_SOURCE_STRONG,4,4
	.comm	MBEDTLS_ENTROPY_MAX_GATHER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
