	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function n2rng_try_read_ctl
_n2rng_try_read_ctl:                    ## @n2rng_try_read_ctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	cmpl	$1, (%rdi)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_sun4v_rng_get_diag_ctl
	jmp	LBB0_4
LBB0_2:
	leaq	-8(%rbp), %rcx
	xorl	%edi, %edi
	movq	$-1, %rsi
	movq	%rcx, %rdx
	movq	%rcx, %r8
	movq	%rcx, %r9
	callq	_sun4v_rng_ctl_read_v2
	movq	%rax, %rcx
	andq	$-2, %rcx
	cmpq	$128, %rcx
	je	LBB0_4
## %bb.3:
	movq	_HV_EOK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	movq	%rax, %rdi
	callq	_n2rng_hv_err_trans
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HV_EOK,8,3                     ## @HV_EOK
	.no_dead_strip	_n2rng_try_read_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function n2rng_try_read_ctl
_n2rng_try_read_ctl:                    ; @n2rng_try_read_ctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	bl	_sun4v_rng_get_diag_ctl
	b	LBB0_3
LBB0_2:
	add	x2, sp, #8
	add	x3, sp, #8
	add	x4, sp, #8
	add	x5, sp, #8
	mov	x0, #0
	mov	x1, #-1
	bl	_sun4v_rng_ctl_read_v2
	and	x8, x0, #0xfffffffffffffffe
Lloh0:
	adrp	x9, _HV_EOK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HV_EOK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #128
	csel	x0, x0, x9, eq
LBB0_3:
	bl	_n2rng_hv_err_trans
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HV_EOK,8,3                     ; @HV_EOK
	.no_dead_strip	_n2rng_try_read_ctl
.subsections_via_symbols
