	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getentropy                     ## -- Begin function getentropy
	.p2align	4, 0x90
_getentropy:                            ## @getentropy
	.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
	cmpq	$256, %rsi                      ## imm = 0x100
	ja	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_PROV_RSA_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CRYPT_VERIFYCONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r15d, %r15d
	leaq	-28(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_CryptAcquireContext
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	-28(%rbp), %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_CryptGenRandom
	movq	%rax, %rbx
	movl	-28(%rbp), %edi
	xorl	%esi, %esi
	callq	_CryptReleaseContext
	testq	%rbx, %rbx
	jne	LBB0_4
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_errno,4,2                      ## @errno
	.comm	_PROV_RSA_FULL,4,2              ## @PROV_RSA_FULL
	.comm	_CRYPT_VERIFYCONTEXT,4,2        ## @CRYPT_VERIFYCONTEXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getentropy                     ; -- Begin function getentropy
	.p2align	2
_getentropy:                            ; @getentropy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cmp	x1, #256
	b.hi	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PROV_RSA_FULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROV_RSA_FULL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _CRYPT_VERIFYCONTEXT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRYPT_VERIFYCONTEXT@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	add	x0, sp, #12
	mov	x1, #0
	mov	x2, #0
	bl	_CryptAcquireContext
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [sp, #12]
	mov	x1, x20
	mov	x2, x19
	bl	_CryptGenRandom
	mov	x19, x0
	ldr	w0, [sp, #12]
	mov	w1, #0
	bl	_CryptReleaseContext
	mov	w0, #0
	cbnz	x19, LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _errno@GOTPAGE
Lloh10:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_errno,4,2                      ; @errno
	.comm	_PROV_RSA_FULL,4,2              ; @PROV_RSA_FULL
	.comm	_CRYPT_VERIFYCONTEXT,4,2        ; @CRYPT_VERIFYCONTEXT
.subsections_via_symbols
