	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function n2rng_write_ctl_one
_n2rng_write_ctl_one:                   ## @n2rng_write_ctl_one
	.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	%r9, %r14
	cmpl	$1, (%rdi)
	jne	LBB0_1
## %bb.4:
	movq	%rcx, %rdi
	movq	%rdx, %rsi
	movq	%r8, %rdx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sun4v_rng_ctl_write_v1         ## TAILCALL
LBB0_1:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	%rcx, %rdi
	movq	%rdx, %rsi
	movq	%r8, %rdx
	movl	%r15d, %ecx
	callq	_sun4v_rng_ctl_write_v2
	movq	_HV_EOK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_n2rng_control_settle_v2
LBB0_3:
	movq	_N2RNG_ACCUM_CYCLES_DEFAULT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HV_EOK,8,3                     ## @HV_EOK
	.comm	_N2RNG_ACCUM_CYCLES_DEFAULT,8,3 ## @N2RNG_ACCUM_CYCLES_DEFAULT
	.no_dead_strip	_n2rng_write_ctl_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function n2rng_write_ctl_one
_n2rng_write_ctl_one:                   ; @n2rng_write_ctl_one
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x5
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x3
	mov	x1, x2
	mov	x2, x4
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sun4v_rng_ctl_write_v1
LBB0_2:
	mov	x20, x1
	mov	x21, x0
	mov	x0, x3
	mov	x1, x2
	mov	x2, x4
	mov	x3, x20
	bl	_sun4v_rng_ctl_write_v2
Lloh0:
	adrp	x8, _HV_EOK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HV_EOK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	bl	_n2rng_control_settle_v2
LBB0_4:
Lloh3:
	adrp	x8, _N2RNG_ACCUM_CYCLES_DEFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _N2RNG_ACCUM_CYCLES_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HV_EOK,8,3                     ; @HV_EOK
	.comm	_N2RNG_ACCUM_CYCLES_DEFAULT,8,3 ; @N2RNG_ACCUM_CYCLES_DEFAULT
	.no_dead_strip	_n2rng_write_ctl_one
.subsections_via_symbols
