	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_ddi_clock_get
_icl_ddi_clock_get:                     ## @icl_ddi_clock_get
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r13
	leaq	8(%r14), %r15
	movl	(%rbx), %r12d
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_intel_port_to_phy
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_intel_phy_is_combo
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_cnl_calc_wrpll_link
	jmp	LBB0_5
LBB0_2:
	movl	4(%r14), %esi
	movq	%r13, %rdi
	callq	_intel_get_shared_dpll_id
	movq	_DPLL_ID_ICL_TBTPLL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_icl_calc_tbt_pll_link
	jmp	LBB0_5
LBB0_4:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_icl_calc_mg_pll_link
LBB0_5:
	movl	%eax, (%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ddi_dotclock_get               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DPLL_ID_ICL_TBTPLL,4,2         ## @DPLL_ID_ICL_TBTPLL
	.no_dead_strip	_icl_ddi_clock_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icl_ddi_clock_get
_icl_ddi_clock_get:                     ; @icl_ddi_clock_get
	.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, x1
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x20, x0
	add	x21, x19, #8
	ldr	w22, [x22]
	mov	x1, x22
	bl	_intel_port_to_phy
	mov	x1, x0
	mov	x0, x20
	bl	_intel_phy_is_combo
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_cnl_calc_wrpll_link
	b	LBB0_5
LBB0_2:
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_intel_get_shared_dpll_id
Lloh0:
	adrp	x8, _DPLL_ID_ICL_TBTPLL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPLL_ID_ICL_TBTPLL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x22
	bl	_icl_calc_tbt_pll_link
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	bl	_icl_calc_mg_pll_link
LBB0_5:
	str	w0, [x19]
	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
	b	_ddi_dotclock_get
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DPLL_ID_ICL_TBTPLL,4,2         ; @DPLL_ID_ICL_TBTPLL
	.no_dead_strip	_icl_ddi_clock_get
.subsections_via_symbols
