	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnl_ctx_workarounds_init
_cnl_ctx_workarounds_init:              ## @cnl_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	(%rdi), %rbx
	movq	_CNL_HDC_CHICKEN0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WA_SET_BIT_MASKED
	movq	_CNL_REVID_B0@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%edx, %esi
	callq	_IS_CNL_REVID
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_GEN8_ROW_CHICKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_THROTTLE_12_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WA_SET_BIT_MASKED
LBB0_2:
	movq	_COMMON_SLICE_CHICKEN2@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_GEN8_SBE_DISABLE_REPLAY_BUF_OPTIMIZATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WA_SET_BIT_MASKED
	movl	(%r14), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_IS_CNL_REVID
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	movq	_GEN8_CSC2_SBE_VUE_CACHE_CONSERVATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WA_SET_BIT_MASKED
LBB0_4:
	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
	movq	_HALF_SLICE_CHICKEN3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CNL_FAST_ANISO_L1_BANKING_FIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WA_SET_BIT_MASKED
	movq	_GEN8_CS_CHICKEN1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_GEN9_PREEMPT_3D_OBJECT_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WA_CLR_BIT_MASKED
	movl	(%rbx), %edi
	movq	_GEN9_PREEMPT_GPGPU_LEVEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GEN9_PREEMPT_GPGPU_COMMAND_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_WA_SET_FIELD_MASKED
	movq	_GEN8_ROW_CHICKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DISABLE_EARLY_EOT@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	_CNL_HDC_CHICKEN0,4,2           ## @CNL_HDC_CHICKEN0
	.comm	_HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT,4,2 ## @HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT
	.comm	_CNL_REVID_B0,4,2               ## @CNL_REVID_B0
	.comm	_GEN8_ROW_CHICKEN,4,2           ## @GEN8_ROW_CHICKEN
	.comm	_THROTTLE_12_5,4,2              ## @THROTTLE_12_5
	.comm	_COMMON_SLICE_CHICKEN2,4,2      ## @COMMON_SLICE_CHICKEN2
	.comm	_GEN8_SBE_DISABLE_REPLAY_BUF_OPTIMIZATION,4,2 ## @GEN8_SBE_DISABLE_REPLAY_BUF_OPTIMIZATION
	.comm	_GEN8_CSC2_SBE_VUE_CACHE_CONSERVATIVE,4,2 ## @GEN8_CSC2_SBE_VUE_CACHE_CONSERVATIVE
	.comm	_GEN7_ROW_CHICKEN2,4,2          ## @GEN7_ROW_CHICKEN2
	.comm	_PUSH_CONSTANT_DEREF_DISABLE,4,2 ## @PUSH_CONSTANT_DEREF_DISABLE
	.comm	_HALF_SLICE_CHICKEN3,4,2        ## @HALF_SLICE_CHICKEN3
	.comm	_CNL_FAST_ANISO_L1_BANKING_FIX,4,2 ## @CNL_FAST_ANISO_L1_BANKING_FIX
	.comm	_GEN8_CS_CHICKEN1,4,2           ## @GEN8_CS_CHICKEN1
	.comm	_GEN9_PREEMPT_3D_OBJECT_LEVEL,4,2 ## @GEN9_PREEMPT_3D_OBJECT_LEVEL
	.comm	_GEN9_PREEMPT_GPGPU_LEVEL_MASK,4,2 ## @GEN9_PREEMPT_GPGPU_LEVEL_MASK
	.comm	_GEN9_PREEMPT_GPGPU_COMMAND_LEVEL,4,2 ## @GEN9_PREEMPT_GPGPU_COMMAND_LEVEL
	.comm	_DISABLE_EARLY_EOT,4,2          ## @DISABLE_EARLY_EOT
	.no_dead_strip	_cnl_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 cnl_ctx_workarounds_init
_cnl_ctx_workarounds_init:              ; @cnl_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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _CNL_HDC_CHICKEN0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CNL_HDC_CHICKEN0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_WA_SET_BIT_MASKED
Lloh6:
	adrp	x21, _CNL_REVID_B0@GOTPAGE
