	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivb_manual_fdi_link_train
_ivb_manual_fdi_link_train:             ## @ivb_manual_fdi_link_train
	.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
	callq	_to_intel_crtc
	movq	%rax, %r12
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_FDI_RX_IMR
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movq	_FDI_RX_SYMBOL_LOCK@GOTPCREL(%rip), %rcx
	movq	_FDI_RX_BIT_LOCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$150, %edi
	callq	_udelay
	movl	%r15d, %edi
	callq	_FDI_RX_IIR
	movl	%eax, %edi
	callq	_I915_READ
	leaq	L_.str(%rip), %rdi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	%r15d, %edi
	callq	_FDI_TX_CTL
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	andl	$-3670017, %eax                 ## imm = 0xFFC7FFFF
	movl	4(%r12), %ecx
	shll	$19, %ecx
	addl	$-524288, %ecx                  ## imm = 0xFFF80000
	orl	%eax, %ecx
	movq	_FDI_LINK_TRAIN_AUTO@GOTPCREL(%rip), %r12
	movq	_FDI_LINK_TRAIN_NONE_IVB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r12), %eax
	notl	%eax
	andl	%ecx, %eax
	movq	_FDI_LINK_TRAIN_PATTERN_1_IVB@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_FDI_LINK_TRAIN_VOL_EMP_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_FDI_LINK_TRAIN_400MV_0DB_SNB_B@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_FDI_COMPOSITE_SYNC@GOTPCREL(%rip), %r13
	orl	(%r13), %esi
	movq	_FDI_TX_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_FDI_RX_MISC
	movq	_FDI_RX_TP1_TO_TP2_48@GOTPCREL(%rip), %rcx
	movq	_FDI_RX_FDI_DELAY_90@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_FDI_RX_CTL
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movq	_FDI_LINK_TRAIN_PATTERN_MASK_CPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%r12), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_FDI_LINK_TRAIN_PATTERN_1_CPT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	orl	(%r13), %esi
	movq	_FDI_RX_BIT_LOCK@GOTPCREL(%rip), %r13
	movq	_FDI_RX_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$150, %edi
	callq	_udelay
	movl	%r15d, %edi
	callq	_FDI_TX_CTL
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movl	(%r14), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_snb_b_fdi_train_param@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	orl	(%rax), %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_udelay
	movl	%r15d, %edi
	callq	_FDI_RX_IIR
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	(%r13), %esi
	testl	%ebx, %esi
	jne	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	callq	_I915_READ
	movl	(%r13), %esi
	testl	%eax, %esi
	jne	LBB0_2
## %bb.3:
	movl	%r15d, %edi
	callq	_FDI_TX_CTL
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movq	_FDI_LINK_TRAIN_VOL_EMP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	(%r14), %rax
	orl	4(%rax), %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_udelay
	movl	%r15d, %edi
	callq	_FDI_RX_IIR
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	(%r13), %esi
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	testl	%ebx, %esi
	jne	LBB0_2
## %bb.4:
	movl	%r12d, %edi
	callq	_I915_READ
	movl	(%r13), %esi
	testl	%eax, %esi
	jne	LBB0_2
## %bb.5:
	movl	%r15d, %edi
	callq	_FDI_TX_CTL
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movq	_FDI_LINK_TRAIN_VOL_EMP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	(%r14), %rax
	orl	8(%rax), %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_udelay
	movl	%r15d, %edi
	callq	_FDI_RX_IIR
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	(%r13), %esi
	movl	$2, -44(%rbp)                   ## 4-byte Folded Spill
	testl	%ebx, %esi
	jne	LBB0_2
## %bb.6:
	movl	%r12d, %edi
	callq	_I915_READ
	movl	(%r13), %esi
	testl	%eax, %esi
	jne	LBB0_2
## %bb.7:
	movl	%r15d, %edi
	callq	_FDI_TX_CTL
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movq	_FDI_LINK_TRAIN_VOL_EMP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	(%r14), %rax
	orl	12(%rax), %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_udelay
	movl	%r15d, %edi
	callq	_FDI_RX_IIR
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	(%r13), %esi
	movl	$3, -44(%rbp)                   ## 4-byte Folded Spill
	testl	%ebx, %esi
	jne	LBB0_2
## %bb.8:
	movl	%r12d, %edi
	callq	_I915_READ
	movl	(%r13), %esi
	testl	%eax, %esi
	je	LBB0_9
