	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function default_RNG
_default_RNG:                           ## @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	%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
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_O_RDONLY@GOTPCREL(%rip), %r15
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.1:
	movl	(%rbx), %esi
	orl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_open
	movl	%eax, %r14d
	cmpl	$-1, %eax
	je	LBB0_2
LBB0_3:
	movl	$1, %r15d
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.4:
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_read
	testq	%rax, %rax
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%rax, %r13
	subq	%rax, %rbx
	jne	LBB0_5
	jmp	LBB0_8
LBB0_6:
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r14d, %edi
	callq	_close
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/urandom"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
L_.str.1:                               ## @.str.1
	.asciz	"/dev/random"

	.no_dead_strip	_default_RNG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function default_RNG
_default_RNG:                           ; @default_RNG
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _O_RDONLY@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x23, _O_CLOEXEC@GOTPAGE
Lloh3:
	ldr	x23, [x23, _O_CLOEXEC@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w1, w9, w8
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w1, w9, w8
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_open
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_2:
	cbz	w21, LBB0_6
; %bb.3:
	mov	w21, w21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_read
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, x0
	subs	x21, x21, x0
	b.ne	LBB0_4
LBB0_6:
	mov	w19, #1
	b	LBB0_8
LBB0_7:
	mov	w19, #0
LBB0_8:
	mov	x0, x20
	bl	_close
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w19, #0
	b	LBB0_9
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/urandom"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
l_.str.1:                               ; @.str.1
	.asciz	"/dev/random"

	.no_dead_strip	_default_RNG
.subsections_via_symbols
