	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rand_drbg_get_entropy          ## -- Begin function rand_drbg_get_entropy
	.p2align	4, 0x90
_rand_drbg_get_entropy:                 ## @rand_drbg_get_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdi, -48(%rbp)
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rsi
	cmpq	(%rax), %rsi
	jle	LBB0_3
## %bb.2:
	movq	_RAND_F_RAND_DRBG_GET_ENTROPY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RAND_R_PARENT_STRENGTH_TOO_WEAK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RANDerr
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_3:
	movq	8(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_8
## %bb.4:
	movl	%edx, (%r12)
	testq	%rax, %rax
	je	LBB0_10
LBB0_5:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_rand_pool_bytes_needed
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_rand_pool_add_begin
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movq	%rax, %r14
	movq	16(%rbx), %rdi
	callq	_rand_drbg_lock
	movq	16(%rbx), %rdi
	leaq	-48(%rbp), %r8
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	movl	$8, %r9d
	callq	_RAND_DRBG_generate
	testq	%rax, %rax
	cmoveq	%rax, %r13
	movq	-48(%rbp), %rax
	movq	16(%rax), %rdi
	addq	$8, %rdi
	callq	_tsan_load
	movq	-48(%rbp), %rcx
	movl	%eax, 24(%rcx)
	movq	16(%rcx), %rdi
	callq	_rand_drbg_unlock
	leal	(,%r13,8), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_rand_pool_add_end
	movq	%r12, %rdi
	callq	_rand_pool_entropy_available
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_15
LBB0_8:
	movl	28(%rbx), %esi
	movl	%edx, %edi
	movq	%rcx, %rdx
	movq	%r8, %rcx
	callq	_rand_pool_new
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	%rax, %r12
	movq	16(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_5
LBB0_10:
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.11:
	movq	_RAND_F_RAND_DRBG_GET_ENTROPY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RANDerr
	jmp	LBB0_15
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_14:
	movq	%r12, %rdi
	callq	_rand_pool_acquire_entropy
	testq	%rax, %rax
	je	LBB0_15
LBB0_7:
	movq	%r12, %rdi
	callq	_rand_pool_length
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_rand_pool_detach
	movq	%rax, (%r14)
	jmp	LBB0_16
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movq	-48(%rbp), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	callq	_rand_pool_free
LBB0_18:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RAND_F_RAND_DRBG_GET_ENTROPY,4,2 ## @RAND_F_RAND_DRBG_GET_ENTROPY
	.comm	_RAND_R_PARENT_STRENGTH_TOO_WEAK,4,2 ## @RAND_R_PARENT_STRENGTH_TOO_WEAK
	.comm	_RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED,4,2 ## @RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rand_drbg_get_entropy          ; -- Begin function rand_drbg_get_entropy
	.p2align	2
_rand_drbg_get_entropy:                 ; @rand_drbg_get_entropy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x5
	mov	x20, x1
	mov	x22, x0
	str	x0, [sp, #8]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x22]
	ldr	x10, [x8]
	cmp	x9, x10
	b.le	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _RAND_F_RAND_DRBG_GET_ENTROPY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RAND_F_RAND_DRBG_GET_ENTROPY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _RAND_R_PARENT_STRENGTH_TOO_WEAK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RAND_R_PARENT_STRENGTH_TOO_WEAK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_RANDerr
	mov	x21, #0
	b	LBB0_17
LBB0_3:
	ldr	x19, [x22, #8]
	cbz	x19, LBB0_7
; %bb.4:
	str	w2, [x19]
	cbz	x8, LBB0_9
LBB0_5:
	mov	x0, x19
	mov	w1, #1
	bl	_rand_pool_bytes_needed
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_rand_pool_add_begin
	cbz	x0, LBB0_14
; %bb.6:
	mov	x24, x0
	ldr	x0, [x22, #16]
	bl	_rand_drbg_lock
	ldr	x0, [x22, #16]
	add	x4, sp, #8
	mov	x1, x24
	mov	x2, x23
	mov	x3, x21
	mov	w5, #8
	bl	_RAND_DRBG_generate
	cmp	x0, #0
	csel	x21, xzr, x23, eq
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #16]
	add	x0, x8, #8
	bl	_tsan_load
	ldr	x8, [sp, #8]
	str	w0, [x8, #24]
	ldr	x0, [x8, #16]
	bl	_rand_drbg_unlock
	lsl	w2, w21, #3
	mov	x0, x19
	mov	x1, x21
	bl	_rand_pool_add_end
	mov	x0, x19
	bl	_rand_pool_entropy_available
	cbnz	x0, LBB0_13
	b	LBB0_14
LBB0_7:
	ldr	w1, [x22, #28]
	mov	x0, x2
	mov	x2, x3
	mov	x3, x4
	bl	_rand_pool_new
	cbz	x0, LBB0_11
; %bb.8:
	mov	x19, x0
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_5
LBB0_9:
	cbz	w21, LBB0_12
; %bb.10:
Lloh6:
	adrp	x8, _RAND_F_RAND_DRBG_GET_ENTROPY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RAND_F_RAND_DRBG_GET_ENTROPY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_RANDerr
	b	LBB0_14
LBB0_11:
	mov	x21, #0
	b	LBB0_17
LBB0_12:
	mov	x0, x19
	bl	_rand_pool_acquire_entropy
	cbz	x0, LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_rand_pool_length
	mov	x21, x0
	mov	x0, x19
	bl	_rand_pool_detach
	str	x0, [x20]
	b	LBB0_15
LBB0_14:
	mov	x21, #0
LBB0_15:
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_rand_pool_free
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RAND_F_RAND_DRBG_GET_ENTROPY,4,2 ; @RAND_F_RAND_DRBG_GET_ENTROPY
	.comm	_RAND_R_PARENT_STRENGTH_TOO_WEAK,4,2 ; @RAND_R_PARENT_STRENGTH_TOO_WEAK
	.comm	_RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED,4,2 ; @RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED
.subsections_via_symbols
