	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_set_sink_rates
_intel_dp_set_sink_rates:               ## @intel_dp_set_sink_rates
	.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, %r14
	movq	16(%rdi), %rax
	movq	_DP_MAX_LINK_RATE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_drm_dp_bw_code_to_link_rate
	movl	%eax, %r12d
	leaq	_intel_dp_set_sink_rates.dp_rates(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	cmpl	%r12d, %eax
	jg	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%r13,4)
	incq	%r13
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_4:
	movl	%r13d, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @intel_dp_set_sink_rates.dp_rates
_intel_dp_set_sink_rates.dp_rates:
	.long	162000                          ## 0x278d0
	.long	270000                          ## 0x41eb0
	.long	540000                          ## 0x83d60
	.long	810000                          ## 0xc5c10

	.comm	_DP_MAX_LINK_RATE,8,3           ## @DP_MAX_LINK_RATE
	.no_dead_strip	_intel_dp_set_sink_rates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_set_sink_rates
_intel_dp_set_sink_rates:               ; @intel_dp_set_sink_rates
	.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
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _DP_MAX_LINK_RATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DP_MAX_LINK_RATE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_drm_dp_bw_code_to_link_rate
	mov	x20, x0
Lloh3:
	adrp	x21, _intel_dp_set_sink_rates.dp_rates@PAGE
Lloh4:
	add	x21, x21, _intel_dp_set_sink_rates.dp_rates@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, x22, lsl #2]
	cmp	w8, w20
	b.gt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x19]
	str	w8, [x9, x22, lsl #2]
	add	x22, x22, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
	str	w22, [x19, #8]
	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
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @intel_dp_set_sink_rates.dp_rates
_intel_dp_set_sink_rates.dp_rates:
	.long	162000                          ; 0x278d0
	.long	270000                          ; 0x41eb0
	.long	540000                          ; 0x83d60
	.long	810000                          ; 0xc5c10

	.comm	_DP_MAX_LINK_RATE,8,3           ; @DP_MAX_LINK_RATE
	.no_dead_strip	_intel_dp_set_sink_rates
.subsections_via_symbols
