	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icelake_get_ddi_pll
_icelake_get_ddi_pll:                   ## @icelake_get_ddi_pll
	.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	%rdx, %r13
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_intel_port_to_phy
	movl	%eax, %r12d
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_intel_phy_is_combo
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ICL_DPCLKA_CFGCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	%r13, %rbx
	movq	%rax, %r13
	movl	%r12d, %edi
	callq	_ICL_DPCLKA_CFGCR0_DDI_CLK_SEL_MASK
	movq	%rax, %r14
	andq	%r13, %r14
	movq	%rbx, %r13
	movl	%r12d, %edi
	callq	_ICL_DPCLKA_CFGCR0_DDI_CLK_SEL_SHIFT
	movl	%eax, %ecx
	sarq	%cl, %r14
LBB0_7:
	movq	_ICL_PORT_DPLL_DEFAULT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_intel_get_shared_dpll_by_id
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	%r13, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_icl_set_active_port_dpll       ## TAILCALL
LBB0_2:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_intel_phy_is_tc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	%ebx, %edi
	callq	_DDI_CLK_SEL
	movl	%eax, %edi
	callq	_I915_READ
	movq	_DDI_CLK_SEL_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	_DDI_CLK_SEL_MG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_intel_port_to_tc
	movl	%eax, %edi
	callq	_icl_tc_port_to_pll_id
	movl	%eax, %r14d
	movq	_ICL_PORT_DPLL_MG_PHY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
LBB0_6:
	movq	_DDI_CLK_SEL_TBT_162@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
	callq	_WARN_ON
	movq	_DPLL_ID_ICL_TBTPLL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ICL_DPCLKA_CFGCR0,4,2          ## @ICL_DPCLKA_CFGCR0
	.comm	_ICL_PORT_DPLL_DEFAULT,4,2      ## @ICL_PORT_DPLL_DEFAULT
	.comm	_DDI_CLK_SEL_MASK,8,3           ## @DDI_CLK_SEL_MASK
	.comm	_DDI_CLK_SEL_MG,8,3             ## @DDI_CLK_SEL_MG
	.comm	_ICL_PORT_DPLL_MG_PHY,4,2       ## @ICL_PORT_DPLL_MG_PHY
	.comm	_DDI_CLK_SEL_TBT_162,8,3        ## @DDI_CLK_SEL_TBT_162
	.comm	_DPLL_ID_ICL_TBTPLL,4,2         ## @DPLL_ID_ICL_TBTPLL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid port %x\n"

	.no_dead_strip	_icelake_get_ddi_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icelake_get_ddi_pll
_icelake_get_ddi_pll:                   ; @icelake_get_ddi_pll
	.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, x2
	mov	x21, x1
	mov	x20, x0
	bl	_intel_port_to_phy
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_intel_phy_is_combo
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ICL_DPCLKA_CFGCR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICL_DPCLKA_CFGCR0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x21, x0
	mov	x0, x22
	bl	_ICL_DPCLKA_CFGCR0_DDI_CLK_SEL_MASK
	and	x21, x0, x21
	mov	x0, x22
	bl	_ICL_DPCLKA_CFGCR0_DDI_CLK_SEL_SHIFT
	asr	x1, x21, x0
LBB0_2:
Lloh3:
	adrp	x8, _ICL_PORT_DPLL_DEFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICL_PORT_DPLL_DEFAULT@GOTPAGEOFF]
LBB0_3:
	ldr	w21, [x8]
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_intel_get_shared_dpll_by_id
	ldr	x8, [x19]
	str	w0, [x8, x21, lsl #2]
	mov	x0, x19
	mov	x1, x21
	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	_icl_set_active_port_dpll
LBB0_4:
	mov	x0, x20
	mov	x1, x22
	bl	_intel_phy_is_tc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_DDI_CLK_SEL
	bl	_I915_READ
Lloh5:
	adrp	x8, _DDI_CLK_SEL_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DDI_CLK_SEL_MASK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	and	x8, x8, x0
Lloh8:
	adrp	x9, _DDI_CLK_SEL_MG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DDI_CLK_SEL_MG@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	bl	_intel_port_to_tc
	bl	_icl_tc_port_to_pll_id
	mov	x1, x0
Lloh11:
	adrp	x8, _ICL_PORT_DPLL_MG_PHY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ICL_PORT_DPLL_MG_PHY@GOTPAGEOFF]
	b	LBB0_3
LBB0_7:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	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	_WARN
LBB0_8:
Lloh15:
	adrp	x9, _DDI_CLK_SEL_TBT_162@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DDI_CLK_SEL_TBT_162@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lt
	bl	_WARN_ON
Lloh18:
	adrp	x8, _DPLL_ID_ICL_TBTPLL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DPLL_ID_ICL_TBTPLL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ICL_DPCLKA_CFGCR0,4,2          ; @ICL_DPCLKA_CFGCR0
	.comm	_ICL_PORT_DPLL_DEFAULT,4,2      ; @ICL_PORT_DPLL_DEFAULT
	.comm	_DDI_CLK_SEL_MASK,8,3           ; @DDI_CLK_SEL_MASK
	.comm	_DDI_CLK_SEL_MG,8,3             ; @DDI_CLK_SEL_MG
	.comm	_ICL_PORT_DPLL_MG_PHY,4,2       ; @ICL_PORT_DPLL_MG_PHY
	.comm	_DDI_CLK_SEL_TBT_162,8,3        ; @DDI_CLK_SEL_TBT_162
	.comm	_DPLL_ID_ICL_TBTPLL,4,2         ; @DPLL_ID_ICL_TBTPLL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid port %x\n"

	.no_dead_strip	_icelake_get_ddi_pll
.subsections_via_symbols
