	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen9_gt_workarounds_init
_gen9_gt_workarounds_init:              ## @gen9_gt_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_IS_COFFEELAKE
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_GAM_ECOCHK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ECOCHK_DIS_TLB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_wa_write_or
LBB0_2:
	movq	%rbx, %rdi
	callq	_HAS_LLC
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_MMCD_MISC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MMCD_PCLA@GOTPCREL(%rip), %rax
	movq	_MMCD_HOTSPOT_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_wa_write_or
LBB0_4:
	movq	_GAM_ECOCHK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BDW_DISABLE_HDC_INVALIDATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wa_write_or                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GAM_ECOCHK,4,2                 ## @GAM_ECOCHK
	.comm	_ECOCHK_DIS_TLB,4,2             ## @ECOCHK_DIS_TLB
	.comm	_MMCD_MISC_CTRL,4,2             ## @MMCD_MISC_CTRL
	.comm	_MMCD_PCLA,4,2                  ## @MMCD_PCLA
	.comm	_MMCD_HOTSPOT_EN,4,2            ## @MMCD_HOTSPOT_EN
	.comm	_BDW_DISABLE_HDC_INVALIDATION,4,2 ## @BDW_DISABLE_HDC_INVALIDATION
	.no_dead_strip	_gen9_gt_workarounds_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen9_gt_workarounds_init
_gen9_gt_workarounds_init:              ; @gen9_gt_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
	mov	x20, x0
	bl	_IS_COFFEELAKE
Lloh0:
	adrp	x21, _GAM_ECOCHK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GAM_ECOCHK@GOTPAGEOFF]
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _ECOCHK_DIS_TLB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ECOCHK_DIS_TLB@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wa_write_or
LBB0_2:
	mov	x0, x20
	bl	_HAS_LLC
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _MMCD_MISC_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMCD_MISC_CTRL@GOTPAGEOFF]
Lloh7:
	adrp	x9, _MMCD_PCLA@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MMCD_PCLA@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	ldr	w8, [x9]
Lloh11:
	adrp	x9, _MMCD_HOTSPOT_EN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MMCD_HOTSPOT_EN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_wa_write_or
LBB0_4:
	ldr	w1, [x21]
Lloh14:
	adrp	x8, _BDW_DISABLE_HDC_INVALIDATION@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BDW_DISABLE_HDC_INVALIDATION@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	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_write_or
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GAM_ECOCHK,4,2                 ; @GAM_ECOCHK
	.comm	_ECOCHK_DIS_TLB,4,2             ; @ECOCHK_DIS_TLB
	.comm	_MMCD_MISC_CTRL,4,2             ; @MMCD_MISC_CTRL
	.comm	_MMCD_PCLA,4,2                  ; @MMCD_PCLA
	.comm	_MMCD_HOTSPOT_EN,4,2            ; @MMCD_HOTSPOT_EN
	.comm	_BDW_DISABLE_HDC_INVALIDATION,4,2 ; @BDW_DISABLE_HDC_INVALIDATION
	.no_dead_strip	_gen9_gt_workarounds_init
.subsections_via_symbols
