	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msm_init_cm_dll
_msm_init_cm_dll:                       ## @msm_init_cm_dll
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %rbx
	movq	16(%rax), %r14
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movl	8(%rbx), %edi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_4:
	movl	8(%rbx), %edi
	callq	_clk_get_rate
	movq	%rax, %r13
LBB0_5:
	leaq	4(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	24(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movq	_CORE_CLK_PWRSAVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	24(%r14), %rsi
	addq	8(%r12), %rsi
	callq	_writel_relaxed
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.6:
	movq	8(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movq	_CORE_CK_OUT_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	8(%r14), %rsi
	addq	8(%r12), %rsi
	callq	_writel_relaxed
	movq	16(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movq	_CORE_DLL_CLOCK_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	16(%r14), %rsi
	addq	8(%r12), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
LBB0_7:
	movq	8(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movq	_CORE_DLL_RST@GOTPCREL(%rip), %r15
	orl	(%r15), %eax
	movq	8(%r14), %rsi
	addq	8(%r12), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
	movq	8(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movq	_CORE_DLL_PDN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	8(%r14), %rsi
	addq	8(%r12), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
	movq	%r12, %rdi
	callq	_msm_cm_dll_set_freq
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.8:
	movl	8(%rbx), %edi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	16(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movq	_CORE_FLL_CYCLE_CNT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$1, %eax
	movb	$3, %cl
	sbbb	$0, %cl
	movl	(%r12), %edi
	shll	%cl, %edi
	movq	%r13, %rsi
	callq	_DIV_ROUND_CLOSEST_ULL
	movl	%eax, %r13d
	movq	16(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	andl	$-261121, %eax                  ## imm = 0xFFFC03FF
	shll	$10, %r13d
	orl	%eax, %r13d
	movq	16(%r14), %rsi
	addq	8(%r12), %rsi
	movl	%r13d, %edi
	callq	_writel_relaxed
	movl	$5, %edi
	callq	_udelay
LBB0_10:
	movq	8(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movl	(%r15), %edi
	notl	%edi
	andl	%eax, %edi
	movq	8(%r14), %rsi
	addq	8(%r12), %rsi
	callq	_writel_relaxed
	movq	8(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movq	_CORE_DLL_PDN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	8(%r14), %rsi
	addq	8(%r12), %rsi
	callq	_writel_relaxed
	cmpq	$0, (%rbx)
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_msm_cm_dll_set_freq
	movq	16(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movq	_CORE_DLL_CLOCK_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	16(%r14), %rsi
	addq	8(%r12), %rsi
	callq	_writel_relaxed
LBB0_12:
	movq	8(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movq	_CORE_DLL_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	8(%r14), %rsi
	addq	8(%r12), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
	movq	8(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movq	_CORE_CK_OUT_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	8(%r14), %rsi
	addq	8(%r12), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
	movq	(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movq	_CORE_DLL_LOCK@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	jne	LBB0_16
## %bb.13:
	movl	$-50, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	$1, %edi
	callq	_udelay
	movq	(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	testl	%eax, (%r15)
	je	LBB0_14
LBB0_16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_17:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_mmc_dev
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_dev_err
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CORE_CLK_PWRSAVE,4,2           ## @CORE_CLK_PWRSAVE
	.comm	_CORE_CK_OUT_EN,4,2             ## @CORE_CK_OUT_EN
	.comm	_CORE_DLL_CLOCK_DISABLE,4,2     ## @CORE_DLL_CLOCK_DISABLE
	.comm	_CORE_DLL_RST,4,2               ## @CORE_DLL_RST
	.comm	_CORE_DLL_PDN,4,2               ## @CORE_DLL_PDN
	.comm	_CORE_FLL_CYCLE_CNT,4,2         ## @CORE_FLL_CYCLE_CNT
	.comm	_CORE_DLL_EN,4,2                ## @CORE_DLL_EN
	.comm	_CORE_DLL_LOCK,4,2              ## @CORE_DLL_LOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: DLL failed to LOCK\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_msm_init_cm_dll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msm_init_cm_dll
_msm_init_cm_dll:                       ; @msm_init_cm_dll
	.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	x20, x0
	ldr	x19, [x0, #16]
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x22, x0
	ldr	x24, [x0, #16]
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x22, #8]
	bl	_IS_ERR_OR_NULL
	cbz	w0, LBB0_3
LBB0_2:
	mov	x23, #0
	b	LBB0_4
LBB0_3:
	ldr	w0, [x22, #8]
	bl	_clk_get_rate
	mov	x23, x0
LBB0_4:
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #24]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh0:
	adrp	x8, _CORE_CLK_PWRSAVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CORE_CLK_PWRSAVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #24]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x22]
Lloh3:
	adrp	x26, _CORE_DLL_CLOCK_DISABLE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _CORE_DLL_CLOCK_DISABLE@GOTPAGEOFF]
Lloh5:
	adrp	x25, _CORE_CK_OUT_EN@GOTPAGE
Lloh6:
	ldr	x25, [x25, _CORE_CK_OUT_EN@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #8]
	add	x0, x9, x8
	bl	_readl_relaxed
	ldr	w8, [x25]
	bic	w0, w0, w8
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #8]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #16]
	add	x0, x9, x8
	bl	_readl_relaxed
	ldr	w8, [x26]
	orr	w0, w8, w0
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #16]
	add	x1, x9, x8
	bl	_writel_relaxed
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #8]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh7:
	adrp	x27, _CORE_DLL_RST@GOTPAGE
Lloh8:
	ldr	x27, [x27, _CORE_DLL_RST@GOTPAGEOFF]
	ldr	w8, [x27]
	orr	w0, w8, w0
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #8]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #8]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh9:
	adrp	x28, _CORE_DLL_PDN@GOTPAGE
Lloh10:
	ldr	x28, [x28, _CORE_DLL_PDN@GOTPAGEOFF]
	ldr	w8, [x28]
	orr	w0, w8, w0
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #8]
	add	x1, x9, x8
	bl	_writel_relaxed
	mov	x0, x20
	bl	_msm_cm_dll_set_freq
	ldr	x8, [x22]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	w0, [x22, #8]
	bl	_IS_ERR_OR_NULL
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #16]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh11:
	adrp	x8, _CORE_FLL_CYCLE_CNT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CORE_FLL_CYCLE_CNT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x20]
	tst	w8, w0
	mov	w8, #2
	cinc	w8, w8, ne
	lsl	w0, w9, w8
	mov	x1, x23
	bl	_DIV_ROUND_CLOSEST_ULL
	mov	x23, x0
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #16]
	add	x0, x9, x8
	bl	_readl_relaxed
	and	w8, w0, #0xfffc03ff
	orr	w0, w8, w23, lsl #10
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #16]
	add	x1, x9, x8
	bl	_writel_relaxed
	mov	w0, #5
	bl	_udelay
LBB0_9:
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #8]
	add	x0, x9, x8
	bl	_readl_relaxed
	ldr	w8, [x27]
	bic	w0, w0, w8
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #8]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #8]
	add	x0, x9, x8
	bl	_readl_relaxed
	ldr	w8, [x28]
	bic	w0, w0, w8
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #8]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x22]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_msm_cm_dll_set_freq
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #16]
	add	x0, x9, x8
	bl	_readl_relaxed
	ldr	w8, [x26]
	bic	w0, w0, w8
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #16]
	add	x1, x9, x8
	bl	_writel_relaxed
LBB0_11:
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #8]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh14:
	adrp	x8, _CORE_DLL_EN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CORE_DLL_EN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #8]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #8]
	add	x0, x9, x8
	bl	_readl_relaxed
	ldr	w8, [x25]
	orr	w0, w8, w0
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #8]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x20, #8]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh17:
	adrp	x22, _CORE_DLL_LOCK@GOTPAGE
Lloh18:
	ldr	x22, [x22, _CORE_DLL_LOCK@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_15
; %bb.12:
	mov	w23, #-50
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	adds	w23, w23, #1
	b.hs	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x20, #8]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl_relaxed
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_13
LBB0_15:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_17
LBB0_16:
	mov	x0, x19
	bl	_mmc_dev
	mov	x20, x0
	mov	x0, x19
	bl	_mmc_hostname
	mov	x2, x0
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh21:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CORE_CLK_PWRSAVE,4,2           ; @CORE_CLK_PWRSAVE
	.comm	_CORE_CK_OUT_EN,4,2             ; @CORE_CK_OUT_EN
	.comm	_CORE_DLL_CLOCK_DISABLE,4,2     ; @CORE_DLL_CLOCK_DISABLE
	.comm	_CORE_DLL_RST,4,2               ; @CORE_DLL_RST
	.comm	_CORE_DLL_PDN,4,2               ; @CORE_DLL_PDN
	.comm	_CORE_FLL_CYCLE_CNT,4,2         ; @CORE_FLL_CYCLE_CNT
	.comm	_CORE_DLL_EN,4,2                ; @CORE_DLL_EN
	.comm	_CORE_DLL_LOCK,4,2              ; @CORE_DLL_LOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: DLL failed to LOCK\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_msm_init_cm_dll
.subsections_via_symbols
