	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wbsd_tasklet_fifo
_wbsd_tasklet_fifo:                     ## @wbsd_tasklet_fifo
	.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
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	cmpl	$0, 16(%rbx)
	je	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_wbsd_get_data
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	_MMC_DATA_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_wbsd_fill_fifo
	cmpq	$0, (%rbx)
	jne	LBB0_7
LBB0_6:
	movq	_WBSD_IDX_FIFOEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_wbsd_write_index
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_tasklet_schedule
LBB0_7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	callq	_wbsd_empty_fifo
	cmpq	$0, (%rbx)
	jne	LBB0_7
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_DATA_WRITE,4,2             ## @MMC_DATA_WRITE
	.comm	_WBSD_IDX_FIFOEN,4,2            ## @WBSD_IDX_FIFOEN
	.no_dead_strip	_wbsd_tasklet_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wbsd_tasklet_fifo
_wbsd_tasklet_fifo:                     ; @wbsd_tasklet_fifo
	.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
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_wbsd_get_data
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MMC_DATA_WRITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_DATA_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	x0, x20
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	bl	_wbsd_fill_fifo
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _WBSD_IDX_FIFOEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WBSD_IDX_FIFOEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_wbsd_write_index
	add	x0, x20, #12
	bl	_tasklet_schedule
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock
LBB0_6:
	bl	_wbsd_empty_fifo
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_DATA_WRITE,4,2             ; @MMC_DATA_WRITE
	.comm	_WBSD_IDX_FIFOEN,4,2            ; @WBSD_IDX_FIFOEN
	.no_dead_strip	_wbsd_tasklet_fifo
.subsections_via_symbols
