	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_mocs_init_l3cc_table
_intel_mocs_init_l3cc_table:            ## @intel_mocs_init_l3cc_table
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	leaq	-64(%rbp), %rsi
	callq	_get_mocs_settings
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	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
	movl	-64(%rbp), %eax
	leal	1(%rax), %ecx
	xorl	%r12d, %r12d
	cmpl	$3, %ecx
	jb	LBB0_4
## %bb.2:
	xorl	%r12d, %r12d
	movl	$1, %ebx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rbx), %esi
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_get_entry_l3cc
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_get_entry_l3cc
	movl	%eax, %r15d
	movl	%r12d, %edi
	callq	_GEN9_LNCFCMOCS
	movl	%eax, %r13d
	leaq	-64(%rbp), %rdi
	movl	%r14d, %esi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_l3cc_combine
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_intel_uncore_write
	incl	%r12d
	movl	-64(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addl	$2, %ebx
	cmpl	%ecx, %r12d
	jb	LBB0_3
LBB0_4:
	movq	%r14, %r13
	testb	$1, %al
	je	LBB0_6
## %bb.5:
	leal	(%r12,%r12), %esi
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	callq	_get_entry_l3cc
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_GEN9_LNCFCMOCS
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_l3cc_combine
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_intel_uncore_write
	incl	%r12d
LBB0_6:
	movl	-60(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, %r12d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jae	LBB0_9
## %bb.7:
	leaq	-64(%rbp), %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	_GEN9_LNCFCMOCS
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r15d, %edx
	callq	_l3cc_combine
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_intel_uncore_write
	incl	%r12d
	movl	-60(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, %r12d
	jb	LBB0_8
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_MOCS_PTE,8,3              ## @I915_MOCS_PTE
	.no_dead_strip	_intel_mocs_init_l3cc_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_mocs_init_l3cc_table
_intel_mocs_init_l3cc_table:            ; @intel_mocs_init_l3cc_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, [x0]
	mov	x1, sp
	bl	_get_mocs_settings
	cbz	w0, LBB0_10
; %bb.1:
	ldr	x8, [sp, #8]
Lloh0:
	adrp	x9, _I915_MOCS_PTE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I915_MOCS_PTE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w20, [x8, x9, lsl #2]
	ldr	w8, [sp]
	add	w9, w8, #1
	cmp	w9, #3
	b.hs	LBB0_3
; %bb.2:
	mov	w21, #0
	b	LBB0_5
LBB0_3:
	mov	w21, #0
	mov	w22, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w1, w22, #1
	mov	x0, sp
	bl	_get_entry_l3cc
	mov	x23, x0
	mov	x0, sp
	mov	x1, x22
	bl	_get_entry_l3cc
	mov	x24, x0
	mov	x0, x21
	bl	_GEN9_LNCFCMOCS
	mov	x25, x0
	mov	x0, sp
	mov	x1, x23
	mov	x2, x24
	bl	_l3cc_combine
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_intel_uncore_write
	add	w21, w21, #1
	ldr	w8, [sp]
	cmp	w8, #0
	cinc	w9, w8, lt
	add	w22, w22, #2
	cmp	w21, w9, asr #1
	b.lo	LBB0_4
LBB0_5:
	tbz	w8, #0, LBB0_9
; %bb.6:
	lsl	w1, w21, #1
	mov	x0, sp
	bl	_get_entry_l3cc
	mov	x22, x0
	mov	x0, x21
	bl	_GEN9_LNCFCMOCS
	mov	x23, x0
	mov	x0, sp
	mov	x1, x22
	mov	x2, x20
	bl	_l3cc_combine
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	b	LBB0_8
LBB0_7:
	mov	x0, x21
	bl	_GEN9_LNCFCMOCS
	mov	x22, x0
	mov	x0, sp
	mov	x1, x20
	mov	x2, x20
	bl	_l3cc_combine
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
LBB0_8:
	bl	_intel_uncore_write
	add	w21, w21, #1
LBB0_9:
	ldr	w8, [sp, #4]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w21, w8, asr #1
	b.lo	LBB0_7
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_MOCS_PTE,8,3              ; @I915_MOCS_PTE
	.no_dead_strip	_intel_mocs_init_l3cc_table
.subsections_via_symbols
