	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fallback_getentropy_urandom
_fallback_getentropy_urandom:           ## @fallback_getentropy_urandom
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_O_RDONLY@GOTPCREL(%rip), %r14
	leaq	L_.str(%rip), %r12
	movq	_EINTR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_open
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	(%r13), %eax
	je	LBB0_1
	jmp	LBB0_13
LBB0_2:
	movl	%eax, %ebx
	testq	%r15, %r15
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_10
## %bb.3:
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	cltq
	addq	%rax, %r12
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r15, %r12
	jae	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdx
	subq	%r12, %rdx
	leaq	(%r14,%r12), %rsi
	movl	%ebx, %edi
	callq	_read
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	(%r13), %eax
	je	LBB0_9
## %bb.7:
	movl	%ebx, %edi
	callq	_close
	jmp	LBB0_13
LBB0_10:
	movl	%ebx, %edi
	callq	_close
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_fallback_gotdata
	testq	%rax, %rax
	je	LBB0_11
LBB0_13:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %eax
LBB0_14:
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%edx, (%rcx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%eax, %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/urandom"

	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EIO,4,2                        ## @EIO
	.comm	_FD_CLOEXEC,4,2                 ## @FD_CLOEXEC
	.comm	_F_GETFD,4,2                    ## @F_GETFD
	.comm	_F_SETFD,4,2                    ## @F_SETFD
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
	.comm	_O_NOFOLLOW,4,2                 ## @O_NOFOLLOW
	.no_dead_strip	_fallback_getentropy_urandom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fallback_getentropy_urandom
_fallback_getentropy_urandom:           ; @fallback_getentropy_urandom
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _errno@GOTPAGE
Lloh1:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	ldr	w24, [x23]
Lloh2:
	adrp	x26, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x26, [x26, _O_RDONLY@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
Lloh6:
	adrp	x25, _EINTR@GOTPAGE
Lloh7:
	ldr	x25, [x25, _EINTR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	x0, x22
	mov	w2, #0
	bl	_open
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x25]
	cmp	w8, w9
	b.eq	LBB0_1
	b	LBB0_11
LBB0_3:
	mov	x21, x0
	cbz	x19, LBB0_10
; %bb.4:
	mov	x22, #0
Lloh8:
	adrp	x26, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x26, [x26, _EAGAIN@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, w0, sxtw
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	x22, x19
	b.hs	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	x2, x19, x22
	add	x1, x20, x22
	mov	x0, x21
	bl	_read
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x26]
	ldr	w10, [x25]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.eq	LBB0_6
; %bb.9:
	mov	x0, x21
	bl	_close
	b	LBB0_11
LBB0_10:
	mov	x0, x21
	bl	_close
	mov	x0, x20
	mov	x1, x19
	bl	_fallback_gotdata
	cbz	x0, LBB0_12
LBB0_11:
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w24, [x8]
	mov	w0, #-1
LBB0_12:
	str	w24, [x23]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/urandom"

	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EIO,4,2                        ; @EIO
	.comm	_FD_CLOEXEC,4,2                 ; @FD_CLOEXEC
	.comm	_F_GETFD,4,2                    ; @F_GETFD
	.comm	_F_SETFD,4,2                    ; @F_SETFD
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
	.comm	_O_NOFOLLOW,4,2                 ; @O_NOFOLLOW
	.no_dead_strip	_fallback_getentropy_urandom
.subsections_via_symbols
