	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function random_read_entropy
_random_read_entropy:                   ## @random_read_entropy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_random_entropy_file@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	testl	%edi, %edi
	je	LBB0_5
## %bb.1:
	leaq	-32(%rbp), %rsi
	callq	_os_readfile
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	movq	_RANDOM_ENTROPY_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	leaq	1(%rsi), %rax
	cmpq	%rax, -32(%rbp)
	jne	LBB0_3
## %bb.4:
	movsbq	(%rbx), %rax
	movq	_own_pool_ready@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	incq	%rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_random_add_randomness
	movq	%rbx, %rdi
	callq	_os_free
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	movq	(%r15), %rcx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_5
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_os_free
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_random_entropy_file,4,2        ## @random_entropy_file
	.comm	_RANDOM_ENTROPY_SIZE,4,2        ## @RANDOM_ENTROPY_SIZE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"random: Invalid entropy file %s"

	.comm	_own_pool_ready,8,3             ## @own_pool_ready
L_.str.1:                               ## @.str.1
	.asciz	"random: Added entropy from %s (own_pool_ready=%u)"

	.no_dead_strip	_random_read_entropy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function random_read_entropy
_random_read_entropy:                   ; @random_read_entropy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x20, _random_entropy_file@GOTPAGE
Lloh1:
	ldr	x20, [x20, _random_entropy_file@GOTPAGEOFF]
	ldr	w0, [x20]
	cbz	w0, LBB0_5
; %bb.1:
	add	x1, sp, #8
	bl	_os_readfile
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	x8, [sp, #8]
Lloh2:
	adrp	x9, _RANDOM_ENTROPY_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RANDOM_ENTROPY_SIZE@GOTPAGEOFF]
Lloh4:
	ldrsw	x1, [x9]
	add	x9, x1, #1
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	ldrsb	x8, [x0], #1
Lloh5:
	adrp	x21, _own_pool_ready@GOTPAGE
Lloh6:
	ldr	x21, [x21, _own_pool_ready@GOTPAGEOFF]
	str	x8, [x21]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_random_add_randomness
	mov	x0, x19
	bl	_os_free
Lloh7:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w2, [x20]
	ldr	x8, [x21]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w2, [x20]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_os_free
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_random_entropy_file,4,2        ; @random_entropy_file
	.comm	_RANDOM_ENTROPY_SIZE,4,2        ; @RANDOM_ENTROPY_SIZE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"random: Invalid entropy file %s"

	.comm	_own_pool_ready,8,3             ; @own_pool_ready
l_.str.1:                               ; @.str.1
	.asciz	"random: Added entropy from %s (own_pool_ready=%u)"

	.no_dead_strip	_random_read_entropy
.subsections_via_symbols
