	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_resume                    ## -- Begin function i915_resume
	.p2align	4, 0x90
_i915_resume:                           ## @i915_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rcx
	movq	_DRM_SWITCH_POWER_OFF@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movl	12(%rdi), %edi
	callq	_pci_enable_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_3:
	movl	12(%rbx), %edi
	callq	_pci_set_master
	movq	%rbx, %rdi
	callq	_intel_gt_reset
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_core_check_feature
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	cmpl	$0, (%r14)
	jne	LBB0_6
## %bb.5:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_i915_gem_restore_gtt_mappings
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_6:
	movq	%rbx, %rdi
	callq	___i915_drm_thaw
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_drm_kms_helper_poll_enable
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_SWITCH_POWER_OFF,8,3       ## @DRM_SWITCH_POWER_OFF
	.comm	_EIO,4,2                        ## @EIO
	.comm	_DRIVER_MODESET,4,2             ## @DRIVER_MODESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_resume                    ; -- Begin function i915_resume
	.p2align	2
_i915_resume:                           ; @i915_resume
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DRM_SWITCH_POWER_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_SWITCH_POWER_OFF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	w0, [x0, #12]
	bl	_pci_enable_device
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_4:
	ldr	w0, [x19, #12]
	bl	_pci_set_master
	mov	x0, x19
	bl	_intel_gt_reset
Lloh6:
	adrp	x8, _DRIVER_MODESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRIVER_MODESET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_core_check_feature
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w8, [x20]
	cbnz	w8, LBB0_7
; %bb.6:
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	_i915_gem_restore_gtt_mappings
	mov	x0, x20
	bl	_mutex_unlock
LBB0_7:
	mov	x0, x19
	bl	___i915_drm_thaw
	cbz	w0, LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x19
	bl	_drm_kms_helper_poll_enable
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_SWITCH_POWER_OFF,8,3       ; @DRM_SWITCH_POWER_OFF
	.comm	_EIO,4,2                        ; @EIO
	.comm	_DRIVER_MODESET,4,2             ; @DRIVER_MODESET
.subsections_via_symbols
