	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_mocs_emit                ## -- Begin function intel_mocs_emit
	.p2align	4, 0x90
_intel_mocs_emit:                       ## @intel_mocs_emit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_HAS_GLOBAL_MOCS_REGISTERS
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.1:
	movq	(%rbx), %rcx
	movq	(%rcx), %rdx
	movq	_RENDER_CLASS@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_6
## %bb.2:
	movl	8(%rcx), %edi
	leaq	-16(%rbp), %rsi
	callq	_get_mocs_settings
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_emit_mocs_control_table
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_emit_mocs_l3cc_table
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RENDER_CLASS,8,3               ## @RENDER_CLASS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_mocs_emit                ; -- Begin function intel_mocs_emit
	.p2align	2
_intel_mocs_emit:                       ; @intel_mocs_emit
	.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	x19, x0
	ldr	w0, [x0, #8]
	bl	_HAS_GLOBAL_MOCS_REGISTERS
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _RENDER_CLASS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _RENDER_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.2:
	ldr	w0, [x8, #8]
	add	x1, sp, #8
	bl	_get_mocs_settings
	cbz	x0, LBB0_5
; %bb.3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_emit_mocs_control_table
	cbnz	w0, LBB0_6
; %bb.4:
	add	x1, sp, #8
	mov	x0, x19
	bl	_emit_mocs_l3cc_table
	cbnz	w0, LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RENDER_CLASS,8,3               ; @RENDER_CLASS
.subsections_via_symbols
