	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bxt_ddi_phy_set_signal_level   ## -- Begin function bxt_ddi_phy_set_signal_level
	.p2align	4, 0x90
_bxt_ddi_phy_set_signal_level:          ## @bxt_ddi_phy_set_signal_level
	.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	%r9d, %r15d
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movl	%edx, %r13d
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_bxt_port_to_phy_channel
	movl	-48(%rbp), %edi
	movl	-44(%rbp), %esi
	callq	_BXT_PORT_PCS_DW10_LN01
	movl	%eax, %edi
	callq	_I915_READ
	movq	_TX2_SWING_CALC_INIT@GOTPCREL(%rip), %rdx
	movq	_TX1_SWING_CALC_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rdx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	-48(%rbp), %edi
	movl	-44(%rbp), %esi
	callq	_BXT_PORT_PCS_DW10_GRP
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	-48(%rbp), %edi
	movl	-44(%rbp), %esi
	callq	_BXT_PORT_TX_DW2_LN0
	movl	%eax, %edi
	callq	_I915_READ
	movq	_MARGIN_000@GOTPCREL(%rip), %rcx
	movq	_UNIQ_TRANS_SCALE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_MARGIN_000_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r13d
	movq	_UNIQ_TRANS_SCALE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	orl	%edx, %r13d
	orl	%r13d, %r12d
	movl	-48(%rbp), %edi
	movl	-44(%rbp), %esi
	callq	_BXT_PORT_TX_DW2_GRP
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_I915_WRITE
	movl	-48(%rbp), %edi
	movl	-44(%rbp), %esi
	callq	_BXT_PORT_TX_DW3_LN0
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_SCALE_DCOMP_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	notl	%ecx
	andl	%ebx, %ecx
	orl	%eax, %ebx
	testl	%r14d, %r14d
	cmovel	%ecx, %ebx
	movq	_UNIQUE_TRANGE_EN_METHOD@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_3
## %bb.1:
	andl	%ebx, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_3:
	movl	-48(%rbp), %edi
	movl	-44(%rbp), %esi
	callq	_BXT_PORT_TX_DW3_GRP
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	-48(%rbp), %edi
	movl	-44(%rbp), %esi
	callq	_BXT_PORT_TX_DW4_LN0
	movl	%eax, %edi
	callq	_I915_READ
	movq	_DEEMPH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_DE_EMPHASIS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	shll	%cl, %r15d
	andl	%eax, %edx
	orl	%edx, %r15d
	movl	-48(%rbp), %edi
	movl	-44(%rbp), %esi
	callq	_BXT_PORT_TX_DW4_GRP
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_I915_WRITE
	movl	-48(%rbp), %edi
	movl	-44(%rbp), %esi
	callq	_BXT_PORT_PCS_DW10_LN01
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_TX2_SWING_CALC_INIT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_TX1_SWING_CALC_INIT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	-48(%rbp), %edi
	movl	-44(%rbp), %esi
	callq	_BXT_PORT_PCS_DW10_GRP
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX2_SWING_CALC_INIT,4,2        ## @TX2_SWING_CALC_INIT
	.comm	_TX1_SWING_CALC_INIT,4,2        ## @TX1_SWING_CALC_INIT
	.comm	_MARGIN_000,4,2                 ## @MARGIN_000
	.comm	_UNIQ_TRANS_SCALE,4,2           ## @UNIQ_TRANS_SCALE
	.comm	_MARGIN_000_SHIFT,4,2           ## @MARGIN_000_SHIFT
	.comm	_UNIQ_TRANS_SCALE_SHIFT,4,2     ## @UNIQ_TRANS_SCALE_SHIFT
	.comm	_SCALE_DCOMP_METHOD,4,2         ## @SCALE_DCOMP_METHOD
	.comm	_UNIQUE_TRANGE_EN_METHOD,4,2    ## @UNIQUE_TRANGE_EN_METHOD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disabled scaling while ouniqetrangenmethod was set"

	.comm	_DE_EMPHASIS,4,2                ## @DE_EMPHASIS
	.comm	_DEEMPH_SHIFT,4,2               ## @DEEMPH_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bxt_ddi_phy_set_signal_level   ; -- Begin function bxt_ddi_phy_set_signal_level
	.p2align	2
