	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_gvt_init_engine_mmio_context ## -- Begin function intel_gvt_init_engine_mmio_context
	.p2align	4, 0x90
_intel_gvt_init_engine_mmio_context:    ## @intel_gvt_init_engine_mmio_context
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	48(%rdi), %edi
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jl	LBB0_2
## %bb.1:
	movq	_gen9_engine_mmio_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_gen8_tlb_mmio_offset_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 24(%r14)
	callq	_ARRAY_SIZE
	movq	%rax, 16(%r14)
	movq	_gen9_mocs_mmio_offset_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 40(%r14)
	callq	_ARRAY_SIZE
	movq	%rax, 32(%r14)
	jmp	LBB0_3
LBB0_2:
	movq	_gen8_engine_mmio_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_gen8_tlb_mmio_offset_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 24(%r14)
	callq	_ARRAY_SIZE
	movq	%rax, 16(%r14)
LBB0_3:
	movq	8(%r14), %rbx
	movl	8(%rbx), %edi
	callq	_i915_mmio_reg_valid
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	addq	$32, %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %edi
	callq	_i915_mmio_reg_valid
	addq	$24, %rbx
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -16(%rbx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %rax
	movq	-32(%rbx), %rcx
	incl	(%rax,%rcx,4)
	movl	-24(%rbx), %esi
	movq	%r14, %rdi
	callq	_intel_gvt_mmio_set_in_ctx
	jmp	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gen9_engine_mmio_list,8,3      ## @gen9_engine_mmio_list
	.comm	_gen8_tlb_mmio_offset_list,8,3  ## @gen8_tlb_mmio_offset_list
	.comm	_gen9_mocs_mmio_offset_list,8,3 ## @gen9_mocs_mmio_offset_list
	.comm	_gen8_engine_mmio_list,8,3      ## @gen8_engine_mmio_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_gvt_init_engine_mmio_context ; -- Begin function intel_gvt_init_engine_mmio_context
	.p2align	2
_intel_gvt_init_engine_mmio_context:    ; @intel_gvt_init_engine_mmio_context
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #48]
	bl	_INTEL_GEN
	cmp	w0, #9
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _gen9_engine_mmio_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gen9_engine_mmio_list@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh3:
	adrp	x8, _gen8_tlb_mmio_offset_list@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gen8_tlb_mmio_offset_list@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	str	x0, [x19, #24]
	bl	_ARRAY_SIZE
	str	x0, [x19, #16]
Lloh6:
	adrp	x8, _gen9_mocs_mmio_offset_list@GOTPAGE
Lloh7:
	ldr	x8, [x8, _gen9_mocs_mmio_offset_list@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	str	x0, [x19, #40]
	bl	_ARRAY_SIZE
	str	x0, [x19, #32]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _gen8_engine_mmio_list@GOTPAGE
Lloh10:
	ldr	x8, [x8, _gen8_engine_mmio_list@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh12:
	adrp	x8, _gen8_tlb_mmio_offset_list@GOTPAGE
Lloh13:
	ldr	x8, [x8, _gen8_tlb_mmio_offset_list@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	str	x0, [x19, #24]
	bl	_ARRAY_SIZE
	str	x0, [x19, #16]
LBB0_3:
	ldr	x20, [x19, #8]
	ldr	w0, [x20, #8]
	bl	_i915_mmio_reg_valid
	cbz	x0, LBB0_8
; %bb.4:
	add	x20, x20, #16
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x20, #16]
	bl	_i915_mmio_reg_valid
	add	x20, x20, #24
	cbz	x0, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	ldur	x9, [x20, #-16]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	ldur	w1, [x20, #-8]
	mov	x0, x19
	bl	_intel_gvt_mmio_set_in_ctx
	b	LBB0_5
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_gen9_engine_mmio_list,8,3      ; @gen9_engine_mmio_list
	.comm	_gen8_tlb_mmio_offset_list,8,3  ; @gen8_tlb_mmio_offset_list
	.comm	_gen9_mocs_mmio_offset_list,8,3 ; @gen9_mocs_mmio_offset_list
	.comm	_gen8_engine_mmio_list,8,3      ; @gen8_engine_mmio_list
.subsections_via_symbols
