	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_shared_dpll_init         ## -- Begin function intel_shared_dpll_init
	.p2align	4, 0x90
_intel_shared_dpll_init:                ## @intel_shared_dpll_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_to_i915
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_INTEL_GEN
	cmpl	$11, %eax
	jle	LBB0_2
## %bb.1:
	movq	_tgl_pll_mgr@GOTPCREL(%rip), %r14
	jmp	LBB0_16
LBB0_2:
	movq	%r15, %rdi
	callq	_IS_ELKHARTLAKE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ehl_pll_mgr@GOTPCREL(%rip), %r14
	jmp	LBB0_16
LBB0_4:
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$10, %eax
	jle	LBB0_6
## %bb.5:
	movq	_icl_pll_mgr@GOTPCREL(%rip), %r14
	jmp	LBB0_16
LBB0_6:
	movq	%r15, %rdi
	callq	_IS_CANNONLAKE
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_cnl_pll_mgr@GOTPCREL(%rip), %r14
	jmp	LBB0_16
LBB0_8:
	movq	%r15, %rdi
	callq	_IS_GEN9_BC
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_skl_pll_mgr@GOTPCREL(%rip), %r14
	jmp	LBB0_16
LBB0_10:
	movq	%r15, %rdi
	callq	_IS_GEN9_LP
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_bxt_pll_mgr@GOTPCREL(%rip), %r14
	jmp	LBB0_16
LBB0_12:
	movq	%r15, %rdi
	callq	_HAS_DDI
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_hsw_pll_mgr@GOTPCREL(%rip), %r14
	jmp	LBB0_16
LBB0_14:
	movq	%r15, %rdi
	callq	_HAS_PCH_IBX
	movq	_pch_pll_mgr@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	_HAS_PCH_CPT
	testq	%rax, %rax
	je	LBB0_21
LBB0_16:
	movq	(%r14), %r12
	cmpq	$0, 8(%r12)
	je	LBB0_17
## %bb.18:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setne	%dil
	callq	_WARN_ON
	movq	16(%r15), %rax
	movq	%r12, (%rax,%rbx,8)
	incq	%rbx
	cmpq	$0, 24(%r12)
	leaq	16(%r12), %r12
	jne	LBB0_19
	jmp	LBB0_20
LBB0_17:
	xorl	%ebx, %ebx
LBB0_20:
	movq	%r14, 8(%r15)
	movl	%ebx, (%r15)
	movq	%r15, %rdi
	addq	$4, %rdi
	callq	_mutex_init
	movl	(%r15), %eax
	movq	_I915_NUM_PLLS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setg	%dil
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BUG_ON                         ## TAILCALL
LBB0_21:
	movl	$0, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tgl_pll_mgr,8,3                ## @tgl_pll_mgr
	.comm	_ehl_pll_mgr,8,3                ## @ehl_pll_mgr
	.comm	_icl_pll_mgr,8,3                ## @icl_pll_mgr
	.comm	_cnl_pll_mgr,8,3                ## @cnl_pll_mgr
	.comm	_skl_pll_mgr,8,3                ## @skl_pll_mgr
	.comm	_bxt_pll_mgr,8,3                ## @bxt_pll_mgr
	.comm	_hsw_pll_mgr,8,3                ## @hsw_pll_mgr
	.comm	_pch_pll_mgr,8,3                ## @pch_pll_mgr
	.comm	_I915_NUM_PLLS,4,2              ## @I915_NUM_PLLS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_shared_dpll_init         ; -- Begin function intel_shared_dpll_init
	.p2align	2
_intel_shared_dpll_init:                ; @intel_shared_dpll_init
	.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
	bl	_to_i915
	mov	x19, x0
	bl	_INTEL_GEN
	cmp	w0, #11
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x20, _tgl_pll_mgr@GOTPAGE
Lloh1:
	ldr	x20, [x20, _tgl_pll_mgr@GOTPAGEOFF]
	b	LBB0_17
