	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_dp_set_signal_levels     ## -- Begin function intel_dp_set_signal_levels
	.p2align	4, 0x90
_intel_dp_set_signal_levels:            ## @intel_dp_set_signal_levels
	.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
	movq	%rdi, %r12
	callq	_dp_to_i915
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_dp_to_dig_port
	movl	(%rax), %r15d
	movq	(%r12), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_IS_GEN9_LP
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$10, %eax
	jl	LBB0_6
LBB0_2:
	movq	%r12, %rdi
	callq	_bxt_signal_levels
LBB0_3:
	movl	%eax, %r15d
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	_DP_TRAIN_VOLTAGE_SWING_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r14d, %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	_DP_TRAIN_PRE_EMPHASIS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_DP_TRAIN_PRE_EMPHASIS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	callq	_DRM_DEBUG_KMS
	notl	%ebx
	andl	8(%r12), %ebx
	orl	%r15d, %ebx
	movl	%ebx, 8(%r12)
	movl	12(%r12), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	12(%r12), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
LBB0_6:
	movq	%rbx, %rdi
	callq	_HAS_DDI
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%r12, %rdi
	callq	_ddi_signal_levels
	movl	%eax, %r15d
	movq	_DDI_BUF_EMP_MASK@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_4
LBB0_10:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_5
LBB0_11:
	movq	%rbx, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%r12, %rdi
	callq	_chv_signal_levels
	jmp	LBB0_3
LBB0_14:
	movq	%rbx, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r12, %rdi
	callq	_vlv_signal_levels
	jmp	LBB0_3
LBB0_16:
	movq	%rbx, %rdi
	callq	_IS_IVYBRIDGE
	movq	_PORT_A@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	cmpl	(%r13), %r15d
	jne	LBB0_19
## %bb.18:
	movl	%r14d, %edi
	callq	_ivb_cpu_edp_signal_levels
	movl	%eax, %r15d
	movq	_EDP_LINK_TRAIN_VOL_EMP_MASK_IVB@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_19:
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	cmpl	(%r13), %r15d
	jne	LBB0_22
## %bb.21:
	movl	%r14d, %edi
	callq	_snb_cpu_edp_signal_levels
	movl	%eax, %r15d
	movq	_EDP_LINK_TRAIN_VOL_EMP_MASK_SNB@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_22:
	movl	%r14d, %edi
	callq	_g4x_signal_levels
	movl	%eax, %r15d
	movq	_DP_VOLTAGE_MASK@GOTPCREL(%rip), %rax
	movq	_DP_PRE_EMPHASIS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_10
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_DDI_BUF_EMP_MASK,4,2           ## @DDI_BUF_EMP_MASK
	.comm	_PORT_A,4,2                     ## @PORT_A
	.comm	_EDP_LINK_TRAIN_VOL_EMP_MASK_IVB,4,2 ## @EDP_LINK_TRAIN_VOL_EMP_MASK_IVB
	.comm	_EDP_LINK_TRAIN_VOL_EMP_MASK_SNB,4,2 ## @EDP_LINK_TRAIN_VOL_EMP_MASK_SNB
	.comm	_DP_VOLTAGE_MASK,4,2            ## @DP_VOLTAGE_MASK
	.comm	_DP_PRE_EMPHASIS_MASK,4,2       ## @DP_PRE_EMPHASIS_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using signal levels %08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Using vswing level %d\n"

	.comm	_DP_TRAIN_VOLTAGE_SWING_MASK,4,2 ## @DP_TRAIN_VOLTAGE_SWING_MASK
L_.str.2:                               ## @.str.2
	.asciz	"Using pre-emphasis level %d\n"

	.comm	_DP_TRAIN_PRE_EMPHASIS_MASK,4,2 ## @DP_TRAIN_PRE_EMPHASIS_MASK
	.comm	_DP_TRAIN_PRE_EMPHASIS_SHIFT,4,2 ## @DP_TRAIN_PRE_EMPHASIS_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_dp_set_signal_levels     ; -- Begin function intel_dp_set_signal_levels
	.p2align	2
_intel_dp_set_signal_levels:            ; @intel_dp_set_signal_levels
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	bl	_dp_to_i915
	mov	x21, x0
	mov	x0, x19
	bl	_dp_to_dig_port
	ldr	w22, [x0]
	ldr	x8, [x19]
	ldr	w20, [x8]
	mov	x0, x21
	bl	_IS_GEN9_LP
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_INTEL_GEN
	cmp	w0, #10
	b.lt	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_bxt_signal_levels
LBB0_3:
	mov	x21, x0
	mov	w22, #0
