	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_retune                     ## -- Begin function mmc_retune
	.p2align	4, 0x90
_mmc_retune:                            ## @mmc_retune
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	cmpq	$0, 24(%rdi)
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movq	$0, 24(%rdi)
	cmpq	$0, 16(%rdi)
	je	LBB0_10
## %bb.2:
	cmpl	$0, (%rbx)
	jne	LBB0_10
## %bb.3:
	movl	4(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_10
## %bb.4:
	movq	$0, 16(%rbx)
	movl	$1, (%rbx)
	movq	8(%rbx), %rax
	movq	_MMC_TIMING_MMC_HS400@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	callq	_mmc_hs400_to_hs200
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	4(%rbx), %edi
	callq	_mmc_execute_tuning
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	4(%rbx), %edi
	callq	_mmc_hs200_to_hs400
	jmp	LBB0_9
LBB0_5:
	callq	_mmc_execute_tuning
LBB0_9:
	movl	$0, (%rbx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_TIMING_MMC_HS400,8,3       ## @MMC_TIMING_MMC_HS400
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_retune                     ; -- Begin function mmc_retune
	.p2align	2
_mmc_retune:                            ; @mmc_retune
	.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
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
	str	xzr, [x0, #24]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x19]
	cbz	w8, LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w0, [x19, #4]
	cbz	w0, LBB0_4
; %bb.6:
	str	xzr, [x19, #16]
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _MMC_TIMING_MMC_HS400@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_TIMING_MMC_HS400@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	bl	_mmc_hs400_to_hs200
	cbnz	w0, LBB0_11
; %bb.8:
	ldr	w0, [x19, #4]
	bl	_mmc_execute_tuning
	cbnz	w0, LBB0_11
; %bb.9:
	ldr	w0, [x19, #4]
	bl	_mmc_hs200_to_hs400
	b	LBB0_11
LBB0_10:
	bl	_mmc_execute_tuning
LBB0_11:
	str	wzr, [x19]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_TIMING_MMC_HS400,8,3       ; @MMC_TIMING_MMC_HS400
.subsections_via_symbols
