	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_fdi_normal_train
_intel_fdi_normal_train:                ## @intel_fdi_normal_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_to_i915
	movq	%rax, %r14
	movl	(%rbx), %r15d
	movl	%r15d, %edi
	callq	_FDI_TX_CTL
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_IS_IVYBRIDGE
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_FDI_LINK_TRAIN_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FDI_LINK_TRAIN_NONE_IVB@GOTPCREL(%rip), %rax
LBB0_3:
	movq	_FDI_TX_ENHANCE_FRAME_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	orl	%r12d, %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_FDI_RX_CTL
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_HAS_PCH_CPT
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_FDI_LINK_TRAIN_PATTERN_MASK_CPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_FDI_LINK_TRAIN_NORMAL_CPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_6
LBB0_5:
	movq	_FDI_LINK_TRAIN_NONE@GOTPCREL(%rip), %rax
	movl	%ebx, %esi
	movl	(%rax), %ebx
LBB0_6:
	orl	%ebx, %esi
	movq	_FDI_RX_ENHANCE_FRAME_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%r15d, %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_POSTING_READ
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_udelay
	movq	%r14, %rdi
	callq	_IS_IVYBRIDGE
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	%r15d, %edi
	callq	_I915_READ
	movq	_FDI_FS_ERRC_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_FDI_FE_ERRC_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%r15d, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDI_LINK_TRAIN_NONE_IVB,4,2    ## @FDI_LINK_TRAIN_NONE_IVB
	.comm	_FDI_TX_ENHANCE_FRAME_ENABLE,4,2 ## @FDI_TX_ENHANCE_FRAME_ENABLE
	.comm	_FDI_LINK_TRAIN_NONE,4,2        ## @FDI_LINK_TRAIN_NONE
	.comm	_FDI_LINK_TRAIN_PATTERN_MASK_CPT,4,2 ## @FDI_LINK_TRAIN_PATTERN_MASK_CPT
	.comm	_FDI_LINK_TRAIN_NORMAL_CPT,4,2  ## @FDI_LINK_TRAIN_NORMAL_CPT
	.comm	_FDI_RX_ENHANCE_FRAME_ENABLE,4,2 ## @FDI_RX_ENHANCE_FRAME_ENABLE
	.comm	_FDI_FS_ERRC_ENABLE,4,2         ## @FDI_FS_ERRC_ENABLE
	.comm	_FDI_FE_ERRC_ENABLE,4,2         ## @FDI_FE_ERRC_ENABLE
	.no_dead_strip	_intel_fdi_normal_train
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_fdi_normal_train
_intel_fdi_normal_train:                ; @intel_fdi_normal_train
	.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	x20, x0
	ldr	x0, [x0, #8]
	bl	_to_i915
	mov	x19, x0
	ldr	w20, [x20]
	mov	x0, x20
	bl	_FDI_TX_CTL
	mov	x21, x0
	bl	_I915_READ
	mov	x22, x0
	mov	x0, x19
	bl	_IS_IVYBRIDGE
Lloh0:
	adrp	x23, _FDI_LINK_TRAIN_NONE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FDI_LINK_TRAIN_NONE@GOTPAGEOFF]
Lloh2:
	adrp	x8, _FDI_LINK_TRAIN_NONE_IVB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FDI_LINK_TRAIN_NONE_IVB@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x23, x8, eq
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _FDI_TX_ENHANCE_FRAME_ENABLE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FDI_TX_ENHANCE_FRAME_ENABLE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w8, w9, w8
	orr	w1, w8, w22
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x20
	bl	_FDI_RX_CTL
	mov	x20, x0
	bl	_I915_READ
	mov	x21, x0
	mov	x0, x19
	bl	_HAS_PCH_CPT
	cbz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _FDI_LINK_TRAIN_PATTERN_MASK_CPT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FDI_LINK_TRAIN_PATTERN_MASK_CPT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w8, w21, w8
Lloh10:
	adrp	x9, _FDI_LINK_TRAIN_NORMAL_CPT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FDI_LINK_TRAIN_NORMAL_CPT@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x9]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x23]
LBB0_3:
	orr	w8, w8, w21
Lloh13:
	adrp	x9, _FDI_RX_ENHANCE_FRAME_ENABLE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FDI_RX_ENHANCE_FRAME_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x20
	bl	_POSTING_READ
	mov	w0, #1000
	bl	_udelay
	mov	x0, x19
	bl	_IS_IVYBRIDGE
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_I915_READ
Lloh16:
	adrp	x8, _FDI_FS_ERRC_ENABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FDI_FS_ERRC_ENABLE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh19:
	adrp	x9, _FDI_FE_ERRC_ENABLE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _FDI_FE_ERRC_ENABLE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x20
	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	_I915_WRITE
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FDI_LINK_TRAIN_NONE_IVB,4,2    ; @FDI_LINK_TRAIN_NONE_IVB
	.comm	_FDI_TX_ENHANCE_FRAME_ENABLE,4,2 ; @FDI_TX_ENHANCE_FRAME_ENABLE
	.comm	_FDI_LINK_TRAIN_NONE,4,2        ; @FDI_LINK_TRAIN_NONE
	.comm	_FDI_LINK_TRAIN_PATTERN_MASK_CPT,4,2 ; @FDI_LINK_TRAIN_PATTERN_MASK_CPT
	.comm	_FDI_LINK_TRAIN_NORMAL_CPT,4,2  ; @FDI_LINK_TRAIN_NORMAL_CPT
	.comm	_FDI_RX_ENHANCE_FRAME_ENABLE,4,2 ; @FDI_RX_ENHANCE_FRAME_ENABLE
	.comm	_FDI_FS_ERRC_ENABLE,4,2         ; @FDI_FS_ERRC_ENABLE
	.comm	_FDI_FE_ERRC_ENABLE,4,2         ; @FDI_FE_ERRC_ENABLE
	.no_dead_strip	_intel_fdi_normal_train
.subsections_via_symbols
