	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_reset_input
_dma_reset_input:                       ## @dma_reset_input
	.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
	movl	%edi, %r14d
	movq	_audio_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_DMA_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	16(%rbx), %rax
	testl	%ecx, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_3
LBB0_2:
	movq	8(%rax), %rcx
LBB0_3:
	movl	%r14d, %edi
	callq	*%rcx
	movq	_DMA_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	8(%rbx), %rsi
	andl	%eax, 48(%rsi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r15)
	movups	%xmm0, 8(%r15)
	movq	$0, 40(%r15)
	movl	%r14d, %edi
	movl	$1, %edx
	callq	_reorganize_buffers
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_devs,8,3                 ## @audio_devs
	.comm	_DMA_DUPLEX,4,2                 ## @DMA_DUPLEX
	.comm	_DMA_STARTED,4,2                ## @DMA_STARTED
	.no_dead_strip	_dma_reset_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_reset_input
_dma_reset_input:                       ; @dma_reset_input
	.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	x20, x0
Lloh0:
	adrp	x8, _audio_devs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _audio_devs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x21, [x8, w0, sxtw #3]
	ldr	x19, [x21, #8]
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _DMA_DUPLEX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMA_DUPLEX@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x9]
	ldr	x9, [x21, #16]
	tst	w10, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x9]
	cbnz	x8, LBB0_3
LBB0_2:
	ldr	x8, [x9, #8]
LBB0_3:
	mov	x0, x20
	blr	x8
Lloh6:
	adrp	x8, _DMA_STARTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_STARTED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x1, [x21, #8]
	ldr	w9, [x1, #48]
	bic	w8, w9, w8
	str	w8, [x1, #48]
	str	xzr, [x19, #40]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #24]
	stur	q0, [x19, #8]
	mov	x0, x20
	mov	w2, #1
	bl	_reorganize_buffers
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_devs,8,3                 ; @audio_devs
	.comm	_DMA_DUPLEX,4,2                 ; @DMA_DUPLEX
	.comm	_DMA_STARTED,4,2                ; @DMA_STARTED
	.no_dead_strip	_dma_reset_input
.subsections_via_symbols
