	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mic_dma_prep_status_lock
_mic_dma_prep_status_lock:              ## @mic_dma_prep_status_lock
	.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
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r12d
	callq	_to_mic_dma_chan
	movq	%rax, %rbx
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_mic_dma_avail_desc_ring_space
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	shlq	$2, %rdi
	addq	16(%rbx), %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_mic_dma_prep_status_desc
	movq	%rbx, %rdi
	callq	_mic_dma_hw_ring_inc_head
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mic_dma_do_dma
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_allocate_tx                    ## TAILCALL
LBB0_2:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_mic_dma_ch_to_device
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r15d, %edx
	callq	_dev_err
	movq	%r14, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error enqueueing dma status descriptor, error=%d\n"

	.no_dead_strip	_mic_dma_prep_status_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mic_dma_prep_status_lock
_mic_dma_prep_status_lock:              ; @mic_dma_prep_status_lock
	.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	x21, x3
	mov	x23, x2
	mov	x22, x1
	bl	_to_mic_dma_chan
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock
	mov	x0, x20
	mov	w1, #4
	bl	_mic_dma_avail_desc_ring_space
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	ldr	x9, [x20]
	add	x0, x8, x9, lsl #2
	mov	x1, x23
	mov	x2, x22
	mov	w3, #0
	bl	_mic_dma_prep_status_desc
	mov	x0, x20
	bl	_mic_dma_hw_ring_inc_head
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_mic_dma_do_dma
	tbnz	w0, #31, LBB0_3
; %bb.2:
	mov	x0, x20
	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	_allocate_tx
LBB0_3:
	mov	x24, x0
	mov	x0, x20
	bl	_mic_dma_ch_to_device
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_dev_err
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, #0
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error enqueueing dma status descriptor, error=%d\n"

	.no_dead_strip	_mic_dma_prep_status_lock
.subsections_via_symbols
