	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tw686x_audio_free              ## -- Begin function tw686x_audio_free
	.p2align	4, 0x90
_tw686x_audio_free:                     ## @tw686x_audio_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_DMA_CMD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_reg_read
	movl	%eax, %ebx
	movq	_DMA_CHANNEL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_reg_read
	movl	%eax, %r12d
	movl	(%r13), %esi
	andl	$-65281, %ebx                   ## imm = 0xFFFF00FF
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_reg_write
	movq	_DMA_CHANNEL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$-65281, %r12d                  ## imm = 0xFFFF00FF
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_reg_write
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_snd_card_free
	movq	$0, (%r15)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_CMD,4,2                    ## @DMA_CMD
	.comm	_DMA_CHANNEL_ENABLE,4,2         ## @DMA_CHANNEL_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tw686x_audio_free              ; -- Begin function tw686x_audio_free
	.p2align	2
_tw686x_audio_free:                     ; @tw686x_audio_free
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x23, _DMA_CMD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DMA_CMD@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_reg_read
	mov	x21, x0
Lloh2:
	adrp	x24, _DMA_CHANNEL_ENABLE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DMA_CHANNEL_ENABLE@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_reg_read
	mov	x22, x0
	ldr	w1, [x23]
	and	w2, w21, #0xffff00ff
	mov	x0, x19
	bl	_reg_write
	ldr	w1, [x24]
	and	w2, w22, #0xffff00ff
	mov	x0, x19
	bl	_reg_write
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_snd_card_free
	str	xzr, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_CMD,4,2                    ; @DMA_CMD
	.comm	_DMA_CHANNEL_ENABLE,4,2         ; @DMA_CHANNEL_ENABLE
.subsections_via_symbols