LBB0_4:
Lloh0:
	adrp	x8, _DP_TRAIN_VOLTAGE_SWING_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_TRAIN_VOLTAGE_SWING_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w1, w8, w20
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh5:
	adrp	x8, _DP_TRAIN_PRE_EMPHASIS_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DP_TRAIN_PRE_EMPHASIS_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh8:
	adrp	x9, _DP_TRAIN_PRE_EMPHASIS_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DP_TRAIN_PRE_EMPHASIS_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	asr	w1, w8, w9
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldp	w8, w0, [x19, #8]
	bic	w8, w8, w22
	orr	w1, w8, w21
	str	w1, [x19, #8]
	bl	_I915_WRITE
	ldr	w0, [x19, #12]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_POSTING_READ
LBB0_5:
	mov	x0, x21
	bl	_HAS_DDI
	cbz	x0, LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_ddi_signal_levels
	mov	x21, x0
Lloh13:
	adrp	x8, _DDI_BUF_EMP_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DDI_BUF_EMP_MASK@GOTPAGEOFF]
LBB0_7:
	ldr	w22, [x8]
	cbz	w22, LBB0_4
LBB0_8:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DRM_DEBUG_KMS
	b	LBB0_4
LBB0_9:
	mov	x0, x21
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_chv_signal_levels
	b	LBB0_3
LBB0_11:
	mov	x0, x21
	bl	_IS_VALLEYVIEW
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_vlv_signal_levels
	b	LBB0_3
LBB0_13:
	mov	x0, x21
	bl	_IS_IVYBRIDGE
Lloh17:
	adrp	x23, _PORT_A@GOTPAGE
Lloh18:
	ldr	x23, [x23, _PORT_A@GOTPAGEOFF]
	cbz	x0, LBB0_16
; %bb.14:
	ldr	w8, [x23]
	cmp	w22, w8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_ivb_cpu_edp_signal_levels
	mov	x21, x0
Lloh19:
	adrp	x8, _EDP_LINK_TRAIN_VOL_EMP_MASK_IVB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EDP_LINK_TRAIN_VOL_EMP_MASK_IVB@GOTPAGEOFF]
	b	LBB0_7
LBB0_16:
	mov	x0, x21
	mov	w1, #6
	bl	_IS_GEN
	cbz	x0, LBB0_19
; %bb.17:
	ldr	w8, [x23]
	cmp	w22, w8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x20
	bl	_snb_cpu_edp_signal_levels
	mov	x21, x0
Lloh21:
	adrp	x8, _EDP_LINK_TRAIN_VOL_EMP_MASK_SNB@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EDP_LINK_TRAIN_VOL_EMP_MASK_SNB@GOTPAGEOFF]
	b	LBB0_7
LBB0_19:
	mov	x0, x20
	bl	_g4x_signal_levels
	mov	x21, x0
Lloh23:
	adrp	x8, _DP_VOLTAGE_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DP_VOLTAGE_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _DP_PRE_EMPHASIS_MASK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DP_PRE_EMPHASIS_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w22, w9, w8
	cbnz	w22, LBB0_8
	b	LBB0_4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_DDI_BUF_EMP_MASK,4,2           ; @DDI_BUF_EMP_MASK
	.comm	_PORT_A,4,2                     ; @PORT_A
	.comm	_EDP_LINK_TRAIN_VOL_EMP_MASK_IVB,4,2 ; @EDP_LINK_TRAIN_VOL_EMP_MASK_IVB
	.comm	_EDP_LINK_TRAIN_VOL_EMP_MASK_SNB,4,2 ; @EDP_LINK_TRAIN_VOL_EMP_MASK_SNB
	.comm	_DP_VOLTAGE_MASK,4,2            ; @DP_VOLTAGE_MASK
	.comm	_DP_PRE_EMPHASIS_MASK,4,2       ; @DP_PRE_EMPHASIS_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using signal levels %08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Using vswing level %d\n"

	.comm	_DP_TRAIN_VOLTAGE_SWING_MASK,4,2 ; @DP_TRAIN_VOLTAGE_SWING_MASK
l_.str.2:                               ; @.str.2
	.asciz	"Using pre-emphasis level %d\n"

	.comm	_DP_TRAIN_PRE_EMPHASIS_MASK,4,2 ; @DP_TRAIN_PRE_EMPHASIS_MASK
	.comm	_DP_TRAIN_PRE_EMPHASIS_SHIFT,4,2 ; @DP_TRAIN_PRE_EMPHASIS_SHIFT
.subsections_via_symbols
