	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_guc_sample_forcewake     ## -- Begin function intel_guc_sample_forcewake
	.p2align	4, 0x90
_intel_guc_sample_forcewake:            ## @intel_guc_sample_forcewake
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_guc_to_gt
	movq	(%rax), %rbx
	movq	_INTEL_GUC_ACTION_SAMPLE_FORCEWAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	%rbx, %rdi
	callq	_HAS_RC6
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_NEEDS_WaRsDisableCoarsePowerGating
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_GUC_FORCEWAKE_RENDER@GOTPCREL(%rip), %rax
	movq	_GUC_FORCEWAKE_MEDIA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
LBB0_3:
	movl	%r15d, -36(%rbp)
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_intel_guc_send
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_GUC_ACTION_SAMPLE_FORCEWAKE,4,2 ## @INTEL_GUC_ACTION_SAMPLE_FORCEWAKE
	.comm	_GUC_FORCEWAKE_RENDER,4,2       ## @GUC_FORCEWAKE_RENDER
	.comm	_GUC_FORCEWAKE_MEDIA,4,2        ## @GUC_FORCEWAKE_MEDIA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_guc_sample_forcewake     ; -- Begin function intel_guc_sample_forcewake
	.p2align	2
_intel_guc_sample_forcewake:            ; @intel_guc_sample_forcewake
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_guc_to_gt
	ldr	x20, [x0]
Lloh3:
	adrp	x8, _INTEL_GUC_ACTION_SAMPLE_FORCEWAKE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTEL_GUC_ACTION_SAMPLE_FORCEWAKE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x20
	bl	_HAS_RC6
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_NEEDS_WaRsDisableCoarsePowerGating
	cbz	x0, LBB0_3
LBB0_2:
	mov	w8, #0
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _GUC_FORCEWAKE_RENDER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GUC_FORCEWAKE_RENDER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _GUC_FORCEWAKE_MEDIA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GUC_FORCEWAKE_MEDIA@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_4:
	str	w8, [sp, #4]
	mov	x0, sp
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x1, sp
	mov	x0, x19
	bl	_intel_guc_send
	ldr	x8, [sp, #8]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_GUC_ACTION_SAMPLE_FORCEWAKE,4,2 ; @INTEL_GUC_ACTION_SAMPLE_FORCEWAKE
	.comm	_GUC_FORCEWAKE_RENDER,4,2       ; @GUC_FORCEWAKE_RENDER
	.comm	_GUC_FORCEWAKE_MEDIA,4,2        ; @GUC_FORCEWAKE_MEDIA
.subsections_via_symbols
