	.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	%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
	cmpq	$257, %rsi                      ## imm = 0x101
	jb	LBB0_3
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_2:
	movl	$-1, %r15d
	jmp	LBB0_13
LBB0_3:
	movq	%rsi, %r12
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	___getosreldate
	testq	%r12, %r12
	je	LBB0_13
## %bb.4:
	movq	_GETRANDOM_FIRST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setl	%r15b
	movq	_errno@GOTPCREL(%rip), %r13
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testb	$1, %r15b
	jne	LBB0_14
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_getrandom
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$129, %eax
	je	LBB0_2
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$130, %eax
	je	LBB0_14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	__getentropy_fail
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	%ebx, %rax
	addq	%rax, %r14
	xorl	%r15d, %r15d
	subq	%rax, %r12
	jne	LBB0_5
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_getentropy_fallback            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_errno,4,2                      ## @errno
	.comm	_GETRANDOM_FIRST,8,3            ## @GETRANDOM_FIRST
.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:
	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
	cmp	x1, #257
	b.lo	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
LBB0_2:
	mov	w0, #-1
	b	LBB0_14
LBB0_3:
	mov	x19, x1
	mov	x20, x0
	bl	___getosreldate
	cbz	x19, LBB0_13
; %bb.4:
Lloh6:
	adrp	x8, _GETRANDOM_FIRST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GETRANDOM_FIRST@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w8, lt
Lloh9:
	adrp	x22, _errno@GOTPAGE
Lloh10:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	tbnz	w8, #0, LBB0_15
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_getrandom
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x22]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #129
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #130
	b.eq	LBB0_15
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w21, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	__getentropy_fail
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #0
	mov	w0, #0
	sxtw	x9, w21
	add	x20, x20, x9
	subs	x19, x19, x9
	b.ne	LBB0_5
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	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_15:
	mov	x0, x20
	mov	x1, 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
	b	_getentropy_fallback
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_errno,4,2                      ; @errno
	.comm	_GETRANDOM_FIRST,8,3            ; @GETRANDOM_FIRST
.subsections_via_symbols
