	.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	%rdx, %rbx
	movl	%esi, %r13d
	callq	_to_i915
	movq	%rax, %r12
	movq	8(%rbx), %r15
	movl	%r13d, %edi
	callq	_pipe_name
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	cmpl	$5, (%rbx)
	jl	LBB0_2
## %bb.1:
	movl	%r13d, %edi
	callq	_pipe_name
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
LBB0_15:
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_16
LBB0_2:
	movq	%r12, %rdi
	callq	_IS_HASWELL
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_IS_BROADWELL
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	movl	(%rbx), %esi
	xorl	%r14d, %r14d
	cmpl	$3, %esi
	jl	LBB0_23
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_23:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r12, %rdi
	callq	_INTEL_INFO
	xorl	%r14d, %r14d
	cmpl	$2, (%rax)
	je	LBB0_23
## %bb.7:
	cmpl	$128, %r13d
	je	LBB0_17
## %bb.8:
	cmpl	$130, %r13d
	je	LBB0_23
## %bb.9:
	cmpl	$129, %r13d
	jne	LBB0_22
## %bb.10:
	cmpl	$3, (%rbx)
	jl	LBB0_23
## %bb.11:
	movq	%r12, %rdi
	movl	$128, %esi
	callq	_intel_get_crtc_for_pipe
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_intel_atomic_get_crtc_state
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	%r15, %rdi
	testl	%eax, %eax
	jne	LBB0_24
## %bb.12:
	callq	_pipe_required_fdi_lanes
	testl	%eax, %eax
	jle	LBB0_23
## %bb.13:
	movl	$129, %edi
	callq	_pipe_name
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_14
LBB0_17:
	cmpl	$3, (%rbx)
	jl	LBB0_19
## %bb.18:
	movl	$128, %edi
	callq	_pipe_name
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rdi
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_22:
	xorl	%eax, %eax
	callq	_BUG
                                        ## implicit-def: $r14d
	jmp	LBB0_23
LBB0_19:
	movq	%r12, %rdi
	movl	$129, %esi
	callq	_intel_get_crtc_for_pipe
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_intel_atomic_get_crtc_state
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	%rbx, %rdi
	testl	%eax, %eax
	je	LBB0_20
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_20:
	callq	_pipe_required_fdi_lanes
	cmpl	$3, %eax
	jl	LBB0_23
## %bb.21:
	leaq	L_.str.5(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"checking fdi config on pipe %c, lanes %i\n"

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

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"only 2 lanes on haswell, required: %i lanes\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"only 2 lanes on pipe %c: required %i lanes\n"

L_.str.5:                               ## @.str.5
	.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, x2
	mov	x22, x1
	bl	_to_i915
	mov	x21, x0
	ldr	x20, [x19, #8]
	mov	x0, x22
	bl	_pipe_name
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	stp	x0, x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x19]
	cmp	w8, #5
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_pipe_name
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	stp	x0, x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_2:
	mov	x0, x21
	bl	_IS_HASWELL
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_IS_BROADWELL
	cbz	x0, LBB0_7
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #3
	b.lt	LBB0_8
; %bb.5:
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_DRM_DEBUG_KMS
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	mov	x0, x21
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #2
	b.ne	LBB0_10
LBB0_8:
	mov	w0, #0
LBB0_9:
	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_10:
	cmp	w22, #128
	b.eq	LBB0_16
; %bb.11:
	cmp	w22, #130
	b.eq	LBB0_8
; %bb.12:
	cmp	w22, #129
	b.ne	LBB0_18
; %bb.13:
	ldr	w8, [x19]
	cmp	w8, #3
	b.lt	LBB0_8
; %bb.14:
	mov	x0, x21
	mov	w1, #128
	bl	_intel_get_crtc_for_pipe
	mov	x1, x0
	mov	x0, x20
	bl	_intel_atomic_get_crtc_state
	mov	x20, x0
	bl	_IS_ERR
	cbz	w0, LBB0_22
; %bb.15:
	mov	x0, x20
	b	LBB0_21
LBB0_16:
	ldr	w8, [x19]
	cmp	w8, #3
	b.lt	LBB0_19
; %bb.17:
	mov	w0, #128
	bl	_pipe_name
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	stp	x0, x8, [sp]
Lloh9:
	adrp	x0, l_.str.4@PAGE
Lloh10:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_18:
	bl	_BUG
                                        ; implicit-def: $w0
	b	LBB0_9
LBB0_19:
	mov	x0, x21
	mov	w1, #129
	bl	_intel_get_crtc_for_pipe
	mov	x1, x0
	mov	x0, x20
	bl	_intel_atomic_get_crtc_state
	mov	x19, x0
	bl	_IS_ERR
	cbz	w0, LBB0_24
; %bb.20:
	mov	x0, x19
LBB0_21:
	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
	b	_PTR_ERR
LBB0_22:
	mov	x0, x20
	bl	_pipe_required_fdi_lanes
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.23:
	mov	w0, #129
	bl	_pipe_name
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	stp	x0, x8, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_24:
	mov	x0, x19
	bl	_pipe_required_fdi_lanes
	cmp	w0, #3
	b.lt	LBB0_8
; %bb.25:
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"checking fdi config on pipe %c, lanes %i\n"

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

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"only 2 lanes on haswell, required: %i lanes\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"only 2 lanes on pipe %c: required %i lanes\n"

l_.str.5:                               ; @.str.5
	.asciz	"fdi link B uses too many lanes to enable link C\n"

	.no_dead_strip	_ironlake_check_fdi_lanes
.subsections_via_symbols
