	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_pll_get_hw_state
_icl_pll_get_hw_state:                  ## @icl_pll_get_hw_state
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r15
	movq	%rdi, %r13
	movq	(%rsi), %rax
	movl	(%rax), %r12d
	movq	_POWER_DOMAIN_DISPLAY_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_intel_display_power_get_if_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_PLL_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	movq	%r13, %rdi
	callq	_INTEL_GEN
	cmpl	$12, %eax
	jl	LBB0_6
## %bb.5:
	movl	%r12d, %edi
	callq	_TGL_DPLL_CFGCR0
	movl	%eax, %edi
	callq	_I915_READ
	movq	%rax, 8(%r15)
	movl	%r12d, %edi
	callq	_TGL_DPLL_CFGCR1
	jmp	LBB0_11
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_6:
	movq	%r13, %rdi
	callq	_IS_ELKHARTLAKE
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_DPLL_ID_EHL_DPLL4@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_9
## %bb.8:
	movl	$4, %edi
	callq	_ICL_DPLL_CFGCR0
	movl	%eax, %edi
	callq	_I915_READ
	movq	%rax, 8(%r15)
	movl	$4, %edi
	jmp	LBB0_10
LBB0_9:
	movl	%r12d, %edi
	callq	_ICL_DPLL_CFGCR0
	movl	%eax, %edi
	callq	_I915_READ
	movq	%rax, 8(%r15)
	movl	%r12d, %edi
LBB0_10:
	callq	_ICL_DPLL_CFGCR1
LBB0_11:
	movl	%eax, %edi
	callq	_I915_READ
	movq	%rax, (%r15)
	movl	$1, %ebx
LBB0_12:
	movq	_POWER_DOMAIN_DISPLAY_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_intel_display_power_put
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_DOMAIN_DISPLAY_CORE,4,2  ## @POWER_DOMAIN_DISPLAY_CORE
	.comm	_PLL_ENABLE,4,2                 ## @PLL_ENABLE
	.comm	_DPLL_ID_EHL_DPLL4,4,2          ## @DPLL_ID_EHL_DPLL4
	.no_dead_strip	_icl_pll_get_hw_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icl_pll_get_hw_state
_icl_pll_get_hw_state:                  ; @icl_pll_get_hw_state
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x3
	mov	x21, x2
	mov	x19, x0
	ldr	x8, [x1]
	ldr	w22, [x8]
Lloh0:
	adrp	x24, _POWER_DOMAIN_DISPLAY_CORE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _POWER_DOMAIN_DISPLAY_CORE@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_intel_display_power_get_if_enabled
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x23
	bl	_I915_READ
Lloh2:
	adrp	x8, _PLL_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PLL_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #12
	b.lt	LBB0_6
; %bb.3:
	mov	x0, x22
	bl	_TGL_DPLL_CFGCR0
	bl	_I915_READ
	str	x0, [x21, #8]
	mov	x0, x22
	bl	_TGL_DPLL_CFGCR1
	b	LBB0_11
LBB0_4:
	mov	w21, #0
	b	LBB0_13
LBB0_5:
	mov	w21, #0
	b	LBB0_12
LBB0_6:
	mov	x0, x19
	bl	_IS_ELKHARTLAKE
	cbz	x0, LBB0_9
; %bb.7:
Lloh5:
	adrp	x8, _DPLL_ID_EHL_DPLL4@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DPLL_ID_EHL_DPLL4@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #4
	bl	_ICL_DPLL_CFGCR0
	bl	_I915_READ
	str	x0, [x21, #8]
	mov	w0, #4
	b	LBB0_10
LBB0_9:
	mov	x0, x22
	bl	_ICL_DPLL_CFGCR0
	bl	_I915_READ
	str	x0, [x21, #8]
	mov	x0, x22
LBB0_10:
	bl	_ICL_DPLL_CFGCR1
LBB0_11:
	bl	_I915_READ
	str	x0, [x21]
	mov	w21, #1
LBB0_12:
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_intel_display_power_put
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_DOMAIN_DISPLAY_CORE,4,2  ; @POWER_DOMAIN_DISPLAY_CORE
	.comm	_PLL_ENABLE,4,2                 ; @PLL_ENABLE
	.comm	_DPLL_ID_EHL_DPLL4,4,2          ; @DPLL_ID_EHL_DPLL4
	.no_dead_strip	_icl_pll_get_hw_state
.subsections_via_symbols
