	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function restore_context_mmio_for_inhibit
_restore_context_mmio_for_inhibit:      ## @restore_context_mmio_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movq	(%rsi), %rax
	movslq	(%rax), %r12
	movq	(%r13), %rcx
	movl	(%rcx,%r12,4), %ebx
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movq	_EMIT_BARRIER@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	*8(%rax)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.4:
	leal	(%rbx,%rbx), %esi
	addl	$2, %esi
	movq	%r14, %rdi
	callq	_intel_ring_begin
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%ebx, %edi
	callq	_MI_LOAD_REGISTER_IMM
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rbx
	addq	$4, %rbx
	movl	%eax, (%rcx)
	movq	8(%r13), %r13
	movl	8(%r13), %edi
	callq	_i915_mmio_reg_valid
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	24(%r13), %edi
	addq	$16, %r13
	callq	_i915_mmio_reg_valid
	testq	%rax, %rax
	je	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, (%r13)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, 12(%r13)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%r13), %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, (%rbx)
	movl	8(%r13), %esi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_vgpu_vreg_t
	movl	4(%r13), %edx
	shll	$16, %edx
	orl	%eax, %edx
	leaq	8(%rbx), %r14
	movl	%edx, 4(%rbx)
	movl	(%rbx), %esi
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %r8d
	callq	_gvt_dbg_core
	movq	%r14, %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	_EMIT_BARRIER@GOTPCREL(%rip), %r15
	jmp	LBB0_10
LBB0_11:
	movq	_MI_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$4, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_intel_ring_advance
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movl	(%r15), %esi
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EMIT_BARRIER,4,2               ## @EMIT_BARRIER
	.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_context_mmio_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_context_mmio_for_inhibit
_restore_context_mmio_for_inhibit:      ; @restore_context_mmio_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
	ldr	x25, [x0, #8]
	ldr	x8, [x1]
	ldrsw	x21, [x8]
	ldr	x9, [x25]
	ldr	w23, [x9, x21, lsl #2]
	cbz	w23, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x24, _EMIT_BARRIER@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EMIT_BARRIER@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_5
; %bb.2:
	lsl	w8, w23, #1
	add	w1, w8, #2
	mov	x0, x19
	bl	_intel_ring_begin
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x22
	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_4:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x23
	bl	_MI_LOAD_REGISTER_IMM
	str	w0, [x22], #4
	ldr	x23, [x25, #8]
	ldr	w0, [x23, #8]
	bl	_i915_mmio_reg_valid
	cbz	x0, LBB0_12
; %bb.7:
	add	x25, x23, #12
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x25, #12]
	bl	_i915_mmio_reg_valid
	add	x25, x25, #16
	cbz	x0, LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x25, #-12]
	cmp	w8, w21
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x25]
	cbz	w8, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldur	w0, [x25, #-4]
	bl	_i915_mmio_reg_offset
	str	w0, [x22]
	ldur	w1, [x25, #-4]
	mov	x0, x20
	bl	_vgpu_vreg_t
	ldur	w8, [x25, #-8]
	orr	w2, w0, w8, lsl #16
	add	x26, x22, #8
	str	w2, [x22, #4]
	ldr	w1, [x22]
	ldr	w3, [x20]
	mov	x0, x23
	mov	x4, x21
	bl	_gvt_dbg_core
	mov	x22, x26
	b	LBB0_8
LBB0_12:
Lloh4:
	adrp	x8, _MI_NOOP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MI_NOOP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x22], #4
	mov	x0, x19
	mov	x1, x22
	bl	_intel_ring_advance
	ldr	x8, [x19]
	ldr	x2, [x8, #8]
	ldr	w1, [x24]
	mov	x0, x19
	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
	br	x2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EMIT_BARRIER,4,2               ; @EMIT_BARRIER
	.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_context_mmio_for_inhibit
.subsections_via_symbols
