	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_render_mocs
_load_render_mocs:                      ## @load_render_mocs
	.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	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	8(%rax), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.1:
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_8
## %bb.2:
	xorl	%r15d, %r15d
	movq	_GEN9_MOCS_SIZE@GOTPCREL(%rip), %r12
	movq	_gen9_render_mocs@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_HAS_ENGINE
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, (%r12)
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	callq	_I915_READ_FW
	movq	16(%r14), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	%rax, (%rcx,%r13,8)
	addl	$4, %ebx
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jl	LBB0_6
	jmp	LBB0_7
LBB0_8:
	movq	_GEN9_MOCS_SIZE@GOTPCREL(%rip), %r14
	cmpl	$2, (%r14)
	jl	LBB0_11
## %bb.9:
	movl	$45088, %r15d                   ## imm = 0xB020
	xorl	%ebx, %ebx
	movq	_gen9_render_mocs@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_I915_READ_FW
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	addl	$4, %r15d
	incq	%rbx
	movl	(%r14), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_11:
	movq	_gen9_render_mocs@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN9_MOCS_SIZE,4,2             ## @GEN9_MOCS_SIZE
	.comm	_gen9_render_mocs,24,3          ## @gen9_render_mocs
	.no_dead_strip	_load_render_mocs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_render_mocs
_load_render_mocs:                      ; @load_render_mocs
	.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
	ldr	x8, [x0]
	ldr	x23, [x8, #8]
	cbz	x23, LBB0_12
; %bb.1:
	ldr	w24, [x8]
Lloh0:
	adrp	x22, _GEN9_MOCS_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GEN9_MOCS_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x21, _gen9_render_mocs@GOTPAGE
Lloh3:
	ldr	x21, [x21, _gen9_render_mocs@GOTPAGEOFF]
	cmp	w24, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x19, x0
	mov	x20, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	cmp	x20, x24
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x19
	mov	x1, x20
	bl	_HAS_ENGINE
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, #0
	ldr	w26, [x23, x20, lsl #2]
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w0, w26
	bl	_I915_READ_FW
	ldr	x8, [x21, #16]
	ldr	x8, [x8, x20, lsl #3]
	str	x0, [x8, x25, lsl #3]
	add	w26, w26, #4
	add	x25, x25, #1
	ldrsw	x8, [x22]
	cmp	x25, x8
	b.lt	LBB0_7
	b	LBB0_3
LBB0_8:
	ldr	w8, [x22]
	cmp	w8, #1
	b.le	LBB0_11
; %bb.9:
	mov	x20, #0
	mov	w19, #45088
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_I915_READ_FW
	ldr	x8, [x21, #8]
	str	x0, [x8, x20, lsl #3]
	add	x19, x19, #4
	add	x20, x20, #1
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	x20, w8, sxtw
	b.lt	LBB0_10
LBB0_11:
	mov	w8, #1
	str	w8, [x21]
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN9_MOCS_SIZE,4,2             ; @GEN9_MOCS_SIZE
	.comm	_gen9_render_mocs,24,3          ; @gen9_render_mocs
	.no_dead_strip	_load_render_mocs
.subsections_via_symbols
