	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_trident_hw_free
_snd_trident_hw_free:                   ## @snd_trident_hw_free
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movq	(%r12), %r15
	cmpq	$0, (%r14)
	je	LBB0_5
## %bb.3:
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_snd_trident_free_pages
	movq	$0, 8(%r12)
LBB0_5:
	movq	%rbx, %rdi
	callq	_snd_pcm_lib_free_pages
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_snd_trident_free_voice
	movq	$0, (%r12)
	jmp	LBB0_7
LBB0_1:
	movq	%rbx, %rdi
	callq	_snd_pcm_lib_free_pages
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_trident_hw_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_trident_hw_free
_snd_trident_hw_free:                   ; @snd_trident_hw_free
	.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	_snd_pcm_substream_chip
	ldr	x8, [x19]
	ldr	x22, [x8]
	cbz	x22, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x21, [x22]
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x1, [x22, #8]
	cbz	x1, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_snd_trident_free_pages
	str	xzr, [x22, #8]
LBB0_4:
	mov	x0, x19
	bl	_snd_pcm_lib_free_pages
	cbz	x21, LBB0_7
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	bl	_snd_trident_free_voice
	str	xzr, [x22]
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_snd_pcm_lib_free_pages
LBB0_7:
	mov	w0, #0
	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
	.no_dead_strip	_snd_trident_hw_free
.subsections_via_symbols
