	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xenon_emmc_phy_strobe_delay_adj
_xenon_emmc_phy_strobe_delay_adj:       ## @xenon_emmc_phy_strobe_delay_adj
	.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
	movq	%rdi, %rbx
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_MMC_TIMING_MMC_HS400@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	8(%rbx), %rax
	movq	_MMC_HIGH_52_MAX_DTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_5
## %bb.2:
	movq	16(%rbx), %rdi
	callq	_mmc_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_xenon_emmc_phy_enable_dll
	movq	_XENON_SLOT_EMMC_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	movq	_XENON_ENABLE_DATA_STROBE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	16(%rbx), %rdx
	xorl	%ecx, %ecx
	cmpq	$0, (%rdx)
	je	LBB0_4
## %bb.3:
	movq	_XENON_ENABLE_RESP_STROBE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	orl	%ecx, %eax
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sdhci_writel
	movq	(%r14), %rax
	movq	_EMMC_5_0_PHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_XENON_EMMC_PHY_PAD_CONTROL1@GOTPCREL(%rip), %r14
	cmoveq	_XENON_EMMC_5_0_PHY_PAD_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_XENON_EMMC5_1_FC_QSP_PD@GOTPCREL(%rip), %r15
	cmoveq	_XENON_EMMC5_FC_QSP_PD@GOTPCREL(%rip), %r15
	movq	_XENON_EMMC5_1_FC_QSP_PU@GOTPCREL(%rip), %r12
	cmoveq	_XENON_EMMC5_FC_QSP_PU@GOTPCREL(%rip), %r12
	movq	%rbx, %rdi
	callq	_sdhci_readl
	orl	(%r15), %eax
	movl	(%r12), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdhci_writel                   ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_TIMING_MMC_HS400,8,3       ## @MMC_TIMING_MMC_HS400
	.comm	_MMC_HIGH_52_MAX_DTR,8,3        ## @MMC_HIGH_52_MAX_DTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"starts HS400 strobe delay adjustment\n"

	.comm	_XENON_SLOT_EMMC_CTRL,4,2       ## @XENON_SLOT_EMMC_CTRL
	.comm	_XENON_ENABLE_DATA_STROBE,4,2   ## @XENON_ENABLE_DATA_STROBE
	.comm	_XENON_ENABLE_RESP_STROBE,4,2   ## @XENON_ENABLE_RESP_STROBE
	.comm	_EMMC_5_0_PHY,8,3               ## @EMMC_5_0_PHY
	.comm	_XENON_EMMC_5_0_PHY_PAD_CONTROL,4,2 ## @XENON_EMMC_5_0_PHY_PAD_CONTROL
	.comm	_XENON_EMMC5_FC_QSP_PD,4,2      ## @XENON_EMMC5_FC_QSP_PD
	.comm	_XENON_EMMC5_FC_QSP_PU,4,2      ## @XENON_EMMC5_FC_QSP_PU
	.comm	_XENON_EMMC_PHY_PAD_CONTROL1,4,2 ## @XENON_EMMC_PHY_PAD_CONTROL1
	.comm	_XENON_EMMC5_1_FC_QSP_PD,4,2    ## @XENON_EMMC5_1_FC_QSP_PD
	.comm	_XENON_EMMC5_1_FC_QSP_PU,4,2    ## @XENON_EMMC5_1_FC_QSP_PU
	.no_dead_strip	_xenon_emmc_phy_strobe_delay_adj
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xenon_emmc_phy_strobe_delay_adj
_xenon_emmc_phy_strobe_delay_adj:       ; @xenon_emmc_phy_strobe_delay_adj
	.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
	mov	x19, x0
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x20, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MMC_TIMING_MMC_HS400@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_TIMING_MMC_HS400@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _MMC_HIGH_52_MAX_DTR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_HIGH_52_MAX_DTR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_3
; %bb.2:
	ldr	x0, [x19, #16]
	bl	_mmc_dev
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_xenon_emmc_phy_enable_dll
Lloh8:
	adrp	x21, _XENON_SLOT_EMMC_CTRL@GOTPAGE
Lloh9:
	ldr	x21, [x21, _XENON_SLOT_EMMC_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_sdhci_readl
Lloh10:
	adrp	x8, _XENON_ENABLE_DATA_STROBE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XENON_ENABLE_DATA_STROBE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w8, w8, w0
	ldr	x9, [x19, #16]
Lloh13:
	adrp	x10, _XENON_ENABLE_RESP_STROBE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _XENON_ENABLE_RESP_STROBE@GOTPAGEOFF]
	ldr	x9, [x9]
Lloh15:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w1, w8, w9
	ldr	w2, [x21]
	mov	x0, x19
	bl	_sdhci_writel
	ldr	x8, [x20]
Lloh16:
	adrp	x9, _EMMC_5_0_PHY@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EMMC_5_0_PHY@GOTPAGEOFF]
Lloh18:
	adrp	x10, _XENON_EMMC_PHY_PAD_CONTROL1@GOTPAGE
Lloh19:
	ldr	x10, [x10, _XENON_EMMC_PHY_PAD_CONTROL1@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
Lloh21:
	adrp	x11, _XENON_EMMC_5_0_PHY_PAD_CONTROL@GOTPAGE
Lloh22:
	ldr	x11, [x11, _XENON_EMMC_5_0_PHY_PAD_CONTROL@GOTPAGEOFF]
	cmp	x8, x9
	csel	x20, x11, x10, eq
	ldr	w1, [x20]
Lloh23:
	adrp	x8, _XENON_EMMC5_FC_QSP_PD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _XENON_EMMC5_FC_QSP_PD@GOTPAGEOFF]
Lloh25:
	adrp	x9, _XENON_EMMC5_1_FC_QSP_PD@GOTPAGE
Lloh26:
	ldr	x9, [x9, _XENON_EMMC5_1_FC_QSP_PD@GOTPAGEOFF]
Lloh27:
	adrp	x10, _XENON_EMMC5_FC_QSP_PU@GOTPAGE
Lloh28:
	ldr	x10, [x10, _XENON_EMMC5_FC_QSP_PU@GOTPAGEOFF]
	csel	x21, x8, x9, eq
Lloh29:
	adrp	x8, _XENON_EMMC5_1_FC_QSP_PU@GOTPAGE
Lloh30:
	ldr	x8, [x8, _XENON_EMMC5_1_FC_QSP_PU@GOTPAGEOFF]
	csel	x22, x10, x8, eq
	mov	x0, x19
	bl	_sdhci_readl
	ldr	w8, [x21]
	orr	w8, w8, w0
	ldr	w9, [x22]
	bic	w1, w8, w9
	ldr	w2, [x20]
	mov	x0, 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
	b	_sdhci_writel
LBB0_3:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_TIMING_MMC_HS400,8,3       ; @MMC_TIMING_MMC_HS400
	.comm	_MMC_HIGH_52_MAX_DTR,8,3        ; @MMC_HIGH_52_MAX_DTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"starts HS400 strobe delay adjustment\n"

	.comm	_XENON_SLOT_EMMC_CTRL,4,2       ; @XENON_SLOT_EMMC_CTRL
	.comm	_XENON_ENABLE_DATA_STROBE,4,2   ; @XENON_ENABLE_DATA_STROBE
	.comm	_XENON_ENABLE_RESP_STROBE,4,2   ; @XENON_ENABLE_RESP_STROBE
	.comm	_EMMC_5_0_PHY,8,3               ; @EMMC_5_0_PHY
	.comm	_XENON_EMMC_5_0_PHY_PAD_CONTROL,4,2 ; @XENON_EMMC_5_0_PHY_PAD_CONTROL
	.comm	_XENON_EMMC5_FC_QSP_PD,4,2      ; @XENON_EMMC5_FC_QSP_PD
	.comm	_XENON_EMMC5_FC_QSP_PU,4,2      ; @XENON_EMMC5_FC_QSP_PU
	.comm	_XENON_EMMC_PHY_PAD_CONTROL1,4,2 ; @XENON_EMMC_PHY_PAD_CONTROL1
	.comm	_XENON_EMMC5_1_FC_QSP_PD,4,2    ; @XENON_EMMC5_1_FC_QSP_PD
	.comm	_XENON_EMMC5_1_FC_QSP_PU,4,2    ; @XENON_EMMC5_1_FC_QSP_PU
	.no_dead_strip	_xenon_emmc_phy_strobe_delay_adj
.subsections_via_symbols
