	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ironlake_fdi_disable
_ironlake_fdi_disable:                  ## @ironlake_fdi_disable
	.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	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_to_i915
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_intel_crtc
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_FDI_TX_CTL
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movq	_FDI_TX_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movl	%r14d, %edi
	callq	_FDI_RX_CTL
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	andl	$-458753, %ebx                  ## imm = 0xFFF8FFFF
	movl	%r14d, %edi
	callq	_PIPECONF
	movl	%eax, %edi
	callq	_I915_READ
	movq	_PIPECONF_BPC_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	shll	$11, %eax
	orl	%eax, %ebx
	movq	_FDI_RX_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%ebx, %esi
	movl	%r12d, %edi
	callq	_I915_WRITE
	movl	%r12d, %edi
	callq	_POSTING_READ
	movl	$100, %edi
	callq	_udelay
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_HAS_PCH_IBX
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_FDI_RX_CHICKEN
	movq	_FDI_RX_PHASE_SYNC_POINTER_OVR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
LBB0_2:
	movl	%r14d, %edi
	callq	_FDI_TX_CTL
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_I915_READ
	movq	_FDI_LINK_TRAIN_NONE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%r14d, %ebx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_FDI_LINK_TRAIN_PATTERN_1@GOTPCREL(%rip), %r14
	orl	(%r14), %esi
	movl	%r12d, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_FDI_RX_CTL
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_HAS_PCH_CPT
	testq	%rax, %rax
	cmovneq	_FDI_LINK_TRAIN_PATTERN_MASK_CPT@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	notl	%ebx
	cmovneq	_FDI_LINK_TRAIN_PATTERN_1_CPT@GOTPCREL(%rip), %r14
	andl	%r13d, %ebx
	orl	(%r14), %ebx
	andl	$-458753, %ebx                  ## imm = 0xFFF8FFFF
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_PIPECONF
	movl	%eax, %edi
	callq	_I915_READ
	movq	_PIPECONF_BPC_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	shll	$11, %eax
	orl	%eax, %ebx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r12d, %edi
	callq	_POSTING_READ
	movl	$100, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FDI_TX_ENABLE,4,2              ## @FDI_TX_ENABLE
	.comm	_PIPECONF_BPC_MASK,4,2          ## @PIPECONF_BPC_MASK
	.comm	_FDI_RX_ENABLE,4,2              ## @FDI_RX_ENABLE
	.comm	_FDI_RX_PHASE_SYNC_POINTER_OVR,4,2 ## @FDI_RX_PHASE_SYNC_POINTER_OVR
	.comm	_FDI_LINK_TRAIN_NONE,4,2        ## @FDI_LINK_TRAIN_NONE
	.comm	_FDI_LINK_TRAIN_PATTERN_1,4,2   ## @FDI_LINK_TRAIN_PATTERN_1
	.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
	.no_dead_strip	_ironlake_fdi_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ironlake_fdi_disable
_ironlake_fdi_disable:                  ; @ironlake_fdi_disable
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	x0, [x0]
	bl	_to_i915
	mov	x20, x0
	mov	x0, x19
	bl	_to_intel_crtc
	ldr	w19, [x0]
	mov	x0, x19
	bl	_FDI_TX_CTL
	mov	x21, x0
	bl	_I915_READ
Lloh0:
	adrp	x8, _FDI_TX_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDI_TX_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x21
	bl	_POSTING_READ
	mov	x0, x19
	bl	_FDI_RX_CTL
	mov	x21, x0
	bl	_I915_READ
	and	w22, w0, #0xfff8ffff
	mov	x0, x19
	bl	_PIPECONF
	bl	_I915_READ
Lloh3:
	adrp	x23, _PIPECONF_BPC_MASK@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PIPECONF_BPC_MASK@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w8, w8, w0
	orr	w8, w22, w8, lsl #11
Lloh5:
	adrp	x9, _FDI_RX_ENABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FDI_RX_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	bic	w1, w8, w9
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x21
	bl	_POSTING_READ
	mov	w0, #100
	bl	_udelay
	mov	x0, x20
	bl	_HAS_PCH_IBX
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_FDI_RX_CHICKEN
Lloh8:
	adrp	x8, _FDI_RX_PHASE_SYNC_POINTER_OVR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FDI_RX_PHASE_SYNC_POINTER_OVR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_I915_WRITE
LBB0_2:
	mov	x0, x19
	bl	_FDI_TX_CTL
	mov	x21, x0
	bl	_I915_READ
Lloh11:
	adrp	x24, _FDI_LINK_TRAIN_NONE@GOTPAGE
Lloh12:
	ldr	x24, [x24, _FDI_LINK_TRAIN_NONE@GOTPAGEOFF]
	ldr	w8, [x24]
	bic	w8, w0, w8
Lloh13:
	adrp	x25, _FDI_LINK_TRAIN_PATTERN_1@GOTPAGE
Lloh14:
	ldr	x25, [x25, _FDI_LINK_TRAIN_PATTERN_1@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w1, w8, w9
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x19
	bl	_FDI_RX_CTL
	mov	x21, x0
	bl	_I915_READ
	mov	x22, x0
	mov	x0, x20
	bl	_HAS_PCH_CPT
Lloh15:
	adrp	x8, _FDI_LINK_TRAIN_PATTERN_MASK_CPT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FDI_LINK_TRAIN_PATTERN_MASK_CPT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x24, x8, eq
	ldr	w8, [x8]
	bic	w8, w22, w8
Lloh17:
	adrp	x9, _FDI_LINK_TRAIN_PATTERN_1_CPT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FDI_LINK_TRAIN_PATTERN_1_CPT@GOTPAGEOFF]
	csel	x9, x25, x9, eq
	ldr	w9, [x9]
	orr	w8, w8, w9
	and	w20, w8, #0xfff8ffff
	mov	x0, x19
	bl	_PIPECONF
	bl	_I915_READ
	ldr	w8, [x23]
	and	w8, w8, w0
	orr	w1, w20, w8, lsl #11
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x21
	bl	_POSTING_READ
	mov	w0, #100
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_udelay
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FDI_TX_ENABLE,4,2              ; @FDI_TX_ENABLE
	.comm	_PIPECONF_BPC_MASK,4,2          ; @PIPECONF_BPC_MASK
	.comm	_FDI_RX_ENABLE,4,2              ; @FDI_RX_ENABLE
	.comm	_FDI_RX_PHASE_SYNC_POINTER_OVR,4,2 ; @FDI_RX_PHASE_SYNC_POINTER_OVR
	.comm	_FDI_LINK_TRAIN_NONE,4,2        ; @FDI_LINK_TRAIN_NONE
	.comm	_FDI_LINK_TRAIN_PATTERN_1,4,2   ; @FDI_LINK_TRAIN_PATTERN_1
	.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
	.no_dead_strip	_ironlake_fdi_disable
.subsections_via_symbols
