	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_gf1_pcm_playback_hw_free
_snd_gf1_pcm_playback_hw_free:          ## @snd_gf1_pcm_playback_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	callq	_snd_pcm_lib_free_pages
	movq	16(%rbx), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
	callq	_snd_gf1_free_voice
	movq	16(%rbx), %rax
	movq	$0, (%rax)
	movq	16(%rbx), %rax
LBB0_2:
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rdi
	callq	_snd_gf1_free_voice
	movq	16(%rbx), %rax
	movq	$0, 8(%rax)
LBB0_4:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	jle	LBB0_6
## %bb.5:
	movq	8(%rbx), %rdi
	callq	_snd_gf1_mem_free
	movq	$0, (%rbx)
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_gf1_pcm_playback_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_gf1_pcm_playback_hw_free
_snd_gf1_pcm_playback_hw_free:          ; @snd_gf1_pcm_playback_hw_free
	.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, [x0]
	ldr	x19, [x8]
	bl	_snd_pcm_lib_free_pages
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
	bl	_snd_gf1_free_voice
	ldr	x8, [x19, #16]
	str	xzr, [x8]
	ldr	x8, [x19, #16]
LBB0_2:
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_snd_gf1_free_voice
	ldr	x8, [x19, #16]
	str	xzr, [x8, #8]
LBB0_4:
	ldr	x1, [x19]
	cmp	x1, #1
	b.lt	LBB0_6
; %bb.5:
	ldr	x0, [x19, #8]
	bl	_snd_gf1_mem_free
	str	xzr, [x19]
LBB0_6:
	mov	w0, #0
	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_gf1_pcm_playback_hw_free
.subsections_via_symbols
