	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_get_combo_phy_dpll
_icl_get_combo_phy_dpll:                ## @icl_get_combo_phy_dpll
	.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, %r14
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_intel_atomic_get_new_crtc_state
	movq	%rax, %r15
	movq	(%rax), %rbx
	movq	_ICL_PORT_DPLL_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	(%r14), %edi
	callq	_to_i915
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%r13,8), %rbx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_icl_calc_dpll_state
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_IS_ELKHARTLAKE
	movq	_PORT_A@GOTPCREL(%rip), %rcx
	movq	_DPLL_ID_ICL_DPLL1@GOTPCREL(%rip), %rdx
	movq	%rdx, %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	cmpl	(%rcx), %edi
	je	LBB0_4
## %bb.3:
	movq	_DPLL_ID_EHL_DPLL4@GOTPCREL(%rip), %rsi
LBB0_4:
	testq	%rax, %rax
	movq	_DPLL_ID_ICL_DPLL0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmoveq	%rdx, %rsi
	movl	(%rsi), %r8d
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_intel_find_shared_dpll
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 4(%rcx,%rdx,8)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	movq	%rbx, %rcx
	callq	_intel_reference_shared_dpll
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_icl_update_active_dpll
	movl	$1, %ebx
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_7
LBB0_5:
	movl	(%r12), %edi
	callq	_port_name
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_7:
	movl	%ebx, %eax
	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 combo PHY PLL state.\n"

	.comm	_PORT_A,4,2                     ## @PORT_A
	.comm	_DPLL_ID_ICL_DPLL0,4,2          ## @DPLL_ID_ICL_DPLL0
	.comm	_DPLL_ID_EHL_DPLL4,4,2          ## @DPLL_ID_EHL_DPLL4
	.comm	_DPLL_ID_ICL_DPLL1,4,2          ## @DPLL_ID_ICL_DPLL1
L_.str.1:                               ## @.str.1
	.asciz	"No combo PHY PLL found for port %c\n"

	.no_dead_strip	_icl_get_combo_phy_dpll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icl_get_combo_phy_dpll
_icl_get_combo_phy_dpll:                ; @icl_get_combo_phy_dpll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_intel_atomic_get_new_crtc_state
	mov	x24, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _ICL_PORT_DPLL_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICL_PORT_DPLL_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	ldr	w0, [x20]
	bl	_to_i915
	mov	x23, x0
	ldr	w25, [x19]
	add	x22, x22, x26, lsl #3
	mov	x0, x24
	mov	x1, x19
	mov	x2, x22
	bl	_icl_calc_dpll_state
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x23
	bl	_IS_ELKHARTLAKE
Lloh3:
	adrp	x8, _PORT_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PORT_A@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w25, w8
	ccmp	x0, #0, #4, ne
Lloh6:
	adrp	x8, _DPLL_ID_ICL_DPLL0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DPLL_ID_ICL_DPLL0@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _DPLL_ID_EHL_DPLL4@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DPLL_ID_EHL_DPLL4@GOTPAGEOFF]
Lloh11:
	adrp	x9, _DPLL_ID_ICL_DPLL1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DPLL_ID_ICL_DPLL1@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_intel_find_shared_dpll
	str	w0, [x22, #4]
	cbz	w0, LBB0_4
; %bb.2:
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	bl	_intel_reference_shared_dpll
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_icl_update_active_dpll
	mov	w0, #1
	b	LBB0_6
LBB0_3:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
	bl	_port_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
LBB0_6:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.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 combo PHY PLL state.\n"

	.comm	_PORT_A,4,2                     ; @PORT_A
	.comm	_DPLL_ID_ICL_DPLL0,4,2          ; @DPLL_ID_ICL_DPLL0
	.comm	_DPLL_ID_EHL_DPLL4,4,2          ; @DPLL_ID_EHL_DPLL4
	.comm	_DPLL_ID_ICL_DPLL1,4,2          ; @DPLL_ID_ICL_DPLL1
l_.str.1:                               ; @.str.1
	.asciz	"No combo PHY PLL found for port %c\n"

	.no_dead_strip	_icl_get_combo_phy_dpll
.subsections_via_symbols
