	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ironlake_fdi_compute_config
_ironlake_fdi_compute_config:           ## @ironlake_fdi_compute_config
	.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, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r15
	leaq	12(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movb	$1, %r14b
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_to_i915
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_intel_fdi_link_freq
	movl	%eax, %r13d
	movl	(%rbx), %edx
	movl	16(%rbx), %r12d
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ironlake_get_lanes_required
	movl	%eax, 4(%rbx)
	movl	(%rbx), %edi
	movl	$0, (%rsp)
	movl	%eax, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	xorl	%r9d, %r9d
	callq	_intel_link_compute_m_n
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_ironlake_check_fdi_lanes
	movl	%eax, %ecx
	movq	_EDEADLK@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %esi
	cmpl	$19, %esi
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	$-6, %esi
	movl	%esi, (%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	$1, 8(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_1
LBB0_5:
	testb	$1, %r14b
	jne	LBB0_7
## %bb.6:
	movq	_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDEADLK,4,2                    ## @EDEADLK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fdi link bw constraint, reducing pipe bpp to %i\n"

	.comm	_RETRY,4,2                      ## @RETRY
	.no_dead_strip	_ironlake_fdi_compute_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ironlake_fdi_compute_config
_ironlake_fdi_compute_config:           ; @ironlake_fdi_compute_config
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	add	x22, x1, #12
Lloh0:
	adrp	x26, _EDEADLK@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EDEADLK@GOTPAGEOFF]
Lloh2:
	adrp	x28, _EINVAL@GOTPAGE
Lloh3:
	ldr	x28, [x28, _EINVAL@GOTPAGEOFF]
	mov	w27, #1
Lloh4:
	adrp	x23, l_.str@PAGE
Lloh5:
	add	x23, x23, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_to_i915
	mov	x1, x19
	bl	_intel_fdi_link_freq
	mov	x24, x0
	ldr	w25, [x19, #16]
	ldr	w2, [x19]
	mov	x0, x25
	mov	x1, x24
	bl	_ironlake_get_lanes_required
	mov	x1, x0
	str	w0, [x19, #4]
	ldr	w0, [x19]
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	mov	w5, #0
	mov	w6, #0
	bl	_intel_link_compute_m_n
	ldr	w1, [x20]
	mov	x0, x21
	mov	x2, x19
	bl	_ironlake_check_fdi_lanes
	ldr	w8, [x26]
	cmn	w0, w8
	b.eq	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x28]
	cmn	w0, w8
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19]
	cmp	w8, #19
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	w1, w8, #6
	str	w1, [x19]
	mov	x0, x23
	bl	_DRM_DEBUG_KMS
	mov	w27, #0
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_1
LBB0_5:
Lloh6:
	adrp	x8, _RETRY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RETRY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w27, #0x1
	csel	w0, w0, w8, ne
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EDEADLK,4,2                    ; @EDEADLK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fdi link bw constraint, reducing pipe bpp to %i\n"

	.comm	_RETRY,4,2                      ; @RETRY
	.no_dead_strip	_ironlake_fdi_compute_config
.subsections_via_symbols