Lloh7:
	ldr	x21, [x21, _CNL_REVID_B0@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x1
	bl	_IS_CNL_REVID
Lloh8:
	adrp	x20, _GEN8_ROW_CHICKEN@GOTPAGE
Lloh9:
	ldr	x20, [x20, _GEN8_ROW_CHICKEN@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _THROTTLE_12_5@GOTPAGE
Lloh11:
	ldr	x8, [x8, _THROTTLE_12_5@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_WA_SET_BIT_MASKED
LBB0_2:
Lloh13:
	adrp	x22, _COMMON_SLICE_CHICKEN2@GOTPAGE
Lloh14:
	ldr	x22, [x22, _COMMON_SLICE_CHICKEN2@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh15:
	adrp	x8, _GEN8_SBE_DISABLE_REPLAY_BUF_OPTIMIZATION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GEN8_SBE_DISABLE_REPLAY_BUF_OPTIMIZATION@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_WA_SET_BIT_MASKED
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	_IS_CNL_REVID
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x22]
Lloh18:
	adrp	x8, _GEN8_CSC2_SBE_VUE_CACHE_CONSERVATIVE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GEN8_CSC2_SBE_VUE_CACHE_CONSERVATIVE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_WA_SET_BIT_MASKED
LBB0_4:
Lloh21:
	adrp	x8, _GEN7_ROW_CHICKEN2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GEN7_ROW_CHICKEN2@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _PUSH_CONSTANT_DEREF_DISABLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PUSH_CONSTANT_DEREF_DISABLE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_WA_SET_BIT_MASKED
Lloh27:
	adrp	x8, _HALF_SLICE_CHICKEN3@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HALF_SLICE_CHICKEN3@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x8, _CNL_FAST_ANISO_L1_BANKING_FIX@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CNL_FAST_ANISO_L1_BANKING_FIX@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_WA_SET_BIT_MASKED
Lloh33:
	adrp	x19, _GEN8_CS_CHICKEN1@GOTPAGE
Lloh34:
	ldr	x19, [x19, _GEN8_CS_CHICKEN1@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh35:
	adrp	x8, _GEN9_PREEMPT_3D_OBJECT_LEVEL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _GEN9_PREEMPT_3D_OBJECT_LEVEL@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	bl	_WA_CLR_BIT_MASKED
	ldr	w0, [x19]
Lloh38:
	adrp	x8, _GEN9_PREEMPT_GPGPU_LEVEL_MASK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _GEN9_PREEMPT_GPGPU_LEVEL_MASK@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x8, _GEN9_PREEMPT_GPGPU_COMMAND_LEVEL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _GEN9_PREEMPT_GPGPU_COMMAND_LEVEL@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	bl	_WA_SET_FIELD_MASKED
	ldr	w0, [x20]
Lloh44:
	adrp	x8, _DISABLE_EARLY_EOT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _DISABLE_EARLY_EOT@GOTPAGEOFF]
Lloh46:
	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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_CNL_HDC_CHICKEN0,4,2           ; @CNL_HDC_CHICKEN0
	.comm	_HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT,4,2 ; @HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT
	.comm	_CNL_REVID_B0,4,2               ; @CNL_REVID_B0
	.comm	_GEN8_ROW_CHICKEN,4,2           ; @GEN8_ROW_CHICKEN
	.comm	_THROTTLE_12_5,4,2              ; @THROTTLE_12_5
	.comm	_COMMON_SLICE_CHICKEN2,4,2      ; @COMMON_SLICE_CHICKEN2
	.comm	_GEN8_SBE_DISABLE_REPLAY_BUF_OPTIMIZATION,4,2 ; @GEN8_SBE_DISABLE_REPLAY_BUF_OPTIMIZATION
	.comm	_GEN8_CSC2_SBE_VUE_CACHE_CONSERVATIVE,4,2 ; @GEN8_CSC2_SBE_VUE_CACHE_CONSERVATIVE
	.comm	_GEN7_ROW_CHICKEN2,4,2          ; @GEN7_ROW_CHICKEN2
	.comm	_PUSH_CONSTANT_DEREF_DISABLE,4,2 ; @PUSH_CONSTANT_DEREF_DISABLE
	.comm	_HALF_SLICE_CHICKEN3,4,2        ; @HALF_SLICE_CHICKEN3
	.comm	_CNL_FAST_ANISO_L1_BANKING_FIX,4,2 ; @CNL_FAST_ANISO_L1_BANKING_FIX
	.comm	_GEN8_CS_CHICKEN1,4,2           ; @GEN8_CS_CHICKEN1
	.comm	_GEN9_PREEMPT_3D_OBJECT_LEVEL,4,2 ; @GEN9_PREEMPT_3D_OBJECT_LEVEL
	.comm	_GEN9_PREEMPT_GPGPU_LEVEL_MASK,4,2 ; @GEN9_PREEMPT_GPGPU_LEVEL_MASK
	.comm	_GEN9_PREEMPT_GPGPU_COMMAND_LEVEL,4,2 ; @GEN9_PREEMPT_GPGPU_COMMAND_LEVEL
	.comm	_DISABLE_EARLY_EOT,4,2          ; @DISABLE_EARLY_EOT
	.no_dead_strip	_cnl_ctx_workarounds_init
.subsections_via_symbols
