	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __i915_drm_thaw
___i915_drm_thaw:                       ## @__i915_drm_thaw
	.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
	movq	8(%rdi), %r15
	callq	_i915_restore_state
	movq	%rbx, %rdi
	callq	_intel_opregion_setup
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_core_check_feature
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_intel_init_pch_refclk
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	$0, 16(%r15)
	movq	%rbx, %rdi
	callq	_i915_gem_init_hw
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_drm_irq_install
	movq	%rbx, %rdi
	callq	_intel_modeset_init_hw
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_intel_modeset_setup_hw_state
	movq	%rbx, %rdi
	callq	_intel_hpd_init
	movl	$1, (%r15)
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	movq	%rbx, %rdi
	callq	_intel_opregion_init
	xorl	%eax, %eax
	callq	_console_trylock
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_intel_fbdev_set_suspend
	xorl	%eax, %eax
	callq	_console_unlock
	jmp	LBB0_6
LBB0_5:
	leaq	12(%r15), %rdi
	callq	_schedule_work
LBB0_6:
	leaq	4(%r15), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_MODESET_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_MODESET,4,2             ## @DRIVER_MODESET
	.comm	_MODESET_DONE,4,2               ## @MODESET_DONE
	.no_dead_strip	___i915_drm_thaw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __i915_drm_thaw
___i915_drm_thaw:                       ; @__i915_drm_thaw
	.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	x21, [x0, #8]
	bl	_i915_restore_state
	mov	x0, x19
	bl	_intel_opregion_setup
Lloh0:
	adrp	x8, _DRIVER_MODESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_MODESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_core_check_feature
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_intel_init_pch_refclk
	mov	x0, x19
	bl	_mutex_lock
	str	xzr, [x21, #16]
	mov	x0, x19
	bl	_i915_gem_init_hw
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	bl	_drm_irq_install
	mov	x0, x19
	bl	_intel_modeset_init_hw
	mov	x0, x19
	mov	w1, #0
	bl	_intel_modeset_setup_hw_state
	mov	x0, x19
	bl	_intel_hpd_init
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x19
	bl	_intel_opregion_init
	bl	_console_trylock
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_intel_fbdev_set_suspend
	bl	_console_unlock
	b	LBB0_6
LBB0_5:
	add	x0, x21, #12
	bl	_schedule_work
LBB0_6:
	add	x19, x21, #4
	mov	x0, x19
	bl	_mutex_lock
Lloh3:
	adrp	x8, _MODESET_DONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MODESET_DONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	mov	x0, x19
	bl	_mutex_unlock
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_MODESET,4,2             ; @DRIVER_MODESET
	.comm	_MODESET_DONE,4,2               ; @MODESET_DONE
	.no_dead_strip	___i915_drm_thaw
.subsections_via_symbols
