	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_restore_state             ## -- Begin function i915_restore_state
	.p2align	4, 0x90
_i915_restore_state:                    ## @i915_restore_state
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movl	4(%rdi), %edi
	movq	_LBB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	72(%r12), %edx
	callq	_pci_write_config_byte
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_i915_restore_display
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	callq	_HAS_PCH_SPLIT
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_DEIER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r12), %esi
	callq	_I915_WRITE
	movq	_DEIMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	4(%r12), %esi
	callq	_I915_WRITE
	movq	_GTIER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	8(%r12), %esi
	callq	_I915_WRITE
	movq	_GTIMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	12(%r12), %esi
	callq	_I915_WRITE
	movq	__FDI_RXA_IMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	16(%r12), %esi
	callq	_I915_WRITE
	movq	__FDI_RXB_IMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	20(%r12), %esi
	callq	_I915_WRITE
	leaq	24(%r12), %rax
	movq	_PCH_PORT_HOTPLUG@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_IER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	28(%r12), %esi
	callq	_I915_WRITE
	leaq	32(%r12), %rax
	movq	_IMR@GOTPCREL(%rip), %rcx
LBB0_4:
	movq	(%rcx), %rdi
	movl	(%rax), %esi
	callq	_I915_WRITE
LBB0_5:
	movq	_CACHE_MODE_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$-65536, %r15d                  ## imm = 0xFFFF0000
	movl	36(%r12), %esi
	orl	%r15d, %esi
	callq	_I915_WRITE
	movq	_MI_ARB_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	orl	40(%r12), %r15d
	movl	%r15d, %esi
	callq	_I915_WRITE
	xorl	%ebx, %ebx
	movq	_SWF00@GOTPCREL(%rip), %r15
	movq	_SWF10@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	movq	48(%r12), %rax
	movl	(%rax,%rbx), %esi
	callq	_I915_WRITE
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	movq	56(%r12), %rax
	movl	(%rax,%rbx), %esi
	callq	_I915_WRITE
	addq	$4, %rbx
	cmpq	$64, %rbx
	jne	LBB0_6
## %bb.7:
	movq	_SWF30@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	64(%r12), %rax
	movl	(%rax), %esi
	callq	_I915_WRITE
	movq	(%rbx), %rdi
	addq	$4, %rdi
	movq	64(%r12), %rax
	movl	4(%rax), %esi
	callq	_I915_WRITE
	movq	(%rbx), %rdi
	addq	$8, %rdi
	movq	64(%r12), %rax
	movl	8(%rax), %esi
	callq	_I915_WRITE
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_intel_i2c_reset
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LBB,4,2                        ## @LBB
	.comm	_DRIVER_MODESET,4,2             ## @DRIVER_MODESET
	.comm	_DEIER,8,3                      ## @DEIER
	.comm	_DEIMR,8,3                      ## @DEIMR
	.comm	_GTIER,8,3                      ## @GTIER
	.comm	_GTIMR,8,3                      ## @GTIMR
	.comm	__FDI_RXA_IMR,8,3               ## @_FDI_RXA_IMR
	.comm	__FDI_RXB_IMR,8,3               ## @_FDI_RXB_IMR
	.comm	_PCH_PORT_HOTPLUG,8,3           ## @PCH_PORT_HOTPLUG
	.comm	_IER,8,3                        ## @IER
	.comm	_IMR,8,3                        ## @IMR
	.comm	_CACHE_MODE_0,8,3               ## @CACHE_MODE_0
	.comm	_MI_ARB_STATE,8,3               ## @MI_ARB_STATE
	.comm	_SWF00,8,3                      ## @SWF00
	.comm	_SWF10,8,3                      ## @SWF10
	.comm	_SWF30,8,3                      ## @SWF30
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_restore_state             ; -- Begin function i915_restore_state
	.p2align	2
_i915_restore_state:                    ; @i915_restore_state
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _LBB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LBB@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20, #72]
	bl	_pci_write_config_byte
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_i915_restore_display
Lloh3:
	adrp	x8, _DRIVER_MODESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRIVER_MODESET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_core_check_feature
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_HAS_PCH_SPLIT
	cbz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _DEIER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEIER@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	ldr	w1, [x20]
	bl	_I915_WRITE
