	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_sr_status
_i915_sr_status:                        ## @i915_sr_status
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	callq	_node_to_i915
	movq	%rax, %r12
	movq	_POWER_DOMAIN_INIT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_intel_display_power_get
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_INTEL_GEN
	xorl	%r14d, %r14d
	cmpl	$8, %eax
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	jle	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_2:
	movq	%r12, %rdi
	callq	_HAS_PCH_SPLIT
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_WM1_LP_SR_EN@GOTPCREL(%rip), %r15
	movq	_WM1_LP_ILK@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_4:
	movq	%r12, %rdi
	callq	_IS_I965GM
	movq	_FW_BLC_SELF@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_FW_BLC_SELF_EN@GOTPCREL(%rip), %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_6:
	movq	%r12, %rdi
	callq	_IS_G4X
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	callq	_IS_I945G
	testq	%rax, %rax
	je	LBB0_9
LBB0_7:
	movq	_FW_BLC_SELF_EN@GOTPCREL(%rip), %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_FW_BLC_SELF@GOTPCREL(%rip), %rcx
LBB0_16:
	movl	(%rcx), %edi
	callq	_I915_READ
	movl	%eax, %r14d
	andl	(%r15), %r14d
LBB0_17:
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_intel_display_power_put
	movl	%r14d, %edi
	callq	_enableddisabled
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_seq_printf
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r12, %rdi
	callq	_IS_I945GM
	testq	%rax, %rax
	movq	_FW_BLC_SELF_EN@GOTPCREL(%rip), %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_FW_BLC_SELF@GOTPCREL(%rip), %rcx
	jne	LBB0_16
## %bb.10:
	movq	%r12, %rdi
	callq	_IS_I915GM
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_INSTPM_SELF_EN@GOTPCREL(%rip), %r15
	movq	_INSTPM@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_12:
	movq	%r12, %rdi
	callq	_IS_PINEVIEW
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_PINEVIEW_SELF_REFRESH_EN@GOTPCREL(%rip), %r15
	movq	_DSPFW3@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_14:
	movq	%r12, %rdi
	callq	_IS_VALLEYVIEW
	movq	_FW_CSPWRDWNEN@GOTPCREL(%rip), %r15
	movq	_FW_BLC_SELF_VLV@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	%r12, %rdi
	callq	_IS_CHERRYVIEW
	movq	_FW_BLC_SELF_VLV@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_DOMAIN_INIT,4,2          ## @POWER_DOMAIN_INIT
	.comm	_WM1_LP_ILK,4,2                 ## @WM1_LP_ILK
	.comm	_WM1_LP_SR_EN,4,2               ## @WM1_LP_SR_EN
	.comm	_FW_BLC_SELF,4,2                ## @FW_BLC_SELF
	.comm	_FW_BLC_SELF_EN,4,2             ## @FW_BLC_SELF_EN
	.comm	_INSTPM,4,2                     ## @INSTPM
	.comm	_INSTPM_SELF_EN,4,2             ## @INSTPM_SELF_EN
	.comm	_DSPFW3,4,2                     ## @DSPFW3
	.comm	_PINEVIEW_SELF_REFRESH_EN,4,2   ## @PINEVIEW_SELF_REFRESH_EN
	.comm	_FW_BLC_SELF_VLV,4,2            ## @FW_BLC_SELF_VLV
	.comm	_FW_CSPWRDWNEN,4,2              ## @FW_CSPWRDWNEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"self-refresh: %s\n"

	.no_dead_strip	_i915_sr_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_sr_status
_i915_sr_status:                        ; @i915_sr_status
	.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	w0, [x0]
	bl	_node_to_i915
	mov	x20, x0
Lloh0:
	adrp	x23, _POWER_DOMAIN_INIT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _POWER_DOMAIN_INIT@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_intel_display_power_get
	mov	x21, x0
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #8
	b.le	LBB0_2
LBB0_1:
	mov	w22, #0
	b	LBB0_10
LBB0_2:
	mov	x0, x20
	bl	_HAS_PCH_SPLIT
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x22, _WM1_LP_SR_EN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _WM1_LP_SR_EN@GOTPAGEOFF]
Lloh4:
	adrp	x8, _WM1_LP_ILK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WM1_LP_ILK@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	mov	x0, x20
	bl	_IS_I965GM
	cbnz	x0, LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_IS_G4X
	cbnz	x0, LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_IS_I945G
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_IS_I945GM
	cbz	x0, LBB0_11
LBB0_8:
Lloh6:
	adrp	x22, _FW_BLC_SELF_EN@GOTPAGE
Lloh7:
	ldr	x22, [x22, _FW_BLC_SELF_EN@GOTPAGEOFF]
Lloh8:
	adrp	x8, _FW_BLC_SELF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FW_BLC_SELF@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	bl	_I915_READ
	ldr	w8, [x22]
	and	w22, w8, w0
LBB0_10:
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x21
	bl	_intel_display_power_put
	mov	x0, x22
	bl	_enableddisabled
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_seq_printf
	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
LBB0_11:
	mov	x0, x20
	bl	_IS_I915GM
	cbz	x0, LBB0_13
; %bb.12:
Lloh12:
	adrp	x22, _INSTPM_SELF_EN@GOTPAGE
Lloh13:
	ldr	x22, [x22, _INSTPM_SELF_EN@GOTPAGEOFF]
Lloh14:
	adrp	x8, _INSTPM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INSTPM@GOTPAGEOFF]
	b	LBB0_9
LBB0_13:
	mov	x0, x20
	bl	_IS_PINEVIEW
	cbz	x0, LBB0_15
; %bb.14:
Lloh16:
	adrp	x22, _PINEVIEW_SELF_REFRESH_EN@GOTPAGE
Lloh17:
	ldr	x22, [x22, _PINEVIEW_SELF_REFRESH_EN@GOTPAGEOFF]
Lloh18:
	adrp	x8, _DSPFW3@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DSPFW3@GOTPAGEOFF]
	b	LBB0_9
LBB0_15:
	mov	x0, x20
	bl	_IS_VALLEYVIEW
	cbnz	x0, LBB0_17
; %bb.16:
	mov	x0, x20
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_1
LBB0_17:
Lloh20:
	adrp	x22, _FW_CSPWRDWNEN@GOTPAGE
Lloh21:
	ldr	x22, [x22, _FW_CSPWRDWNEN@GOTPAGEOFF]
Lloh22:
	adrp	x8, _FW_BLC_SELF_VLV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FW_BLC_SELF_VLV@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_DOMAIN_INIT,4,2          ; @POWER_DOMAIN_INIT
	.comm	_WM1_LP_ILK,4,2                 ; @WM1_LP_ILK
	.comm	_WM1_LP_SR_EN,4,2               ; @WM1_LP_SR_EN
	.comm	_FW_BLC_SELF,4,2                ; @FW_BLC_SELF
	.comm	_FW_BLC_SELF_EN,4,2             ; @FW_BLC_SELF_EN
	.comm	_INSTPM,4,2                     ; @INSTPM
	.comm	_INSTPM_SELF_EN,4,2             ; @INSTPM_SELF_EN
	.comm	_DSPFW3,4,2                     ; @DSPFW3
	.comm	_PINEVIEW_SELF_REFRESH_EN,4,2   ; @PINEVIEW_SELF_REFRESH_EN
	.comm	_FW_BLC_SELF_VLV,4,2            ; @FW_BLC_SELF_VLV
	.comm	_FW_CSPWRDWNEN,4,2              ; @FW_CSPWRDWNEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"self-refresh: %s\n"

	.no_dead_strip	_i915_sr_status
.subsections_via_symbols
