	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emit_mocs_control_table
_emit_mocs_control_table:               ## @emit_mocs_control_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, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %r15d
	movl	(%rsi), %eax
	xorl	%edi, %edi
	cmpl	4(%rsi), %eax
	setg	%dil
	callq	_GEM_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	8(%r12), %rax
	movq	_I915_MOCS_PTE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r13
	movl	4(%r12), %eax
	leal	(%rax,%rax), %esi
	addl	$2, %esi
	movq	%rbx, %rdi
	callq	_intel_ring_begin
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.12:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %edi
	callq	_MI_LOAD_REGISTER_IMM
	cltq
	movq	%r14, %r13
	addq	$8, %r13
	movq	%rax, (%r14)
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_get_entry_control
	movq	%rax, %r14
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_mocs_register
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movq	%rax, (%r13)
	movq	%r14, 8(%r13)
	addq	$16, %r13
	incl	%ebx
	cmpl	(%r12), %ebx
	jb	LBB0_11
## %bb.6:
	cmpl	4(%r12), %ebx
	jb	LBB0_7
	jmp	LBB0_9
LBB0_5:
	xorl	%ebx, %ebx
	cmpl	4(%r12), %ebx
	jae	LBB0_9
LBB0_7:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_mocs_register
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movq	%rax, (%r13)
	movq	%r14, 8(%r13)
	addq	$16, %r13
	incl	%ebx
	cmpl	4(%r12), %ebx
	jb	LBB0_8
LBB0_9:
	movq	_MI_NOOP@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, (%r13)
	addq	$8, %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_intel_ring_advance
	xorl	%eax, %eax
	jmp	LBB0_2
	.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_control_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_control_table
_emit_mocs_control_table:               ; @emit_mocs_control_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
	ldr	x8, [x0]
	ldr	w21, [x8]
	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:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _I915_MOCS_PTE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I915_MOCS_PTE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x25, [x8, x9, lsl #3]
	ldr	w8, [x20, #4]
	lsl	w8, w8, #1
	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	w0, [x20, #4]
	bl	_MI_LOAD_REGISTER_IMM
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x22], #8
	ldr	w8, [x20]
	cbz	w8, LBB0_9
; %bb.6:
	mov	w23, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_get_entry_control
	mov	x24, x0
	mov	x0, x21
	mov	x1, x23
	bl	_mocs_register
	bl	_i915_mmio_reg_offset
	add	x8, x22, #16
	stp	x0, x24, [x22]
	add	w23, w23, #1
	ldr	w9, [x20]
	mov	x22, x8
	cmp	w23, w9
	b.lo	LBB0_7
; %bb.8:
	mov	x22, x8
	b	LBB0_10
LBB0_9:
	mov	w23, #0
LBB0_10:
	ldr	w8, [x20, #4]
	cmp	w23, w8
	b.hs	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_mocs_register
	bl	_i915_mmio_reg_offset
	add	x8, x22, #16
	stp	x0, x25, [x22]
	add	w23, w23, #1
	ldr	w9, [x20, #4]
	mov	x22, x8
	cmp	w23, w9
	b.lo	LBB0_11
; %bb.12:
	mov	x22, x8
LBB0_13:
Lloh6:
	adrp	x8, _MI_NOOP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MI_NOOP@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	str	x8, [x22], #8
	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_control_table
.subsections_via_symbols
