	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_entropy_usebestsource      ## -- Begin function isc_entropy_usebestsource
	.p2align	4, 0x90
_isc_entropy_usebestsource:             ## @isc_entropy_usebestsource
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	_ISC_R_NOENTROPY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_ISC_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_VALID_ENTROPY
	movl	%eax, %edi
	callq	_REQUIRE
	testq	%rbx, %rbx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_REQUIRE
	movq	_ISC_ENTROPY_KEYBOARDYES@GOTPCREL(%rip), %r12
	cmpl	%r15d, (%r12)
	sete	%al
	movq	_ISC_ENTROPY_KEYBOARDNO@GOTPCREL(%rip), %r14
	cmpl	%r15d, (%r14)
	sete	%cl
	orb	%al, %cl
	movq	_ISC_ENTROPY_KEYBOARDMAYBE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_REQUIRE
	testq	%r13, %r13
	je	LBB0_5
## %bb.4:
	cmpl	%r15d, (%r12)
	je	LBB0_5
## %bb.6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_isc_entropy_createfilesource
	movq	%rax, %rbx
	movq	_ISC_ENTROPY_KEYBOARDMAYBE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rcx
	movl	(%r14), %eax
	movl	%r15d, %edx
	cmovel	%eax, %edx
	cmpq	(%rcx), %rbx
	cmovel	%edx, %r15d
	je	LBB0_7
## %bb.8:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_13
	jmp	LBB0_9
LBB0_5:
	movl	(%r14), %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:
	cmpl	%eax, %r15d
	je	LBB0_13
LBB0_10:
	movq	_kbdstart@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_kbdget@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_kbdstop@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%r8d, %r8d
	movq	%r14, %r9
	callq	_isc_entropy_createcallbacksource
	movq	%rax, %r12
	movq	%r14, %r13
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	%rax, %r12
	jne	LBB0_12
## %bb.11:
	xorl	%edi, %edi
	movq	_ISC_ENTROPY_KEYBOARDMAYBE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	sete	%dil
	callq	_ISC_TF
	movq	(%r13), %rcx
	movl	%eax, (%rcx)
	movq	(%r14), %rax
LBB0_12:
	cmpq	%rax, %rbx
	cmovneq	%r12, %rbx
LBB0_13:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	cmpl	%eax, %r15d
	jne	LBB0_10
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_R_NOENTROPY,8,3            ## @ISC_R_NOENTROPY
	.comm	_ISC_TRUE,8,3                   ## @ISC_TRUE
	.comm	_ISC_ENTROPY_KEYBOARDYES,4,2    ## @ISC_ENTROPY_KEYBOARDYES
	.comm	_ISC_ENTROPY_KEYBOARDNO,4,2     ## @ISC_ENTROPY_KEYBOARDNO
	.comm	_ISC_ENTROPY_KEYBOARDMAYBE,4,2  ## @ISC_ENTROPY_KEYBOARDMAYBE
	.comm	_ISC_R_SUCCESS,8,3              ## @ISC_R_SUCCESS
	.comm	_kbdstart,4,2                   ## @kbdstart
	.comm	_kbdget,4,2                     ## @kbdget
	.comm	_kbdstop,4,2                    ## @kbdstop
	.comm	_ISC_FALSE,8,3                  ## @ISC_FALSE
	.comm	_PATH_RANDOMDEV,8,3             ## @PATH_RANDOMDEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_entropy_usebestsource      ; -- Begin function isc_entropy_usebestsource
	.p2align	2
_isc_entropy_usebestsource:             ; @isc_entropy_usebestsource
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _ISC_R_NOENTROPY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISC_R_NOENTROPY@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x8, _ISC_TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISC_TRUE@GOTPAGEOFF]
Lloh5:
	ldr	x25, [x8]
	bl	_VALID_ENTROPY
	bl	_REQUIRE
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_REQUIRE
Lloh6:
	adrp	x27, _ISC_ENTROPY_KEYBOARDYES@GOTPAGE
Lloh7:
	ldr	x27, [x27, _ISC_ENTROPY_KEYBOARDYES@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, w21
Lloh8:
	adrp	x26, _ISC_ENTROPY_KEYBOARDNO@GOTPAGE
Lloh9:
	ldr	x26, [x26, _ISC_ENTROPY_KEYBOARDNO@GOTPAGEOFF]
	ldr	w8, [x26]
	ccmp	w8, w21, #4, ne
Lloh10:
	adrp	x24, _ISC_ENTROPY_KEYBOARDMAYBE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _ISC_ENTROPY_KEYBOARDMAYBE@GOTPAGEOFF]
	ldr	w8, [x24]
	ccmp	w8, w21, #4, ne
	cset	w0, eq
	bl	_REQUIRE
	cbz	x23, LBB0_7
; %bb.4:
	ldr	w8, [x27]
	cmp	w8, w21
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x22
	mov	x1, x23
	bl	_isc_entropy_createfilesource
	mov	x19, x0
Lloh12:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x8]
	ldr	w8, [x24]
	cmp	w8, w21
	ccmp	x0, x9, #0, eq
	ldr	w8, [x26]
	csel	w21, w8, w21, eq
	cmp	x0, x9
	ccmp	x25, #0, #4, ne
	b.ne	LBB0_11
; %bb.6:
	cmp	w21, w8
	b.ne	LBB0_8
	b	LBB0_11
LBB0_7:
	ldr	w8, [x26]
	cmp	w21, w8
	b.eq	LBB0_11
LBB0_8:
Lloh15:
	adrp	x8, _kbdstart@GOTPAGE
Lloh16:
	ldr	x8, [x8, _kbdstart@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _kbdget@GOTPAGE
Lloh19:
	ldr	x8, [x8, _kbdget@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _kbdstop@GOTPAGE
Lloh22:
	ldr	x8, [x8, _kbdstop@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x4, #0
	mov	x5, x20
	bl	_isc_entropy_createcallbacksource
	mov	x22, x0
Lloh24:
	adrp	x23, _ISC_R_SUCCESS@GOTPAGE
Lloh25:
	ldr	x23, [x23, _ISC_R_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
	ldr	w8, [x24]
	cmp	w21, w8
	cset	w0, eq
	bl	_ISC_TF
	ldr	x8, [x20]
	str	w0, [x8]
	ldr	x8, [x23]
LBB0_10:
	cmp	x19, x8
	csel	x19, x19, x22, eq
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_R_NOENTROPY,8,3            ; @ISC_R_NOENTROPY
	.comm	_ISC_TRUE,8,3                   ; @ISC_TRUE
	.comm	_ISC_ENTROPY_KEYBOARDYES,4,2    ; @ISC_ENTROPY_KEYBOARDYES
	.comm	_ISC_ENTROPY_KEYBOARDNO,4,2     ; @ISC_ENTROPY_KEYBOARDNO
	.comm	_ISC_ENTROPY_KEYBOARDMAYBE,4,2  ; @ISC_ENTROPY_KEYBOARDMAYBE
	.comm	_ISC_R_SUCCESS,8,3              ; @ISC_R_SUCCESS
	.comm	_kbdstart,4,2                   ; @kbdstart
	.comm	_kbdget,4,2                     ; @kbdget
	.comm	_kbdstop,4,2                    ; @kbdstop
	.comm	_ISC_FALSE,8,3                  ; @ISC_FALSE
	.comm	_PATH_RANDOMDEV,8,3             ; @PATH_RANDOMDEV
.subsections_via_symbols
