	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function azx_stream_clear
_azx_stream_clear:                      ## @azx_stream_clear
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_SD_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rsi, %rdi
	movl	%r14d, %esi
	callq	_azx_sd_readb
	movq	_SD_CTL_DMA_START@GOTPCREL(%rip), %rcx
	movq	_SD_INT_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_azx_sd_writeb
	movq	_SD_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_azx_sd_writeb                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_CTL,4,2                     ## @SD_CTL
	.comm	_SD_CTL_DMA_START,4,2           ## @SD_CTL_DMA_START
	.comm	_SD_INT_MASK,4,2                ## @SD_INT_MASK
	.comm	_SD_STS,4,2                     ## @SD_STS
	.no_dead_strip	_azx_stream_clear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function azx_stream_clear
_azx_stream_clear:                      ; @azx_stream_clear
	.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, x1
Lloh0:
	adrp	x8, _SD_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SD_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x1
	mov	x1, x20
	bl	_azx_sd_readb
Lloh3:
	adrp	x8, _SD_CTL_DMA_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SD_CTL_DMA_START@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x21, _SD_INT_MASK@GOTPAGE
Lloh7:
	ldr	x21, [x21, _SD_INT_MASK@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
	bic	w2, w0, w8
	mov	x0, x19
	mov	x1, x20
	bl	_azx_sd_writeb
Lloh8:
	adrp	x8, _SD_STS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SD_STS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	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	_azx_sd_writeb
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_CTL,4,2                     ; @SD_CTL
	.comm	_SD_CTL_DMA_START,4,2           ; @SD_CTL_DMA_START
	.comm	_SD_INT_MASK,4,2                ; @SD_INT_MASK
	.comm	_SD_STS,4,2                     ; @SD_STS
	.no_dead_strip	_azx_stream_clear
.subsections_via_symbols
