	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xenon_emmc_phy_slow_mode
_xenon_emmc_phy_slow_mode:              ## @xenon_emmc_phy_slow_mode
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %rbx
	movq	(%r14), %rax
	movq	_MMC_HIGH_52_MAX_DTR@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	jg	LBB0_11
## %bb.1:
	movq	16(%rbx), %r12
	movq	8(%rbx), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_sdhci_readl
	cmpb	$-124, %r15b
	jge	LBB0_2
## %bb.5:
	movl	(%rbx), %ecx
	movq	_MMC_TYPE_SDIO@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_7
## %bb.6:
	cmpl	$0, (%r12)
	je	LBB0_8
LBB0_7:
	movq	_XENON_TIMING_ADJUST_SLOW_MODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	$1, %r12d
	jmp	LBB0_10
LBB0_2:
	jne	LBB0_8
## %bb.3:
	cmpl	$0, (%r12)
	movq	_XENON_TIMING_ADJUST_SLOW_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	je	LBB0_9
## %bb.4:
	orl	%ecx, %eax
	movl	$1, %r12d
	jmp	LBB0_10
LBB0_8:
	movq	_XENON_TIMING_ADJUST_SLOW_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_9:
	notl	%ecx
	andl	%ecx, %eax
	xorl	%r12d, %r12d
LBB0_10:
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sdhci_writel
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_HIGH_52_MAX_DTR,8,3        ## @MMC_HIGH_52_MAX_DTR
	.comm	_XENON_TIMING_ADJUST_SLOW_MODE,4,2 ## @XENON_TIMING_ADJUST_SLOW_MODE
	.comm	_MMC_TYPE_SDIO,4,2              ## @MMC_TYPE_SDIO
	.no_dead_strip	_xenon_emmc_phy_slow_mode
.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_slow_mode
_xenon_emmc_phy_slow_mode:              ; @xenon_emmc_phy_slow_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MMC_HIGH_52_MAX_DTR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_HIGH_52_MAX_DTR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_10
LBB0_2:
	mov	x21, x0
	ldp	x22, x23, [x0, #8]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_sdhci_readl
	sub	w8, w20, #128
	cmp	w8, #4
	b.hs	LBB0_6
; %bb.3:
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _MMC_TYPE_SDIO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_TYPE_SDIO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x23]
	cbz	w8, LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _XENON_TIMING_ADJUST_SLOW_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XENON_TIMING_ADJUST_SLOW_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	w20, #1
	b	LBB0_9
LBB0_6:
	cmp	w20, #132
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x23]
Lloh9:
	adrp	x9, _XENON_TIMING_ADJUST_SLOW_MODE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _XENON_TIMING_ADJUST_SLOW_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	bic	w10, w0, w9
	orr	w9, w9, w0
	mov	w11, #1
	cmp	w8, #0
	csel	w1, w10, w9, eq
	csel	w20, wzr, w11, eq
	b	LBB0_9
LBB0_8:
	mov	w20, #0
Lloh12:
	adrp	x8, _XENON_TIMING_ADJUST_SLOW_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XENON_TIMING_ADJUST_SLOW_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w1, w0, w8
LBB0_9:
	ldr	w2, [x22]
	mov	x0, x19
	bl	_sdhci_writel
LBB0_10:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_HIGH_52_MAX_DTR,8,3        ; @MMC_HIGH_52_MAX_DTR
	.comm	_XENON_TIMING_ADJUST_SLOW_MODE,4,2 ; @XENON_TIMING_ADJUST_SLOW_MODE
	.comm	_MMC_TYPE_SDIO,4,2              ; @MMC_TYPE_SDIO
	.no_dead_strip	_xenon_emmc_phy_slow_mode
.subsections_via_symbols
