	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_detach_substream       ## -- Begin function snd_pcm_detach_substream
	.p2align	4, 0x90
_snd_pcm_detach_substream:              ## @snd_pcm_detach_substream
	.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
	movq	%rdi, %rbx
	callq	_PCM_RUNTIME_CHECK
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	8(%rbx), %r14
	movq	32(%r14), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	*%rax
LBB0_3:
	movq	24(%r14), %r15
	movl	$4, %edi
	callq	_PAGE_ALIGN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_snd_free_pages
	movq	16(%r14), %r15
	movl	$4, %edi
	callq	_PAGE_ALIGN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_snd_free_pages
	movq	8(%r14), %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
	movq	(%rbx), %rax
	decl	(%rax)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_detach_substream       ; -- Begin function snd_pcm_detach_substream
	.p2align	2
_snd_pcm_detach_substream:              ; @snd_pcm_detach_substream
	.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	x19, x0
	bl	_PCM_RUNTIME_CHECK
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	x20, [x19, #8]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	blr	x8
LBB0_3:
	ldr	x21, [x20, #24]
	mov	w0, #4
	bl	_PAGE_ALIGN
	mov	x1, x0
	mov	x0, x21
	bl	_snd_free_pages
	ldr	x21, [x20, #16]
	mov	w0, #4
	bl	_PAGE_ALIGN
	mov	x1, x0
	mov	x0, x21
	bl	_snd_free_pages
	ldr	x0, [x20, #8]
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	str	xzr, [x19, #8]
	ldr	x8, [x19]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
LBB0_4:
	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
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
