	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_echo_interrupt
_snd_echo_interrupt:                    ## @snd_echo_interrupt
	.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	%rsi, %r15
	leaq	24(%rsi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	%r15, %rdi
	callq	_service_irq
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_DSP_MAXPIPES@GOTPCREL(%rip), %r13
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	cmpl	$0, (%r13)
	jle	LBB0_9
## %bb.3:
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movslq	(%r13), %rax
	cmpq	%rax, %r12
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movq	(%rax,%r12,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_pcm_pointer
	movq	(%rbx), %rcx
	cltd
	idivl	(%rcx)
	movq	(%r15), %rcx
	cmpl	(%rcx,%r12,4), %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, (%rcx,%r12,4)
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	%rbx, %rdi
	callq	_snd_pcm_period_elapsed
	movq	%r14, %rdi
	callq	_spin_lock
	jmp	LBB0_7
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_9
LBB0_8:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
LBB0_9:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_DSP_MAXPIPES,4,2               ## @DSP_MAXPIPES
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_snd_echo_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_echo_interrupt
_snd_echo_interrupt:                    ; @snd_echo_interrupt
	.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	x20, x1
	add	x19, x1, #24
	mov	x0, x19
	bl	_spin_lock
	mov	x0, x20
	bl	_service_irq
	tbnz	w0, #31, LBB0_7
; %bb.1:
Lloh0:
	adrp	x23, _DSP_MAXPIPES@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DSP_MAXPIPES@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x24, #0
Lloh2:
	adrp	x22, _IRQ_HANDLED@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	ldr	x21, [x8, x24, lsl #3]
	cbz	x21, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_pcm_pointer
	ldr	x8, [x21]
	ldr	w8, [x8]
	sdiv	w8, w0, w8
	ldr	x9, [x20]
	ldr	w10, [x9, x24, lsl #2]
	cmp	w8, w10
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w8, [x9, x24, lsl #2]
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x21
	bl	_snd_pcm_period_elapsed
	mov	x0, x19
	bl	_spin_lock
	b	LBB0_3
LBB0_7:
Lloh4:
	adrp	x22, _IRQ_NONE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x22, _IRQ_HANDLED@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock
	ldr	w0, [x22]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_DSP_MAXPIPES,4,2               ; @DSP_MAXPIPES
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_snd_echo_interrupt
.subsections_via_symbols
