	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_ddi_combo_vswing_program
_icl_ddi_combo_vswing_program:          ## @icl_ddi_combo_vswing_program
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	leaq	-48(%rbp), %rax
	movl	%ecx, %esi
	movl	%r8d, %edx
	movq	%rax, %rcx
	callq	_icl_get_combo_buf_trans
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	movq	-48(%rbp), %rdx
	cmpq	%r15, %rdx
	ja	LBB0_3
## %bb.2:
	decq	%rdx
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_DRM_DEBUG_KMS
	movq	-48(%rbp), %r15
	decq	%r15
LBB0_3:
	movl	%r14d, %edi
	callq	_ICL_PORT_TX_DW5_LN0
	movl	%eax, %edi
	callq	_I915_READ
	movq	_SCALING_MODE_SEL_MASK@GOTPCREL(%rip), %rcx
	movq	_RTERM_SELECT_MASK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rbx
	orq	(%rcx), %rbx
	movq	_TAP2_DISABLE@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rbx
	movq	_TAP3_DISABLE@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rbx
	notq	%rbx
	andq	%rax, %rbx
	movl	$2, %edi
	callq	_SCALING_MODE_SEL
	movq	%rax, %r13
	movl	$6, %edi
	callq	_RTERM_SELECT
	orq	%rax, %r13
	orq	%rbx, %r13
	movq	_TAP3_DISABLE@GOTPCREL(%rip), %rax
	orq	(%rax), %r13
	movl	%r14d, %edi
	callq	_ICL_PORT_TX_DW5_GRP
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_I915_WRITE
	movl	%r14d, %edi
	callq	_ICL_PORT_TX_DW2_LN0
	movl	%eax, %edi
	callq	_I915_READ
	movq	_SWING_SEL_LOWER_MASK@GOTPCREL(%rip), %rcx
	movq	_SWING_SEL_UPPER_MASK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rbx
	orq	(%rcx), %rbx
	movq	_RCOMP_SCALAR_MASK@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rbx
	notq	%rbx
	andq	%rax, %rbx
	leaq	(%r15,%r15,4), %r15
	movl	16(%r12,%r15,4), %edi
	callq	_SWING_SEL_UPPER
	movq	%rax, %r13
	movl	16(%r12,%r15,4), %edi
	callq	_SWING_SEL_LOWER
	orq	%rax, %r13
	movl	$152, %edi
	callq	_RCOMP_SCALAR
	orq	%rax, %r13
	orq	%rbx, %r13
	movl	%r14d, %edi
	callq	_ICL_PORT_TX_DW2_GRP
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_I915_WRITE
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_ICL_PORT_TX_DW4_LN
	movl	%eax, %edi
	callq	_I915_READ
	movq	_POST_CURSOR_1_MASK@GOTPCREL(%rip), %rcx
	movq	_POST_CURSOR_2_MASK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r13
	orq	(%rcx), %r13
	movq	_CURSOR_COEFF_MASK@GOTPCREL(%rip), %rcx
	orq	(%rcx), %r13
	notq	%r13
	andq	%rax, %r13
	movl	12(%r12,%r15,4), %edi
	callq	_POST_CURSOR_1
	movq	%rax, %rbx
	movl	8(%r12,%r15,4), %edi
	callq	_POST_CURSOR_2
	orq	%rax, %rbx
	movl	4(%r12,%r15,4), %edi
	callq	_CURSOR_COEFF
	orq	%rax, %rbx
	orq	%r13, %rbx
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_ICL_PORT_TX_DW4_LN
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_I915_WRITE
	movl	$1, %edi
	movl	%r14d, %esi
	callq	_ICL_PORT_TX_DW4_LN
	movl	%eax, %edi
	callq	_I915_READ
	movq	_POST_CURSOR_2_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movq	_POST_CURSOR_1_MASK@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rbx
	movq	_CURSOR_COEFF_MASK@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rbx
	notq	%rbx
	andq	%rax, %rbx
	movl	12(%r12,%r15,4), %edi
	callq	_POST_CURSOR_1
	movq	%rax, %r13
	movl	8(%r12,%r15,4), %edi
	callq	_POST_CURSOR_2
	orq	%rax, %r13
	movl	4(%r12,%r15,4), %edi
	callq	_CURSOR_COEFF
	orq	%rax, %r13
	orq	%rbx, %r13
	movl	$1, %edi
	movl	%r14d, %esi
	callq	_ICL_PORT_TX_DW4_LN
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_I915_WRITE
	movl	$2, %edi
	movl	%r14d, %esi
	callq	_ICL_PORT_TX_DW4_LN
	movl	%eax, %edi
	callq	_I915_READ
	movq	_POST_CURSOR_2_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movq	_POST_CURSOR_1_MASK@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rbx
	movq	_CURSOR_COEFF_MASK@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rbx
	notq	%rbx
	andq	%rax, %rbx
	movl	12(%r12,%r15,4), %edi
	callq	_POST_CURSOR_1
	movq	%rax, %r13
	movl	8(%r12,%r15,4), %edi
	callq	_POST_CURSOR_2
	orq	%rax, %r13
	movl	4(%r12,%r15,4), %edi
	callq	_CURSOR_COEFF
	orq	%rax, %r13
	orq	%rbx, %r13
	movl	$2, %edi
	movl	%r14d, %esi
	callq	_ICL_PORT_TX_DW4_LN
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_I915_WRITE
	movl	$3, %edi
	movl	%r14d, %esi
	callq	_ICL_PORT_TX_DW4_LN
	movl	%eax, %edi
	callq	_I915_READ
	movq	_POST_CURSOR_2_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movq	_POST_CURSOR_1_MASK@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rbx
	movq	_CURSOR_COEFF_MASK@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rbx
	notq	%rbx
	andq	%rax, %rbx
	movl	12(%r12,%r15,4), %edi
	callq	_POST_CURSOR_1
	movq	%rax, %r13
	movl	8(%r12,%r15,4), %edi
	callq	_POST_CURSOR_2
	orq	%rax, %r13
	movl	4(%r12,%r15,4), %edi
	callq	_CURSOR_COEFF
	orq	%rax, %r13
	orq	%rbx, %r13
	movl	$3, %edi
	movl	%r14d, %esi
	callq	_ICL_PORT_TX_DW4_LN
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_I915_WRITE
	movl	%r14d, %edi
	callq	_ICL_PORT_TX_DW7_LN0
	movl	%eax, %edi
	callq	_I915_READ
	movq	_N_SCALAR_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	notq	%rbx
	andq	%rax, %rbx
	movl	(%r12,%r15,4), %edi
	callq	_N_SCALAR
	orq	%rax, %rbx
	movl	%r14d, %edi
	callq	_ICL_PORT_TX_DW7_GRP
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_I915_WRITE
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DDI translation not found for level %d. Using %d instead."

	.comm	_SCALING_MODE_SEL_MASK,8,3      ## @SCALING_MODE_SEL_MASK
	.comm	_RTERM_SELECT_MASK,8,3          ## @RTERM_SELECT_MASK
	.comm	_TAP2_DISABLE,8,3               ## @TAP2_DISABLE
	.comm	_TAP3_DISABLE,8,3               ## @TAP3_DISABLE
	.comm	_SWING_SEL_LOWER_MASK,8,3       ## @SWING_SEL_LOWER_MASK
	.comm	_SWING_SEL_UPPER_MASK,8,3       ## @SWING_SEL_UPPER_MASK
	.comm	_RCOMP_SCALAR_MASK,8,3          ## @RCOMP_SCALAR_MASK
	.comm	_POST_CURSOR_1_MASK,8,3         ## @POST_CURSOR_1_MASK
	.comm	_POST_CURSOR_2_MASK,8,3         ## @POST_CURSOR_2_MASK
	.comm	_CURSOR_COEFF_MASK,8,3          ## @CURSOR_COEFF_MASK
	.comm	_N_SCALAR_MASK,8,3              ## @N_SCALAR_MASK
	.no_dead_strip	_icl_ddi_combo_vswing_program
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icl_ddi_combo_vswing_program
_icl_ddi_combo_vswing_program:          ; @icl_ddi_combo_vswing_program
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x8, x3
	mov	x19, x2
	mov	x20, x1
	add	x3, sp, #8
	mov	x1, x8
	mov	x2, x4
	bl	_icl_get_combo_buf_trans
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x8, [sp, #8]
	cmp	x8, x20
	b.hi	LBB0_3
; %bb.2:
	sub	x2, x8, #1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG_KMS
	ldr	x8, [sp, #8]
	sub	x20, x8, #1
LBB0_3:
	mov	x0, x19
	bl	_ICL_PORT_TX_DW5_LN0
	bl	_I915_READ
Lloh2:
	adrp	x8, _SCALING_MODE_SEL_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCALING_MODE_SEL_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x9, _RTERM_SELECT_MASK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _RTERM_SELECT_MASK@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	ldr	x9, [x9]
	orr	x8, x9, x8
Lloh8:
	adrp	x9, _TAP2_DISABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TAP2_DISABLE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	orr	x8, x8, x9
Lloh11:
	adrp	x22, _TAP3_DISABLE@GOTPAGE
Lloh12:
	ldr	x22, [x22, _TAP3_DISABLE@GOTPAGEOFF]
	ldr	x9, [x22]
	orr	x8, x8, x9
	bic	x23, x0, x8
	mov	w0, #2
	bl	_SCALING_MODE_SEL
	orr	x23, x23, x0
	mov	w0, #6
	bl	_RTERM_SELECT
	orr	x8, x23, x0
	ldr	x9, [x22]
	orr	x22, x8, x9
	mov	x0, x19
	bl	_ICL_PORT_TX_DW5_GRP
	mov	x1, x22
	bl	_I915_WRITE
	mov	x0, x19
	bl	_ICL_PORT_TX_DW2_LN0
	bl	_I915_READ
Lloh13:
	adrp	x8, _SWING_SEL_LOWER_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SWING_SEL_LOWER_MASK@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _SWING_SEL_UPPER_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SWING_SEL_UPPER_MASK@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	orr	x8, x9, x8
Lloh19:
	adrp	x9, _RCOMP_SCALAR_MASK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RCOMP_SCALAR_MASK@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	orr	x8, x8, x9
	bic	x22, x0, x8
	mov	w8, #20
	madd	x21, x20, x8, x21
	ldr	w0, [x21, #16]
	bl	_SWING_SEL_UPPER
	orr	x20, x22, x0
	ldr	w0, [x21, #16]
	bl	_SWING_SEL_LOWER
	orr	x20, x20, x0
	mov	w0, #152
	bl	_RCOMP_SCALAR
	orr	x20, x20, x0
	mov	x0, x19
	bl	_ICL_PORT_TX_DW2_GRP
	mov	x1, x20
	bl	_I915_WRITE
	mov	w0, #0
	mov	x1, x19
	bl	_ICL_PORT_TX_DW4_LN
	bl	_I915_READ
Lloh22:
	adrp	x22, _POST_CURSOR_1_MASK@GOTPAGE
Lloh23:
	ldr	x22, [x22, _POST_CURSOR_1_MASK@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh24:
	adrp	x23, _POST_CURSOR_2_MASK@GOTPAGE
Lloh25:
	ldr	x23, [x23, _POST_CURSOR_2_MASK@GOTPAGEOFF]
	ldr	x9, [x23]
	orr	x8, x9, x8
Lloh26:
	adrp	x24, _CURSOR_COEFF_MASK@GOTPAGE
Lloh27:
	ldr	x24, [x24, _CURSOR_COEFF_MASK@GOTPAGEOFF]
	ldr	x9, [x24]
	orr	x8, x8, x9
	bic	x20, x0, x8
	ldr	w0, [x21, #12]
	bl	_POST_CURSOR_1
	orr	x20, x20, x0
	ldr	w0, [x21, #8]
	bl	_POST_CURSOR_2
	orr	x20, x20, x0
	ldr	w0, [x21, #4]
	bl	_CURSOR_COEFF
	orr	x20, x20, x0
	mov	w0, #0
	mov	x1, x19
	bl	_ICL_PORT_TX_DW4_LN
	mov	x1, x20
	bl	_I915_WRITE
	mov	w0, #1
	mov	x1, x19
	bl	_ICL_PORT_TX_DW4_LN
	bl	_I915_READ
	ldr	x8, [x22]
	ldr	x9, [x23]
	orr	x8, x9, x8
	ldr	x9, [x24]
	orr	x8, x8, x9
	bic	x20, x0, x8
	ldr	w0, [x21, #12]
	bl	_POST_CURSOR_1
	orr	x20, x20, x0
	ldr	w0, [x21, #8]
	bl	_POST_CURSOR_2
	orr	x20, x20, x0
	ldr	w0, [x21, #4]
	bl	_CURSOR_COEFF
	orr	x20, x20, x0
	mov	w0, #1
	mov	x1, x19
	bl	_ICL_PORT_TX_DW4_LN
	mov	x1, x20
	bl	_I915_WRITE
	mov	w0, #2
	mov	x1, x19
	bl	_ICL_PORT_TX_DW4_LN
	bl	_I915_READ
	ldr	x8, [x22]
	ldr	x9, [x23]
	orr	x8, x9, x8
	ldr	x9, [x24]
	orr	x8, x8, x9
	bic	x20, x0, x8
	ldr	w0, [x21, #12]
	bl	_POST_CURSOR_1
	orr	x20, x20, x0
	ldr	w0, [x21, #8]
	bl	_POST_CURSOR_2
	orr	x20, x20, x0
	ldr	w0, [x21, #4]
	bl	_CURSOR_COEFF
	orr	x20, x20, x0
	mov	w0, #2
	mov	x1, x19
	bl	_ICL_PORT_TX_DW4_LN
	mov	x1, x20
	bl	_I915_WRITE
	mov	w0, #3
	mov	x1, x19
	bl	_ICL_PORT_TX_DW4_LN
	bl	_I915_READ
	ldr	x8, [x22]
	ldr	x9, [x23]
	orr	x8, x9, x8
	ldr	x9, [x24]
	orr	x8, x8, x9
	bic	x20, x0, x8
	ldr	w0, [x21, #12]
	bl	_POST_CURSOR_1
	orr	x20, x20, x0
	ldr	w0, [x21, #8]
	bl	_POST_CURSOR_2
	orr	x20, x20, x0
	ldr	w0, [x21, #4]
	bl	_CURSOR_COEFF
	orr	x20, x20, x0
	mov	w0, #3
	mov	x1, x19
	bl	_ICL_PORT_TX_DW4_LN
	mov	x1, x20
	bl	_I915_WRITE
	mov	x0, x19
	bl	_ICL_PORT_TX_DW7_LN0
	bl	_I915_READ
Lloh28:
	adrp	x8, _N_SCALAR_MASK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _N_SCALAR_MASK@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	bic	x20, x0, x8
	ldr	w0, [x21]
	bl	_N_SCALAR
	orr	x20, x0, x20
	mov	x0, x19
	bl	_ICL_PORT_TX_DW7_GRP
	mov	x1, x20
	bl	_I915_WRITE
LBB0_4:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DDI translation not found for level %d. Using %d instead."

	.comm	_SCALING_MODE_SEL_MASK,8,3      ; @SCALING_MODE_SEL_MASK
	.comm	_RTERM_SELECT_MASK,8,3          ; @RTERM_SELECT_MASK
	.comm	_TAP2_DISABLE,8,3               ; @TAP2_DISABLE
	.comm	_TAP3_DISABLE,8,3               ; @TAP3_DISABLE
	.comm	_SWING_SEL_LOWER_MASK,8,3       ; @SWING_SEL_LOWER_MASK
	.comm	_SWING_SEL_UPPER_MASK,8,3       ; @SWING_SEL_UPPER_MASK
	.comm	_RCOMP_SCALAR_MASK,8,3          ; @RCOMP_SCALAR_MASK
	.comm	_POST_CURSOR_1_MASK,8,3         ; @POST_CURSOR_1_MASK
	.comm	_POST_CURSOR_2_MASK,8,3         ; @POST_CURSOR_2_MASK
	.comm	_CURSOR_COEFF_MASK,8,3          ; @CURSOR_COEFF_MASK
	.comm	_N_SCALAR_MASK,8,3              ; @N_SCALAR_MASK
	.no_dead_strip	_icl_ddi_combo_vswing_program
.subsections_via_symbols
