	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_mocs_init_global
_intel_mocs_init_global:                ## @intel_mocs_init_global
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	(%rdi), %edi
	callq	_HAS_GLOBAL_MOCS_REGISTERS
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_mocs_settings
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	-32(%rbp), %eax
	xorl	%edi, %edi
	cmpl	-28(%rbp), %eax
	seta	%dil
	callq	_GEM_DEBUG_WARN_ON
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	cmpl	$0, -32(%rbp)
	je	LBB0_3
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_GEN12_GLOBAL_MOCS
	movq	-24(%rbp), %rcx
	movl	(%rcx,%rbx,4), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_intel_uncore_write
	incq	%rbx
	movl	-32(%rbp), %eax
	cmpq	%rax, %rbx
	jb	LBB0_8
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	_GEN12_GLOBAL_MOCS
	movq	-24(%rbp), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_intel_uncore_write
	incl	%ebx
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	-28(%rbp), %ebx
	jb	LBB0_4
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_intel_mocs_init_global
.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_global
_intel_mocs_init_global:                ; @intel_mocs_init_global
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x0]
	bl	_HAS_GLOBAL_MOCS_REGISTERS
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	mov	x1, sp
	mov	x0, x20
	bl	_get_mocs_settings
	cbz	w0, LBB0_8
; %bb.1:
	ldp	w8, w9, [sp]
	cmp	w8, w9
	cset	w0, hi
	bl	_GEM_DEBUG_WARN_ON
	cbnz	x0, LBB0_8
; %bb.2:
	ldr	w8, [sp]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_GEN12_GLOBAL_MOCS
	mov	x1, x0
	ldr	x8, [sp, #8]
	ldr	w2, [x8, x20, lsl #2]
	mov	x0, x19
	bl	_intel_uncore_write
	add	x20, x20, #1
	ldr	w8, [sp]
	cmp	x20, x8
	b.lo	LBB0_4
	b	LBB0_7
LBB0_5:
	mov	w20, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_GEN12_GLOBAL_MOCS
	mov	x1, x0
	ldr	x8, [sp, #8]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_intel_uncore_write
	add	w20, w20, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #4]
	cmp	w20, w8
	b.lo	LBB0_6
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_intel_mocs_init_global
.subsections_via_symbols
