	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getrnd
_getrnd:                                ## @getrnd
	.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, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_SSH_RANDOM_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %r13d
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	testq	%r12, %r12
	jne	LBB0_3
	jmp	LBB0_11
LBB0_1:
	movq	_SSH_RANDOM_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_fatal
	testq	%r12, %r12
	je	LBB0_11
LBB0_3:
	xorl	%ecx, %ecx
	movq	_EAGAIN@GOTPCREL(%rip), %r15
	movq	%r12, %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	%r12, %rcx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %r14
	subq	%rcx, %rbx
	jbe	LBB0_11
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_read
	movq	%rax, %r12
	testq	%rax, %rax
	jns	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpq	(%r15), %rdi
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_EINTR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_SSH_RANDOM_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_fatal
	jmp	LBB0_10
LBB0_11:
	movl	%r13d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_RANDOM_DEV,4,2             ## @SSH_RANDOM_DEV
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't open %s: %s"

	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
L_.str.1:                               ## @.str.1
	.asciz	"read %s: %s"

	.no_dead_strip	_getrnd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getrnd
_getrnd:                                ; @getrnd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _SSH_RANDOM_DEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_RANDOM_DEV@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_open
	mov	x21, x0
Lloh6:
	adrp	x27, _errno@GOTPAGE
Lloh7:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	cbnz	x19, LBB0_3
	b	LBB0_8
LBB0_2:
Lloh8:
	adrp	x8, _SSH_RANDOM_DEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSH_RANDOM_DEV@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	ldr	x0, [x27]
	bl	_strerror
	mov	x2, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_fatal
	cbz	x19, LBB0_8
LBB0_3:
	mov	x28, #0
Lloh13:
	adrp	x26, _EAGAIN@GOTPAGE
Lloh14:
	ldr	x26, [x26, _EAGAIN@GOTPAGEOFF]
Lloh15:
	adrp	x22, _EINTR@GOTPAGE
Lloh16:
	ldr	x22, [x22, _EINTR@GOTPAGEOFF]
	mov	x23, x19
Lloh17:
	adrp	x20, _EWOULDBLOCK@GOTPAGE
Lloh18:
	ldr	x20, [x20, _EWOULDBLOCK@GOTPAGEOFF]
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh19:
	adrp	x8, _SSH_RANDOM_DEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SSH_RANDOM_DEV@GOTPAGEOFF]
Lloh21:
	ldr	w23, [x8]
	bl	_strerror
	mov	x2, x0
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_fatal
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x28, x25, x28
	subs	x23, x19, x28
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x24, x8, x28, lsl #2
	b.ls	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_read
	mov	x25, x0
	tbz	x0, #63, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x27]
	ldr	x8, [x26]
	ldr	x9, [x22]
	ldr	x10, [x20]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	ccmp	x0, x10, #4, ne
	b.eq	LBB0_6
	b	LBB0_4
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_close
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_RANDOM_DEV,4,2             ; @SSH_RANDOM_DEV
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't open %s: %s"

	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
l_.str.1:                               ; @.str.1
	.asciz	"read %s: %s"

	.no_dead_strip	_getrnd
.subsections_via_symbols
