	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnl_max_source_rate
_cnl_max_source_rate:                   ## @cnl_max_source_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_dp_to_dig_port
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_to_i915
	movq	%rax, %r14
	movl	(%rbx), %ebx
	movq	_CNL_PORT_COMP_DW3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	%rax, %rcx
	movq	_VOLTAGE_INFO_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rcx
	movq	_VOLTAGE_INFO_0_85V@GOTPCREL(%rip), %rdx
	movl	$540000, %eax                   ## imm = 0x83D60
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_IS_CNL_WITH_PORT_F
	movq	%rax, %rcx
	movl	$810000, %eax                   ## imm = 0xC5C10
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.2:
	movq	_PORT_A@GOTPCREL(%rip), %rcx
	movq	_PORT_D@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	movl	$540000, %edx                   ## imm = 0x83D60
	movl	$810000, %eax                   ## imm = 0xC5C10
	cmovel	%edx, %eax
	cmpl	(%rcx), %ebx
	cmovel	%edx, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CNL_PORT_COMP_DW3,4,2          ## @CNL_PORT_COMP_DW3
	.comm	_VOLTAGE_INFO_MASK,8,3          ## @VOLTAGE_INFO_MASK
	.comm	_VOLTAGE_INFO_0_85V,8,3         ## @VOLTAGE_INFO_0_85V
	.comm	_PORT_A,4,2                     ## @PORT_A
	.comm	_PORT_D,4,2                     ## @PORT_D
	.no_dead_strip	_cnl_max_source_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnl_max_source_rate
_cnl_max_source_rate:                   ; @cnl_max_source_rate
	.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	w21, #15712
	movk	w21, #8, lsl #16
	bl	_dp_to_dig_port
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x20, x0
	ldr	w22, [x19]
Lloh0:
	adrp	x8, _CNL_PORT_COMP_DW3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CNL_PORT_COMP_DW3@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh3:
	adrp	x8, _VOLTAGE_INFO_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VOLTAGE_INFO_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	x8, x8, x0
Lloh6:
	adrp	x9, _VOLTAGE_INFO_0_85V@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VOLTAGE_INFO_0_85V@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	mov	w19, #15712
	movk	w19, #8, lsl #16
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
	mov	w19, #23568
	movk	w19, #12, lsl #16
	mov	x0, x20
	bl	_IS_CNL_WITH_PORT_F
	cbnz	x0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _PORT_A@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PORT_A@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _PORT_D@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PORT_D@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w22, w9
	ccmp	w22, w8, #4, ne
	csel	w19, w21, w19, eq
LBB0_3:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CNL_PORT_COMP_DW3,4,2          ; @CNL_PORT_COMP_DW3
	.comm	_VOLTAGE_INFO_MASK,8,3          ; @VOLTAGE_INFO_MASK
	.comm	_VOLTAGE_INFO_0_85V,8,3         ; @VOLTAGE_INFO_0_85V
	.comm	_PORT_A,4,2                     ; @PORT_A
	.comm	_PORT_D,4,2                     ; @PORT_D
	.no_dead_strip	_cnl_max_source_rate
.subsections_via_symbols
