	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nx842_exec_vas
_nx842_exec_vas:                        ## @nx842_exec_vas
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r13
	movl	(%rcx), %ebx
	movq	_WORKMEM_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r8, %rdi
	callq	_PTR_ALIGN
	movq	%rax, %r14
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	$0, (%r15)
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	movq	%rax, %r8
	callq	_nx842_config_crb
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	leaq	4(%r14), %r12
	movq	%r14, %rax
	addq	$8, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_CCW_FC_842@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_SET_FIELD
	movq	%rax, %rdi
	callq	_cpu_to_be32
	movl	%eax, 4(%r14)
	movl	$-1, %ebx
	movq	_cpu_txwin@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, (%r14)
	xorl	%eax, %eax
	callq	_preempt_disable
	movl	(%r13), %edi
	callq	_this_cpu_read
	movq	%rax, %r15
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vas_copy_crb
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_vas_paste_crb
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_preempt_enable
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movq	_VAS_RETRIES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_2
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err_ratelimited
	jmp	LBB0_7
LBB0_5:
	movq	%r14, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_wait_for_csb
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%r15d, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WORKMEM_ALIGN,4,2              ## @WORKMEM_ALIGN
	.comm	_CCW_FC_842,4,2                 ## @CCW_FC_842
	.comm	_cpu_txwin,4,2                  ## @cpu_txwin
	.comm	_VAS_RETRIES,4,2                ## @VAS_RETRIES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VAS copy/paste failed\n"

	.no_dead_strip	_nx842_exec_vas
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nx842_exec_vas
_nx842_exec_vas:                        ; @nx842_exec_vas
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x5
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x24, x0
	ldr	w25, [x3]
Lloh0:
	adrp	x8, _WORKMEM_ALIGN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WORKMEM_ALIGN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x4
	bl	_PTR_ALIGN
	mov	x20, x0
	str	wzr, [x19]
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x25
	mov	x4, x20
	bl	_nx842_config_crb
	mov	x24, x0
	cbnz	w0, LBB0_7
; %bb.1:
	add	x22, x20, #4
	add	x21, x20, #8
Lloh3:
	adrp	x8, _CCW_FC_842@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CCW_FC_842@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, #0
	mov	x2, x23
	bl	_SET_FIELD
	bl	_cpu_to_be32
	str	w0, [x20, #4]
	mov	w25, #-1
Lloh6:
	adrp	x26, _cpu_txwin@GOTPAGE
Lloh7:
	ldr	x26, [x26, _cpu_txwin@GOTPAGEOFF]
Lloh8:
	adrp	x27, _VAS_RETRIES@GOTPAGE
Lloh9:
	ldr	x27, [x27, _VAS_RETRIES@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_ktime_get
	str	w0, [x20]
	bl	_preempt_disable
	ldr	w0, [x26]
	bl	_this_cpu_read
	mov	x23, x0
	mov	x0, x22
	mov	w1, #0
	bl	_vas_copy_crb
	mov	x0, x23
	mov	w1, #0
	mov	w2, #1
	bl	_vas_paste_crb
	mov	x24, x0
	bl	_preempt_enable
	cbz	w24, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x27]
	add	w25, w25, #1
	cmp	w25, w8
	b.lt	LBB0_2
; %bb.4:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err_ratelimited
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	bl	_wait_for_csb
	mov	x24, x0
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x21]
	bl	_be32_to_cpu
	str	w0, [x19]
LBB0_7:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WORKMEM_ALIGN,4,2              ; @WORKMEM_ALIGN
	.comm	_CCW_FC_842,4,2                 ; @CCW_FC_842
	.comm	_cpu_txwin,4,2                  ; @cpu_txwin
	.comm	_VAS_RETRIES,4,2                ; @VAS_RETRIES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VAS copy/paste failed\n"

	.no_dead_strip	_nx842_exec_vas
.subsections_via_symbols
