	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remap_l3_slice
_remap_l3_slice:                        ## @remap_l3_slice
	.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	(%rdi), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r13
	testq	%r13, %r13
	je	LBB0_7
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_GEN7_L3LOG_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	leal	(%rcx,%rcx), %esi
	addl	$2, %esi
	callq	_intel_ring_begin
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movl	(%r12), %eax
	leal	3(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$2, %edi
	callq	_MI_LOAD_REGISTER_IMM
	movq	%r12, %rcx
	movq	%rbx, %r12
	addq	$4, %r12
	movl	%eax, (%rbx)
	cmpl	$4, (%rcx)
	jl	LBB0_6
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_GEN7_L3LOG
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, (%r12,%rbx,8)
	movl	(%r13,%rbx,4), %eax
	movl	%eax, 4(%r12,%rbx,8)
	incq	%rbx
	movq	_GEN7_L3LOG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rax
	addq	$8, %r14
	cmpq	%rax, %rbx
	jl	LBB0_4
## %bb.5:
	addq	%r14, %r12
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_6:
	movq	_MI_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	addq	$4, %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_intel_ring_advance
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN7_L3LOG_SIZE,4,2            ## @GEN7_L3LOG_SIZE
	.comm	_MI_NOOP,4,2                    ## @MI_NOOP
	.no_dead_strip	_remap_l3_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remap_l3_slice
_remap_l3_slice:                        ; @remap_l3_slice
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x23, [x8, w1, sxtw #3]
	cbz	x23, LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _GEN7_L3LOG_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GEN7_L3LOG_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	lsl	w8, w8, #1
	add	w1, w8, #2
	bl	_intel_ring_begin
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	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
	b	_PTR_ERR
LBB0_3:
	ldr	w8, [x24]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #2
	bl	_MI_LOAD_REGISTER_IMM
	str	w0, [x21], #4
	ldr	w8, [x24]
	cmp	w8, #4
	b.lt	LBB0_7
; %bb.4:
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_GEN7_L3LOG
	bl	_i915_mmio_reg_offset
	str	w0, [x21]
	ldr	w9, [x23, x22, lsl #2]
	add	x8, x21, #8
	str	w9, [x21, #4]
	add	x22, x22, #1
	ldr	w9, [x24]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #2
	cmp	x22, w9, sxtw
	mov	x21, x8
	b.lt	LBB0_5
; %bb.6:
	mov	x21, x8
LBB0_7:
Lloh2:
	adrp	x8, _MI_NOOP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MI_NOOP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x21], #4
	mov	x0, x19
	mov	x1, x21
	bl	_intel_ring_advance
LBB0_8:
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN7_L3LOG_SIZE,4,2            ; @GEN7_L3LOG_SIZE
	.comm	_MI_NOOP,4,2                    ; @MI_NOOP
	.no_dead_strip	_remap_l3_slice
.subsections_via_symbols
