	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_check_edp
_intel_dp_check_edp:                    ## @intel_dp_check_edp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_intel_dp_to_dev
	movq	%rbx, %rdi
	callq	_is_edp
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_ironlake_edp_have_panel_power
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_ironlake_edp_have_panel_vdd
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	movq	_PCH_PP_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_PCH_PP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"eDP powered off while attempting aux channel communication.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Status 0x%08x Control 0x%08x\n"

	.comm	_PCH_PP_STATUS,4,2              ## @PCH_PP_STATUS
	.comm	_PCH_PP_CONTROL,4,2             ## @PCH_PP_CONTROL
	.no_dead_strip	_intel_dp_check_edp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_check_edp
_intel_dp_check_edp:                    ; @intel_dp_check_edp
	.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
	mov	x0, x19
	bl	_is_edp
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_ironlake_edp_have_panel_power
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_ironlake_edp_have_panel_vdd
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
Lloh2:
	adrp	x8, _PCH_PP_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCH_PP_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x19, x0
Lloh5:
	adrp	x8, _PCH_PP_CONTROL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCH_PP_CONTROL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x2, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_DEBUG_KMS
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"eDP powered off while attempting aux channel communication.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Status 0x%08x Control 0x%08x\n"

	.comm	_PCH_PP_STATUS,4,2              ; @PCH_PP_STATUS
	.comm	_PCH_PP_CONTROL,4,2             ; @PCH_PP_CONTROL
	.no_dead_strip	_intel_dp_check_edp
.subsections_via_symbols
