	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_am654_init
_sdhci_am654_init:                      ## @sdhci_am654_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	_OTAPDLYENA_MASK@GOTPCREL(%rip), %rcx
	movq	_OTAPDLYSEL_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	%rax, %rbx
	movl	4(%rax), %edi
	movq	_PHY_CTRL4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movq	_DLL_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.1:
	movl	4(%rbx), %edi
	movq	_PHY_STAT1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	movl	-36(%rbp), %eax
	notl	%eax
	movq	_CALDONE_MASK@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.2:
	movl	4(%rbx), %edi
	movq	_PHY_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PDB_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movl	4(%rbx), %edi
	movl	(%r15), %esi
	movl	-36(%rbp), %edx
	movl	(%r12), %ecx
	andl	%edx, %ecx
	movl	$1, %r8d
	movl	$20, %r9d
	callq	_regmap_read_poll_timeout
	testl	%eax, %eax
	jne	LBB0_8
LBB0_3:
	movq	_IOMUX_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.4:
	movl	4(%rbx), %edi
	movq	_PHY_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IOMUX_ENABLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
LBB0_5:
	movq	(%r14), %rax
	movq	_MMC_CAP_NONREMOVABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	je	LBB0_7
## %bb.6:
	movq	_SLOTTYPE_EMBEDDED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_7:
	movl	4(%rbx), %edi
	movq	_CTL_CFG_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SLOTTYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_update_bits
	movq	%r14, %rdi
	callq	_sdhci_add_host
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OTAPDLYENA_MASK,4,2            ## @OTAPDLYENA_MASK
	.comm	_OTAPDLYSEL_MASK,4,2            ## @OTAPDLYSEL_MASK
	.comm	_PHY_CTRL4,4,2                  ## @PHY_CTRL4
	.comm	_DLL_PRESENT,4,2                ## @DLL_PRESENT
	.comm	_PHY_STAT1,4,2                  ## @PHY_STAT1
	.comm	_CALDONE_MASK,4,2               ## @CALDONE_MASK
	.comm	_PHY_CTRL1,4,2                  ## @PHY_CTRL1
	.comm	_PDB_MASK,4,2                   ## @PDB_MASK
	.comm	_IOMUX_PRESENT,4,2              ## @IOMUX_PRESENT
	.comm	_IOMUX_ENABLE_MASK,4,2          ## @IOMUX_ENABLE_MASK
	.comm	_MMC_CAP_NONREMOVABLE,4,2       ## @MMC_CAP_NONREMOVABLE
	.comm	_SLOTTYPE_EMBEDDED,4,2          ## @SLOTTYPE_EMBEDDED
	.comm	_CTL_CFG_2,4,2                  ## @CTL_CFG_2
	.comm	_SLOTTYPE_MASK,4,2              ## @SLOTTYPE_MASK
	.no_dead_strip	_sdhci_am654_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_am654_init
_sdhci_am654_init:                      ; @sdhci_am654_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _OTAPDLYENA_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OTAPDLYENA_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _OTAPDLYSEL_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OTAPDLYSEL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w0, [x0, #4]
Lloh6:
	adrp	x8, _PHY_CTRL4@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHY_CTRL4@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _DLL_PRESENT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DLL_PRESENT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w0, [x20, #4]
Lloh12:
	adrp	x21, _PHY_STAT1@GOTPAGE
Lloh13:
	ldr	x21, [x21, _PHY_STAT1@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w8, [sp, #12]
Lloh14:
	adrp	x22, _CALDONE_MASK@GOTPAGE
Lloh15:
	ldr	x22, [x22, _CALDONE_MASK@GOTPAGEOFF]
	ldr	w9, [x22]
	bics	wzr, w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x20, #4]
Lloh16:
	adrp	x8, _PHY_CTRL1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PHY_CTRL1@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _PDB_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PDB_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	ldr	w0, [x20, #4]
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	ldr	w8, [x22]
	and	w3, w8, w2
	mov	w4, #1
	mov	w5, #20
	bl	_regmap_read_poll_timeout
	cbnz	w0, LBB0_6
LBB0_3:
	ldr	w8, [x20]
Lloh22:
	adrp	x9, _IOMUX_PRESENT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IOMUX_PRESENT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x20, #4]
Lloh25:
	adrp	x8, _PHY_CTRL1@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PHY_CTRL1@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _IOMUX_ENABLE_MASK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IOMUX_ENABLE_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
LBB0_5:
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _MMC_CAP_NONREMOVABLE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MMC_CAP_NONREMOVABLE@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
Lloh34:
	adrp	x10, _SLOTTYPE_EMBEDDED@GOTPAGE
Lloh35:
	ldr	x10, [x10, _SLOTTYPE_EMBEDDED@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w3, wzr, w10, eq
	ldr	w0, [x20, #4]
Lloh37:
	adrp	x8, _CTL_CFG_2@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CTL_CFG_2@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _SLOTTYPE_MASK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SLOTTYPE_MASK@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	bl	_regmap_update_bits
	mov	x0, x19
	bl	_sdhci_add_host
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_OTAPDLYENA_MASK,4,2            ; @OTAPDLYENA_MASK
	.comm	_OTAPDLYSEL_MASK,4,2            ; @OTAPDLYSEL_MASK
	.comm	_PHY_CTRL4,4,2                  ; @PHY_CTRL4
	.comm	_DLL_PRESENT,4,2                ; @DLL_PRESENT
	.comm	_PHY_STAT1,4,2                  ; @PHY_STAT1
	.comm	_CALDONE_MASK,4,2               ; @CALDONE_MASK
	.comm	_PHY_CTRL1,4,2                  ; @PHY_CTRL1
	.comm	_PDB_MASK,4,2                   ; @PDB_MASK
	.comm	_IOMUX_PRESENT,4,2              ; @IOMUX_PRESENT
	.comm	_IOMUX_ENABLE_MASK,4,2          ; @IOMUX_ENABLE_MASK
	.comm	_MMC_CAP_NONREMOVABLE,4,2       ; @MMC_CAP_NONREMOVABLE
	.comm	_SLOTTYPE_EMBEDDED,4,2          ; @SLOTTYPE_EMBEDDED
	.comm	_CTL_CFG_2,4,2                  ; @CTL_CFG_2
	.comm	_SLOTTYPE_MASK,4,2              ; @SLOTTYPE_MASK
	.no_dead_strip	_sdhci_am654_init
.subsections_via_symbols
