	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdw_ctx_workarounds_init
_bdw_ctx_workarounds_init:              ## @bdw_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), %r14
	callq	_gen8_ctx_workarounds_init
	movq	_GEN8_ROW_CHICKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STALL_DOP_GATING_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WA_SET_BIT_MASKED
	movq	_GEN7_ROW_CHICKEN2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DOP_CLOCK_GATING_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WA_SET_BIT_MASKED
	movq	_HALF_SLICE_CHICKEN3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GEN8_SAMPLER_POWER_BYPASS_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WA_SET_BIT_MASKED
	movq	_HDC_CHICKEN0@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_IS_BDW_GT3
	xorl	%esi, %esi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_HDC_FENCE_DEST_SLM_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_2:
	orl	%ebx, %esi
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WA_SET_BIT_MASKED              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN8_ROW_CHICKEN,4,2           ## @GEN8_ROW_CHICKEN
	.comm	_STALL_DOP_GATING_DISABLE,4,2   ## @STALL_DOP_GATING_DISABLE
	.comm	_GEN7_ROW_CHICKEN2,4,2          ## @GEN7_ROW_CHICKEN2
	.comm	_DOP_CLOCK_GATING_DISABLE,4,2   ## @DOP_CLOCK_GATING_DISABLE
	.comm	_HALF_SLICE_CHICKEN3,4,2        ## @HALF_SLICE_CHICKEN3
	.comm	_GEN8_SAMPLER_POWER_BYPASS_DIS,4,2 ## @GEN8_SAMPLER_POWER_BYPASS_DIS
	.comm	_HDC_CHICKEN0,4,2               ## @HDC_CHICKEN0
	.comm	_HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT,4,2 ## @HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT
	.comm	_HDC_FENCE_DEST_SLM_DISABLE,4,2 ## @HDC_FENCE_DEST_SLM_DISABLE
	.no_dead_strip	_bdw_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 bdw_ctx_workarounds_init
_bdw_ctx_workarounds_init:              ; @bdw_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]
	bl	_gen8_ctx_workarounds_init
Lloh0:
	adrp	x8, _GEN8_ROW_CHICKEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN8_ROW_CHICKEN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _STALL_DOP_GATING_DISABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STALL_DOP_GATING_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_WA_SET_BIT_MASKED
Lloh6:
	adrp	x8, _GEN7_ROW_CHICKEN2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GEN7_ROW_CHICKEN2@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _DOP_CLOCK_GATING_DISABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DOP_CLOCK_GATING_DISABLE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_WA_SET_BIT_MASKED
Lloh12:
	adrp	x8, _HALF_SLICE_CHICKEN3@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HALF_SLICE_CHICKEN3@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _GEN8_SAMPLER_POWER_BYPASS_DIS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GEN8_SAMPLER_POWER_BYPASS_DIS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_WA_SET_BIT_MASKED
Lloh18:
	adrp	x8, _HDC_CHICKEN0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HDC_CHICKEN0@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
Lloh21:
	adrp	x8, _HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT@GOTPAGEOFF]
Lloh23:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_IS_BDW_GT3
Lloh24:
	adrp	x8, _HDC_FENCE_DEST_SLM_DISABLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HDC_FENCE_DEST_SLM_DISABLE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w1, w8, w21
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN8_ROW_CHICKEN,4,2           ; @GEN8_ROW_CHICKEN
	.comm	_STALL_DOP_GATING_DISABLE,4,2   ; @STALL_DOP_GATING_DISABLE
	.comm	_GEN7_ROW_CHICKEN2,4,2          ; @GEN7_ROW_CHICKEN2
	.comm	_DOP_CLOCK_GATING_DISABLE,4,2   ; @DOP_CLOCK_GATING_DISABLE
	.comm	_HALF_SLICE_CHICKEN3,4,2        ; @HALF_SLICE_CHICKEN3
	.comm	_GEN8_SAMPLER_POWER_BYPASS_DIS,4,2 ; @GEN8_SAMPLER_POWER_BYPASS_DIS
	.comm	_HDC_CHICKEN0,4,2               ; @HDC_CHICKEN0
	.comm	_HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT,4,2 ; @HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT
	.comm	_HDC_FENCE_DEST_SLM_DISABLE,4,2 ; @HDC_FENCE_DEST_SLM_DISABLE
	.no_dead_strip	_bdw_ctx_workarounds_init
.subsections_via_symbols
