	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function forcewake_early_sanitize
_forcewake_early_sanitize:              ## @forcewake_early_sanitize
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_intel_uncore_has_forcewake
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movl	16(%rbx), %edi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_GTFIFOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	___raw_uncore_read32
	movq	_GT_FIFO_CTL_BLOCK_ALL_POLICY_STALL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_GT_FIFO_CTL_RC6_POLICY_STALL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	___raw_uncore_write32
LBB0_2:
	xorl	%eax, %eax
	callq	_iosf_mbi_punit_acquire
	movq	%rbx, %rdi
	callq	_intel_uncore_forcewake_reset
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*8(%rbx)
	movq	%rbx, %rdi
	callq	_intel_uncore_has_fifo
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_fifo_free_entries
	movl	%eax, 4(%rbx)
LBB0_5:
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iosf_mbi_punit_release         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GTFIFOCTL,4,2                  ## @GTFIFOCTL
	.comm	_GT_FIFO_CTL_BLOCK_ALL_POLICY_STALL,4,2 ## @GT_FIFO_CTL_BLOCK_ALL_POLICY_STALL
	.comm	_GT_FIFO_CTL_RC6_POLICY_STALL,4,2 ## @GT_FIFO_CTL_RC6_POLICY_STALL
	.no_dead_strip	_forcewake_early_sanitize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function forcewake_early_sanitize
_forcewake_early_sanitize:              ; @forcewake_early_sanitize
	.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	x20, x1
	mov	x19, x0
	bl	_intel_uncore_has_forcewake
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	ldr	w0, [x19, #16]
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GTFIFOCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GTFIFOCTL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	___raw_uncore_read32
Lloh3:
	adrp	x8, _GT_FIFO_CTL_BLOCK_ALL_POLICY_STALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GT_FIFO_CTL_BLOCK_ALL_POLICY_STALL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh6:
	adrp	x9, _GT_FIFO_CTL_RC6_POLICY_STALL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GT_FIFO_CTL_RC6_POLICY_STALL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	mov	x1, x21
	bl	___raw_uncore_write32
LBB0_2:
	bl	_iosf_mbi_punit_acquire
	mov	x0, x19
	bl	_intel_uncore_forcewake_reset
	cbz	w20, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x0, x19
	bl	_intel_uncore_has_fifo
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_fifo_free_entries
	str	w0, [x19, #4]
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irq
LBB0_6:
	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	_iosf_mbi_punit_release
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GTFIFOCTL,4,2                  ; @GTFIFOCTL
	.comm	_GT_FIFO_CTL_BLOCK_ALL_POLICY_STALL,4,2 ; @GT_FIFO_CTL_BLOCK_ALL_POLICY_STALL
	.comm	_GT_FIFO_CTL_RC6_POLICY_STALL,4,2 ; @GT_FIFO_CTL_RC6_POLICY_STALL
	.no_dead_strip	_forcewake_early_sanitize
.subsections_via_symbols
