	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edp_fill_link_cfg
_edp_fill_link_cfg:                     ## @edp_fill_link_cfg
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %r15d
	movl	16(%rdi), %ebx
	movl	20(%rdi), %edi
	imull	4(%r14), %r15d
	callq	_drm_dp_link_rate_to_bw_code
	movl	%eax, 8(%r14)
	leal	(%r15,%r15,2), %edx
	leal	(%r15,%r15,2), %ecx
	addl	$7, %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	movl	$1, %edx
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.1:
	sarl	$3, %ecx
	imull	$27000, %eax, %esi              ## imm = 0x6978
	cmpl	%ecx, %esi
	jge	LBB0_5
## %bb.2:
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addl	%edx, %edx
	cmpl	%ebx, %edx
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%esi, %esi
	cmpl	%ecx, %esi
	jl	LBB0_3
LBB0_5:
	movl	%edx, 12(%r14)
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DBG                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rate=%d lane=%d"

	.no_dead_strip	_edp_fill_link_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function edp_fill_link_cfg
_edp_fill_link_cfg:                     ; @edp_fill_link_cfg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldp	w21, w22, [x0]
	ldp	w20, w0, [x0, #16]
	bl	_drm_dp_link_rate_to_bw_code
	mov	x1, x0
	str	w0, [x19, #8]
	mul	w8, w21, w22
	add	w8, w8, w8, lsl #1
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	mov	w9, #27000
	mul	w9, w0, w9
	cmp	w20, #1
	mov	w2, #1
	ccmp	w9, w8, #0, ge
	b.ge	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w9, w9, #1
	lsl	w2, w2, #1
	cmp	w2, w20
	ccmp	w9, w8, #0, le
	b.lt	LBB0_1
LBB0_2:
	str	w2, [x19, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_DBG
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rate=%d lane=%d"

	.no_dead_strip	_edp_fill_link_cfg
.subsections_via_symbols
