	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mci_hi3660_init
_dw_mci_hi3660_init:                    ## @dw_mci_hi3660_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_CDTHRCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_SDCARD_RD_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SDMMC_CARD_RD_THR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SDMMC_SET_THLD
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_mci_writel
	movq	_MMC_TIMING_LEGACY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_dw_mci_hs_set_timing
	movq	_GENCLK_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	incl	%ecx
	movl	(%rbx), %eax
	cltd
	idivl	%ecx
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CDTHRCTL,4,2                   ## @CDTHRCTL
	.comm	_SDCARD_RD_THRESHOLD,4,2        ## @SDCARD_RD_THRESHOLD
	.comm	_SDMMC_CARD_RD_THR_EN,4,2       ## @SDMMC_CARD_RD_THR_EN
	.comm	_MMC_TIMING_LEGACY,4,2          ## @MMC_TIMING_LEGACY
	.comm	_GENCLK_DIV,4,2                 ## @GENCLK_DIV
	.no_dead_strip	_dw_mci_hi3660_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_mci_hi3660_init
_dw_mci_hi3660_init:                    ; @dw_mci_hi3660_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _CDTHRCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CDTHRCTL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _SDCARD_RD_THRESHOLD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDCARD_RD_THRESHOLD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _SDMMC_CARD_RD_THR_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDMMC_CARD_RD_THR_EN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_SDMMC_SET_THLD
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mci_writel
Lloh9:
	adrp	x8, _MMC_TIMING_LEGACY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MMC_TIMING_LEGACY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_dw_mci_hs_set_timing
Lloh12:
	adrp	x8, _GENCLK_DIV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GENCLK_DIV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w8, w8, #1
	ldr	w9, [x19]
	sdiv	w8, w9, w8
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CDTHRCTL,4,2                   ; @CDTHRCTL
	.comm	_SDCARD_RD_THRESHOLD,4,2        ; @SDCARD_RD_THRESHOLD
	.comm	_SDMMC_CARD_RD_THR_EN,4,2       ; @SDMMC_CARD_RD_THR_EN
	.comm	_MMC_TIMING_LEGACY,4,2          ; @MMC_TIMING_LEGACY
	.comm	_GENCLK_DIV,4,2                 ; @GENCLK_DIV
	.no_dead_strip	_dw_mci_hi3660_init
.subsections_via_symbols
