	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_m3_substream_close
_snd_m3_substream_close:                ## @snd_m3_substream_close
	.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	(%rsi), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	callq	_spin_lock_irq
	movq	40(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_snd_m3_pcm_stop
LBB0_4:
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.5:
	movq	24(%rbx), %rax
	movq	32(%rbx), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_snd_m3_remove_list
	movq	24(%rbx), %rax
	movq	32(%rbx), %rcx
	movl	4(%rcx), %esi
	movl	4(%rax), %edx
	movq	%r14, %rdi
	callq	_snd_m3_remove_list
	movq	24(%rbx), %rax
	movq	32(%rbx), %rcx
	movl	8(%rcx), %esi
	movl	8(%rax), %edx
	movq	%r14, %rdi
	callq	_snd_m3_remove_list
	movq	$0, 16(%rbx)
LBB0_6:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_m3_substream_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_m3_substream_close
_snd_m3_substream_close:                ; @snd_m3_substream_close
	.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
	ldr	x8, [x1]
	ldr	x20, [x8]
	cbz	x20, LBB0_7
; %bb.1:
	mov	x19, x0
	bl	_spin_lock_irq
	ldr	x2, [x20, #40]
	cbz	x2, LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_m3_pcm_stop
LBB0_4:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.5:
	ldp	x9, x8, [x20, #24]
	ldr	w1, [x8]
	ldr	w2, [x9]
	mov	x0, x19
	bl	_snd_m3_remove_list
	ldp	x9, x8, [x20, #24]
	ldr	w1, [x8, #4]
	ldr	w2, [x9, #4]
	mov	x0, x19
	bl	_snd_m3_remove_list
	ldp	x9, x8, [x20, #24]
	ldr	w1, [x8, #8]
	ldr	w2, [x9, #8]
	mov	x0, x19
	bl	_snd_m3_remove_list
	str	xzr, [x20, #16]
LBB0_6:
	stp	xzr, xzr, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irq
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_m3_substream_close
.subsections_via_symbols
