	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edp_panel_off
_edp_panel_off:                         ## @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	%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, %r12
	callq	_dp_to_i915
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_dp_to_dig_port
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_lockdep_assert_held
	movq	%r12, %rdi
	callq	_intel_dp_is_edp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r15), %edi
	callq	_port_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	xorl	%ebx, %ebx
	cmpl	$0, (%r12)
	sete	%bl
	movl	(%r15), %edi
	callq	_port_name
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_WARN
	movq	%r12, %rdi
	callq	_ironlake_get_pp_control
	movq	_PANEL_POWER_ON@GOTPCREL(%rip), %rcx
	movq	_PANEL_POWER_RESET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_EDP_FORCE_VDD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_EDP_BLC_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	%r12, %rdi
	callq	__pp_ctrl_reg
	movl	%eax, %r13d
	movl	$0, (%r12)
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r13d, %edi
	callq	_POSTING_READ
	movq	%r12, %rdi
	callq	_wait_panel_off
	xorl	%eax, %eax
	callq	_ktime_get_boottime
	movl	%eax, 4(%r12)
	movq	%r15, %rdi
	callq	_intel_aux_power_domain
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_display_power_put_unchecked ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Turn eDP port %c panel power off\n"

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

	.comm	_PANEL_POWER_ON,4,2             ## @PANEL_POWER_ON
	.comm	_PANEL_POWER_RESET,4,2          ## @PANEL_POWER_RESET
	.comm	_EDP_FORCE_VDD,4,2              ## @EDP_FORCE_VDD
	.comm	_EDP_BLC_ENABLE,4,2             ## @EDP_BLC_ENABLE
	.no_dead_strip	_edp_panel_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function edp_panel_off
_edp_panel_off:                         ; @edp_panel_off
	.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	x20, x0
	bl	_dp_to_i915
	mov	x19, x0
	mov	x0, x20
	bl	_dp_to_dig_port
	mov	x21, x0
	mov	x0, x19
	bl	_lockdep_assert_held
	mov	x0, x20
	bl	_intel_dp_is_edp
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
	bl	_port_name
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w22, eq
	ldr	w0, [x21]
	bl	_port_name
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_WARN
	mov	x0, x20
	bl	_ironlake_get_pp_control
Lloh4:
	adrp	x8, _PANEL_POWER_ON@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PANEL_POWER_ON@GOTPAGEOFF]
Lloh6:
	adrp	x9, _PANEL_POWER_RESET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PANEL_POWER_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _EDP_FORCE_VDD@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EDP_FORCE_VDD@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	w22, w0, w8
	mov	x0, x20
	bl	__pp_ctrl_reg
	mov	x23, x0
	str	wzr, [x20]
	mov	x1, x22
	bl	_I915_WRITE
	mov	x0, x23
	bl	_POSTING_READ
	mov	x0, x20
	bl	_wait_panel_off
	bl	_ktime_get_boottime
	str	w0, [x20, #4]
	mov	x0, x21
	bl	_intel_aux_power_domain
	mov	x1, x0
	mov	x0, x19
	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
	b	_intel_display_power_put_unchecked
LBB0_2:
	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	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Turn eDP port %c panel power off\n"

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

	.comm	_PANEL_POWER_ON,4,2             ; @PANEL_POWER_ON
	.comm	_PANEL_POWER_RESET,4,2          ; @PANEL_POWER_RESET
	.comm	_EDP_FORCE_VDD,4,2              ; @EDP_FORCE_VDD
	.comm	_EDP_BLC_ENABLE,4,2             ; @EDP_BLC_ENABLE
	.no_dead_strip	_edp_panel_off
.subsections_via_symbols
