	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_mocs_init_engine         ## -- Begin function intel_mocs_init_engine
	.p2align	4, 0x90
_intel_mocs_init_engine:                ## @intel_mocs_init_engine
	.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, %r12
	movq	8(%rdi), %rbx
	movq	8(%rbx), %r14
	movl	(%rbx), %edi
	callq	_HAS_GLOBAL_MOCS_REGISTERS
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_FORCEWAKE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_assert_forcewakes_active
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_mocs_settings
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	-56(%rbp), %rax
	movq	_I915_MOCS_PTE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, -64(%rbp)
	je	LBB0_3
## %bb.7:
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_get_entry_control
	movl	%eax, %r15d
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_mocs_register
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_intel_uncore_write_fw
	incl	%ebx
	cmpl	-64(%rbp), %ebx
	jb	LBB0_8
	jmp	LBB0_4
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	cmpl	-60(%rbp), %ebx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jae	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_mocs_register
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_intel_uncore_write_fw
	incl	%ebx
	cmpl	-60(%rbp), %ebx
	jb	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_FORCEWAKE_ALL,4,2              ## @FORCEWAKE_ALL
	.comm	_I915_MOCS_PTE,8,3              ## @I915_MOCS_PTE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_mocs_init_engine         ; -- Begin function intel_mocs_init_engine
	.p2align	2
_intel_mocs_init_engine:                ; @intel_mocs_init_engine
	.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	x19, x0
	ldr	x21, [x0, #8]
	ldr	x20, [x21, #8]
	ldr	w0, [x21]
	bl	_HAS_GLOBAL_MOCS_REGISTERS
	cbnz	x0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _FORCEWAKE_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FORCEWAKE_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_assert_forcewakes_active
	mov	x1, sp
	mov	x0, x21
	bl	_get_mocs_settings
	cbz	w0, LBB0_8
; %bb.2:
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, _I915_MOCS_PTE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I915_MOCS_PTE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w21, [x8, x9, lsl #2]
	ldr	w8, [sp]
	cbz	w8, LBB0_5
; %bb.3:
	mov	w22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	mov	x1, x22
	bl	_get_entry_control
	mov	x23, x0
	ldr	w0, [x19]
	mov	x1, x22
	bl	_mocs_register
	mov	x1, x0
	mov	x0, x20
	mov	x2, x23
	bl	_intel_uncore_write_fw
	add	w22, w22, #1
	ldr	w8, [sp]
	cmp	w22, w8
	b.lo	LBB0_4
	b	LBB0_7
LBB0_5:
	mov	w22, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19]
	mov	x1, x22
	bl	_mocs_register
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_intel_uncore_write_fw
	add	w22, w22, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #4]
	cmp	w22, w8
	b.lo	LBB0_6
LBB0_8:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FORCEWAKE_ALL,4,2              ; @FORCEWAKE_ALL
	.comm	_I915_MOCS_PTE,8,3              ; @I915_MOCS_PTE
.subsections_via_symbols