Lloh9:
	adrp	x8, _DEIMR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEIMR@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
	ldr	w1, [x20, #4]
	bl	_I915_WRITE
Lloh12:
	adrp	x8, _GTIER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GTIER@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	ldr	w1, [x20, #8]
	bl	_I915_WRITE
Lloh15:
	adrp	x8, _GTIMR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GTIMR@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
	ldr	w1, [x20, #12]
	bl	_I915_WRITE
Lloh18:
	adrp	x8, __FDI_RXA_IMR@GOTPAGE
Lloh19:
	ldr	x8, [x8, __FDI_RXA_IMR@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
	ldr	w1, [x20, #16]
	bl	_I915_WRITE
Lloh21:
	adrp	x8, __FDI_RXB_IMR@GOTPAGE
Lloh22:
	ldr	x8, [x8, __FDI_RXB_IMR@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x8]
	ldr	w1, [x20, #20]
	bl	_I915_WRITE
	add	x8, x20, #24
Lloh24:
	adrp	x9, _PCH_PORT_HOTPLUG@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PCH_PORT_HOTPLUG@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh26:
	adrp	x8, _IER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IER@GOTPAGEOFF]
Lloh28:
	ldr	x0, [x8]
	ldr	w1, [x20, #28]
	bl	_I915_WRITE
	add	x8, x20, #32
Lloh29:
	adrp	x9, _IMR@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IMR@GOTPAGEOFF]
LBB0_4:
	ldr	x0, [x9]
	ldr	w1, [x8]
	bl	_I915_WRITE
LBB0_5:
Lloh31:
	adrp	x8, _CACHE_MODE_0@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CACHE_MODE_0@GOTPAGEOFF]
Lloh33:
	ldr	x0, [x8]
	ldr	w8, [x20, #36]
	orr	w1, w8, #0xffff0000
	bl	_I915_WRITE
Lloh34:
	adrp	x8, _MI_ARB_STATE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MI_ARB_STATE@GOTPAGEOFF]
Lloh36:
	ldr	x0, [x8]
	ldr	w8, [x20, #40]
	orr	w1, w8, #0xffff0000
	bl	_I915_WRITE
	mov	x21, #0
Lloh37:
	adrp	x22, _SWF00@GOTPAGE
Lloh38:
	ldr	x22, [x22, _SWF00@GOTPAGEOFF]
Lloh39:
	adrp	x23, _SWF10@GOTPAGE
Lloh40:
	ldr	x23, [x23, _SWF10@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x0, x21, x8
	ldr	x8, [x20, #48]
	ldr	w1, [x8, x21]
	bl	_I915_WRITE
	ldr	x8, [x23]
	add	x0, x21, x8
	ldr	x8, [x20, #56]
	ldr	w1, [x8, x21]
	bl	_I915_WRITE
	add	x21, x21, #4
	cmp	x21, #64
	b.ne	LBB0_6
; %bb.7:
Lloh41:
	adrp	x21, _SWF30@GOTPAGE
Lloh42:
	ldr	x21, [x21, _SWF30@GOTPAGEOFF]
	ldr	x0, [x21]
	ldr	x8, [x20, #64]
	ldr	w1, [x8]
	bl	_I915_WRITE
	ldr	x8, [x21]
	add	x0, x8, #4
	ldr	x8, [x20, #64]
	ldr	w1, [x8, #4]
	bl	_I915_WRITE
	ldr	x8, [x21]
	add	x0, x8, #8
	ldr	x8, [x20, #64]
	ldr	w1, [x8, #8]
	bl	_I915_WRITE
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	bl	_intel_i2c_reset
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_LBB,4,2                        ; @LBB
	.comm	_DRIVER_MODESET,4,2             ; @DRIVER_MODESET
	.comm	_DEIER,8,3                      ; @DEIER
	.comm	_DEIMR,8,3                      ; @DEIMR
	.comm	_GTIER,8,3                      ; @GTIER
	.comm	_GTIMR,8,3                      ; @GTIMR
	.comm	__FDI_RXA_IMR,8,3               ; @_FDI_RXA_IMR
	.comm	__FDI_RXB_IMR,8,3               ; @_FDI_RXB_IMR
	.comm	_PCH_PORT_HOTPLUG,8,3           ; @PCH_PORT_HOTPLUG
	.comm	_IER,8,3                        ; @IER
	.comm	_IMR,8,3                        ; @IMR
	.comm	_CACHE_MODE_0,8,3               ; @CACHE_MODE_0
	.comm	_MI_ARB_STATE,8,3               ; @MI_ARB_STATE
	.comm	_SWF00,8,3                      ; @SWF00
	.comm	_SWF10,8,3                      ; @SWF10
	.comm	_SWF30,8,3                      ; @SWF30
.subsections_via_symbols