LBB0_2:
	orl	%ebx, %esi
	movl	%r12d, %edi
	callq	_I915_WRITE
	leaq	L_.str.2(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_10:
	movl	%r15d, %edi
	callq	_FDI_TX_CTL
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movq	_FDI_LINK_TRAIN_NONE_IVB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_FDI_LINK_TRAIN_PATTERN_2_IVB@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_FDI_LINK_TRAIN_VOL_EMP_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	notl	%esi
	andl	%ecx, %esi
	movq	_FDI_LINK_TRAIN_400MV_0DB_SNB_B@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_FDI_RX_CTL
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movq	_FDI_LINK_TRAIN_PATTERN_MASK_CPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_FDI_LINK_TRAIN_PATTERN_2_CPT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$150, %edi
	callq	_udelay
	movl	%r15d, %edi
	callq	_FDI_TX_CTL
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movl	(%r13), %esi
	notl	%esi
	andl	%eax, %esi
	movq	(%r14), %rax
	orl	(%rax), %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_udelay
	movl	%r15d, %edi
	callq	_FDI_RX_IIR
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_FDI_RX_SYMBOL_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	jne	LBB0_11
## %bb.12:
	movl	%r15d, %edi
	callq	_FDI_TX_CTL
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movl	(%r13), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_snb_b_fdi_train_param@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orl	4(%rax), %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_udelay
	movl	%r15d, %edi
	callq	_FDI_RX_IIR
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_FDI_RX_SYMBOL_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	je	LBB0_14
## %bb.13:
	movl	$1, %r12d
	jmp	LBB0_11
LBB0_14:
	movl	%r15d, %edi
	callq	_FDI_TX_CTL
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movl	(%r13), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_snb_b_fdi_train_param@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orl	8(%rax), %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_udelay
	movl	%r15d, %edi
	callq	_FDI_RX_IIR
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_FDI_RX_SYMBOL_LOCK@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%ebx, %eax
	je	LBB0_16
## %bb.15:
	movl	$2, %r12d
	jmp	LBB0_11
LBB0_16:
	movl	%r15d, %edi
	callq	_FDI_TX_CTL
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movl	(%r13), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_snb_b_fdi_train_param@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orl	12(%rax), %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_udelay
	movl	%r15d, %edi
	callq	_FDI_RX_IIR
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	(%r12), %eax
	testl	%ebx, %eax
	je	LBB0_18
## %bb.17:
	movl	$3, %r12d
LBB0_11:
	orl	%eax, %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	leaq	L_.str.4(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_19:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
LBB0_18:
	leaq	L_.str.5(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_19
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_FDI_RX_SYMBOL_LOCK,4,2         ## @FDI_RX_SYMBOL_LOCK
	.comm	_FDI_RX_BIT_LOCK,4,2            ## @FDI_RX_BIT_LOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FDI_RX_IIR before link train 0x%x\n"

	.comm	_FDI_LINK_TRAIN_AUTO,4,2        ## @FDI_LINK_TRAIN_AUTO
	.comm	_FDI_LINK_TRAIN_NONE_IVB,4,2    ## @FDI_LINK_TRAIN_NONE_IVB
	.comm	_FDI_LINK_TRAIN_PATTERN_1_IVB,4,2 ## @FDI_LINK_TRAIN_PATTERN_1_IVB
	.comm	_FDI_LINK_TRAIN_VOL_EMP_MASK,4,2 ## @FDI_LINK_TRAIN_VOL_EMP_MASK
	.comm	_FDI_LINK_TRAIN_400MV_0DB_SNB_B,4,2 ## @FDI_LINK_TRAIN_400MV_0DB_SNB_B
	.comm	_FDI_COMPOSITE_SYNC,4,2         ## @FDI_COMPOSITE_SYNC
	.comm	_FDI_TX_ENABLE,4,2              ## @FDI_TX_ENABLE
	.comm	_FDI_RX_TP1_TO_TP2_48,4,2       ## @FDI_RX_TP1_TO_TP2_48
	.comm	_FDI_RX_FDI_DELAY_90,4,2        ## @FDI_RX_FDI_DELAY_90
	.comm	_FDI_LINK_TRAIN_PATTERN_MASK_CPT,4,2 ## @FDI_LINK_TRAIN_PATTERN_MASK_CPT
	.comm	_FDI_LINK_TRAIN_PATTERN_1_CPT,4,2 ## @FDI_LINK_TRAIN_PATTERN_1_CPT
	.comm	_FDI_RX_ENABLE,4,2              ## @FDI_RX_ENABLE
	.comm	_snb_b_fdi_train_param,8,3      ## @snb_b_fdi_train_param
L_.str.1:                               ## @.str.1
	.asciz	"FDI_RX_IIR 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"FDI train 1 done, level %i.\n"

L_.str.3:                               ## @.str.3
	.asciz	"FDI train 1 fail!\n"

	.comm	_FDI_LINK_TRAIN_PATTERN_2_IVB,4,2 ## @FDI_LINK_TRAIN_PATTERN_2_IVB
	.comm	_FDI_LINK_TRAIN_PATTERN_2_CPT,4,2 ## @FDI_LINK_TRAIN_PATTERN_2_CPT
L_.str.4:                               ## @.str.4
	.asciz	"FDI train 2 done, level %i.\n"

L_.str.5:                               ## @.str.5
	.asciz	"FDI train 2 fail!\n"

L_.str.6:                               ## @.str.6
	.asciz	"FDI train done.\n"

	.no_dead_strip	_ivb_manual_fdi_link_train
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivb_manual_fdi_link_train
_ivb_manual_fdi_link_train:             ; @ivb_manual_fdi_link_train
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	bl	_to_intel_crtc
	mov	x20, x0
	ldr	w19, [x0]
	mov	x0, x19
	bl	_FDI_RX_IMR
	mov	x21, x0
	bl	_I915_READ
Lloh0:
	adrp	x8, _FDI_RX_SYMBOL_LOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDI_RX_SYMBOL_LOCK@GOTPAGEOFF]
	mov	x25, x8
	ldr	w8, [x8]
Lloh2:
	adrp	x28, _FDI_RX_BIT_LOCK@GOTPAGE
Lloh3:
	ldr	x28, [x28, _FDI_RX_BIT_LOCK@GOTPAGEOFF]
	ldr	w9, [x28]
	orr	w8, w9, w8
	bic	w1, w0, w8
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x21
	bl	_POSTING_READ
	mov	w0, #150
	bl	_udelay
	mov	x0, x19
	bl	_FDI_RX_IIR
	bl	_I915_READ
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	bl	_FDI_TX_CTL
	mov	x21, x0
	bl	_I915_READ
	and	w8, w0, #0xffc7ffff
	ldr	w9, [x20, #4]
	lsl	w9, w9, #19
	sub	w9, w9, #128, lsl #12           ; =524288
	orr	w8, w9, w8
Lloh6:
	adrp	x24, _FDI_LINK_TRAIN_AUTO@GOTPAGE
Lloh7:
	ldr	x24, [x24, _FDI_LINK_TRAIN_AUTO@GOTPAGEOFF]
Lloh8:
	adrp	x10, _FDI_LINK_TRAIN_NONE_IVB@GOTPAGE
Lloh9:
	ldr	x10, [x10, _FDI_LINK_TRAIN_NONE_IVB@GOTPAGEOFF]
	ldr	w9, [x24]
	mov	x26, x10
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w8, w8, w9
Lloh10:
	adrp	x9, _FDI_LINK_TRAIN_PATTERN_1_IVB@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FDI_LINK_TRAIN_PATTERN_1_IVB@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh13:
	adrp	x23, _FDI_LINK_TRAIN_VOL_EMP_MASK@GOTPAGE
Lloh14:
	ldr	x23, [x23, _FDI_LINK_TRAIN_VOL_EMP_MASK@GOTPAGEOFF]
	ldr	w9, [x23]
	bic	w8, w8, w9
Lloh15:
	adrp	x9, _FDI_LINK_TRAIN_400MV_0DB_SNB_B@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FDI_LINK_TRAIN_400MV_0DB_SNB_B@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x22, _FDI_COMPOSITE_SYNC@GOTPAGE
Lloh19:
	ldr	x22, [x22, _FDI_COMPOSITE_SYNC@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _FDI_TX_ENABLE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _FDI_TX_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x19
	bl	_FDI_RX_MISC
Lloh23:
	adrp	x8, _FDI_RX_TP1_TO_TP2_48@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FDI_RX_TP1_TO_TP2_48@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _FDI_RX_FDI_DELAY_90@GOTPAGE
Lloh27:
	ldr	x9, [x9, _FDI_RX_FDI_DELAY_90@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_I915_WRITE
	mov	x0, x19
	bl	_FDI_RX_CTL
	mov	x20, x0
	bl	_I915_READ
	ldr	w8, [x24]
Lloh29:
	adrp	x24, _FDI_LINK_TRAIN_PATTERN_MASK_CPT@GOTPAGE
Lloh30:
	ldr	x24, [x24, _FDI_LINK_TRAIN_PATTERN_MASK_CPT@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh31:
	adrp	x9, _FDI_LINK_TRAIN_PATTERN_1_CPT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _FDI_LINK_TRAIN_PATTERN_1_CPT@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x22]
	orr	w8, w8, w9
Lloh34:
	adrp	x9, _FDI_RX_ENABLE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _FDI_RX_ENABLE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x20
	bl	_POSTING_READ
	mov	w0, #150
	bl	_udelay
	mov	x0, x19
	bl	_FDI_TX_CTL
	mov	x20, x0
	bl	_I915_READ
	ldr	w8, [x23]
	bic	w8, w0, w8
Lloh37:
	adrp	x9, _snb_b_fdi_train_param@GOTPAGE
Lloh38:
	ldr	x9, [x9, _snb_b_fdi_train_param@GOTPAGEOFF]
	mov	x27, x9
	ldr	x9, [x9]
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x20
	bl	_POSTING_READ
	mov	w0, #500
	bl	_udelay
	mov	x0, x19
	bl	_FDI_RX_IIR
	mov	x20, x0
	bl	_I915_READ
	mov	x21, x0
	mov	x8, x0
	str	x8, [sp]
Lloh39:
	adrp	x0, l_.str.1@PAGE
Lloh40:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x28]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	mov	w28, #0
	mov	x22, x25
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_I915_READ
	ldr	w8, [x28]
	tst	w8, w0
	mov	x22, x25
	b.eq	LBB0_11
; %bb.3:
	mov	w28, #0
LBB0_4:
	mov	x25, x26
LBB0_5:
Lloh41:
	adrp	x26, _FDI_LINK_TRAIN_400MV_0DB_SNB_B@GOTPAGE
Lloh42:
	ldr	x26, [x26, _FDI_LINK_TRAIN_400MV_0DB_SNB_B@GOTPAGEOFF]
LBB0_6:
	orr	w1, w8, w21
	mov	x0, x20
	bl	_I915_WRITE
	str	x28, [sp]
Lloh43:
	adrp	x0, l_.str.2@PAGE
Lloh44:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_7:
	mov	x0, x19
	bl	_FDI_TX_CTL
	mov	x20, x0
	bl	_I915_READ
	ldr	w8, [x25]
	bic	w8, w0, w8
Lloh45:
	adrp	x9, _FDI_LINK_TRAIN_PATTERN_2_IVB@GOTPAGE
Lloh46:
	ldr	x9, [x9, _FDI_LINK_TRAIN_PATTERN_2_IVB@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x23]
	bic	w8, w8, w9
	ldr	w9, [x26]
	orr	w1, w8, w9
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x19
	bl	_FDI_RX_CTL
	mov	x20, x0
	bl	_I915_READ
	ldr	w8, [x24]
	bic	w8, w0, w8
Lloh48:
	adrp	x9, _FDI_LINK_TRAIN_PATTERN_2_CPT@GOTPAGE
Lloh49:
	ldr	x9, [x9, _FDI_LINK_TRAIN_PATTERN_2_CPT@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x20
	bl	_POSTING_READ
	mov	w0, #150
	bl	_udelay
	mov	x0, x19
	bl	_FDI_TX_CTL
	mov	x20, x0
	bl	_I915_READ
	ldr	w8, [x23]
	bic	w8, w0, w8
	ldr	x9, [x27]
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x20
	bl	_POSTING_READ
	mov	w0, #500
	bl	_udelay
	mov	x0, x19
	bl	_FDI_RX_IIR
	mov	x20, x0
	bl	_I915_READ
	mov	x21, x0
	str	x21, [sp]
Lloh51:
	adrp	x0, l_.str.1@PAGE
Lloh52:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.8:
	mov	w19, #0
	b	LBB0_20
LBB0_9:
	mov	x0, x19
	bl	_FDI_TX_CTL
	mov	x20, x0
	bl	_I915_READ
	ldr	w8, [x23]
	bic	w8, w0, w8
	ldr	x9, [x27]
	ldr	w9, [x9, #4]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x20
	bl	_POSTING_READ
	mov	w0, #500
	bl	_udelay
	mov	x0, x19
	bl	_FDI_RX_IIR
	mov	x20, x0
	bl	_I915_READ
	mov	x21, x0
	str	x21, [sp]
Lloh53:
	adrp	x0, l_.str.1@PAGE
Lloh54:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.10:
	mov	w19, #1
	b	LBB0_19
LBB0_11:
	mov	x0, x19
	bl	_FDI_TX_CTL
	mov	x20, x0
	bl	_I915_READ
	ldr	w8, [x23]
	bic	w8, w0, w8
	ldr	x9, [x27]
	ldr	w9, [x9, #4]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x20
	bl	_POSTING_READ
	mov	w0, #500
	bl	_udelay
	mov	x0, x19
	bl	_FDI_RX_IIR
	mov	x20, x0
	bl	_I915_READ
	mov	x21, x0
	str	x21, [sp]
Lloh55:
	adrp	x0, l_.str.1@PAGE
Lloh56:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x28]
	tst	w8, w21
	mov	x25, x26
	b.eq	LBB0_15
; %bb.12:
	mov	w28, #1
	b	LBB0_5
LBB0_13:
	mov	x0, x19
	bl	_FDI_TX_CTL
	mov	x20, x0
	bl	_I915_READ
	ldr	w8, [x23]
	bic	w8, w0, w8
	ldr	x9, [x27]
	ldr	w9, [x9, #8]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x20
	bl	_POSTING_READ
	mov	w0, #500
	bl	_udelay
	mov	x0, x19
	bl	_FDI_RX_IIR
	mov	x20, x0
	bl	_I915_READ
	mov	x21, x0
	str	x21, [sp]
Lloh57:
	adrp	x0, l_.str.1@PAGE
Lloh58:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_17
; %bb.14:
	mov	w19, #2
	b	LBB0_19
LBB0_15:
	mov	x0, x20
	bl	_I915_READ
	ldr	w8, [x28]
	tst	w8, w0
Lloh59:
	adrp	x26, _FDI_LINK_TRAIN_400MV_0DB_SNB_B@GOTPAGE
Lloh60:
	ldr	x26, [x26, _FDI_LINK_TRAIN_400MV_0DB_SNB_B@GOTPAGEOFF]
	b.eq	LBB0_22
; %bb.16:
	mov	w28, #1
	b	LBB0_6
LBB0_17:
	mov	x0, x19
	bl	_FDI_TX_CTL
	mov	x20, x0
	bl	_I915_READ
	ldr	w8, [x23]
	bic	w8, w0, w8
	ldr	x9, [x27]
	ldr	w9, [x9, #12]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x20
	bl	_POSTING_READ
	mov	w0, #500
	bl	_udelay
	mov	x0, x19
	bl	_FDI_RX_IIR
	mov	x20, x0
	bl	_I915_READ
	mov	x21, x0
	str	x21, [sp]
Lloh61:
	adrp	x0, l_.str.1@PAGE
Lloh62:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_25
; %bb.18:
	mov	w19, #3
LBB0_19:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_20:
	orr	w1, w8, w21
	mov	x0, x20
	bl	_I915_WRITE
	str	x19, [sp]
Lloh63:
	adrp	x0, l_.str.4@PAGE
Lloh64:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_21:
Lloh65:
	adrp	x0, l_.str.6@PAGE
Lloh66:
	add	x0, x0, l_.str.6@PAGEOFF
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_DRM_DEBUG_KMS
LBB0_22:
	mov	x0, x19
	bl	_FDI_TX_CTL
	mov	x20, x0
	bl	_I915_READ
	ldr	w8, [x23]
	bic	w8, w0, w8
	ldr	x9, [x27]
	ldr	w9, [x9, #8]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x20
	bl	_POSTING_READ
	mov	w0, #500
	bl	_udelay
	mov	x0, x19
	bl	_FDI_RX_IIR
	mov	x20, x0
	bl	_I915_READ
	mov	x21, x0
	mov	x8, x0
	str	x8, [sp]
Lloh67:
	adrp	x0, l_.str.1@PAGE
Lloh68:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x28]
	tst	w8, w21
	b.ne	LBB0_24
; %bb.23:
	mov	x0, x20
	bl	_I915_READ
	ldr	w8, [x28]
	tst	w8, w0
	b.eq	LBB0_26
LBB0_24:
	mov	w28, #2
	b	LBB0_6
LBB0_25:
Lloh69:
	adrp	x0, l_.str.5@PAGE
Lloh70:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_21
LBB0_26:
	mov	x0, x19
	bl	_FDI_TX_CTL
	mov	x20, x0
	bl	_I915_READ
	ldr	w8, [x23]
	bic	w8, w0, w8
	ldr	x9, [x27]
	ldr	w9, [x9, #12]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x20
	bl	_POSTING_READ
	mov	w0, #500
	bl	_udelay
	mov	x0, x19
	bl	_FDI_RX_IIR
	mov	x20, x0
	bl	_I915_READ
	mov	x21, x0
	mov	x8, x0
	str	x8, [sp]
Lloh71:
	adrp	x0, l_.str.1@PAGE
Lloh72:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x28]
	tst	w8, w21
	b.ne	LBB0_28
; %bb.27:
	mov	x0, x20
	bl	_I915_READ
	ldr	w8, [x28]
	tst	w8, w0
	b.eq	LBB0_29
LBB0_28:
	mov	w28, #3
	b	LBB0_6
LBB0_29:
Lloh73:
	adrp	x0, l_.str.3@PAGE
Lloh74:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_7
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.cfi_endproc
                                        ; -- End function
	.comm	_FDI_RX_SYMBOL_LOCK,4,2         ; @FDI_RX_SYMBOL_LOCK
	.comm	_FDI_RX_BIT_LOCK,4,2            ; @FDI_RX_BIT_LOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FDI_RX_IIR before link train 0x%x\n"

	.comm	_FDI_LINK_TRAIN_AUTO,4,2        ; @FDI_LINK_TRAIN_AUTO
	.comm	_FDI_LINK_TRAIN_NONE_IVB,4,2    ; @FDI_LINK_TRAIN_NONE_IVB
	.comm	_FDI_LINK_TRAIN_PATTERN_1_IVB,4,2 ; @FDI_LINK_TRAIN_PATTERN_1_IVB
	.comm	_FDI_LINK_TRAIN_VOL_EMP_MASK,4,2 ; @FDI_LINK_TRAIN_VOL_EMP_MASK
	.comm	_FDI_LINK_TRAIN_400MV_0DB_SNB_B,4,2 ; @FDI_LINK_TRAIN_400MV_0DB_SNB_B
	.comm	_FDI_COMPOSITE_SYNC,4,2         ; @FDI_COMPOSITE_SYNC
	.comm	_FDI_TX_ENABLE,4,2              ; @FDI_TX_ENABLE
	.comm	_FDI_RX_TP1_TO_TP2_48,4,2       ; @FDI_RX_TP1_TO_TP2_48
	.comm	_FDI_RX_FDI_DELAY_90,4,2        ; @FDI_RX_FDI_DELAY_90
	.comm	_FDI_LINK_TRAIN_PATTERN_MASK_CPT,4,2 ; @FDI_LINK_TRAIN_PATTERN_MASK_CPT
	.comm	_FDI_LINK_TRAIN_PATTERN_1_CPT,4,2 ; @FDI_LINK_TRAIN_PATTERN_1_CPT
	.comm	_FDI_RX_ENABLE,4,2              ; @FDI_RX_ENABLE
	.comm	_snb_b_fdi_train_param,8,3      ; @snb_b_fdi_train_param
l_.str.1:                               ; @.str.1
	.asciz	"FDI_RX_IIR 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"FDI train 1 done, level %i.\n"

l_.str.3:                               ; @.str.3
	.asciz	"FDI train 1 fail!\n"

	.comm	_FDI_LINK_TRAIN_PATTERN_2_IVB,4,2 ; @FDI_LINK_TRAIN_PATTERN_2_IVB
	.comm	_FDI_LINK_TRAIN_PATTERN_2_CPT,4,2 ; @FDI_LINK_TRAIN_PATTERN_2_CPT
l_.str.4:                               ; @.str.4
	.asciz	"FDI train 2 done, level %i.\n"

l_.str.5:                               ; @.str.5
	.asciz	"FDI train 2 fail!\n"

l_.str.6:                               ; @.str.6
	.asciz	"FDI train done.\n"

	.no_dead_strip	_ivb_manual_fdi_link_train
.subsections_via_symbols
