	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function RAND_poll
LCPI0_0:
	.quad	0x3fc0000000000000              ## double 0.125
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_RAND_poll
	.p2align	4, 0x90
_RAND_poll:                             ## @RAND_poll
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_RAND_get_rand_method
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_RAND_OpenSSL
	cmpq	%rax, %rbx
	je	LBB0_1
## %bb.3:
	movq	_RAND_DRBG_STRENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	7(%rdi), %eax
	leal	14(%rdi), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	movq	_RAND_POOL_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1, %esi
	callq	_rand_pool_new
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_rand_pool_acquire_entropy
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_rand_pool_buffer
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_rand_pool_length
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_rand_pool_entropy
	mulsd	LCPI0_0(%rip), %xmm0
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	*%rbx
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
LBB0_7:
	movq	%r15, %rdi
	callq	_rand_pool_free
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_RAND_DRBG_get0_master
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_rand_drbg_lock
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_rand_drbg_restart
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_rand_drbg_unlock
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RAND_DRBG_STRENGTH,4,2         ## @RAND_DRBG_STRENGTH
	.comm	_RAND_POOL_MAX_LENGTH,4,2       ## @RAND_POOL_MAX_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RAND_poll                      ; -- Begin function RAND_poll
	.p2align	2
_RAND_poll:                             ; @RAND_poll
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_RAND_get_rand_method
	mov	x20, x0
	bl	_RAND_OpenSSL
	cmp	x20, x0
	b.eq	LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _RAND_DRBG_STRENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RAND_DRBG_STRENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	w8, w0, #7
	add	w9, w0, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #3
Lloh3:
	adrp	x8, _RAND_POOL_MAX_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RAND_POOL_MAX_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	w1, #1
	bl	_rand_pool_new
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
	bl	_rand_pool_acquire_entropy
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x22, [x20]
	cbz	x22, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_rand_pool_buffer
	mov	x20, x0
	mov	x0, x19
	bl	_rand_pool_length
	mov	x21, x0
	mov	x0, x19
	bl	_rand_pool_entropy
	fmov	d1, #0.12500000
	fmul	d0, d0, d1
	mov	x0, x20
	mov	x1, x21
	blr	x22
	cmp	x0, #0
	cset	w20, ne
	b	LBB0_9
LBB0_5:
	bl	_RAND_DRBG_get0_master
	cbz	x0, LBB0_7
; %bb.6:
	mov	x19, x0
	bl	_rand_drbg_lock
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_rand_drbg_restart
	mov	x20, x0
	mov	x0, x19
	bl	_rand_drbg_unlock
	b	LBB0_10
LBB0_7:
	mov	w20, #0
	b	LBB0_10
LBB0_8:
	mov	w20, #0
LBB0_9:
	mov	x0, x19
	bl	_rand_pool_free
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RAND_DRBG_STRENGTH,4,2         ; @RAND_DRBG_STRENGTH
	.comm	_RAND_POOL_MAX_LENGTH,4,2       ; @RAND_POOL_MAX_LENGTH
.subsections_via_symbols
