	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function restore_render_mocs_l3cc_for_inhibit
_restore_render_mocs_l3cc_for_inhibit:  ## @restore_render_mocs_l3cc_for_inhibit
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_GEN9_MOCS_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	addl	$2, %esi
	movq	%r14, %rdi
	callq	_intel_ring_begin
	movq	%rax, %r13
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movl	(%r12), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	callq	_MI_LOAD_REGISTER_IMM
	addq	$4, %r13
	movl	%eax, (%rbx)
	movl	(%r12), %eax
	incl	%eax
	cmpl	$3, %eax
	jb	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %r14
	movq	%r13, %r12
	movl	%ebx, %edi
	callq	_GEN9_LNCFCMOCS
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, (%r13)
	movl	%ebx, %edi
	callq	_GEN9_LNCFCMOCS
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_vgpu_vreg_t
	addq	$8, %r13
	movl	%eax, 4(%r12)
	movl	(%r12), %esi
	movq	%r14, %r12
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	(%r15), %ecx
	movq	(%r14), %rdx
	movl	(%rdx), %r8d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	callq	_gvt_dbg_core
	incl	%ebx
	movl	(%r12), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, %ebx
	jb	LBB0_3
LBB0_4:
	movq	_MI_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	addq	$4, %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_intel_ring_advance
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN9_MOCS_SIZE,4,2             ## @GEN9_MOCS_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add lri reg pair 0x%x:0x%x in inhibit ctx, vgpu:%d, rind_id:%d\n"

	.comm	_MI_NOOP,4,2                    ## @MI_NOOP
	.no_dead_strip	_restore_render_mocs_l3cc_for_inhibit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function restore_render_mocs_l3cc_for_inhibit
_restore_render_mocs_l3cc_for_inhibit:  ; @restore_render_mocs_l3cc_for_inhibit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _GEN9_MOCS_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GEN9_MOCS_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w1, w8, #2
	mov	x0, x19
	bl	_intel_ring_begin
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	ldr	w8, [x24]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	bl	_MI_LOAD_REGISTER_IMM
	str	w0, [x21], #4
	ldr	w8, [x24]
	add	w8, w8, #1
	cmp	w8, #3
	b.lo	LBB0_6
; %bb.3:
	mov	w22, #0
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_GEN9_LNCFCMOCS
	bl	_i915_mmio_reg_offset
	str	w0, [x21]
	mov	x0, x22
	bl	_GEN9_LNCFCMOCS
	mov	x1, x0
	mov	x0, x20
	bl	_vgpu_vreg_t
	mov	x2, x0
	add	x25, x21, #8
	str	w0, [x21, #4]
	ldr	w1, [x21]
	ldr	w3, [x20]
	ldr	x8, [x19]
	ldr	w4, [x8]
	mov	x0, x23
	bl	_gvt_dbg_core
	add	w22, w22, #1
	ldr	w8, [x24]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w22, w8, asr #1
	mov	x21, x25
	b.lo	LBB0_4
; %bb.5:
	mov	x21, x25
LBB0_6:
Lloh4:
	adrp	x8, _MI_NOOP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MI_NOOP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x21], #4
	mov	x0, x19
	mov	x1, x21
	bl	_intel_ring_advance
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN9_MOCS_SIZE,4,2             ; @GEN9_MOCS_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add lri reg pair 0x%x:0x%x in inhibit ctx, vgpu:%d, rind_id:%d\n"

	.comm	_MI_NOOP,4,2                    ; @MI_NOOP
	.no_dead_strip	_restore_render_mocs_l3cc_for_inhibit
.subsections_via_symbols
