	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __intel_uc_reset_hw
___intel_uc_reset_hw:                   ## @__intel_uc_reset_hw
	.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
	callq	_uc_to_gt
	movq	%rax, %r14
	movl	4(%rax), %edi
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	callq	_i915_inject_load_error
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_intel_reset_guc
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	jmp	LBB0_4
LBB0_3:
	movl	(%r14), %edi
	movq	_GUC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_intel_uncore_read
	movq	_GS_MIA_IN_RESET@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_WARN
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to reset GuC, ret = %d\n"

	.comm	_GUC_STATUS,4,2                 ## @GUC_STATUS
	.comm	_GS_MIA_IN_RESET,4,2            ## @GS_MIA_IN_RESET
L_.str.1:                               ## @.str.1
	.asciz	"GuC status: 0x%x, MIA core expected to be in reset\n"

	.no_dead_strip	___intel_uc_reset_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __intel_uc_reset_hw
___intel_uc_reset_hw:                   ; @__intel_uc_reset_hw
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_uc_to_gt
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w1, w8
	bl	_i915_inject_load_error
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_intel_reset_guc
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_ERROR
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _GUC_STATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GUC_STATUS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_intel_uncore_read
	mov	x2, x0
Lloh8:
	adrp	x8, _GS_MIA_IN_RESET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GS_MIA_IN_RESET@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, eq
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_WARN
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to reset GuC, ret = %d\n"

	.comm	_GUC_STATUS,4,2                 ; @GUC_STATUS
	.comm	_GS_MIA_IN_RESET,4,2            ; @GS_MIA_IN_RESET
l_.str.1:                               ; @.str.1
	.asciz	"GuC status: 0x%x, MIA core expected to be in reset\n"

	.no_dead_strip	___intel_uc_reset_hw
.subsections_via_symbols
