	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_ddi_pre_enable_hdmi
_intel_ddi_pre_enable_hdmi:             ## @intel_ddi_pre_enable_hdmi
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	leaq	4(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_enc_to_dig_port
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	12(%rax), %r15
	movl	4(%r13), %edi
	callq	_to_i915
	movq	%rax, %r14
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_intel_ddi_hdmi_level
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_enc_to_dig_port
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	$1, %esi
	callq	_intel_dp_dual_mode_set_tmds_output
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_intel_ddi_clk_select
	movl	8(%r12), %esi
	movq	%r14, %rdi
	callq	_intel_display_power_get
	movq	%r12, %rdi
	callq	_icl_program_mg_dp_mode
	movq	%r12, %rdi
	callq	_icl_disable_phy_clock_gating
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$11, %eax
	jl	LBB0_2
## %bb.1:
	movl	4(%rbx), %esi
	movq	_INTEL_OUTPUT_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_icl_ddi_vswing_sequence
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_2:
	movq	%r14, %rdi
	callq	_IS_CANNONLAKE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_INTEL_OUTPUT_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_cnl_ddi_vswing_sequence
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_4:
	movq	%r14, %rdi
	callq	_IS_GEN9_LP
	testq	%rax, %rax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	movq	_INTEL_OUTPUT_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_bxt_ddi_vswing_sequence
	jmp	LBB0_7
LBB0_6:
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_intel_prepare_hdmi_ddi_buffers
LBB0_7:
	movq	%r12, %rdi
	callq	_icl_enable_phy_clock_gating
	movq	%r14, %rdi
	callq	_IS_GEN9_BC
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_INTEL_OUTPUT_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_skl_ddi_set_iboost
LBB0_9:
	movq	%rbx, %rdi
	callq	_intel_ddi_enable_pipe_clock
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_HDMI,4,2          ## @INTEL_OUTPUT_HDMI
	.no_dead_strip	_intel_ddi_pre_enable_hdmi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_ddi_pre_enable_hdmi
_intel_ddi_pre_enable_hdmi:             ; @intel_ddi_pre_enable_hdmi
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x25, x0, #4
	mov	x0, x25
	bl	_enc_to_dig_port
	mov	x22, x0
	add	x26, x0, #12
	ldr	w0, [x21, #4]
	bl	_to_i915
	mov	x24, x0
	ldr	w1, [x21]
	bl	_intel_ddi_hdmi_level
	mov	x23, x0
	mov	x0, x25
	bl	_enc_to_dig_port
	mov	x25, x0
	mov	x0, x26
	mov	w1, #1
	bl	_intel_dp_dual_mode_set_tmds_output
	mov	x0, x21
	mov	x1, x20
	bl	_intel_ddi_clk_select
	ldr	w1, [x25, #8]
	mov	x0, x24
	bl	_intel_display_power_get
	mov	x0, x25
	bl	_icl_program_mg_dp_mode
	mov	x0, x25
	bl	_icl_disable_phy_clock_gating
	mov	x0, x24
	bl	_INTEL_GEN
	cmp	w0, #11
	b.lt	LBB0_2
; %bb.1:
	ldr	w1, [x20, #4]
Lloh0:
	adrp	x8, _INTEL_OUTPUT_HDMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_OUTPUT_HDMI@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, x23
	bl	_icl_ddi_vswing_sequence
	b	LBB0_7
LBB0_2:
	mov	x0, x24
	bl	_IS_CANNONLAKE
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _INTEL_OUTPUT_HDMI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTEL_OUTPUT_HDMI@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x23
	bl	_cnl_ddi_vswing_sequence
	b	LBB0_7
LBB0_4:
	mov	x0, x24
	bl	_IS_GEN9_LP
	cbz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _INTEL_OUTPUT_HDMI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INTEL_OUTPUT_HDMI@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x23
	bl	_bxt_ddi_vswing_sequence
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	mov	x1, x23
	bl	_intel_prepare_hdmi_ddi_buffers
LBB0_7:
	mov	x0, x25
	bl	_icl_enable_phy_clock_gating
	mov	x0, x24
	bl	_IS_GEN9_BC
	cbz	x0, LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _INTEL_OUTPUT_HDMI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INTEL_OUTPUT_HDMI@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x23
	bl	_skl_ddi_set_iboost
LBB0_9:
	mov	x0, x20
	bl	_intel_ddi_enable_pipe_clock
	ldr	x4, [x22]
	ldr	w1, [x20]
	mov	x0, x21
	mov	x2, x20
	mov	x3, 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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	br	x4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_HDMI,4,2          ; @INTEL_OUTPUT_HDMI
	.no_dead_strip	_intel_ddi_pre_enable_hdmi
.subsections_via_symbols
