	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function force_nonpriv_write
_force_nonpriv_write:                   ## @force_nonpriv_write
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r13
	movl	(%rdx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rdi), %rdi
	callq	_intel_gvt_render_mmio_to_ring_id
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	cmpl	$4, %r14d
	jne	LBB0_3
## %bb.1:
	testb	$3, %r12b
	jne	LBB0_3
## %bb.2:
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	8(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ebx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_in_whitelist
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %edi
	callq	_RING_NOPID
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	cmpl	%eax, %r14d
	jne	LBB0_7
LBB0_6:
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movl	$4, %ecx
	callq	_intel_vgpu_default_mmio_write
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_3:
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_gvt_err
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_gvt_err
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vgpu(%d) ring %d Invalid FORCE_NONPRIV offset %x(%dB)\n"

L_.str.1:                               ## @.str.1
	.asciz	"vgpu(%d) Invalid FORCE_NONPRIV write %x at offset %x\n"

	.no_dead_strip	_force_nonpriv_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function force_nonpriv_write
_force_nonpriv_write:                   ; @force_nonpriv_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w22, [x2]
	ldr	x0, [x0, #8]
	bl	_intel_gvt_render_mmio_to_ring_id
	mov	x2, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w23, #4
	b.ne	LBB0_6
; %bb.1:
	tst	w19, #0x3
	b.ne	LBB0_6
; %bb.2:
	tbnz	w2, #31, LBB0_6
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8, w2, uxtw #3]
	ldr	w23, [x8]
	mov	x0, x22
	bl	_in_whitelist
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x23
	bl	_RING_NOPID
	bl	_i915_mmio_reg_offset
	cmp	w22, w0
	b.ne	LBB0_7
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #4
	bl	_intel_vgpu_default_mmio_write
	b	LBB0_8
LBB0_6:
	neg	w21, w8
	ldr	w1, [x20]
	str	x23, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x19
	bl	_gvt_err
	b	LBB0_9
LBB0_7:
	ldr	w1, [x20]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x22
	mov	x3, x19
	bl	_gvt_err
LBB0_8:
	mov	w21, #0
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vgpu(%d) ring %d Invalid FORCE_NONPRIV offset %x(%dB)\n"

l_.str.1:                               ; @.str.1
	.asciz	"vgpu(%d) Invalid FORCE_NONPRIV write %x at offset %x\n"

	.no_dead_strip	_force_nonpriv_write
.subsections_via_symbols
