	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdhci_reset                    ## -- Begin function sdhci_reset
	.p2align	4, 0x90
_sdhci_reset:                           ## @sdhci_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	%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, %r14d
	movq	%rdi, %r15
	movq	_SDHCI_SOFTWARE_RESET@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_sdhci_writeb
	movq	_SDHCI_RESET_ALL@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.1:
	movq	$0, 8(%r15)
	movq	_SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_sdhci_runtime_pm_bus_off
LBB0_3:
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	movl	$100, %esi
	callq	_ktime_add_ms
	movl	%eax, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_ktime_after
	movl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_sdhci_readb
	testl	%r14d, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$10, %edi
	callq	_udelay
	jmp	LBB0_4
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	4(%r15), %edi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_pr_err
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdhci_dumpregs                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_SOFTWARE_RESET,4,2       ## @SDHCI_SOFTWARE_RESET
	.comm	_SDHCI_RESET_ALL,4,2            ## @SDHCI_RESET_ALL
	.comm	_SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON,4,2 ## @SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Reset 0x%x never completed.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdhci_reset                    ; -- Begin function sdhci_reset
	.p2align	2
_sdhci_reset:                           ; @sdhci_reset
	.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
Lloh0:
	adrp	x23, _SDHCI_SOFTWARE_RESET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SDHCI_SOFTWARE_RESET@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_sdhci_writeb
Lloh2:
	adrp	x8, _SDHCI_RESET_ALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SDHCI_RESET_ALL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
	str	xzr, [x19, #8]
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_sdhci_runtime_pm_bus_off
LBB0_3:
	bl	_ktime_get
	mov	w1, #100
	bl	_ktime_add_ms
	mov	x21, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_ktime_get
	mov	x1, x21
	bl	_ktime_after
	mov	x22, x0
	ldr	w1, [x23]
	mov	x0, x19
	bl	_sdhci_readb
	tst	w0, w20
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w22, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #10
	bl	_udelay
	b	LBB0_4
LBB0_7:
	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
LBB0_8:
	ldr	w0, [x19, #4]
	bl	_mmc_hostname
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_pr_err
	mov	x0, x19
	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
	b	_sdhci_dumpregs
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_SOFTWARE_RESET,4,2       ; @SDHCI_SOFTWARE_RESET
	.comm	_SDHCI_RESET_ALL,4,2            ; @SDHCI_RESET_ALL
	.comm	_SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON,4,2 ; @SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Reset 0x%x never completed.\n"

.subsections_via_symbols
