	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_to_i915
	movl	(%rbx), %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	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_snb_b_fdi_train_param@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_22
## %bb.1:
	xorl	%r13d, %r13d
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	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), %esi
	movq	_FDI_LINK_TRAIN_AUTO@GOTPCREL(%rip), %r14
	orl	(%r14), %esi
	movq	_FDI_TX_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %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
	orl	(%r14), %esi
	movq	_FDI_RX_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_FDI_TX_CTL
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_I915_READ
	movq	_FDI_DP_PORT_WIDTH_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_FDI_DP_PORT_WIDTH
	orl	%eax, %ebx
	movq	_FDI_LINK_TRAIN_PATTERN_1_IVB@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_FDI_LINK_TRAIN_VOL_EMP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%ebx, %esi
	movq	(%r12), %rax
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %ecx
	movq	_FDI_RX_BIT_LOCK@GOTPCREL(%rip), %r13
	shrl	%ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	orl	(%rax,%rcx,4), %esi
	movq	_FDI_COMPOSITE_SYNC@GOTPCREL(%rip), %r12
	orl	(%r12), %esi
	movq	_FDI_TX_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%r14d, %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_FDI_RX_MISC
	movq	_FDI_RX_FDI_DELAY_90@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_FDI_RX_TP1_TO_TP2_48@GOTPCREL(%rip), %rcx
	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_1_CPT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%r12), %eax
	movq	_FDI_RX_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	$1, %edi
	callq	_udelay
	movl	%r15d, %edi
	callq	_FDI_RX_IIR
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	xorl	%r12d, %r12d
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	(%r13), %esi
	testl	%ebx, %esi
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_I915_READ
	movl	(%r13), %esi
	movl	$0, %r13d
	testl	%eax, %esi
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r13d
	movl	$1, %edi
	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_BIT_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%ebx, %esi
	jne	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_I915_READ
	movq	_FDI_RX_BIT_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, %esi
	jne	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	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_BIT_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %r13d
	testl	%ebx, %esi
	jne	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_I915_READ
	movq	_FDI_RX_BIT_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, %esi
	jne	LBB0_4
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	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_BIT_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %r13d
	testl	%ebx, %esi
	jne	LBB0_4
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_I915_READ
	movq	_FDI_RX_BIT_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, %esi
	je	LBB0_14
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	%ebx, %esi
	movl	%r14d, %edi
	callq	_I915_WRITE
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	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), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_FDI_LINK_TRAIN_PATTERN_2_IVB@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	$2, %edi
	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), %r13
	movl	(%r13), %esi
	testl	%ebx, %esi
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_I915_READ
	movl	(%r13), %esi
	testl	%eax, %esi
	jne	LBB0_6
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$2, %edi
	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	(%r13), %esi
	movl	$1, %r12d
	testl	%ebx, %esi
	jne	LBB0_6
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_I915_READ
	movl	(%r13), %esi
	testl	%eax, %esi
	jne	LBB0_6
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$2, %r12d
	movl	$2, %edi
	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	(%r13), %esi
	testl	%ebx, %esi
	jne	LBB0_6
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_I915_READ
	movl	(%r13), %esi
	testl	%eax, %esi
	jne	LBB0_6
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$2, %edi
	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	(%r13), %esi
	movl	$3, %r12d
	testl	%ebx, %esi
	jne	LBB0_6
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_I915_READ
	movl	(%r13), %esi
	movl	$2, %edi
	leaq	L_.str.5(%rip), %r13
	testl	%eax, %esi
	jne	LBB0_6
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_udelay
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	incl	%r13d
	movq	_snb_b_fdi_train_param@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	addl	%eax, %eax
	cmpl	%eax, %r13d
	jl	LBB0_2
	jmp	LBB0_22
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	leaq	L_.str.3(%rip), %r13
	jmp	LBB0_21
