	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rand_drbg_new
_rand_drbg_new:                         ## @rand_drbg_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r14d
	movl	%esi, %r12d
	testl	%edi, %edi
	je	LBB0_1
## %bb.3:
	movl	$64, %edi
	callq	_OPENSSL_secure_zalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_CRYPTO_secure_allocated
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	jmp	LBB0_6
LBB0_1:
	movl	$64, %edi
	callq	_OPENSSL_zalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	xorl	%ecx, %ecx
LBB0_6:
	movl	%ecx, (%rbx)
	xorl	%eax, %eax
	callq	_openssl_get_fork_id
	movl	%eax, 56(%rbx)
	movq	%r15, 48(%rbx)
	movq	_rand_drbg_get_entropy@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_rand_drbg_cleanup_entropy@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	testq	%r15, %r15
	je	LBB0_7
## %bb.8:
	movq	_slave_reseed_interval@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_slave_reseed_time_interval@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_RAND_DRBG_set
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%r15, %rdi
	callq	_rand_drbg_lock
	movq	8(%rbx), %r14
	movq	8(%r15), %r12
	movq	%r15, %rdi
	callq	_rand_drbg_unlock
	cmpq	%r12, %r14
	jle	LBB0_13
## %bb.10:
	movq	_RAND_F_RAND_DRBG_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RAND_R_PARENT_STRENGTH_TOO_WEAK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RANDerr
	jmp	LBB0_11
LBB0_4:
	movq	_RAND_F_RAND_DRBG_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RANDerr
	jmp	LBB0_12
LBB0_7:
	movq	_rand_drbg_get_nonce@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_rand_drbg_cleanup_nonce@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_master_reseed_interval@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_master_reseed_time_interval@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_RAND_DRBG_set
	testq	%rax, %rax
	jne	LBB0_13
LBB0_11:
	movq	%rbx, %rdi
	callq	_RAND_DRBG_free
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RAND_F_RAND_DRBG_NEW,4,2       ## @RAND_F_RAND_DRBG_NEW
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_rand_drbg_get_entropy,8,3      ## @rand_drbg_get_entropy
	.comm	_rand_drbg_cleanup_entropy,8,3  ## @rand_drbg_cleanup_entropy
	.comm	_rand_drbg_get_nonce,4,2        ## @rand_drbg_get_nonce
	.comm	_rand_drbg_cleanup_nonce,4,2    ## @rand_drbg_cleanup_nonce
	.comm	_master_reseed_interval,4,2     ## @master_reseed_interval
	.comm	_master_reseed_time_interval,4,2 ## @master_reseed_time_interval
	.comm	_slave_reseed_interval,4,2      ## @slave_reseed_interval
	.comm	_slave_reseed_time_interval,4,2 ## @slave_reseed_time_interval
	.comm	_RAND_R_PARENT_STRENGTH_TOO_WEAK,4,2 ## @RAND_R_PARENT_STRENGTH_TOO_WEAK
	.no_dead_strip	_rand_drbg_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rand_drbg_new
_rand_drbg_new:                         ; @rand_drbg_new
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	cbz	w0, LBB0_3
; %bb.1:
	mov	w0, #64
	bl	_OPENSSL_secure_zalloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x19, x0
	bl	_CRYPTO_secure_allocated
	cmp	x0, #0
	cset	w8, ne
	b	LBB0_5
LBB0_3:
	mov	w0, #64
	bl	_OPENSSL_zalloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x19, x0
	mov	w8, #0
LBB0_5:
	str	w8, [x19]
	bl	_openssl_get_fork_id
	str	w0, [x19, #56]
	str	x21, [x19, #48]
Lloh0:
	adrp	x8, _rand_drbg_get_entropy@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rand_drbg_get_entropy@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _rand_drbg_cleanup_entropy@GOTPAGE
Lloh4:
	ldr	x9, [x9, _rand_drbg_cleanup_entropy@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #24]
	cbz	x21, LBB0_10
; %bb.6:
Lloh6:
	adrp	x8, _slave_reseed_interval@GOTPAGE
Lloh7:
	ldr	x8, [x8, _slave_reseed_interval@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _slave_reseed_time_interval@GOTPAGE
Lloh10:
	ldr	x9, [x9, _slave_reseed_time_interval@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_RAND_DRBG_set
	cbz	x0, LBB0_11
; %bb.7:
	mov	x0, x21
	bl	_rand_drbg_lock
	ldr	x20, [x19, #8]
	ldr	x22, [x21, #8]
	mov	x0, x21
	bl	_rand_drbg_unlock
	cmp	x20, x22
	b.le	LBB0_13
; %bb.8:
Lloh12:
	adrp	x8, _RAND_F_RAND_DRBG_NEW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RAND_F_RAND_DRBG_NEW@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _RAND_R_PARENT_STRENGTH_TOO_WEAK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RAND_R_PARENT_STRENGTH_TOO_WEAK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_RANDerr
	b	LBB0_11
LBB0_9:
Lloh18:
	adrp	x8, _RAND_F_RAND_DRBG_NEW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RAND_F_RAND_DRBG_NEW@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_RANDerr
	b	LBB0_12
LBB0_10:
Lloh24:
	adrp	x8, _rand_drbg_get_nonce@GOTPAGE
Lloh25:
	ldr	x8, [x8, _rand_drbg_get_nonce@GOTPAGEOFF]
Lloh26:
	adrp	x9, _rand_drbg_cleanup_nonce@GOTPAGE
Lloh27:
	ldr	x9, [x9, _rand_drbg_cleanup_nonce@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
Lloh30:
	adrp	x8, _master_reseed_interval@GOTPAGE
Lloh31:
	ldr	x8, [x8, _master_reseed_interval@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _master_reseed_time_interval@GOTPAGE
Lloh34:
	ldr	x9, [x9, _master_reseed_time_interval@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_RAND_DRBG_set
	cbnz	x0, LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_RAND_DRBG_free
LBB0_12:
	mov	x19, #0
LBB0_13:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_RAND_F_RAND_DRBG_NEW,4,2       ; @RAND_F_RAND_DRBG_NEW
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_rand_drbg_get_entropy,8,3      ; @rand_drbg_get_entropy
	.comm	_rand_drbg_cleanup_entropy,8,3  ; @rand_drbg_cleanup_entropy
	.comm	_rand_drbg_get_nonce,4,2        ; @rand_drbg_get_nonce
	.comm	_rand_drbg_cleanup_nonce,4,2    ; @rand_drbg_cleanup_nonce
	.comm	_master_reseed_interval,4,2     ; @master_reseed_interval
	.comm	_master_reseed_time_interval,4,2 ; @master_reseed_time_interval
	.comm	_slave_reseed_interval,4,2      ; @slave_reseed_interval
	.comm	_slave_reseed_time_interval,4,2 ; @slave_reseed_time_interval
	.comm	_RAND_R_PARENT_STRENGTH_TOO_WEAK,4,2 ; @RAND_R_PARENT_STRENGTH_TOO_WEAK
	.no_dead_strip	_rand_drbg_new
.subsections_via_symbols
