	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rng_init
_rng_init:                              ## @rng_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, %r14d
	cmpl	$0, (%rdi)
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	leaq	8(%rdi), %r15
	movq	_br_sha256_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_br_multihash_getimpl
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	_br_sha384_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_br_multihash_getimpl
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_br_sha1_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_br_multihash_getimpl
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	leaq	4(%rbx), %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_br_hmac_drbg_init
	movl	$1, (%rbx)
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_BR_ERR_BAD_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_br_ssl_engine_fail
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_br_sha256_ID,4,2               ## @br_sha256_ID
	.comm	_br_sha384_ID,4,2               ## @br_sha384_ID
	.comm	_br_sha1_ID,4,2                 ## @br_sha1_ID
	.comm	_BR_ERR_BAD_STATE,4,2           ## @BR_ERR_BAD_STATE
	.no_dead_strip	_rng_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rng_init
_rng_init:                              ; @rng_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	add	x20, x0, #8
Lloh0:
	adrp	x8, _br_sha256_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _br_sha256_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_br_multihash_getimpl
	mov	x1, x0
	cbnz	x0, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _br_sha384_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _br_sha384_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_br_multihash_getimpl
	mov	x1, x0
	cbnz	x0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _br_sha1_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _br_sha1_ID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_br_multihash_getimpl
	mov	x1, x0
	cbz	x0, LBB0_7
LBB0_5:
	add	x0, x19, #4
	mov	x2, #0
	mov	w3, #0
	bl	_br_hmac_drbg_init
	mov	w0, #1
	str	w0, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh9:
	adrp	x8, _BR_ERR_BAD_STATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BR_ERR_BAD_STATE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_br_ssl_engine_fail
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_br_sha256_ID,4,2               ; @br_sha256_ID
	.comm	_br_sha384_ID,4,2               ; @br_sha384_ID
	.comm	_br_sha1_ID,4,2                 ; @br_sha1_ID
	.comm	_BR_ERR_BAD_STATE,4,2           ; @BR_ERR_BAD_STATE
	.no_dead_strip	_rng_init
.subsections_via_symbols
