	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edp_panel_vdd_on
_edp_panel_vdd_on:                      ## @edp_panel_vdd_on
	.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, %rbx
	callq	_dp_to_i915
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_dp_to_dig_port
	movq	%rax, %r12
	cmpl	$0, (%rbx)
	sete	%r14b
	movq	%r15, %rdi
	callq	_lockdep_assert_held
	movq	%rbx, %rdi
	callq	_intel_dp_is_edp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	8(%rbx), %rdi
	callq	_cancel_delayed_work
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	callq	_edp_have_panel_vdd
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	%r12, %rdi
	callq	_intel_aux_power_domain
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_intel_display_power_get
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	callq	_port_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%rbx, %rdi
	callq	_edp_have_panel_power
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_wait_panel_power_cycle
LBB0_5:
	movq	%rbx, %rdi
	callq	_ironlake_get_pp_control
	movl	%eax, %r15d
	movq	_EDP_FORCE_VDD@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	__pp_stat_reg
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	__pp_ctrl_reg
	movl	%eax, %r13d
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_I915_WRITE
	movl	%r13d, %edi
	callq	_POSTING_READ
	movl	%r12d, %edi
	callq	_I915_READ
	movl	%eax, %r15d
	movl	%r13d, %edi
	callq	_I915_READ
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%rbx, %rdi
	callq	_edp_have_panel_power
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_port_name
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	4(%rbx), %edi
	callq	_msleep
	jmp	LBB0_7
LBB0_1:
	xorl	%r14d, %r14d
LBB0_7:
	movzbl	%r14b, %eax
	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	"Turning eDP port %c VDD on\n"

	.comm	_EDP_FORCE_VDD,4,2              ## @EDP_FORCE_VDD
L_.str.1:                               ## @.str.1
	.asciz	"PP_STATUS: 0x%08x PP_CONTROL: 0x%08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"eDP port %c panel power wasn't enabled\n"

	.no_dead_strip	_edp_panel_vdd_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function edp_panel_vdd_on
_edp_panel_vdd_on:                      ; @edp_panel_vdd_on
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x0
	mov	x0, x20
	bl	_dp_to_dig_port
	mov	x21, x0
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w19, eq
	mov	x0, x22
	bl	_lockdep_assert_held
	mov	x0, x20
	bl	_intel_dp_is_edp
	cbz	w0, LBB0_6
; %bb.1:
	add	x0, x20, #8
	bl	_cancel_delayed_work
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x20
	bl	_edp_have_panel_vdd
	cbnz	x0, LBB0_7
; %bb.2:
	mov	x0, x21
	bl	_intel_aux_power_domain
	mov	x1, x0
	mov	x0, x22
	bl	_intel_display_power_get
	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
	mov	x0, x20
	bl	_edp_have_panel_power
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_wait_panel_power_cycle
LBB0_4:
	mov	x0, x20
	bl	_ironlake_get_pp_control
Lloh2:
	adrp	x8, _EDP_FORCE_VDD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EDP_FORCE_VDD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w22, w8, w0
	mov	x0, x20
	bl	__pp_stat_reg
	mov	x23, x0
	mov	x0, x20
	bl	__pp_ctrl_reg
	mov	x24, x0
	mov	x1, x22
	bl	_I915_WRITE
	mov	x0, x24
	bl	_POSTING_READ
	mov	x0, x23
	bl	_I915_READ
	mov	x22, x0
	mov	x0, x24
	bl	_I915_READ
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_DRM_DEBUG_KMS
	mov	x0, x20
	bl	_edp_have_panel_power
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	w0, [x21]
	bl	_port_name
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w0, [x20, #4]
	bl	_msleep
	b	LBB0_7
LBB0_6:
	mov	w19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Turning eDP port %c VDD on\n"

	.comm	_EDP_FORCE_VDD,4,2              ; @EDP_FORCE_VDD
l_.str.1:                               ; @.str.1
	.asciz	"PP_STATUS: 0x%08x PP_CONTROL: 0x%08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"eDP port %c panel power wasn't enabled\n"

	.no_dead_strip	_edp_panel_vdd_on
.subsections_via_symbols
