	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ironlake_check_fdi_lanes
_ironlake_check_fdi_lanes:              ## @ironlake_check_fdi_lanes
	.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, %rbx
	movq	16(%rdi), %r15
	movq	(%r15), %r13
	movq	8(%r13), %rax
	movq	1032(%rax), %rdi
	callq	_to_intel_crtc
	movq	%rax, %r12
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	4(%rbx), %edx
	cmpl	$5, %edx
	jl	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	$4, 4(%rbx)
	jmp	LBB0_19
LBB0_2:
	movl	$1, %r14d
	cmpl	$2, (%r13)
	je	LBB0_19
## %bb.3:
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_12
## %bb.4:
	cmpl	$130, %eax
	je	LBB0_19
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_18
## %bb.6:
	movq	8(%r13), %rax
	movq	1024(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.7:
	cmpl	$3, %edx
	jl	LBB0_10
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	movl	$129, %esi
	jmp	LBB0_9
LBB0_12:
	cmpl	$0, 8(%r12)
	je	LBB0_14
## %bb.13:
	cmpl	$2, 4(%r12)
	jg	LBB0_16
LBB0_14:
	cmpl	$3, %edx
	jl	LBB0_17
## %bb.15:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	movl	$128, %esi
LBB0_9:
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	$2, 4(%rbx)
	jmp	LBB0_19
LBB0_18:
	xorl	%eax, %eax
	callq	_BUG
                                        ## implicit-def: $r14d
	jmp	LBB0_19
LBB0_10:
	cmpl	$3, %edx
	jl	LBB0_17
## %bb.11:
	movq	_SOUTH_CHICKEN1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	_FDI_BC_BIFURCATION_SELECT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, %edi
	callq	_WARN_ON
	jmp	LBB0_19
LBB0_17:
	movq	%r15, %rdi
	callq	_cpt_enable_fdi_bc_bifurcation
	jmp	LBB0_19
LBB0_16:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_19:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"checking fdi config on pipe %i, lanes %i\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid fdi lane config on pipe %i: %i lanes\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid shared fdi lane config on pipe %i: %i lanes\n"

	.comm	_SOUTH_CHICKEN1,4,2             ## @SOUTH_CHICKEN1
	.comm	_FDI_BC_BIFURCATION_SELECT,4,2  ## @FDI_BC_BIFURCATION_SELECT
L_.str.3:                               ## @.str.3
	.asciz	"fdi link B uses too many lanes to enable link C\n"

	.no_dead_strip	_ironlake_check_fdi_lanes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ironlake_check_fdi_lanes
_ironlake_check_fdi_lanes:              ; @ironlake_check_fdi_lanes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	x22, [x20]
	ldr	x8, [x22, #8]
	ldr	x0, [x8, #1032]
	bl	_to_intel_crtc
	mov	x21, x0
	ldp	w8, w9, [x19]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x19, #4]
	cmp	w8, #5
	b.lt	LBB0_2
; %bb.1:
	ldr	w9, [x19]
	stp	x9, x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
	mov	w8, #4
	str	w8, [x19, #4]
	b	LBB0_10
LBB0_2:
	ldr	w9, [x22]
	cmp	w9, #2
	b.eq	LBB0_9
; %bb.3:
	ldr	w9, [x19]
	cmp	w9, #128
	b.eq	LBB0_11
; %bb.4:
	cmp	w9, #130
	b.eq	LBB0_9
; %bb.5:
	cmp	w9, #129
	b.ne	LBB0_15
; %bb.6:
	ldr	x9, [x22, #8]
	ldr	x9, [x9, #1024]
	ldr	w9, [x9]
	cmp	w9, #0
	ccmp	w8, #3, #8, ne
	b.ge	LBB0_17
; %bb.7:
	cmp	w8, #3
	b.lt	LBB0_16
; %bb.8:
Lloh4:
	adrp	x8, _SOUTH_CHICKEN1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SOUTH_CHICKEN1@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh7:
	adrp	x8, _FDI_BC_BIFURCATION_SELECT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FDI_BC_BIFURCATION_SELECT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w0, w8, w0
	bl	_WARN_ON
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	w0, #1
LBB0_10:
	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
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	w9, [x21, #8]
	cbz	w9, LBB0_13
; %bb.12:
	ldr	w9, [x21, #4]
	cmp	w9, #2
	b.gt	LBB0_19
LBB0_13:
	cmp	w8, #3
	b.lt	LBB0_16
; %bb.14:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	mov	w9, #128
	b	LBB0_18
LBB0_15:
	bl	_BUG
                                        ; implicit-def: $w0
	b	LBB0_10
LBB0_16:
	mov	x0, x20
	bl	_cpt_enable_fdi_bc_bifurcation
	mov	w0, #1
	b	LBB0_10
LBB0_17:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	mov	w9, #129
LBB0_18:
	stp	x9, x8, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
	mov	w8, #2
	str	w8, [x19, #4]
	b	LBB0_10
LBB0_19:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"checking fdi config on pipe %i, lanes %i\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid fdi lane config on pipe %i: %i lanes\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid shared fdi lane config on pipe %i: %i lanes\n"

	.comm	_SOUTH_CHICKEN1,4,2             ; @SOUTH_CHICKEN1
	.comm	_FDI_BC_BIFURCATION_SELECT,4,2  ; @FDI_BC_BIFURCATION_SELECT
l_.str.3:                               ; @.str.3
	.asciz	"fdi link B uses too many lanes to enable link C\n"

	.no_dead_strip	_ironlake_check_fdi_lanes
.subsections_via_symbols
