	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_resume                ## -- Begin function i915_gem_resume
	.p2align	4, 0x90
_i915_gem_resume:                       ## @i915_gem_resume
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_GEM_TRACE
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	12(%rbx), %r15
	movq	_FORCEWAKE_ALL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_intel_uncore_forcewake_get
	movq	%rbx, %rdi
	callq	_i915_gem_init_hw
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_intel_gt_resume
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_intel_uc_resume
	movq	%rbx, %rdi
	callq	_i915_gem_load_power_context
	testl	%eax, %eax
	jne	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_intel_gt_is_wedged
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_intel_gt_set_wedged
LBB0_5:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_intel_uncore_forcewake_put
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_FORCEWAKE_ALL,4,2              ## @FORCEWAKE_ALL
L_.str.1:                               ## @.str.1
	.asciz	"Failed to re-initialize GPU, declaring it wedged!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_resume                ; -- Begin function i915_gem_resume
	.p2align	2
_i915_gem_resume:                       ; @i915_gem_resume
	.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, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_GEM_TRACE
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	add	x21, x20, #12
Lloh2:
	adrp	x22, _FORCEWAKE_ALL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _FORCEWAKE_ALL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_intel_uncore_forcewake_get
	mov	x0, x20
	bl	_i915_gem_init_hw
	cbnz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_intel_gt_resume
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_intel_uc_resume
	mov	x0, x20
	bl	_i915_gem_load_power_context
	cbnz	w0, LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_intel_gt_is_wedged
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x20, #4]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	bl	_intel_gt_set_wedged
LBB0_5:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_intel_uncore_forcewake_put
	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	_mutex_unlock
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_FORCEWAKE_ALL,4,2              ; @FORCEWAKE_ALL
l_.str.1:                               ; @.str.1
	.asciz	"Failed to re-initialize GPU, declaring it wedged!\n"

.subsections_via_symbols