LBB0_6:
	orl	%ebx, %esi
	movl	%r14d, %edi
	callq	_I915_WRITE
	leaq	L_.str.4(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_22:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
	.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	_snb_b_fdi_train_param,8,3      ## @snb_b_fdi_train_param
	.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_TX_ENABLE,4,2              ## @FDI_TX_ENABLE
	.comm	_FDI_LINK_TRAIN_PATTERN_MASK_CPT,4,2 ## @FDI_LINK_TRAIN_PATTERN_MASK_CPT
	.comm	_FDI_RX_ENABLE,4,2              ## @FDI_RX_ENABLE
	.comm	_FDI_DP_PORT_WIDTH_MASK,4,2     ## @FDI_DP_PORT_WIDTH_MASK
	.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_COMPOSITE_SYNC,4,2         ## @FDI_COMPOSITE_SYNC
	.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_1_CPT,4,2 ## @FDI_LINK_TRAIN_PATTERN_1_CPT
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 on vswing %d\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 on vswing %d\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
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x0
	ldr	x0, [x0, #8]
	bl	_to_i915
	ldr	w20, [x20]
	mov	x0, x20
	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]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x26, _FDI_RX_BIT_LOCK@GOTPAGE
Lloh4:
	ldr	x26, [x26, _FDI_RX_BIT_LOCK@GOTPAGEOFF]
	ldr	w9, [x26]
	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, x20
	bl	_FDI_RX_IIR
	bl	_I915_READ
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh7:
	adrp	x27, _snb_b_fdi_train_param@GOTPAGE
Lloh8:
	ldr	x27, [x27, _snb_b_fdi_train_param@GOTPAGEOFF]
	ldr	x0, [x27]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_34
; %bb.1:
	mov	w28, #0
Lloh9:
	adrp	x21, l_.str.1@PAGE
Lloh10:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh11:
	adrp	x25, _FDI_RX_ENABLE@GOTPAGE
Lloh12:
	ldr	x25, [x25, _FDI_RX_ENABLE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_FDI_TX_CTL
	mov	x23, x0
	bl	_I915_READ
Lloh13:
	adrp	x22, _FDI_LINK_TRAIN_AUTO@GOTPAGE
Lloh14:
	ldr	x22, [x22, _FDI_LINK_TRAIN_AUTO@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh15:
	adrp	x9, _FDI_LINK_TRAIN_NONE_IVB@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FDI_LINK_TRAIN_NONE_IVB@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x24, _FDI_TX_ENABLE@GOTPAGE
Lloh19:
	ldr	x24, [x24, _FDI_TX_ENABLE@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w8, w9
	bic	w1, w0, w8
	mov	x0, x23
	bl	_I915_WRITE
	mov	x0, x20
	bl	_FDI_RX_CTL
	mov	x23, x0
	bl	_I915_READ
	ldr	w8, [x22]
Lloh20:
	adrp	x9, _FDI_LINK_TRAIN_PATTERN_MASK_CPT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _FDI_LINK_TRAIN_PATTERN_MASK_CPT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w8, w8, w9
	bic	w1, w0, w8
	mov	x0, x23
	bl	_I915_WRITE
	mov	x0, x20
	bl	_FDI_TX_CTL
	mov	x23, x0
	bl	_I915_READ
Lloh23:
	adrp	x8, _FDI_DP_PORT_WIDTH_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FDI_DP_PORT_WIDTH_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	bic	w22, w0, w8
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x8]
	bl	_FDI_DP_PORT_WIDTH
	orr	w8, w0, w22
Lloh26:
	adrp	x9, _FDI_LINK_TRAIN_PATTERN_1_IVB@GOTPAGE
Lloh27:
	ldr	x9, [x9, _FDI_LINK_TRAIN_PATTERN_1_IVB@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh29:
	adrp	x9, _FDI_LINK_TRAIN_VOL_EMP_MASK@GOTPAGE
Lloh30:
	ldr	x9, [x9, _FDI_LINK_TRAIN_VOL_EMP_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	mov	x19, x27
	ldr	x10, [x27]
	lsr	w22, w28, #1
	ldr	w10, [x10, w22, uxtw #2]
	bic	w8, w8, w9
	orr	w8, w10, w8
Lloh32:
	adrp	x27, _FDI_COMPOSITE_SYNC@GOTPAGE
Lloh33:
	ldr	x27, [x27, _FDI_COMPOSITE_SYNC@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w1, w8, w9
	mov	x0, x23
	bl	_I915_WRITE
	mov	x0, x20
	bl	_FDI_RX_MISC
Lloh34:
	adrp	x8, _FDI_RX_TP1_TO_TP2_48@GOTPAGE
Lloh35:
	ldr	x8, [x8, _FDI_RX_TP1_TO_TP2_48@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _FDI_RX_FDI_DELAY_90@GOTPAGE
Lloh38:
	ldr	x9, [x9, _FDI_RX_FDI_DELAY_90@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_I915_WRITE
	mov	x0, x20
	bl	_FDI_RX_CTL
	mov	x23, x0
	bl	_I915_READ
Lloh40:
	adrp	x8, _FDI_LINK_TRAIN_PATTERN_1_CPT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _FDI_LINK_TRAIN_PATTERN_1_CPT@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	orr	w8, w8, w0
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w1, w8, w9
	mov	x0, x23
	bl	_I915_WRITE
	mov	x0, x23
	bl	_POSTING_READ
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_FDI_RX_IIR
	mov	x23, x0
	bl	_I915_READ
	mov	x24, x0
	str	x24, [sp]
	mov	x0, x21
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x26]
	tst	w8, w24
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_I915_READ
	ldr	w8, [x26]
	tst	w8, w0
	b.eq	LBB0_17
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #0
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, x19
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh43:
	adrp	x19, _FDI_RX_SYMBOL_LOCK@GOTPAGE
Lloh44:
	ldr	x19, [x19, _FDI_RX_SYMBOL_LOCK@GOTPAGEOFF]
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	orr	w1, w8, w24
	mov	x0, x23
	bl	_I915_WRITE
	str	x26, [sp]
Lloh45:
	adrp	x0, l_.str.2@PAGE
Lloh46:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x20
	bl	_FDI_TX_CTL
	mov	x23, x0
	bl	_I915_READ
Lloh47:
	adrp	x8, _FDI_LINK_TRAIN_NONE_IVB@GOTPAGE
Lloh48:
	ldr	x8, [x8, _FDI_LINK_TRAIN_NONE_IVB@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh50:
	adrp	x9, _FDI_LINK_TRAIN_PATTERN_2_IVB@GOTPAGE
Lloh51:
	ldr	x9, [x9, _FDI_LINK_TRAIN_PATTERN_2_IVB@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x23
	bl	_I915_WRITE
	mov	x0, x20
	bl	_FDI_RX_CTL
	mov	x23, x0
	bl	_I915_READ
Lloh53:
	adrp	x8, _FDI_LINK_TRAIN_PATTERN_MASK_CPT@GOTPAGE
Lloh54:
	ldr	x8, [x8, _FDI_LINK_TRAIN_PATTERN_MASK_CPT@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh56:
	adrp	x9, _FDI_LINK_TRAIN_PATTERN_2_CPT@GOTPAGE
Lloh57:
	ldr	x9, [x9, _FDI_LINK_TRAIN_PATTERN_2_CPT@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x23
	bl	_I915_WRITE
	mov	x0, x23
	bl	_POSTING_READ
	mov	w0, #2
	bl	_udelay
	mov	x0, x20
	bl	_FDI_RX_IIR
	mov	x23, x0
	bl	_I915_READ
	mov	x24, x0
	str	x24, [sp]
	mov	x0, x21
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x19]
	tst	w8, w24
	b.ne	LBB0_28
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_I915_READ
	ldr	w8, [x19]
	tst	w8, w0
	b.ne	LBB0_28
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #2
	bl	_udelay
	mov	x0, x20
	bl	_FDI_RX_IIR
	mov	x23, x0
	bl	_I915_READ
	mov	x24, x0
	str	x24, [sp]
	mov	x0, x21
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x19]
	tst	w8, w24
	b.ne	LBB0_29
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_I915_READ
	ldr	w8, [x19]
	tst	w8, w0
	b.ne	LBB0_29
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #2
	mov	w0, #2
	bl	_udelay
	mov	x0, x20
	bl	_FDI_RX_IIR
	mov	x23, x0
	bl	_I915_READ
	mov	x24, x0
	str	x24, [sp]
	mov	x0, x21
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x19]
	tst	w8, w24
	b.ne	LBB0_32
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_I915_READ
	ldr	w8, [x19]
	tst	w8, w0
	b.ne	LBB0_31
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #2
	bl	_udelay
	mov	x0, x20
	bl	_FDI_RX_IIR
	mov	x23, x0
	bl	_I915_READ
	mov	x24, x0
	str	x24, [sp]
	mov	x0, x21
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x19]
	tst	w8, w24
	b.ne	LBB0_30
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_I915_READ
	ldr	w8, [x19]
	tst	w8, w0
	b.ne	LBB0_30
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #2
Lloh59:
	adrp	x23, l_.str.5@PAGE
Lloh60:
	add	x23, x23, l_.str.5@PAGEOFF
Lloh61:
	adrp	x26, _FDI_RX_BIT_LOCK@GOTPAGE
Lloh62:
	ldr	x26, [x26, _FDI_RX_BIT_LOCK@GOTPAGEOFF]
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_udelay
	str	x22, [sp]
	mov	x0, x23
	bl	_DRM_DEBUG_KMS
	add	w28, w28, #1
	ldr	x0, [x27]
	bl	_ARRAY_SIZE
	cmp	w28, w0, lsl #1
	b.lt	LBB0_2
	b	LBB0_34
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, x26
	mov	w26, #1
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_FDI_RX_IIR
	mov	x23, x0
	bl	_I915_READ
	mov	x24, x0
	mov	x8, x0
	str	x8, [sp]
	mov	x0, x21
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x27]
	tst	w8, w24
	b.ne	LBB0_5
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_I915_READ
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #1
	b	LBB0_5
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x26, x27
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_FDI_RX_IIR
	mov	x23, x0
	bl	_I915_READ
	mov	x24, x0
	mov	x8, x0
	str	x8, [sp]
	mov	x0, x21
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x27]
	tst	w8, w24
	mov	x27, x19
	b.ne	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_I915_READ
	ldr	w8, [x26]
	tst	w8, w0
	b.eq	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #2
	b	LBB0_6
LBB0_23:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_FDI_RX_IIR
	mov	x23, x0
	bl	_I915_READ
	mov	x24, x0
	mov	x8, x0
	str	x8, [sp]
	mov	x0, x21
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x26]
	tst	w8, w24
	b.eq	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #3
	b	LBB0_6
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_I915_READ
	ldr	w8, [x26]
	tst	w8, w0
Lloh63:
	adrp	x19, _FDI_RX_SYMBOL_LOCK@GOTPAGE
Lloh64:
	ldr	x19, [x19, _FDI_RX_SYMBOL_LOCK@GOTPAGEOFF]
	b.eq	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #3
	b	LBB0_7
LBB0_27:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
Lloh65:
	adrp	x23, l_.str.3@PAGE
Lloh66:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_28:
	mov	w26, #0
	b	LBB0_33
LBB0_29:
	mov	w26, #1
	b	LBB0_32
LBB0_30:
	mov	w26, #3
	b	LBB0_32
LBB0_31:
	mov	w26, #2
LBB0_32:
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
LBB0_33:
	orr	w1, w8, w24
	mov	x0, x23
	bl	_I915_WRITE
	str	x26, [sp]
Lloh67:
	adrp	x0, l_.str.4@PAGE
Lloh68:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_34:
Lloh69:
	adrp	x0, l_.str.6@PAGE
Lloh70:
	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
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.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 AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.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	_snb_b_fdi_train_param,8,3      ; @snb_b_fdi_train_param
	.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_TX_ENABLE,4,2              ; @FDI_TX_ENABLE
	.comm	_FDI_LINK_TRAIN_PATTERN_MASK_CPT,4,2 ; @FDI_LINK_TRAIN_PATTERN_MASK_CPT
	.comm	_FDI_RX_ENABLE,4,2              ; @FDI_RX_ENABLE
	.comm	_FDI_DP_PORT_WIDTH_MASK,4,2     ; @FDI_DP_PORT_WIDTH_MASK
	.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_COMPOSITE_SYNC,4,2         ; @FDI_COMPOSITE_SYNC
	.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_1_CPT,4,2 ; @FDI_LINK_TRAIN_PATTERN_1_CPT
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 on vswing %d\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 on vswing %d\n"

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

	.no_dead_strip	_ivb_manual_fdi_link_train
.subsections_via_symbols
