	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnl_ddi_vswing_sequence
_cnl_ddi_vswing_sequence:               ## @cnl_ddi_vswing_sequence
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_i915
	movl	(%rbx), %r13d
	movq	_INTEL_OUTPUT_HDMI@GOTPCREL(%rip), %r12
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	cmpl	%r14d, (%r12)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	movl	$4, %r15d
	movb	$1, %r14b
	jmp	LBB0_3
LBB0_2:
	leaq	4(%rbx), %rdi
	callq	_enc_to_intel_dp
	movl	(%rax), %r15d
	cmpl	$600001, 4(%rax)                ## imm = 0x927C1
	setl	%r14b
LBB0_3:
	movl	%r13d, %edi
	callq	_CNL_PORT_PCS_DW1_LN0
	movl	%eax, %edi
	callq	_I915_READ
	movq	_COMMON_KEEPER_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %ecx
	orl	%eax, %ecx
	notl	%ebx
	andl	%eax, %ebx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r12)
	cmovnel	%ecx, %ebx
	movl	%r13d, %edi
	callq	_CNL_PORT_PCS_DW1_GRP
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	cmpl	$4, %r15d
	sete	%r15b
	setl	%r12b
	andb	%r14b, %r15b
	andb	%r14b, %r12b
	xorl	%edi, %edi
	movl	%r13d, %esi
	callq	_CNL_PORT_TX_DW4_LN
	movl	%eax, %edi
	callq	_I915_READ
	movq	_LOADGEN_SELECT@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	notl	%ebx
	andl	%eax, %ebx
	xorl	%edi, %edi
	movl	%r13d, %esi
	callq	_CNL_PORT_TX_DW4_LN
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	$1, %edi
	movl	%r13d, %esi
	callq	_CNL_PORT_TX_DW4_LN
	movl	%eax, %edi
	callq	_I915_READ
	movl	(%r14), %ebx
	testb	%r15b, %r15b
	jne	LBB0_6
## %bb.4:
	testb	%r12b, %r12b
	je	LBB0_5
LBB0_6:
	orl	%eax, %ebx
	jmp	LBB0_7
LBB0_5:
	notl	%ebx
	andl	%eax, %ebx
LBB0_7:
	movl	$1, %edi
	movl	%r13d, %esi
	callq	_CNL_PORT_TX_DW4_LN
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	$2, %edi
	movl	%r13d, %esi
	callq	_CNL_PORT_TX_DW4_LN
	movl	%eax, %edi
	callq	_I915_READ
	movl	(%r14), %ebx
	testb	%r15b, %r15b
	jne	LBB0_10
## %bb.8:
	testb	%r12b, %r12b
	je	LBB0_9
LBB0_10:
	orl	%eax, %ebx
	jmp	LBB0_11
LBB0_9:
	notl	%ebx
	andl	%eax, %ebx
LBB0_11:
	movl	$2, %edi
	movl	%r13d, %esi
	callq	_CNL_PORT_TX_DW4_LN
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	$3, %edi
	movl	%r13d, %esi
	callq	_CNL_PORT_TX_DW4_LN
	movl	%eax, %edi
	callq	_I915_READ
	movl	(%r14), %ebx
	movl	%ebx, %ecx
	orl	%eax, %ecx
	notl	%ebx
	andl	%eax, %ebx
	testb	%r15b, %r15b
	cmovnel	%ecx, %ebx
	movl	$3, %edi
	movl	%r13d, %esi
	callq	_CNL_PORT_TX_DW4_LN
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	_CNL_PORT_CL1CM_DW5@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_SUS_CLOCK_CONFIG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movl	%r13d, %edi
	callq	_CNL_PORT_TX_DW5_LN0
	movl	%eax, %edi
	callq	_I915_READ
	movq	_TX_TRAINING_EN@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%r13d, %edi
	callq	_CNL_PORT_TX_DW5_GRP
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_cnl_ddi_vswing_program
	movl	%r13d, %edi
	callq	_CNL_PORT_TX_DW5_LN0
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	orl	(%r14), %ebx
	movl	%r13d, %edi
	callq	_CNL_PORT_TX_DW5_GRP
	movl	%eax, %edi
	movl	%ebx, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_HDMI,4,2          ## @INTEL_OUTPUT_HDMI
	.comm	_COMMON_KEEPER_EN,4,2           ## @COMMON_KEEPER_EN
	.comm	_LOADGEN_SELECT,4,2             ## @LOADGEN_SELECT
	.comm	_CNL_PORT_CL1CM_DW5,4,2         ## @CNL_PORT_CL1CM_DW5
	.comm	_SUS_CLOCK_CONFIG,4,2           ## @SUS_CLOCK_CONFIG
	.comm	_TX_TRAINING_EN,4,2             ## @TX_TRAINING_EN
	.no_dead_strip	_cnl_ddi_vswing_sequence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnl_ddi_vswing_sequence
