	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ironlake_edp_panel_off         ## -- Begin function ironlake_edp_panel_off
	.p2align	4, 0x90
_ironlake_edp_panel_off:                ## @ironlake_edp_panel_off
	.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, %rbx
	callq	_intel_dp_to_dev
	movq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_is_edp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_WARN
	movq	%r14, %rdi
	callq	_ironlake_get_pp_control
	movq	_POWER_TARGET_ON@GOTPCREL(%rip), %rcx
	movq	_EDP_FORCE_VDD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_PANEL_POWER_RESET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_EDP_BLC_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_PCH_PP_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_POSTING_READ
	movl	$0, (%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ironlake_wait_panel_off        ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Turn eDP power off\n"

L_.str.1:                               ## @.str.1
	.asciz	"Need VDD to turn off panel\n"

	.comm	_POWER_TARGET_ON,4,2            ## @POWER_TARGET_ON
	.comm	_EDP_FORCE_VDD,4,2              ## @EDP_FORCE_VDD
	.comm	_PANEL_POWER_RESET,4,2          ## @PANEL_POWER_RESET
	.comm	_EDP_BLC_ENABLE,4,2             ## @EDP_BLC_ENABLE
	.comm	_PCH_PP_CONTROL,4,2             ## @PCH_PP_CONTROL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ironlake_edp_panel_off         ; -- Begin function ironlake_edp_panel_off
	.p2align	2
_ironlake_edp_panel_off:                ; @ironlake_edp_panel_off
	.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
	mov	x19, x0
	bl	_intel_dp_to_dev
	ldr	x20, [x0]
	mov	x0, x19
	bl	_is_edp
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_WARN
	mov	x0, x20
	bl	_ironlake_get_pp_control
Lloh4:
	adrp	x8, _POWER_TARGET_ON@GOTPAGE
Lloh5:
	ldr	x8, [x8, _POWER_TARGET_ON@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _EDP_FORCE_VDD@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EDP_FORCE_VDD@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _PANEL_POWER_RESET@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PANEL_POWER_RESET@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh13:
	adrp	x9, _EDP_BLC_ENABLE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EDP_BLC_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w1, w0, w8
Lloh16:
	adrp	x20, _PCH_PP_CONTROL@GOTPAGE
Lloh17:
	ldr	x20, [x20, _PCH_PP_CONTROL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_WRITE
	ldr	w0, [x20]
	bl	_POSTING_READ
	str	wzr, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ironlake_wait_panel_off
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Turn eDP power off\n"

l_.str.1:                               ; @.str.1
	.asciz	"Need VDD to turn off panel\n"

	.comm	_POWER_TARGET_ON,4,2            ; @POWER_TARGET_ON
	.comm	_EDP_FORCE_VDD,4,2              ; @EDP_FORCE_VDD
	.comm	_PANEL_POWER_RESET,4,2          ; @PANEL_POWER_RESET
	.comm	_EDP_BLC_ENABLE,4,2             ; @EDP_BLC_ENABLE
	.comm	_PCH_PP_CONTROL,4,2             ; @PCH_PP_CONTROL
.subsections_via_symbols
