	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_save_state                ## -- Begin function i915_save_state
	.p2align	4, 0x90
_i915_save_state:                       ## @i915_save_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), %r15
	movl	4(%rdi), %edi
	movq	_LBB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	120(%r15), %rdx
	callq	_pci_read_config_byte
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_i915_save_display
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	jne	LBB0_4
## %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
	callq	_I915_READ
	movq	%rax, 112(%r15)
	movq	_DEIMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_I915_READ
	movq	%rax, 104(%r15)
	movq	_GTIER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_I915_READ
	movq	%rax, 96(%r15)
	movq	_GTIMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_I915_READ
	movq	%rax, 88(%r15)
	movq	__FDI_RXA_IMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_I915_READ
	movq	%rax, 80(%r15)
	movq	__FDI_RXB_IMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_I915_READ
	movq	%rax, 72(%r15)
	movq	_RSTDBYCTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_I915_READ
	movq	%rax, 64(%r15)
	movq	_PCH_PORT_HOTPLUG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_I915_READ
	movq	%rax, 56(%r15)
	jmp	LBB0_4
LBB0_3:
	movq	_IER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_I915_READ
	movq	%rax, 48(%r15)
	movq	_IMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_I915_READ
	movq	%rax, 40(%r15)
LBB0_4:
	movq	%r14, %rdi
	callq	_intel_disable_gt_powersave
	movq	_CACHE_MODE_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_I915_READ
	movq	%rax, 32(%r15)
	movq	_MI_ARB_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_I915_READ
	movq	%rax, 24(%r15)
	xorl	%ebx, %ebx
	movq	_SWF00@GOTPCREL(%rip), %r12
	movq	_SWF10@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_I915_READ
	movq	16(%r15), %rcx
	movq	%rax, (%rcx,%rbx,2)
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	callq	_I915_READ
	movq	8(%r15), %rcx
	movq	%rax, (%rcx,%rbx,2)
	addq	$4, %rbx
	cmpq	$64, %rbx
	jne	LBB0_5
## %bb.6:
	movq	_SWF30@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_I915_READ
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rdi
	addq	$4, %rdi
	callq	_I915_READ
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	(%rbx), %rdi
	addq	$8, %rdi
	callq	_I915_READ
	movq	(%r15), %rcx
	movq	%rax, 16(%rcx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	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	_RSTDBYCTL,8,3                  ## @RSTDBYCTL
	.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_save_state                ; -- Begin function i915_save_state
	.p2align	2
_i915_save_state:                       ; @i915_save_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]
	add	x2, x20, #120
	bl	_pci_read_config_byte
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_i915_save_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_4
; %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]
	bl	_I915_READ
	str	x0, [x20, #112]
Lloh9:
	adrp	x8, _DEIMR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEIMR@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
	bl	_I915_READ
	str	x0, [x20, #104]
Lloh12:
	adrp	x8, _GTIER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GTIER@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	bl	_I915_READ
	str	x0, [x20, #96]
Lloh15:
	adrp	x8, _GTIMR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GTIMR@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
	bl	_I915_READ
	str	x0, [x20, #88]
Lloh18:
	adrp	x8, __FDI_RXA_IMR@GOTPAGE
Lloh19:
	ldr	x8, [x8, __FDI_RXA_IMR@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
	bl	_I915_READ
	str	x0, [x20, #80]
Lloh21:
	adrp	x8, __FDI_RXB_IMR@GOTPAGE
Lloh22:
	ldr	x8, [x8, __FDI_RXB_IMR@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x8]
	bl	_I915_READ
	str	x0, [x20, #72]
Lloh24:
	adrp	x8, _RSTDBYCTL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RSTDBYCTL@GOTPAGEOFF]
Lloh26:
	ldr	x0, [x8]
	bl	_I915_READ
	str	x0, [x20, #64]
Lloh27:
	adrp	x8, _PCH_PORT_HOTPLUG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PCH_PORT_HOTPLUG@GOTPAGEOFF]
Lloh29:
	ldr	x0, [x8]
	bl	_I915_READ
	str	x0, [x20, #56]
	b	LBB0_4
LBB0_3:
Lloh30:
	adrp	x8, _IER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IER@GOTPAGEOFF]
Lloh32:
	ldr	x0, [x8]
	bl	_I915_READ
	str	x0, [x20, #48]
Lloh33:
	adrp	x8, _IMR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IMR@GOTPAGEOFF]
Lloh35:
	ldr	x0, [x8]
	bl	_I915_READ
	str	x0, [x20, #40]
LBB0_4:
	mov	x0, x19
	bl	_intel_disable_gt_powersave
Lloh36:
	adrp	x8, _CACHE_MODE_0@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CACHE_MODE_0@GOTPAGEOFF]
Lloh38:
	ldr	x0, [x8]
	bl	_I915_READ
	str	x0, [x20, #32]
Lloh39:
	adrp	x8, _MI_ARB_STATE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MI_ARB_STATE@GOTPAGEOFF]
Lloh41:
	ldr	x0, [x8]
	bl	_I915_READ
	mov	x21, #0
	mov	x22, #0
	str	x0, [x20, #24]
Lloh42:
	adrp	x23, _SWF00@GOTPAGE
Lloh43:
	ldr	x23, [x23, _SWF00@GOTPAGEOFF]
Lloh44:
	adrp	x24, _SWF10@GOTPAGE
Lloh45:
	ldr	x24, [x24, _SWF10@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x0, x22, x8
	bl	_I915_READ
	ldr	x8, [x20, #16]
	str	x0, [x8, x21]
	ldr	x8, [x24]
	add	x0, x22, x8
	bl	_I915_READ
	ldr	x8, [x20, #8]
	str	x0, [x8, x21]
	add	x22, x22, #4
	add	x21, x21, #8
	cmp	x22, #64
	b.ne	LBB0_5
; %bb.6:
Lloh46:
	adrp	x21, _SWF30@GOTPAGE
Lloh47:
	ldr	x21, [x21, _SWF30@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_I915_READ
	ldr	x8, [x20]
	str	x0, [x8]
	ldr	x8, [x21]
	add	x0, x8, #4
	bl	_I915_READ
	ldr	x8, [x20]
	str	x0, [x8, #8]
	ldr	x8, [x21]
	add	x0, x8, #8
	bl	_I915_READ
	ldr	x8, [x20]
	str	x0, [x8, #16]
	mov	x0, x19
	bl	_mutex_unlock
	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 AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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 AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh46, Lloh47
	.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	_RSTDBYCTL,8,3                  ; @RSTDBYCTL
	.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
