	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rand_pool_grow
_rand_pool_grow:                        ## @rand_pool_grow
	.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
	movq	(%rdi), %rbx
	movq	8(%rdi), %rax
	movq	%rbx, %rcx
	subq	%rax, %rcx
	movl	$1, %r14d
	cmpq	%rsi, %rcx
	jae	LBB0_16
## %bb.1:
	movq	%rdi, %r15
	cmpq	$0, 40(%rdi)
	jne	LBB0_7
## %bb.2:
	movslq	16(%r15), %rcx
	movq	%rcx, %rdx
	subq	%rax, %rdx
	cmpq	%rsi, %rdx
	jb	LBB0_7
## %bb.3:
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movslq	%edx, %rdx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, %rbx
	leaq	(%rbx,%rbx), %rbx
	cmovaeq	%rcx, %rbx
	movq	%rbx, %rdi
	subq	%rax, %rdi
	cmpq	%rsi, %rdi
	jb	LBB0_4
## %bb.5:
	cmpq	$0, 32(%r15)
	je	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	_OPENSSL_secure_zalloc
	jmp	LBB0_10
LBB0_7:
	movq	_RAND_F_RAND_POOL_GROW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_9:
	movq	%rbx, %rdi
	callq	_OPENSSL_zalloc
LBB0_10:
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	8(%r15), %rdx
	movq	24(%r15), %rsi
	movq	%r12, %rdi
	callq	_memcpy
	cmpq	$0, 32(%r15)
	movq	(%r15), %rsi
	movq	24(%r15), %rdi
	je	LBB0_14
## %bb.13:
	callq	_OPENSSL_secure_clear_free
	jmp	LBB0_15
LBB0_11:
	movq	_RAND_F_RAND_POOL_GROW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	callq	_RANDerr
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_14:
	callq	_OPENSSL_clear_free
LBB0_15:
	movq	%r12, 24(%r15)
	movq	%rbx, (%r15)
LBB0_16:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RAND_F_RAND_POOL_GROW,4,2      ## @RAND_F_RAND_POOL_GROW
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_rand_pool_grow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rand_pool_grow
_rand_pool_grow:                        ; @rand_pool_grow
	.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
	ldp	x20, x8, [x0]
	sub	x9, x20, x8
	cmp	x9, x1
	b.hs	LBB0_14
; %bb.1:
	mov	x19, x0
	ldrsw	x9, [x0, #16]
	cmp	w9, #0
	cinc	w10, w9, lt
	ldr	x11, [x0, #40]
	sub	x12, x9, x8
	cmp	x11, #0
	ccmp	x12, x1, #0, eq
	b.hs	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _RAND_F_RAND_POOL_GROW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RAND_F_RAND_POOL_GROW@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	sbfx	x10, x10, #1, #31
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x20, #1
	cmp	x20, x10
	csel	x20, x11, x9, lo
	sub	x11, x20, x8
	cmp	x11, x1
	b.lo	LBB0_4
; %bb.5:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.6:
	mov	x0, x20
	bl	_OPENSSL_secure_zalloc
	mov	x21, x0
	cbz	x0, LBB0_10
LBB0_7:
	ldr	x1, [x19, #24]
	ldr	x2, [x19, #8]
	mov	x0, x21
	bl	_memcpy
	ldp	x0, x8, [x19, #24]
	ldr	x1, [x19]
	cbz	x8, LBB0_12
; %bb.8:
	bl	_OPENSSL_secure_clear_free
	b	LBB0_13
LBB0_9:
	mov	x0, x20
	bl	_OPENSSL_zalloc
	mov	x21, x0
	cbnz	x0, LBB0_7
LBB0_10:
Lloh5:
	adrp	x8, _RAND_F_RAND_POOL_GROW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RAND_F_RAND_POOL_GROW@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	bl	_RANDerr
	mov	w0, #0
	b	LBB0_15
LBB0_12:
	bl	_OPENSSL_clear_free
LBB0_13:
	str	x21, [x19, #24]
	str	x20, [x19]
LBB0_14:
	mov	w0, #1
LBB0_15:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RAND_F_RAND_POOL_GROW,4,2      ; @RAND_F_RAND_POOL_GROW
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_rand_pool_grow
.subsections_via_symbols
