	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wa_init_mcr
_wa_init_mcr:                           ## @wa_init_mcr
	.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, %rbx
	movq	%rdi, %r15
	callq	_RUNTIME_INFO
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_INTEL_GEN
	xorl	%edi, %edi
	cmpl	$10, %eax
	setl	%dil
	callq	_GEM_BUG_ON
	movq	%r15, %rdi
	callq	_INTEL_GEN
	movl	$-1, %r13d
	cmpl	$10, %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jl	LBB0_3
## %bb.1:
	movl	(%r12), %edi
	callq	_is_power_of_2
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_GEN10_MIRROR_FUSE3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_intel_uncore_read
	movl	%eax, %ebx
	movq	_GEN10_L3BANK_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_DRM_DEBUG_DRIVER
	movq	_GEN10_L3BANK_PAIR_COUNT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %r13d
	shll	%cl, %r13d
	orl	%ebx, %r13d
	notl	%r13d
LBB0_3:
	movl	(%r12), %edi
	callq	_fls
	movl	%eax, %ebx
	decl	%ebx
	movq	8(%r12), %rdi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setae	%dil
	callq	_GEM_BUG_ON
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	andl	%r13d, %edi
	callq	_fls
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %edx
	callq	_DRM_WARN
	movl	%r13d, %edi
	callq	_fls
	movl	%eax, %r14d
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
LBB0_5:
	decl	%r14d
	movq	%r15, %rdi
	callq	_INTEL_GEN
	movl	%ebx, %edi
	cmpl	$11, %eax
	jl	LBB0_7
## %bb.6:
	callq	_GEN11_MCR_SLICE
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_GEN11_MCR_SUBSLICE
	movl	%eax, %r14d
	orl	%r15d, %r14d
	movq	_GEN11_MCR_SUBSLICE_MASK@GOTPCREL(%rip), %rcx
	movq	_GEN11_MCR_SLICE_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	callq	_GEN8_MCR_SLICE
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_GEN8_MCR_SUBSLICE
	movl	%eax, %r14d
	orl	%r15d, %r14d
	movq	_GEN8_MCR_SUBSLICE_MASK@GOTPCREL(%rip), %rcx
	movq	_GEN8_MCR_SLICE_MASK@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	callq	_DRM_DEBUG_DRIVER
	movq	_GEN8_MCR_SELECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wa_write_masked_or             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN10_MIRROR_FUSE3,4,2         ## @GEN10_MIRROR_FUSE3
	.comm	_GEN10_L3BANK_MASK,4,2          ## @GEN10_L3BANK_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"L3 fuse = %x\n"

	.comm	_GEN10_L3BANK_PAIR_COUNT,4,2    ## @GEN10_L3BANK_PAIR_COUNT
L_.str.1:                               ## @.str.1
	.asciz	"No common index found between subslice mask %x and L3 bank mask %x!\n"

	.comm	_GEN11_MCR_SLICE_MASK,4,2       ## @GEN11_MCR_SLICE_MASK
	.comm	_GEN11_MCR_SUBSLICE_MASK,4,2    ## @GEN11_MCR_SUBSLICE_MASK
	.comm	_GEN8_MCR_SLICE_MASK,4,2        ## @GEN8_MCR_SLICE_MASK
	.comm	_GEN8_MCR_SUBSLICE_MASK,4,2     ## @GEN8_MCR_SUBSLICE_MASK
L_.str.2:                               ## @.str.2
	.asciz	"MCR slice/subslice = %x\n"

	.comm	_GEN8_MCR_SELECTOR,4,2          ## @GEN8_MCR_SELECTOR
	.no_dead_strip	_wa_init_mcr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wa_init_mcr
_wa_init_mcr:                           ; @wa_init_mcr
	.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
	mov	x20, x0
	bl	_RUNTIME_INFO
	mov	x21, x0
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #10
	cset	w0, lt
	bl	_GEM_BUG_ON
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #10
	b.lt	LBB0_3
