	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emit_mocs_l3cc_table
_emit_mocs_l3cc_table:                  ## @emit_mocs_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rsi), %eax
	xorl	%edi, %edi
	cmpl	4(%rsi), %eax
	setg	%dil
	callq	_GEM_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	8(%r12), %rax
	movq	_I915_MOCS_PTE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r14d
	movl	4(%r12), %esi
	addl	$2, %esi
	movq	%r15, %rdi
	callq	_intel_ring_begin
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.14:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movl	4(%r12), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	callq	_MI_LOAD_REGISTER_IMM
	movq	%rbx, %r13
	addq	$4, %r13
	movl	%eax, (%rbx)
	movl	(%r12), %eax
	leal	1(%rax), %ecx
	xorl	%ebx, %ebx
	cmpl	$3, %ecx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	jb	LBB0_7
## %bb.4:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%r14), %esi
	movq	%r12, %rdi
	callq	_get_entry_l3cc
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_get_entry_l3cc
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_GEN9_LNCFCMOCS
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, (%r13)
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	callq	_l3cc_combine
	movl	%eax, 4(%r13)
	addq	$8, %r13
	incl	%ebx
	movl	(%r12), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addl	$2, %r14d
	cmpl	%ecx, %ebx
	jb	LBB0_5
## %bb.6:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_7:
	testb	$1, %al
	je	LBB0_11
## %bb.8:
	leal	(%rbx,%rbx), %esi
	movq	%r12, %rdi
	callq	_get_entry_l3cc
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_GEN9_LNCFCMOCS
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, (%r13)
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_10
LBB0_9:
	movl	%ebx, %edi
	callq	_GEN9_LNCFCMOCS
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, (%r13)
	movq	%r12, %rdi
	movl	%r14d, %esi
LBB0_10:
	movl	%r14d, %edx
	callq	_l3cc_combine
	movl	%eax, 4(%r13)
	addq	$8, %r13
	incl	%ebx
LBB0_11:
	movl	4(%r12), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, %ebx
	jb	LBB0_9
## %bb.12:
	movq	_MI_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	addq	$4, %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_intel_ring_advance
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_I915_MOCS_PTE,8,3              ## @I915_MOCS_PTE
	.comm	_MI_NOOP,4,2                    ## @MI_NOOP
	.no_dead_strip	_emit_mocs_l3cc_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emit_mocs_l3cc_table
_emit_mocs_l3cc_table:                  ; @emit_mocs_l3cc_table
	.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	x20, x1
	mov	x19, x0
	ldp	w8, w9, [x1]
	cmp	w8, w9
	cset	w0, gt
	bl	_GEM_WARN_ON
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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_3:
Lloh3:
	adrp	x8, _I915_MOCS_PTE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I915_MOCS_PTE@GOTPAGEOFF]
	ldr	x9, [x20, #8]
Lloh5:
	ldr	x8, [x8]
	ldr	w21, [x9, x8, lsl #2]
	ldr	w8, [x20, #4]
	add	w1, w8, #2
	mov	x0, x19
	bl	_intel_ring_begin
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	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_5:
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	bl	_MI_LOAD_REGISTER_IMM
	str	w0, [x22], #4
	ldr	w8, [x20]
	add	w9, w8, #1
	cmp	w9, #3
	b.hs	LBB0_7
; %bb.6:
	mov	w23, #0
	tbnz	w8, #0, LBB0_10
	b	LBB0_11
LBB0_7:
	mov	w23, #0
	mov	w24, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	w1, w24, #1
	mov	x0, x20
	bl	_get_entry_l3cc
	mov	x25, x0
	mov	x0, x20
	mov	x1, x24
	bl	_get_entry_l3cc
	mov	x26, x0
	mov	x0, x23
	bl	_GEN9_LNCFCMOCS
	bl	_i915_mmio_reg_offset
	str	w0, [x22]
	mov	x0, x20
	mov	x1, x25
	mov	x2, x26
	bl	_l3cc_combine
	add	x9, x22, #8
	str	w0, [x22, #4]
	add	w23, w23, #1
	ldr	w8, [x20]
	cmp	w8, #0
	cinc	w10, w8, lt
	add	w24, w24, #2
	cmp	w23, w10, asr #1
	mov	x22, x9
	b.lo	LBB0_8
; %bb.9:
	mov	x22, x9
	tbz	w8, #0, LBB0_11
LBB0_10:
	lsl	w1, w23, #1
	mov	x0, x20
	bl	_get_entry_l3cc
	mov	x24, x0
	mov	x0, x23
	bl	_GEN9_LNCFCMOCS
	bl	_i915_mmio_reg_offset
	str	w0, [x22]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	bl	_l3cc_combine
	str	w0, [x22, #4]
	add	x22, x22, #8
	add	w23, w23, #1
LBB0_11:
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w23, w8, asr #1
	b.hs	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_GEN9_LNCFCMOCS
	bl	_i915_mmio_reg_offset
	str	w0, [x22]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x21
	bl	_l3cc_combine
	add	x8, x22, #8
	str	w0, [x22, #4]
	add	w23, w23, #1
	ldr	w9, [x20, #4]
	cmp	w9, #0
	cinc	w9, w9, lt
	cmp	w23, w9, asr #1
	mov	x22, x8
	b.lo	LBB0_12
; %bb.13:
	mov	x22, x8
LBB0_14:
Lloh6:
	adrp	x8, _MI_NOOP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MI_NOOP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x22], #4
	mov	x0, x19
	mov	x1, x22
	bl	_intel_ring_advance
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_I915_MOCS_PTE,8,3              ; @I915_MOCS_PTE
	.comm	_MI_NOOP,4,2                    ; @MI_NOOP
	.no_dead_strip	_emit_mocs_l3cc_table
.subsections_via_symbols
