	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _mmc_hw_reset
__mmc_hw_reset:                         ## @_mmc_hw_reset
	.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	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_mmc_flush_cache
	movq	_MMC_CAP_HW_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_mmc_can_reset
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_mmc_set_clock
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_mmc_set_initial_state
	jmp	LBB0_5
LBB0_4:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_mmc_power_cycle
	movq	%rbx, %rdi
	callq	_mmc_pwrseq_reset
LBB0_5:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mmc_init_card                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_CAP_HW_RESET,4,2           ## @MMC_CAP_HW_RESET
	.no_dead_strip	__mmc_hw_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _mmc_hw_reset
__mmc_hw_reset:                         ; @_mmc_hw_reset
	.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	x20, x0
	ldr	x19, [x0, #24]
	mov	x0, x19
	bl	_mmc_flush_cache
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _MMC_CAP_HW_RESET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_CAP_HW_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_mmc_can_reset
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x20, #16]
	mov	x0, x20
	bl	_mmc_set_clock
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	mov	x0, x20
	bl	_mmc_set_initial_state
	b	LBB0_5
LBB0_4:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_mmc_power_cycle
	mov	x0, x20
	bl	_mmc_pwrseq_reset
LBB0_5:
	ldr	w1, [x19]
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mmc_init_card
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_CAP_HW_RESET,4,2           ; @MMC_CAP_HW_RESET
	.no_dead_strip	__mmc_hw_reset
.subsections_via_symbols
