	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_enable_dp
_intel_enable_dp:                       ## @intel_enable_dp
	.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
	callq	_enc_to_intel_dp
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_I915_READ
	movq	_DP_PORT_EN@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_ironlake_edp_panel_vdd_on
	movq	_DRM_MODE_DPMS_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_intel_dp_sink_dpms
	movq	%rbx, %rdi
	callq	_intel_dp_start_link_train
	movq	%rbx, %rdi
	callq	_ironlake_edp_panel_on
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ironlake_edp_panel_vdd_off
	movq	%rbx, %rdi
	callq	_intel_dp_complete_link_train
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ironlake_edp_backlight_on      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_PORT_EN,4,2                 ## @DP_PORT_EN
	.comm	_DRM_MODE_DPMS_ON,4,2           ## @DRM_MODE_DPMS_ON
	.no_dead_strip	_intel_enable_dp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_enable_dp
_intel_enable_dp:                       ; @intel_enable_dp
	.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
	bl	_enc_to_intel_dp
	mov	x19, x0
	ldr	w0, [x0]
	bl	_I915_READ
Lloh0:
	adrp	x8, _DP_PORT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_PORT_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w0, w8, w0
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x19
	bl	_ironlake_edp_panel_vdd_on
Lloh3:
	adrp	x8, _DRM_MODE_DPMS_ON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_DPMS_ON@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_intel_dp_sink_dpms
	mov	x0, x19
	bl	_intel_dp_start_link_train
	mov	x0, x19
	bl	_ironlake_edp_panel_on
	mov	x0, x19
	mov	w1, #1
	bl	_ironlake_edp_panel_vdd_off
	mov	x0, x19
	bl	_intel_dp_complete_link_train
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ironlake_edp_backlight_on
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_PORT_EN,4,2                 ; @DP_PORT_EN
	.comm	_DRM_MODE_DPMS_ON,4,2           ; @DRM_MODE_DPMS_ON
	.no_dead_strip	_intel_enable_dp
.subsections_via_symbols
