	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function n2rng_control_configure_units
_n2rng_control_configure_units:         ## @n2rng_control_configure_units
	.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
	cmpl	$0, (%rdi)
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %r14
	xorl	%r13d, %r13d
	movq	_RNG_CTL_ES1@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r12
	movq	(%r12,%r13,8), %rdi
	callq	___pa
	movl	4(%r14), %esi
	movq	_RNG_CTL_WAIT_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %esi
	movq	_RNG_CTL_ASEL_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movl	$2, %edx
	shll	%cl, %edx
	orl	%esi, %edx
	movq	_RNG_CTL_LFSR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	(%r12,%r13,8), %r8
	movl	(%r15), %ecx
	orl	%edx, %ecx
	movl	%ecx, (%r8)
	movq	_RNG_CTL_VCO_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movl	%edx, %edi
	btsl	%ecx, %edi
	movl	(%r15), %esi
	leal	(%rsi,%rsi), %ebx
	orl	%edi, %ebx
	movl	$2, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movl	%ebx, 4(%r8)
	leal	(,%rsi,4), %ecx
	orl	%edi, %ecx
	orl	%edx, %ecx
	movl	%ecx, 8(%r8)
	orl	%esi, %edx
	movq	_RNG_CTL_ES2@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_RNG_CTL_ES3@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 12(%r8)
	movq	_HV_RNG_STATE_CONFIGURED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	%r13d, %edx
	callq	_n2rng_generic_write_control
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	(%r14), %rax
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RNG_CTL_WAIT_SHIFT,4,2         ## @RNG_CTL_WAIT_SHIFT
	.comm	_RNG_CTL_ASEL_SHIFT,4,2         ## @RNG_CTL_ASEL_SHIFT
	.comm	_RNG_CTL_LFSR,4,2               ## @RNG_CTL_LFSR
	.comm	_RNG_CTL_VCO_SHIFT,4,2          ## @RNG_CTL_VCO_SHIFT
	.comm	_RNG_CTL_ES1,4,2                ## @RNG_CTL_ES1
	.comm	_RNG_CTL_ES2,4,2                ## @RNG_CTL_ES2
	.comm	_RNG_CTL_ES3,4,2                ## @RNG_CTL_ES3
	.comm	_HV_RNG_STATE_CONFIGURED,4,2    ## @HV_RNG_STATE_CONFIGURED
	.no_dead_strip	_n2rng_control_configure_units
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function n2rng_control_configure_units
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_n2rng_control_configure_units:         ; @n2rng_control_configure_units
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x20, #0
Lloh0:
	adrp	x24, _RNG_CTL_LFSR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RNG_CTL_LFSR@GOTPAGEOFF]
Lloh2:
	adrp	x25, _RNG_CTL_ES1@GOTPAGE
Lloh3:
	ldr	x25, [x25, _RNG_CTL_ES1@GOTPAGEOFF]
Lloh4:
	adrp	x26, _RNG_CTL_VCO_SHIFT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _RNG_CTL_VCO_SHIFT@GOTPAGEOFF]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
Lloh8:
	adrp	x27, _RNG_CTL_ES2@GOTPAGE
Lloh9:
	ldr	x27, [x27, _RNG_CTL_ES2@GOTPAGEOFF]
Lloh10:
	adrp	x28, _RNG_CTL_ES3@GOTPAGE
Lloh11:
	ldr	x28, [x28, _RNG_CTL_ES3@GOTPAGEOFF]
Lloh12:
	adrp	x21, _HV_RNG_STATE_CONFIGURED@GOTPAGE
Lloh13:
	ldr	x21, [x21, _HV_RNG_STATE_CONFIGURED@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x19, #8]
	lsl	x23, x20, #3
	ldr	x0, [x22, x23]
	bl	___pa
	mov	x1, x0
	ldr	w8, [x19, #4]
Lloh14:
	adrp	x9, _RNG_CTL_WAIT_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RNG_CTL_WAIT_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh17:
	adrp	x9, _RNG_CTL_ASEL_SHIFT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RNG_CTL_ASEL_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	mov	w10, #2
	lsl	w9, w10, w9
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w8, w8, w9
	ldr	x9, [x22, x23]
	ldr	w10, [x25]
	orr	w10, w8, w10
	str	w10, [x9]
	ldr	w10, [x25]
	ld1r.2s	{ v0 }, [x26]
	ushl.2s	v0, v8, v0
	dup.2s	v1, w8
	orr.8b	v0, v0, v1
	dup.2s	v1, w10
	ushl.2s	v1, v1, v8
	orr.8b	v0, v0, v1
	stur	d0, [x9, #4]
	ldr	w11, [x27]
	ldr	w12, [x28]
	orr	w8, w10, w8
	orr	w8, w8, w11
	orr	w8, w8, w12
	str	w8, [x9, #12]
	ldr	w3, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_n2rng_generic_write_control
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_RNG_CTL_WAIT_SHIFT,4,2         ; @RNG_CTL_WAIT_SHIFT
	.comm	_RNG_CTL_ASEL_SHIFT,4,2         ; @RNG_CTL_ASEL_SHIFT
	.comm	_RNG_CTL_LFSR,4,2               ; @RNG_CTL_LFSR
	.comm	_RNG_CTL_VCO_SHIFT,4,2          ; @RNG_CTL_VCO_SHIFT
	.comm	_RNG_CTL_ES1,4,2                ; @RNG_CTL_ES1
	.comm	_RNG_CTL_ES2,4,2                ; @RNG_CTL_ES2
	.comm	_RNG_CTL_ES3,4,2                ; @RNG_CTL_ES3
	.comm	_HV_RNG_STATE_CONFIGURED,4,2    ; @HV_RNG_STATE_CONFIGURED
	.no_dead_strip	_n2rng_control_configure_units
.subsections_via_symbols
