	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edp_panel_on
_edp_panel_on:                          ## @edp_panel_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, %r14
	movq	%rax, %rdi
	callq	_lockdep_assert_held
	movq	%rbx, %rdi
	callq	_intel_dp_is_edp
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_dp_to_dig_port
	movl	(%rax), %edi
	callq	_port_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	movq	%rbx, %rdi
	callq	_edp_have_panel_power
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_dp_to_dig_port
	movl	(%rax), %edi
	callq	_port_name
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_WARN
	testq	%rax, %rax
	je	LBB0_2
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_wait_panel_power_cycle
	movq	%rbx, %rdi
	callq	__pp_ctrl_reg
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_ironlake_get_pp_control
	movl	%eax, %r12d
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_PANEL_POWER_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r12d
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_POSTING_READ
LBB0_4:
	movq	_PANEL_POWER_ON@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_IS_GEN
	xorl	%ecx, %ecx
	movq	_PANEL_POWER_RESET@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	(%r13), %ecx
LBB0_6:
	orl	%ecx, %r12d
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_POSTING_READ
	movq	%rbx, %rdi
	callq	_wait_panel_on
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	orl	(%r13), %r12d
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_I915_WRITE
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Turn eDP port %c panel power on\n"

L_.str.1:                               ## @.str.1
	.asciz	"eDP port %c panel power already on\n"

	.comm	_PANEL_POWER_RESET,4,2          ## @PANEL_POWER_RESET
	.comm	_PANEL_POWER_ON,4,2             ## @PANEL_POWER_ON
	.comm	_jiffies,4,2                    ## @jiffies
	.no_dead_strip	_edp_panel_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_on
_edp_panel_on:                          ; @edp_panel_on
	.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
	bl	_dp_to_i915
	mov	x20, x0
	bl	_lockdep_assert_held
	mov	x0, x19
	bl	_intel_dp_is_edp
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_dp_to_dig_port
	ldr	w0, [x0]
	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, x19
	bl	_edp_have_panel_power
	mov	x21, x0
	mov	x0, x19
	bl	_dp_to_dig_port
	ldr	w0, [x0]
	bl	_port_name
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_WARN
	cbz	x0, LBB0_3
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
LBB0_3:
	mov	x0, x19
	bl	_wait_panel_power_cycle
	mov	x0, x19
	bl	__pp_ctrl_reg
	mov	x21, x0
	mov	x0, x19
	bl	_ironlake_get_pp_control
	mov	x22, x0
	mov	x0, x20
	mov	w1, #5
	bl	_IS_GEN
Lloh4:
	adrp	x23, _PANEL_POWER_RESET@GOTPAGE
Lloh5:
	ldr	x23, [x23, _PANEL_POWER_RESET@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x23]
	bic	w22, w22, w8
	mov	x0, x21
	mov	x1, x22
	bl	_I915_WRITE
	mov	x0, x21
	bl	_POSTING_READ
LBB0_5:
Lloh6:
	adrp	x8, _PANEL_POWER_ON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PANEL_POWER_ON@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w22, w8, w22
	mov	x0, x20
	mov	w1, #5
	bl	_IS_GEN
	ldr	w8, [x23]
	cmp	x0, #0
	csel	w8, w8, wzr, eq
	orr	w22, w22, w8
	mov	x0, x21
	mov	x1, x22
	bl	_I915_WRITE
	mov	x0, x21
	bl	_POSTING_READ
	mov	x0, x19
	bl	_wait_panel_on
Lloh9:
	adrp	x8, _jiffies@GOTPAGE
Lloh10:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x20
	mov	w1, #5
	bl	_IS_GEN
	cbz	x0, LBB0_2
; %bb.6:
	ldr	w8, [x23]
	orr	w1, w8, w22
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x21
	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	_POSTING_READ
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Turn eDP port %c panel power on\n"

l_.str.1:                               ; @.str.1
	.asciz	"eDP port %c panel power already on\n"

	.comm	_PANEL_POWER_RESET,4,2          ; @PANEL_POWER_RESET
	.comm	_PANEL_POWER_ON,4,2             ; @PANEL_POWER_ON
	.comm	_jiffies,4,2                    ; @jiffies
	.no_dead_strip	_edp_panel_on
.subsections_via_symbols
