	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_ctx_workarounds_init
_icl_ctx_workarounds_init:              ## @icl_ctx_workarounds_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	8(%rdi), %r15
	movq	_GEN8_L3CNTLREG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%rdi), %edi
	movl	%ebx, %esi
	callq	_intel_uncore_read
	movq	_GEN8_ERRDETBCTRL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_wa_write
	movq	_ICL_REVID_A0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_ICL_REVID_B0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_IS_ICL_REVID
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_GEN7_ROW_CHICKEN2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PUSH_CONSTANT_DEREF_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WA_SET_BIT_MASKED
LBB0_2:
	movq	_ICL_HDC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HDC_FORCE_NON_COHERENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WA_SET_BIT_MASKED
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%edx, %esi
	callq	_IS_ICL_REVID
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_GEN7_ROW_CHICKEN2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GEN11_TDL_CLOCK_GATING_FIX_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WA_SET_BIT_MASKED
LBB0_4:
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%edx, %esi
	callq	_IS_ICL_REVID
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_GEN11_COMMON_SLICE_CHICKEN3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GEN11_BLEND_EMB_FIX_DISABLE_IN_RCC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WA_SET_BIT_MASKED
LBB0_6:
	movq	_GEN10_CACHE_MODE_SS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_FLOAT_BLEND_OPTIMIZATION_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_wa_write_masked_or
	movq	_GEN8_CS_CHICKEN1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GEN9_PREEMPT_GPGPU_LEVEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GEN9_PREEMPT_GPGPU_THREAD_GROUP_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_WA_SET_FIELD_MASKED
	movq	_GEN10_SAMPLER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GEN11_SAMPLER_ENABLE_HEADLESS_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WA_SET_BIT_MASKED              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN8_L3CNTLREG,4,2             ## @GEN8_L3CNTLREG
	.comm	_GEN8_ERRDETBCTRL,4,2           ## @GEN8_ERRDETBCTRL
	.comm	_ICL_REVID_A0,4,2               ## @ICL_REVID_A0
	.comm	_ICL_REVID_B0,4,2               ## @ICL_REVID_B0
	.comm	_GEN7_ROW_CHICKEN2,4,2          ## @GEN7_ROW_CHICKEN2
	.comm	_PUSH_CONSTANT_DEREF_DISABLE,4,2 ## @PUSH_CONSTANT_DEREF_DISABLE
	.comm	_ICL_HDC_MODE,4,2               ## @ICL_HDC_MODE
	.comm	_HDC_FORCE_NON_COHERENT,4,2     ## @HDC_FORCE_NON_COHERENT
	.comm	_GEN11_TDL_CLOCK_GATING_FIX_DISABLE,4,2 ## @GEN11_TDL_CLOCK_GATING_FIX_DISABLE
	.comm	_GEN11_COMMON_SLICE_CHICKEN3,4,2 ## @GEN11_COMMON_SLICE_CHICKEN3
	.comm	_GEN11_BLEND_EMB_FIX_DISABLE_IN_RCC,4,2 ## @GEN11_BLEND_EMB_FIX_DISABLE_IN_RCC
	.comm	_GEN10_CACHE_MODE_SS,4,2        ## @GEN10_CACHE_MODE_SS
	.comm	_FLOAT_BLEND_OPTIMIZATION_ENABLE,4,2 ## @FLOAT_BLEND_OPTIMIZATION_ENABLE
	.comm	_GEN8_CS_CHICKEN1,4,2           ## @GEN8_CS_CHICKEN1
	.comm	_GEN9_PREEMPT_GPGPU_LEVEL_MASK,4,2 ## @GEN9_PREEMPT_GPGPU_LEVEL_MASK
	.comm	_GEN9_PREEMPT_GPGPU_THREAD_GROUP_LEVEL,4,2 ## @GEN9_PREEMPT_GPGPU_THREAD_GROUP_LEVEL
	.comm	_GEN10_SAMPLER_MODE,4,2         ## @GEN10_SAMPLER_MODE
	.comm	_GEN11_SAMPLER_ENABLE_HEADLESS_MSG,4,2 ## @GEN11_SAMPLER_ENABLE_HEADLESS_MSG
	.no_dead_strip	_icl_ctx_workarounds_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icl_ctx_workarounds_init
_icl_ctx_workarounds_init:              ; @icl_ctx_workarounds_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _GEN8_L3CNTLREG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN8_L3CNTLREG@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w0, [x0]
	mov	x1, x21
	bl	_intel_uncore_read
Lloh3:
	adrp	x8, _GEN8_ERRDETBCTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN8_ERRDETBCTRL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x21
	bl	_wa_write
Lloh6:
	adrp	x21, _ICL_REVID_A0@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ICL_REVID_A0@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _ICL_REVID_B0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ICL_REVID_B0@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_IS_ICL_REVID
Lloh11:
	adrp	x22, _GEN7_ROW_CHICKEN2@GOTPAGE
Lloh12:
	ldr	x22, [x22, _GEN7_ROW_CHICKEN2@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x22]
Lloh13:
	adrp	x8, _PUSH_CONSTANT_DEREF_DISABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PUSH_CONSTANT_DEREF_DISABLE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_WA_SET_BIT_MASKED
