	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_get_default_rng         ## -- Begin function crypto_get_default_rng
	.p2align	4, 0x90
_crypto_get_default_rng:                ## @crypto_get_default_rng
	.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
	movq	_crypto_default_rng_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_crypto_default_rng@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_1
LBB0_5:
	movq	_crypto_default_rng_refcnt@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_crypto_alloc_rng
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movq	%r14, %rdi
	callq	_crypto_rng_seedsize
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_crypto_rng_reset
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_crypto_free_rng
LBB0_6:
	movq	_crypto_default_rng_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, (%r15)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_crypto_default_rng_lock,4,2    ## @crypto_default_rng_lock
	.comm	_crypto_default_rng,8,3         ## @crypto_default_rng
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stdrng"

	.comm	_crypto_default_rng_refcnt,4,2  ## @crypto_default_rng_refcnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_get_default_rng         ; -- Begin function crypto_get_default_rng
	.p2align	2
_crypto_get_default_rng:                ; @crypto_get_default_rng
	.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
Lloh0:
	adrp	x0, _crypto_default_rng_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _crypto_default_rng_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x21, _crypto_default_rng@GOTPAGE
Lloh3:
	ldr	x21, [x21, _crypto_default_rng@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w19, #0
Lloh4:
	adrp	x8, _crypto_default_rng_refcnt@GOTPAGE
Lloh5:
	ldr	x8, [x8, _crypto_default_rng_refcnt@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_5
LBB0_2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	mov	w2, #0
	bl	_crypto_alloc_rng
	mov	x20, x0
	bl	_PTR_ERR
	mov	x19, x0
	mov	x0, x20
	bl	_IS_ERR
	cbnz	x0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_crypto_rng_seedsize
	mov	x2, x0
	mov	x0, x20
	mov	x1, #0
	bl	_crypto_rng_reset
	cbz	w0, LBB0_6
; %bb.4:
	mov	x19, x0
	mov	x0, x20
	bl	_crypto_free_rng
LBB0_5:
Lloh8:
	adrp	x0, _crypto_default_rng_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _crypto_default_rng_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	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
LBB0_6:
	str	x20, [x21]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_crypto_default_rng_lock,4,2    ; @crypto_default_rng_lock
	.comm	_crypto_default_rng,8,3         ; @crypto_default_rng
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stdrng"

	.comm	_crypto_default_rng_refcnt,4,2  ; @crypto_default_rng_refcnt
.subsections_via_symbols
