	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function force_nonpriv_reg_handler
_force_nonpriv_reg_handler:             ## @force_nonpriv_reg_handler
	.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	%rcx, %rbx
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	movq	%rcx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r15d, %esi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_gvt_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_4
LBB0_1:
	movq	8(%r12), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %r14
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leal	1(%r13), %esi
	movq	%r12, %rdi
	callq	_cmd_val
	movl	%eax, %r13d
	movq	(%r14), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edi
	callq	_RING_NOPID
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_intel_gvt_in_force_nonpriv_whitelist
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %r13d
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r15d, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_gvt_err
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_cmd_ptr
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_patch_value
LBB0_4:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lri"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected forcenonpriv 0x%x write from cmd %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Unexpected forcenonpriv 0x%x LRI write, value=0x%x\n"

	.no_dead_strip	_force_nonpriv_reg_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function force_nonpriv_reg_handler
_force_nonpriv_reg_handler:             ; @force_nonpriv_reg_handler
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x3
	bl	_strcmp
	cbz	w0, LBB0_2
; %bb.1:
	str	x22, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_gvt_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	x24, [x8]
	ldr	x22, [x24]
	add	w1, w21, #1
	mov	x0, x19
	bl	_cmd_val
	mov	x23, x0
	ldr	x8, [x22]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w0, [x8]
	bl	_RING_NOPID
	bl	_i915_mmio_reg_offset
	mov	x22, x0
	mov	x0, x24
	mov	x1, x23
	bl	_intel_gvt_in_force_nonpriv_whitelist
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_5
; %bb.3:
	cmp	w23, w22
	b.eq	LBB0_5
; %bb.4:
	str	x23, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_gvt_err
	mov	x0, x19
	mov	x1, x21
	bl	_cmd_ptr
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_patch_value
	mov	w0, #0
LBB0_5:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lri"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected forcenonpriv 0x%x write from cmd %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Unexpected forcenonpriv 0x%x LRI write, value=0x%x\n"

	.no_dead_strip	_force_nonpriv_reg_handler
.subsections_via_symbols
