	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_random_bytes               ## -- Begin function get_random_bytes
	.p2align	4, 0x90
_get_random_bytes:                      ## @get_random_bytes
	.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, %r14d
	movq	%rdi, %r15
	movq	_O_RDONLY@GOTPCREL(%rip), %r13
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r13), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movl	%eax, %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_read
	movl	%eax, %r12d
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edi
	movl	%r12d, %edx
	callq	_vkprintf
LBB0_4:
	movl	%ebx, %edi
	callq	_close
	cmpl	%r14d, %r12d
	jl	LBB0_6
	jmp	LBB0_9
LBB0_1:
	xorl	%r12d, %r12d
	cmpl	%r14d, %r12d
	jge	LBB0_9
LBB0_6:
	movl	(%r13), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	movl	%eax, %ebx
	movslq	%r12d, %rax
	addq	%rax, %r15
	subl	%r12d, %r14d
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_read
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_close
	testl	%r14d, %r14d
	js	LBB0_9
## %bb.8:
	addl	%r14d, %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/random"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
L_.str.1:                               ## @.str.1
	.asciz	"added %d bytes of real entropy to the security key\n"

L_.str.2:                               ## @.str.2
	.asciz	"/dev/urandom"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_random_bytes               ; -- Begin function get_random_bytes
	.p2align	2
_get_random_bytes:                      ; @get_random_bytes
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _O_RDONLY@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x22, x0
	mov	x1, x21
	mov	x2, x20
	bl	_read
	mov	x19, x0
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.2:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #3
	mov	x2, x19
	bl	_vkprintf
LBB0_3:
	mov	x0, x22
	bl	_close
	cmp	w19, w20
	b.lt	LBB0_5
	b	LBB0_8
LBB0_4:
	mov	w19, #0
	cmp	w19, w20
	b.ge	LBB0_8
LBB0_5:
	ldr	w1, [x23]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_open
	tbnz	w0, #31, LBB0_8
; %bb.6:
	mov	x22, x0
	add	x1, x21, w19, sxtw
	sub	w2, w20, w19
	bl	_read
	mov	x20, x0
	mov	x0, x22
	bl	_close
	tbnz	w20, #31, LBB0_8
; %bb.7:
	add	w19, w20, w19
LBB0_8:
	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
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/random"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
l_.str.1:                               ; @.str.1
	.asciz	"added %d bytes of real entropy to the security key\n"

l_.str.2:                               ; @.str.2
	.asciz	"/dev/urandom"

.subsections_via_symbols
