	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_mocs_settings
_get_mocs_settings:                     ## @get_mocs_settings
	.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
	pushq	%rax
	.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), %r14
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$12, %eax
	jl	LBB0_2
## %bb.1:
	movq	_tigerlake_mocs_table@GOTPCREL(%rip), %rbx
	jmp	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	movl	$11, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	_icelake_mocs_table@GOTPCREL(%rip), %rbx
LBB0_4:
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, (%r12)
	movq	(%rbx), %rax
	movq	%rax, 8(%r12)
	movq	_GEN11_NUM_MOCS_ENTRIES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
LBB0_5:
	movl	$1, %r15d
LBB0_6:
	movq	%r14, %rdi
	movl	$9, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	cmpl	$0, (%r12)
	jle	LBB0_12
## %bb.8:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%r14,4), %r13d
	movl	$1, %edi
	callq	_L3_ESC
	movl	%eax, %ebx
	movl	$7, %edi
	callq	_L3_SCC
	orl	%eax, %ebx
	andl	%r13d, %ebx
	movl	%ebx, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%r14
	movslq	(%r12), %rax
	cmpq	%rax, %r14
	jl	LBB0_9
	jmp	LBB0_12
LBB0_11:
	xorl	%r15d, %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r14, %rdi
	callq	_IS_GEN9_BC
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_IS_CANNONLAKE
	testq	%rax, %rax
	je	LBB0_17
LBB0_15:
	movq	_skylake_mocs_table@GOTPCREL(%rip), %rbx
LBB0_16:
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, (%r12)
	movq	_GEN9_NUM_MOCS_ENTRIES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	movq	(%rbx), %rax
	movq	%rax, 8(%r12)
	jmp	LBB0_5
LBB0_17:
	movq	%r14, %rdi
	callq	_IS_GEN9_LP
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	_broxton_mocs_table@GOTPCREL(%rip), %rbx
	jmp	LBB0_16
LBB0_19:
	movq	%r14, %rdi
	callq	_INTEL_GEN
	xorl	%edi, %edi
	cmpl	$9, %eax
	setge	%dil
	leaq	L_.str(%rip), %rsi
	callq	_WARN_ONCE
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_tigerlake_mocs_table,8,3       ## @tigerlake_mocs_table
	.comm	_GEN11_NUM_MOCS_ENTRIES,8,3     ## @GEN11_NUM_MOCS_ENTRIES
	.comm	_icelake_mocs_table,8,3         ## @icelake_mocs_table
	.comm	_skylake_mocs_table,8,3         ## @skylake_mocs_table
	.comm	_GEN9_NUM_MOCS_ENTRIES,8,3      ## @GEN9_NUM_MOCS_ENTRIES
	.comm	_broxton_mocs_table,8,3         ## @broxton_mocs_table
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Platform that should have a MOCS table does not.\n"

	.no_dead_strip	_get_mocs_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_mocs_settings
_get_mocs_settings:                     ; @get_mocs_settings
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	ldr	x20, [x0]
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #12
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x21, _tigerlake_mocs_table@GOTPAGE
Lloh1:
	ldr	x21, [x21, _tigerlake_mocs_table@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	mov	w1, #11
	bl	_IS_GEN
	cbz	x0, LBB0_13
; %bb.3:
Lloh2:
	adrp	x21, _icelake_mocs_table@GOTPAGE
Lloh3:
	ldr	x21, [x21, _icelake_mocs_table@GOTPAGEOFF]
LBB0_4:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	str	w0, [x19]
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _GEN11_NUM_MOCS_ENTRIES@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GEN11_NUM_MOCS_ENTRIES@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	stp	x8, x9, [x19, #8]
LBB0_5:
	mov	w21, #1
LBB0_6:
	mov	x0, x20
	mov	w1, #9
	bl	_IS_GEN
	cbz	x0, LBB0_12
; %bb.7:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:
	mov	x22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w23, [x8, x22, lsl #2]
	mov	w0, #1
	bl	_L3_ESC
	mov	x20, x0
	mov	w0, #7
	bl	_L3_SCC
	orr	w8, w0, w20
	and	w0, w8, w23
	bl	_WARN_ON
	cbnz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_9
	b	LBB0_12
LBB0_11:
	mov	w21, #0
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x0, x20
	bl	_IS_GEN9_BC
	cbnz	x0, LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_IS_CANNONLAKE
	cbz	x0, LBB0_17
LBB0_15:
Lloh7:
	adrp	x21, _skylake_mocs_table@GOTPAGE
Lloh8:
	ldr	x21, [x21, _skylake_mocs_table@GOTPAGEOFF]
LBB0_16:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
Lloh9:
	adrp	x8, _GEN9_NUM_MOCS_ENTRIES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GEN9_NUM_MOCS_ENTRIES@GOTPAGEOFF]
	str	w0, [x19]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x21]
	stp	x9, x8, [x19, #8]
	b	LBB0_5
LBB0_17:
	mov	x0, x20
	bl	_IS_GEN9_LP
	cbz	x0, LBB0_19
; %bb.18:
Lloh12:
	adrp	x21, _broxton_mocs_table@GOTPAGE
Lloh13:
	ldr	x21, [x21, _broxton_mocs_table@GOTPAGEOFF]
	b	LBB0_16
LBB0_19:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #8
	cset	w0, gt
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN_ONCE
	mov	w21, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_tigerlake_mocs_table,8,3       ; @tigerlake_mocs_table
	.comm	_GEN11_NUM_MOCS_ENTRIES,8,3     ; @GEN11_NUM_MOCS_ENTRIES
	.comm	_icelake_mocs_table,8,3         ; @icelake_mocs_table
	.comm	_skylake_mocs_table,8,3         ; @skylake_mocs_table
	.comm	_GEN9_NUM_MOCS_ENTRIES,8,3      ; @GEN9_NUM_MOCS_ENTRIES
	.comm	_broxton_mocs_table,8,3         ; @broxton_mocs_table
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Platform that should have a MOCS table does not.\n"

	.no_dead_strip	_get_mocs_settings
.subsections_via_symbols
