	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aml8726_rng_harvest
_aml8726_rng_harvest:                   ## @aml8726_rng_harvest
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_AML_RNG_0_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CSR_READ_4
	movl	%eax, -24(%rbp)
	movq	_AML_RNG_1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_CSR_READ_4
	movl	%eax, -20(%rbp)
	movq	_RANDOM_PURE_AML8726@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rdi
	movl	$8, %esi
	callq	_random_harvest
	leaq	4(%rbx), %rdi
	movl	(%rbx), %esi
	leaq	_aml8726_rng_harvest(%rip), %rdx
	movq	%rbx, %rcx
	callq	_callout_reset
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AML_RNG_0_REG,4,2              ## @AML_RNG_0_REG
	.comm	_AML_RNG_1_REG,4,2              ## @AML_RNG_1_REG
	.comm	_RANDOM_PURE_AML8726,4,2        ## @RANDOM_PURE_AML8726
	.no_dead_strip	_aml8726_rng_harvest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aml8726_rng_harvest
_aml8726_rng_harvest:                   ; @aml8726_rng_harvest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _AML_RNG_0_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AML_RNG_0_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_CSR_READ_4
	str	w0, [sp]
Lloh6:
	adrp	x8, _AML_RNG_1_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AML_RNG_1_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CSR_READ_4
	str	w0, [sp, #4]
Lloh9:
	adrp	x8, _RANDOM_PURE_AML8726@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RANDOM_PURE_AML8726@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, sp
	mov	w1, #8
	bl	_random_harvest
	mov	x0, x19
	ldr	w1, [x0], #4
Lloh12:
	adrp	x2, _aml8726_rng_harvest@PAGE
Lloh13:
	add	x2, x2, _aml8726_rng_harvest@PAGEOFF
	mov	x3, x19
	bl	_callout_reset
	ldr	x8, [sp, #8]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AML_RNG_0_REG,4,2              ; @AML_RNG_0_REG
	.comm	_AML_RNG_1_REG,4,2              ; @AML_RNG_1_REG
	.comm	_RANDOM_PURE_AML8726,4,2        ; @RANDOM_PURE_AML8726
	.no_dead_strip	_aml8726_rng_harvest
.subsections_via_symbols