LBB0_2:
Lloh16:
	adrp	x8, _ICL_HDC_MODE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ICL_HDC_MODE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _HDC_FORCE_NON_COHERENT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HDC_FORCE_NON_COHERENT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_WA_SET_BIT_MASKED
	ldr	w1, [x21]
	mov	x0, x20
	mov	x2, x1
	bl	_IS_ICL_REVID
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x22]
Lloh22:
	adrp	x8, _GEN11_TDL_CLOCK_GATING_FIX_DISABLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GEN11_TDL_CLOCK_GATING_FIX_DISABLE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_WA_SET_BIT_MASKED
LBB0_4:
	ldr	w1, [x21]
	mov	x0, x20
	mov	x2, x1
	bl	_IS_ICL_REVID
	cbz	x0, LBB0_6
; %bb.5:
Lloh25:
	adrp	x8, _GEN11_COMMON_SLICE_CHICKEN3@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GEN11_COMMON_SLICE_CHICKEN3@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _GEN11_BLEND_EMB_FIX_DISABLE_IN_RCC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GEN11_BLEND_EMB_FIX_DISABLE_IN_RCC@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_WA_SET_BIT_MASKED
LBB0_6:
Lloh31:
	adrp	x8, _GEN10_CACHE_MODE_SS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GEN10_CACHE_MODE_SS@GOTPAGEOFF]
Lloh33:
	ldr	w20, [x8]
Lloh34:
	adrp	x8, _FLOAT_BLEND_OPTIMIZATION_ENABLE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _FLOAT_BLEND_OPTIMIZATION_ENABLE@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	__MASKED_BIT_ENABLE
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_wa_write_masked_or
Lloh37:
	adrp	x8, _GEN8_CS_CHICKEN1@GOTPAGE
Lloh38:
	ldr	x8, [x8, _GEN8_CS_CHICKEN1@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x8, _GEN9_PREEMPT_GPGPU_LEVEL_MASK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GEN9_PREEMPT_GPGPU_LEVEL_MASK@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x8, _GEN9_PREEMPT_GPGPU_THREAD_GROUP_LEVEL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _GEN9_PREEMPT_GPGPU_THREAD_GROUP_LEVEL@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	bl	_WA_SET_FIELD_MASKED
Lloh46:
	adrp	x8, _GEN10_SAMPLER_MODE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _GEN10_SAMPLER_MODE@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
Lloh49:
	adrp	x8, _GEN11_SAMPLER_ENABLE_HEADLESS_MSG@GOTPAGE
Lloh50:
	ldr	x8, [x8, _GEN11_SAMPLER_ENABLE_HEADLESS_MSG@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_WA_SET_BIT_MASKED
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN8_L3CNTLREG,4,2             ; @GEN8_L3CNTLREG
	.comm	_GEN8_ERRDETBCTRL,4,2           ; @GEN8_ERRDETBCTRL
	.comm	_ICL_REVID_A0,4,2               ; @ICL_REVID_A0
	.comm	_ICL_REVID_B0,4,2               ; @ICL_REVID_B0
	.comm	_GEN7_ROW_CHICKEN2,4,2          ; @GEN7_ROW_CHICKEN2
	.comm	_PUSH_CONSTANT_DEREF_DISABLE,4,2 ; @PUSH_CONSTANT_DEREF_DISABLE
	.comm	_ICL_HDC_MODE,4,2               ; @ICL_HDC_MODE
	.comm	_HDC_FORCE_NON_COHERENT,4,2     ; @HDC_FORCE_NON_COHERENT
	.comm	_GEN11_TDL_CLOCK_GATING_FIX_DISABLE,4,2 ; @GEN11_TDL_CLOCK_GATING_FIX_DISABLE
	.comm	_GEN11_COMMON_SLICE_CHICKEN3,4,2 ; @GEN11_COMMON_SLICE_CHICKEN3
	.comm	_GEN11_BLEND_EMB_FIX_DISABLE_IN_RCC,4,2 ; @GEN11_BLEND_EMB_FIX_DISABLE_IN_RCC
	.comm	_GEN10_CACHE_MODE_SS,4,2        ; @GEN10_CACHE_MODE_SS
	.comm	_FLOAT_BLEND_OPTIMIZATION_ENABLE,4,2 ; @FLOAT_BLEND_OPTIMIZATION_ENABLE
	.comm	_GEN8_CS_CHICKEN1,4,2           ; @GEN8_CS_CHICKEN1
	.comm	_GEN9_PREEMPT_GPGPU_LEVEL_MASK,4,2 ; @GEN9_PREEMPT_GPGPU_LEVEL_MASK
	.comm	_GEN9_PREEMPT_GPGPU_THREAD_GROUP_LEVEL,4,2 ; @GEN9_PREEMPT_GPGPU_THREAD_GROUP_LEVEL
	.comm	_GEN10_SAMPLER_MODE,4,2         ; @GEN10_SAMPLER_MODE
	.comm	_GEN11_SAMPLER_ENABLE_HEADLESS_MSG,4,2 ; @GEN11_SAMPLER_ENABLE_HEADLESS_MSG
	.no_dead_strip	_icl_ctx_workarounds_init
.subsections_via_symbols
