	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_reset_guc                ## -- Begin function intel_reset_guc
	.p2align	4, 0x90
_intel_reset_guc:                       ## @intel_reset_guc
	.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
	movl	4(%rdi), %edi
	callq	_INTEL_GEN
	cmpl	$11, %eax
	jl	LBB0_1
## %bb.2:
	movq	_GEN11_GRDOM_GUC@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_GEN9_GRDOM_GUC@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r14d
	movl	4(%rbx), %edi
	callq	_HAS_GT_UC
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movl	(%rbx), %edi
	movq	_FORCEWAKE_ALL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_intel_uncore_forcewake_get
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_gen6_hw_domain_reset
	movl	%eax, %r14d
	movl	(%rbx), %edi
	movl	(%r15), %esi
	callq	_intel_uncore_forcewake_put
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN11_GRDOM_GUC,4,2            ## @GEN11_GRDOM_GUC
	.comm	_GEN9_GRDOM_GUC,4,2             ## @GEN9_GRDOM_GUC
	.comm	_FORCEWAKE_ALL,4,2              ## @FORCEWAKE_ALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_reset_guc                ; -- Begin function intel_reset_guc
	.p2align	2
_intel_reset_guc:                       ; @intel_reset_guc
	.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, x0
	ldr	w0, [x0, #4]
	bl	_INTEL_GEN
Lloh0:
	adrp	x8, _GEN11_GRDOM_GUC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN11_GRDOM_GUC@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GEN9_GRDOM_GUC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GEN9_GRDOM_GUC@GOTPAGEOFF]
	cmp	w0, #10
	csel	x8, x8, x9, gt
	ldr	w20, [x8]
	ldr	w0, [x19, #4]
	bl	_HAS_GT_UC
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	ldr	w0, [x19]
Lloh4:
	adrp	x21, _FORCEWAKE_ALL@GOTPAGE
Lloh5:
	ldr	x21, [x21, _FORCEWAKE_ALL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_intel_uncore_forcewake_get
	mov	x0, x19
	mov	x1, x20
	bl	_gen6_hw_domain_reset
	mov	x20, x0
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_intel_uncore_forcewake_put
	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
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN11_GRDOM_GUC,4,2            ; @GEN11_GRDOM_GUC
	.comm	_GEN9_GRDOM_GUC,4,2             ; @GEN9_GRDOM_GUC
	.comm	_FORCEWAKE_ALL,4,2              ; @FORCEWAKE_ALL
.subsections_via_symbols
