	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_random                    ## -- Begin function init_random
	.p2align	4, 0x90
_init_random:                           ## @init_random
	.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	_O_RDONLY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.1:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_open
	movl	%eax, %r14d
	cmpl	$-1, %eax
	je	LBB0_2
LBB0_3:
	leaq	-28(%rbp), %rsi
	movl	%r14d, %edi
	movl	$4, %edx
	callq	_read
	cmpl	$4, %eax
	jne	LBB0_4
## %bb.6:
	movl	-28(%rbp), %edi
	callq	_srandom
	jmp	LBB0_7
LBB0_4:
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_2:
	movl	$-1, %r14d
	movb	$1, %r15b
LBB0_5:
	xorl	%edi, %edi
	callq	_time
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_getpid
	xorl	%eax, %ebx
	leaq	-28(%rbp), %rdi
	addl	%ebx, %edi
	movl	%edi, -28(%rbp)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_srandom
	testb	%r15b, %r15b
	jne	LBB0_8
LBB0_7:
	movl	%r14d, %edi
	callq	_close
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/urandom"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_random                    ; -- Begin function init_random
	.p2align	2
_init_random:                           ; @init_random
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x20, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x20, [x20, _O_RDONLY@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x20]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_open
	mov	x19, x0
	cmn	w0, #1
	b.eq	LBB0_5
LBB0_2:
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	_read
	cmp	w0, #4
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [sp, #12]
	bl	_srandom
	b	LBB0_7
LBB0_4:
	mov	w21, #0
	b	LBB0_6
LBB0_5:
	mov	w21, #1
LBB0_6:
	mov	x0, #0
	bl	_time
	mov	x20, x0
	bl	_getpid
	eor	w8, w0, w20
	add	x9, sp, #12
	add	w0, w8, w9
	str	w0, [sp, #12]
	bl	_srandom
	tbnz	w21, #0, LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_close
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/urandom"

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

.subsections_via_symbols