LBB0_2:
	mov	x0, x19
	bl	_IS_ELKHARTLAKE
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x20, _ehl_pll_mgr@GOTPAGE
Lloh3:
	ldr	x20, [x20, _ehl_pll_mgr@GOTPAGEOFF]
	b	LBB0_17
LBB0_4:
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #10
	b.le	LBB0_6
; %bb.5:
Lloh4:
	adrp	x20, _icl_pll_mgr@GOTPAGE
Lloh5:
	ldr	x20, [x20, _icl_pll_mgr@GOTPAGEOFF]
	b	LBB0_17
LBB0_6:
	mov	x0, x19
	bl	_IS_CANNONLAKE
	cbz	x0, LBB0_8
; %bb.7:
Lloh6:
	adrp	x20, _cnl_pll_mgr@GOTPAGE
Lloh7:
	ldr	x20, [x20, _cnl_pll_mgr@GOTPAGEOFF]
	b	LBB0_17
LBB0_8:
	mov	x0, x19
	bl	_IS_GEN9_BC
	cbz	x0, LBB0_10
; %bb.9:
Lloh8:
	adrp	x20, _skl_pll_mgr@GOTPAGE
Lloh9:
	ldr	x20, [x20, _skl_pll_mgr@GOTPAGEOFF]
	b	LBB0_17
LBB0_10:
	mov	x0, x19
	bl	_IS_GEN9_LP
	cbz	x0, LBB0_12
; %bb.11:
Lloh10:
	adrp	x20, _bxt_pll_mgr@GOTPAGE
Lloh11:
	ldr	x20, [x20, _bxt_pll_mgr@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
	mov	x0, x19
	bl	_HAS_DDI
	cbz	x0, LBB0_14
; %bb.13:
Lloh12:
	adrp	x20, _hsw_pll_mgr@GOTPAGE
Lloh13:
	ldr	x20, [x20, _hsw_pll_mgr@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
	mov	x0, x19
	bl	_HAS_PCH_IBX
	cbnz	x0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_HAS_PCH_CPT
	cbz	x0, LBB0_22
LBB0_16:
Lloh14:
	adrp	x20, _pch_pll_mgr@GOTPAGE
Lloh15:
	ldr	x20, [x20, _pch_pll_mgr@GOTPAGEOFF]
LBB0_17:
	ldr	x21, [x20]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_20
; %bb.18:
	mov	x22, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	cmp	x22, x8
	cset	w0, ne
	bl	_WARN_ON
	ldr	x8, [x19, #16]
	str	x21, [x8, x22, lsl #3]
	add	x22, x22, #1
	ldr	x8, [x21, #24]
	add	x21, x21, #16
	cbnz	x8, LBB0_19
	b	LBB0_21
LBB0_20:
	mov	w22, #0
LBB0_21:
	str	x20, [x19, #8]
	str	w22, [x19]
	add	x0, x19, #4
	bl	_mutex_init
	ldr	w8, [x19]
Lloh16:
	adrp	x9, _I915_NUM_PLLS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _I915_NUM_PLLS@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, gt
	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	_BUG_ON
LBB0_22:
	str	wzr, [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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_tgl_pll_mgr,8,3                ; @tgl_pll_mgr
	.comm	_ehl_pll_mgr,8,3                ; @ehl_pll_mgr
	.comm	_icl_pll_mgr,8,3                ; @icl_pll_mgr
	.comm	_cnl_pll_mgr,8,3                ; @cnl_pll_mgr
	.comm	_skl_pll_mgr,8,3                ; @skl_pll_mgr
	.comm	_bxt_pll_mgr,8,3                ; @bxt_pll_mgr
	.comm	_hsw_pll_mgr,8,3                ; @hsw_pll_mgr
	.comm	_pch_pll_mgr,8,3                ; @pch_pll_mgr
	.comm	_I915_NUM_PLLS,4,2              ; @I915_NUM_PLLS
.subsections_via_symbols
