	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_sprd_hw_reset
_sdhci_sprd_hw_reset:                   ## @sdhci_sprd_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	%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, %r14
	movq	_SDHCI_SOFTWARE_RESET@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readb_relaxed
	movq	_SDHCI_HW_RESET_CARD@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writeb_relaxed
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	orl	(%r12), %ebx
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writeb_relaxed
	movl	$300, %edi                      ## imm = 0x12C
	movl	$500, %esi                      ## imm = 0x1F4
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usleep_range                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_SOFTWARE_RESET,8,3       ## @SDHCI_SOFTWARE_RESET
	.comm	_SDHCI_HW_RESET_CARD,4,2        ## @SDHCI_HW_RESET_CARD
	.no_dead_strip	_sdhci_sprd_hw_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_sprd_hw_reset
_sdhci_sprd_hw_reset:                   ; @sdhci_sprd_hw_reset
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _SDHCI_SOFTWARE_RESET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SDHCI_SOFTWARE_RESET@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readb_relaxed
Lloh2:
	adrp	x22, _SDHCI_HW_RESET_CARD@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SDHCI_HW_RESET_CARD@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w20, w0, w8
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writeb_relaxed
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w8, [x22]
	orr	w0, w8, w20
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writeb_relaxed
	mov	w0, #300
	mov	w1, #500
	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	_usleep_range
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_SOFTWARE_RESET,8,3       ; @SDHCI_SOFTWARE_RESET
	.comm	_SDHCI_HW_RESET_CARD,4,2        ; @SDHCI_HW_RESET_CARD
	.no_dead_strip	_sdhci_sprd_hw_reset
.subsections_via_symbols
