	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_get_tc_phy_dplls
_icl_get_tc_phy_dplls:                  ## @icl_get_tc_phy_dplls
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_intel_atomic_get_new_crtc_state
	movq	(%rax), %r15
	movq	_ICL_PORT_DPLL_DEFAULT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	shlq	$4, %r14
	leaq	(%r15,%r14), %rbx
	addq	$8, %rbx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_icl_calc_dpll_state
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_DPLL_ID_ICL_TBTPLL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	%ecx, %r8d
	callq	_intel_find_shared_dpll
	movq	%rax, (%r15,%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	callq	_intel_reference_shared_dpll
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rcx
	movq	_ICL_PORT_DPLL_MG_PHY@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	shlq	$4, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rbx), %rsi
	addq	$8, %rsi
	movq	%r15, %rdi
	movq	%rsi, %r14
	callq	_icl_calc_mg_pll_state
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_intel_port_to_tc
	movl	%eax, %edi
	callq	_icl_tc_port_to_pll_id
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	movl	%eax, %r8d
	callq	_intel_find_shared_dpll
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.12:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	movq	%r14, %rcx
	callq	_intel_reference_shared_dpll
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_icl_update_active_dpll
	movl	$1, %eax
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
LBB0_9:
	callq	_DRM_DEBUG_KMS
	movq	(%r15), %rax
	movq	_ICL_PORT_DPLL_DEFAULT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_intel_unreference_shared_dpll
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICL_PORT_DPLL_DEFAULT,8,3      ## @ICL_PORT_DPLL_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not calculate TBT PLL state.\n"

	.comm	_DPLL_ID_ICL_TBTPLL,4,2         ## @DPLL_ID_ICL_TBTPLL
L_.str.1:                               ## @.str.1
	.asciz	"No TBT-ALT PLL found\n"

	.comm	_ICL_PORT_DPLL_MG_PHY,8,3       ## @ICL_PORT_DPLL_MG_PHY
L_.str.2:                               ## @.str.2
	.asciz	"Could not calculate MG PHY PLL state.\n"

L_.str.3:                               ## @.str.3
	.asciz	"No MG PHY PLL found\n"

	.no_dead_strip	_icl_get_tc_phy_dplls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icl_get_tc_phy_dplls
_icl_get_tc_phy_dplls:                  ; @icl_get_tc_phy_dplls
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_to_i915
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	bl	_intel_atomic_get_new_crtc_state
	mov	x22, x0
	ldr	x26, [x0]
Lloh0:
	adrp	x25, _ICL_PORT_DPLL_DEFAULT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ICL_PORT_DPLL_DEFAULT@GOTPAGEOFF]
	ldr	x27, [x25]
	add	x8, x26, x27, lsl #4
	add	x24, x8, #8
	mov	x1, x21
	mov	x2, x24
	bl	_icl_calc_dpll_state
	cbz	w0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _DPLL_ID_ICL_TBTPLL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DPLL_ID_ICL_TBTPLL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x4, x3
	bl	_intel_find_shared_dpll
	lsl	x8, x27, #4
	str	x0, [x26, x8]
	cbz	x0, LBB0_6
; %bb.2:
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	mov	x3, x24
	bl	_intel_reference_shared_dpll
	ldr	x26, [x22]
Lloh5:
	adrp	x8, _ICL_PORT_DPLL_MG_PHY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ICL_PORT_DPLL_MG_PHY@GOTPAGEOFF]
Lloh7:
	ldr	x27, [x8]
	add	x8, x26, x27, lsl #4
	add	x24, x8, #8
	mov	x0, x22
	mov	x1, x24
	bl	_icl_calc_mg_pll_state
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w1, [x21]
	mov	x0, x23
	bl	_intel_port_to_tc
	bl	_icl_tc_port_to_pll_id
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x4, x3
	bl	_intel_find_shared_dpll
	lsl	x8, x27, #4
	str	x0, [x26, x8]
	cbz	x0, LBB0_8
; %bb.4:
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	mov	x3, x24
	bl	_intel_reference_shared_dpll
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_icl_update_active_dpll
	mov	w0, #1
	b	LBB0_11
LBB0_5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_10
LBB0_6:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_10
LBB0_7:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	bl	_DRM_DEBUG_KMS
	ldr	x8, [x22]
	ldr	x9, [x25]
	lsl	x9, x9, #4
	ldr	x2, [x8, x9]
	mov	x0, x20
	mov	x1, x19
	bl	_intel_unreference_shared_dpll
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ICL_PORT_DPLL_DEFAULT,8,3      ; @ICL_PORT_DPLL_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not calculate TBT PLL state.\n"

	.comm	_DPLL_ID_ICL_TBTPLL,4,2         ; @DPLL_ID_ICL_TBTPLL
l_.str.1:                               ; @.str.1
	.asciz	"No TBT-ALT PLL found\n"

	.comm	_ICL_PORT_DPLL_MG_PHY,8,3       ; @ICL_PORT_DPLL_MG_PHY
l_.str.2:                               ; @.str.2
	.asciz	"Could not calculate MG PHY PLL state.\n"

l_.str.3:                               ; @.str.3
	.asciz	"No MG PHY PLL found\n"

	.no_dead_strip	_icl_get_tc_phy_dplls
.subsections_via_symbols
