	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_mst_compute_link_config
_intel_dp_mst_compute_link_config:      ## @intel_dp_mst_compute_link_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	32(%rsi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_enc_to_mst
	movq	(%rax), %r13
	movl	(%r14), %edi
	callq	_to_intel_connector
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%r13), %rdi
	movq	_DP_DPCD_QUIRK_CONSTANT_N@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drm_dp_has_quirk
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	12(%r15), %ecx
	movl	%ecx, 16(%rbx)
	movl	8(%r15), %ecx
	movl	%ecx, 12(%rbx)
	movl	(%r15), %r12d
	cmpl	4(%r15), %r12d
	jge	LBB0_4
## %bb.1:
	movl	%eax, %r14d
	negl	%r14d
	testl	%eax, %eax
	jg	LBB0_2
LBB0_6:
	movl	16(%rbx), %esi
	movl	24(%rbx), %edx
	movl	12(%rbx), %ecx
	leaq	4(%rbx), %r8
	movl	(%rbx), %edi
	movl	8(%rbx), %eax
	movl	%eax, (%rsp)
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_intel_link_compute_m_n
	movl	%r14d, 4(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, (%rbx)
	movl	24(%rbx), %edi
	movl	%r12d, %esi
	callq	_drm_dp_calc_pbn_mode
	movl	%eax, 20(%rbx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_drm_dp_atomic_find_vcpi_slots
	movl	%eax, %r14d
	movq	_EDEADLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r14d, %r14d
	jns	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	$-6, %r12d
	cmpl	4(%r15), %r12d
	jge	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_DRM_DEBUG_KMS
LBB0_7:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_DPCD_QUIRK_CONSTANT_N,4,2   ## @DP_DPCD_QUIRK_CONSTANT_N
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EDEADLK,4,2                    ## @EDEADLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed finding vcpi slots:%d\n"

	.no_dead_strip	_intel_dp_mst_compute_link_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_mst_compute_link_config
_intel_dp_mst_compute_link_config:      ; @intel_dp_mst_compute_link_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	x21, x3
	mov	x20, x2
	mov	x19, x1
	ldr	x22, [x1, #32]
	bl	_enc_to_mst
	ldr	x23, [x0]
	ldr	w0, [x20]
	bl	_to_intel_connector
	ldr	x25, [x0]
	add	x0, x23, #4
Lloh0:
	adrp	x8, _DP_DPCD_QUIRK_CONSTANT_N@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_DPCD_QUIRK_CONSTANT_N@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_drm_dp_has_quirk
	mov	x20, x0
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	d0, [x21, #8]
	stur	d0, [x19, #12]
	ldp	w26, w9, [x21]
	cmp	w26, w9
	b.ge	LBB0_3
; %bb.1:
	neg	w24, w8
	cmp	w8, #1
	b.ge	LBB0_7
LBB0_2:
	ldr	w0, [x19]
	ldp	w3, w1, [x19, #12]
	ldr	w2, [x19, #24]
	add	x4, x19, #4
	ldr	w6, [x19, #8]
	mov	x5, x20
	bl	_intel_link_compute_m_n
	str	w24, [x19, #4]
	mov	w24, #0
	b	LBB0_8
LBB0_3:
Lloh6:
	adrp	x27, _EDEADLK@GOTPAGE
Lloh7:
	ldr	x27, [x27, _EDEADLK@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	w26, [x19]
	ldr	w0, [x19, #24]
	mov	x1, x26
	bl	_drm_dp_calc_pbn_mode
	mov	x3, x0
	str	w0, [x19, #20]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x25
	bl	_drm_dp_atomic_find_vcpi_slots
	mov	x24, x0
	ldr	w8, [x27]
	cmn	w0, w8
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w24, #31, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w26, w26, #6
	ldr	w8, [x21, #4]
	cmp	w26, w8
	b.ge	LBB0_4
LBB0_7:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_DRM_DEBUG_KMS
LBB0_8:
	mov	x0, x24
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_DPCD_QUIRK_CONSTANT_N,4,2   ; @DP_DPCD_QUIRK_CONSTANT_N
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EDEADLK,4,2                    ; @EDEADLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed finding vcpi slots:%d\n"

	.no_dead_strip	_intel_dp_mst_compute_link_config
.subsections_via_symbols
