	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_clear_error
_sd_clear_error:                        ## @sd_clear_error
	.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
	movq	(%rdi), %rbx
	movq	_CARD_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SD_STOP@GOTPCREL(%rip), %rax
	movq	_SD_CLR_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_rtsx_usb_ep0_write_register
	movq	%rbx, %rdi
	callq	_rtsx_usb_clear_dma_err
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rtsx_usb_clear_fsm_err         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CARD_STOP,4,2                  ## @CARD_STOP
	.comm	_SD_STOP,4,2                    ## @SD_STOP
	.comm	_SD_CLR_ERR,4,2                 ## @SD_CLR_ERR
	.no_dead_strip	_sd_clear_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_clear_error
_sd_clear_error:                        ; @sd_clear_error
	.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	x19, [x0]
Lloh0:
	adrp	x8, _CARD_STOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CARD_STOP@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SD_STOP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SD_STOP@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _SD_CLR_ERR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SD_CLR_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	x3, x2
	bl	_rtsx_usb_ep0_write_register
	mov	x0, x19
	bl	_rtsx_usb_clear_dma_err
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtsx_usb_clear_fsm_err
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CARD_STOP,4,2                  ; @CARD_STOP
	.comm	_SD_STOP,4,2                    ; @SD_STOP
	.comm	_SD_CLR_ERR,4,2                 ; @SD_CLR_ERR
	.no_dead_strip	_sd_clear_error
.subsections_via_symbols