_bxt_ddi_phy_set_signal_level:          ; @bxt_ddi_phy_set_signal_level
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_bxt_port_to_phy_channel
	ldp	w1, w0, [sp, #8]
	bl	_BXT_PORT_PCS_DW10_LN01
	bl	_I915_READ
Lloh0:
	adrp	x24, _TX2_SWING_CALC_INIT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TX2_SWING_CALC_INIT@GOTPAGEOFF]
Lloh2:
	adrp	x25, _TX1_SWING_CALC_INIT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _TX1_SWING_CALC_INIT@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	bic	w23, w0, w8
	ldp	w1, w0, [sp, #8]
	bl	_BXT_PORT_PCS_DW10_GRP
	mov	x1, x23
	bl	_I915_WRITE
	ldp	w1, w0, [sp, #8]
	bl	_BXT_PORT_TX_DW2_LN0
	bl	_I915_READ
Lloh4:
	adrp	x8, _MARGIN_000@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MARGIN_000@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _UNIQ_TRANS_SCALE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _UNIQ_TRANS_SCALE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh10:
	adrp	x9, _MARGIN_000_SHIFT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MARGIN_000_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	lsl	w9, w22, w9
Lloh13:
	adrp	x10, _UNIQ_TRANS_SCALE_SHIFT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _UNIQ_TRANS_SCALE_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	lsl	w10, w21, w10
	orr	w8, w8, w9
	orr	w21, w8, w10
	ldp	w1, w0, [sp, #8]
	bl	_BXT_PORT_TX_DW2_GRP
	mov	x1, x21
	bl	_I915_WRITE
	ldp	w1, w0, [sp, #8]
	bl	_BXT_PORT_TX_DW3_LN0
	bl	_I915_READ
Lloh16:
	adrp	x8, _SCALE_DCOMP_METHOD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SCALE_DCOMP_METHOD@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	bic	w9, w0, w8
	orr	w10, w8, w0
	cmp	w20, #0
	csel	w20, w9, w10, eq
Lloh19:
	adrp	x9, _UNIQUE_TRANGE_EN_METHOD@GOTPAGE
Lloh20:
	ldr	x9, [x9, _UNIQUE_TRANGE_EN_METHOD@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w20, w9
	b.eq	LBB0_3
; %bb.1:
	and	w8, w20, w8
	cbnz	w8, LBB0_3
; %bb.2:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_3:
	ldp	w1, w0, [sp, #8]
	bl	_BXT_PORT_TX_DW3_GRP
	mov	x1, x20
	bl	_I915_WRITE
	ldp	w1, w0, [sp, #8]
	bl	_BXT_PORT_TX_DW4_LN0
	bl	_I915_READ
Lloh24:
	adrp	x8, _DE_EMPHASIS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DE_EMPHASIS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _DEEMPH_SHIFT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DEEMPH_SHIFT@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh29:
	ldr	w9, [x9]
	lsl	w9, w19, w9
	orr	w19, w9, w8
	ldp	w1, w0, [sp, #8]
	bl	_BXT_PORT_TX_DW4_GRP
	mov	x1, x19
	bl	_I915_WRITE
	ldp	w1, w0, [sp, #8]
	bl	_BXT_PORT_PCS_DW10_LN01
	bl	_I915_READ
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w8, w0
	orr	w19, w8, w9
	ldp	w1, w0, [sp, #8]
	bl	_BXT_PORT_PCS_DW10_GRP
	mov	x1, x19
	bl	_I915_WRITE
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_TX2_SWING_CALC_INIT,4,2        ; @TX2_SWING_CALC_INIT
	.comm	_TX1_SWING_CALC_INIT,4,2        ; @TX1_SWING_CALC_INIT
	.comm	_MARGIN_000,4,2                 ; @MARGIN_000
	.comm	_UNIQ_TRANS_SCALE,4,2           ; @UNIQ_TRANS_SCALE
	.comm	_MARGIN_000_SHIFT,4,2           ; @MARGIN_000_SHIFT
	.comm	_UNIQ_TRANS_SCALE_SHIFT,4,2     ; @UNIQ_TRANS_SCALE_SHIFT
	.comm	_SCALE_DCOMP_METHOD,4,2         ; @SCALE_DCOMP_METHOD
	.comm	_UNIQUE_TRANGE_EN_METHOD,4,2    ; @UNIQUE_TRANGE_EN_METHOD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disabled scaling while ouniqetrangenmethod was set"

	.comm	_DE_EMPHASIS,4,2                ; @DE_EMPHASIS
	.comm	_DEEMPH_SHIFT,4,2               ; @DEEMPH_SHIFT
.subsections_via_symbols
