	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_riptide_hw_free
_snd_riptide_hw_free:                   ## @snd_riptide_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_get_pcmhwdev
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	24(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %esi
	callq	_freelbuspath
LBB0_4:
	movq	$0, 24(%rbx)
	movl	$255, (%rbx)
	movq	8(%rbx), %rax
	movabsq	$1095216660735, %rcx            ## imm = 0xFF000000FF
	movq	%rcx, (%rax)
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.5:
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_snd_dma_free_pages
	movq	$0, (%rbx)
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_pcm_lib_free_pages         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_riptide_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_riptide_hw_free
_snd_riptide_hw_free:                   ; @snd_riptide_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
	mov	x21, x0
	mov	x0, x19
	bl	_get_pcmhwdev
	mov	x20, x0
	ldr	x0, [x21]
	cmp	x0, #0
	ccmp	x20, #0, #4, ne
	b.eq	LBB0_5
; %bb.1:
	ldr	x2, [x20, #24]
	cbz	x2, LBB0_3
; %bb.2:
	ldr	w1, [x20]
	bl	_freelbuspath
LBB0_3:
	str	xzr, [x20, #24]
	mov	w8, #255
	str	w8, [x20]
	ldr	x8, [x20, #8]
	movi	d0, #0x0000ff000000ff
	str	d0, [x8]
	ldr	x8, [x20, #16]!
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_snd_dma_free_pages
	str	xzr, [x20]
LBB0_5:
	mov	x0, x19
	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
	b	_snd_pcm_lib_free_pages
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_riptide_hw_free
.subsections_via_symbols