_cnl_ddi_vswing_sequence:               ; @cnl_ddi_vswing_sequence
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x23, x0
	ldr	w0, [x23, #4]!
	bl	_to_i915
	ldr	w19, [x22]
Lloh0:
	adrp	x26, _INTEL_OUTPUT_HDMI@GOTPAGE
Lloh1:
	ldr	x26, [x26, _INTEL_OUTPUT_HDMI@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	mov	w24, #4
	mov	w25, #1
	b	LBB0_3
LBB0_2:
	mov	x0, x23
	bl	_enc_to_intel_dp
	ldp	w24, w8, [x0]
	mov	w9, #10177
	movk	w9, #9, lsl #16
	cmp	w8, w9
	cset	w25, lt
LBB0_3:
	mov	x0, x19
	bl	_CNL_PORT_PCS_DW1_LN0
	bl	_I915_READ
Lloh2:
	adrp	x8, _COMMON_KEEPER_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _COMMON_KEEPER_EN@GOTPAGEOFF]
	ldr	w9, [x26]
Lloh4:
	ldr	w8, [x8]
	orr	w10, w8, w0
	bic	w8, w0, w8
	cmp	w9, w20
	csel	w23, w8, w10, eq
	mov	x0, x19
	bl	_CNL_PORT_PCS_DW1_GRP
	mov	x1, x23
	bl	_I915_WRITE
	cmp	w24, #4
	cset	w8, eq
	and	w24, w25, w8
	cset	w8, lt
	and	w26, w25, w8
	mov	w0, #0
	mov	x1, x19
	bl	_CNL_PORT_TX_DW4_LN
	bl	_I915_READ
Lloh5:
	adrp	x25, _LOADGEN_SELECT@GOTPAGE
Lloh6:
	ldr	x25, [x25, _LOADGEN_SELECT@GOTPAGEOFF]
	ldr	w8, [x25]
	bic	w23, w0, w8
	mov	w0, #0
	mov	x1, x19
	bl	_CNL_PORT_TX_DW4_LN
	mov	x1, x23
	bl	_I915_WRITE
	mov	w0, #1
	mov	x1, x19
	bl	_CNL_PORT_TX_DW4_LN
	bl	_I915_READ
	ldr	w8, [x25]
	tbnz	w24, #0, LBB0_5
; %bb.4:
	cbz	w26, LBB0_6
LBB0_5:
	orr	w23, w8, w0
	b	LBB0_7
LBB0_6:
	bic	w23, w0, w8
LBB0_7:
	mov	w0, #1
	mov	x1, x19
	bl	_CNL_PORT_TX_DW4_LN
	mov	x1, x23
	bl	_I915_WRITE
	mov	w0, #2
	mov	x1, x19
	bl	_CNL_PORT_TX_DW4_LN
	bl	_I915_READ
	ldr	w8, [x25]
	tbnz	w24, #0, LBB0_9
; %bb.8:
	cbz	w26, LBB0_10
LBB0_9:
	orr	w23, w8, w0
	b	LBB0_11
LBB0_10:
	bic	w23, w0, w8
LBB0_11:
	mov	w0, #2
	mov	x1, x19
	bl	_CNL_PORT_TX_DW4_LN
	mov	x1, x23
	bl	_I915_WRITE
	mov	w0, #3
	mov	x1, x19
	bl	_CNL_PORT_TX_DW4_LN
	bl	_I915_READ
	ldr	w8, [x25]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w24, #0
	csel	w23, w9, w8, ne
	mov	w0, #3
	mov	x1, x19
	bl	_CNL_PORT_TX_DW4_LN
	mov	x1, x23
	bl	_I915_WRITE
Lloh7:
	adrp	x23, _CNL_PORT_CL1CM_DW5@GOTPAGE
Lloh8:
	ldr	x23, [x23, _CNL_PORT_CL1CM_DW5@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_I915_READ
Lloh9:
	adrp	x8, _SUS_CLOCK_CONFIG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUS_CLOCK_CONFIG@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x23]
	bl	_I915_WRITE
	mov	x0, x19
	bl	_CNL_PORT_TX_DW5_LN0
	bl	_I915_READ
Lloh12:
	adrp	x24, _TX_TRAINING_EN@GOTPAGE
Lloh13:
	ldr	x24, [x24, _TX_TRAINING_EN@GOTPAGEOFF]
	ldr	w8, [x24]
	bic	w23, w0, w8
	mov	x0, x19
	bl	_CNL_PORT_TX_DW5_GRP
	mov	x1, x23
	bl	_I915_WRITE
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_cnl_ddi_vswing_program
	mov	x0, x19
	bl	_CNL_PORT_TX_DW5_LN0
	bl	_I915_READ
	ldr	w8, [x24]
	orr	w20, w8, w0
	mov	x0, x19
	bl	_CNL_PORT_TX_DW5_GRP
	mov	x1, x20
	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
	b	_I915_WRITE
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_HDMI,4,2          ; @INTEL_OUTPUT_HDMI
	.comm	_COMMON_KEEPER_EN,4,2           ; @COMMON_KEEPER_EN
	.comm	_LOADGEN_SELECT,4,2             ; @LOADGEN_SELECT
	.comm	_CNL_PORT_CL1CM_DW5,4,2         ; @CNL_PORT_CL1CM_DW5
	.comm	_SUS_CLOCK_CONFIG,4,2           ; @SUS_CLOCK_CONFIG
	.comm	_TX_TRAINING_EN,4,2             ; @TX_TRAINING_EN
	.no_dead_strip	_cnl_ddi_vswing_sequence
.subsections_via_symbols
