	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rand_pool_new                  ## -- Begin function rand_pool_new
	.p2align	4, 0x90
_rand_pool_new:                         ## @rand_pool_new
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movl	%edi, %r15d
	movl	$40, %edi
	callq	_OPENSSL_zalloc
	movq	%rax, %r12
	movl	%r14d, %edi
	callq	_RAND_POOL_MIN_ALLOCATION
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	movq	%rbx, (%r12)
	movq	_RAND_POOL_MAX_LENGTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%r13, %rcx
	cmovbq	%rcx, %r13
	movq	%r13, 8(%r12)
	cmpq	%rbx, %rax
	cmovaq	%rax, %rbx
	cmpq	%r13, %rbx
	cmovaeq	%r13, %rbx
	movq	%rbx, 16(%r12)
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_OPENSSL_secure_zalloc
	jmp	LBB0_5
LBB0_3:
	movq	_RAND_F_RAND_POOL_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RANDerr
	jmp	LBB0_8
LBB0_4:
	movl	%ebx, %edi
	callq	_OPENSSL_zalloc
LBB0_5:
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	%r15d, 24(%r12)
	movl	%r14d, 28(%r12)
	jmp	LBB0_9
LBB0_7:
	movq	_RAND_F_RAND_POOL_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RANDerr
	movq	%r12, %rdi
	callq	_OPENSSL_free
LBB0_8:
	xorl	%r12d, %r12d
LBB0_9:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RAND_F_RAND_POOL_NEW,4,2       ## @RAND_F_RAND_POOL_NEW
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_RAND_POOL_MAX_LENGTH,8,3       ## @RAND_POOL_MAX_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rand_pool_new                  ; -- Begin function rand_pool_new
	.p2align	2
_rand_pool_new:                         ; @rand_pool_new
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	mov	w0, #40
	bl	_OPENSSL_zalloc
	mov	x19, x0
	mov	x0, x20
	bl	_RAND_POOL_MIN_ALLOCATION
	cbz	x19, LBB0_4
; %bb.1:
	str	x22, [x19]
Lloh0:
	adrp	x8, _RAND_POOL_MAX_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RAND_POOL_MAX_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x23
	csel	x8, x8, x23, lo
	cmp	x0, x22
	csel	x9, x0, x22, hi
	cmp	x9, x8
	csel	x0, x9, x8, lo
	stp	x8, x0, [x19, #8]
	cbz	w20, LBB0_5
; %bb.2:
	bl	_OPENSSL_secure_zalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_6
LBB0_3:
	stp	w21, w20, [x19, #24]
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _RAND_F_RAND_POOL_NEW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RAND_F_RAND_POOL_NEW@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_RANDerr
	b	LBB0_7
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_OPENSSL_zalloc
	str	x0, [x19, #32]
	cbnz	x0, LBB0_3
LBB0_6:
Lloh9:
	adrp	x8, _RAND_F_RAND_POOL_NEW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RAND_F_RAND_POOL_NEW@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_RANDerr
	mov	x0, x19
	bl	_OPENSSL_free
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RAND_F_RAND_POOL_NEW,4,2       ; @RAND_F_RAND_POOL_NEW
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_RAND_POOL_MAX_LENGTH,8,3       ; @RAND_POOL_MAX_LENGTH
.subsections_via_symbols