; %bb.1:
	ldr	w0, [x21]
	bl	_is_power_of_2
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _GEN10_MIRROR_FUSE3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN10_MIRROR_FUSE3@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_intel_uncore_read
Lloh3:
	adrp	x8, _GEN10_L3BANK_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN10_L3BANK_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w22, w8, w0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_DRM_DEBUG_DRIVER
Lloh8:
	adrp	x8, _GEN10_L3BANK_PAIR_COUNT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GEN10_L3BANK_PAIR_COUNT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	w8, w22, w8
	orr	w8, w8, w22
	mvn	w23, w8
	b	LBB0_4
LBB0_3:
	mov	w23, #-1
LBB0_4:
	ldr	w0, [x21]
	bl	_fls
	sub	w22, w0, #1
	ldr	x0, [x21, #8]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	cset	w0, hs
	bl	_GEM_BUG_ON
	ldr	x8, [x21, #8]
	ldr	w8, [x8, w22, uxtw #2]
	and	w0, w8, w23
	bl	_fls
	mov	x24, x0
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	x8, [x21, #8]
	ldr	w1, [x8, x22, lsl #2]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_DRM_WARN
	mov	x0, x23
	bl	_fls
	mov	x24, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
LBB0_6:
	sub	w21, w24, #1
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #11
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_GEN11_MCR_SLICE
	mov	x20, x0
	mov	x0, x21
	bl	_GEN11_MCR_SUBSLICE
	orr	w20, w0, w20
Lloh13:
	adrp	x8, _GEN11_MCR_SUBSLICE_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GEN11_MCR_SUBSLICE_MASK@GOTPAGEOFF]
Lloh15:
	adrp	x9, _GEN11_MCR_SLICE_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GEN11_MCR_SLICE_MASK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	mov	x0, x22
	bl	_GEN8_MCR_SLICE
	mov	x20, x0
	mov	x0, x21
	bl	_GEN8_MCR_SUBSLICE
	orr	w20, w0, w20
Lloh17:
	adrp	x8, _GEN8_MCR_SUBSLICE_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GEN8_MCR_SUBSLICE_MASK@GOTPAGEOFF]
Lloh19:
	adrp	x9, _GEN8_MCR_SLICE_MASK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _GEN8_MCR_SLICE_MASK@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	ldr	w8, [x8]
	orr	w21, w8, w9
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG_DRIVER
Lloh23:
	adrp	x8, _GEN8_MCR_SELECTOR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GEN8_MCR_SELECTOR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	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	_wa_write_masked_or
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN10_MIRROR_FUSE3,4,2         ; @GEN10_MIRROR_FUSE3
	.comm	_GEN10_L3BANK_MASK,4,2          ; @GEN10_L3BANK_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"L3 fuse = %x\n"

	.comm	_GEN10_L3BANK_PAIR_COUNT,4,2    ; @GEN10_L3BANK_PAIR_COUNT
l_.str.1:                               ; @.str.1
	.asciz	"No common index found between subslice mask %x and L3 bank mask %x!\n"

	.comm	_GEN11_MCR_SLICE_MASK,4,2       ; @GEN11_MCR_SLICE_MASK
	.comm	_GEN11_MCR_SUBSLICE_MASK,4,2    ; @GEN11_MCR_SUBSLICE_MASK
	.comm	_GEN8_MCR_SLICE_MASK,4,2        ; @GEN8_MCR_SLICE_MASK
	.comm	_GEN8_MCR_SUBSLICE_MASK,4,2     ; @GEN8_MCR_SUBSLICE_MASK
l_.str.2:                               ; @.str.2
	.asciz	"MCR slice/subslice = %x\n"

	.comm	_GEN8_MCR_SELECTOR,4,2          ; @GEN8_MCR_SELECTOR
	.no_dead_strip	_wa_init_mcr
.subsections_via_symbols
