	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function n2rng_generic_write_control
_n2rng_generic_write_control:           ## @n2rng_generic_write_control
	.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	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %r8d
	leaq	-48(%rbp), %r9
	movq	%rdx, %rsi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdx
	movq	%r12, %rcx
	callq	_n2rng_write_ctl_one
	movq	_HV_EOK@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	je	LBB0_14
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	movq	_N2RNG_BLOCK_LIMIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	callq	___delay
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %r8d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	leaq	-48(%rbp), %r9
	callq	_n2rng_write_ctl_one
	movq	_HV_EOK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_HV_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_HV_EBUSY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	movq	_N2RNG_BUSY_LIMIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_udelay
	jmp	LBB0_12
LBB0_13:
	xorl	%ecx, %ecx
	jmp	LBB0_14
LBB0_4:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_14:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HV_EOK,8,3                     ## @HV_EOK
	.comm	_HV_EWOULDBLOCK,8,3             ## @HV_EWOULDBLOCK
	.comm	_N2RNG_BLOCK_LIMIT,4,2          ## @N2RNG_BLOCK_LIMIT
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_HV_EBUSY,8,3                   ## @HV_EBUSY
	.comm	_N2RNG_BUSY_LIMIT,4,2           ## @N2RNG_BUSY_LIMIT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_n2rng_generic_write_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function n2rng_generic_write_control
_n2rng_generic_write_control:           ; @n2rng_generic_write_control
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w4, [x0]
	add	x5, sp, #8
	mov	x1, x2
	mov	x2, x3
	mov	x3, x21
	bl	_n2rng_write_ctl_one
Lloh0:
	adrp	x23, _HV_EOK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HV_EOK@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_14
LBB0_2:
	mov	w24, #0
	mov	w25, #0
Lloh2:
	adrp	x26, _HV_EWOULDBLOCK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _HV_EWOULDBLOCK@GOTPAGEOFF]
Lloh4:
	adrp	x28, _HV_EBUSY@GOTPAGE
Lloh5:
	ldr	x28, [x28, _HV_EBUSY@GOTPAGEOFF]
Lloh6:
	adrp	x27, _N2RNG_BUSY_LIMIT@GOTPAGE
Lloh7:
	ldr	x27, [x27, _N2RNG_BUSY_LIMIT@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w25, w25, #1
Lloh8:
	adrp	x8, _N2RNG_BLOCK_LIMIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _N2RNG_BLOCK_LIMIT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ge	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #8]
	bl	___delay
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w4, [x22]
	add	x5, sp, #8
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	bl	_n2rng_write_ctl_one
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w24, #1
	ldr	w8, [x27]
	cmp	w24, w8
	b.ge	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	bl	_udelay
	b	LBB0_5
LBB0_10:
Lloh11:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HV_EOK,8,3                     ; @HV_EOK
	.comm	_HV_EWOULDBLOCK,8,3             ; @HV_EWOULDBLOCK
	.comm	_N2RNG_BLOCK_LIMIT,4,2          ; @N2RNG_BLOCK_LIMIT
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_HV_EBUSY,8,3                   ; @HV_EBUSY
	.comm	_N2RNG_BUSY_LIMIT,4,2           ; @N2RNG_BUSY_LIMIT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_n2rng_generic_write_control
.subsections_via_symbols
