	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audio_release                  ## -- Begin function audio_release
	.p2align	4, 0x90
_audio_release:                         ## @audio_release
	.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
	movl	%edi, %ebx
	movq	%rsi, %rdi
	callq	_translate_mode
	movl	%eax, %r14d
	sarl	$4, %ebx
	movq	_audio_devs@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	%ebx, %r12
	movq	(%rax,%r12,8), %rax
	movq	24(%rax), %rcx
	movl	$1, (%rcx)
	movq	16(%rax), %rcx
	movl	$1, (%rcx)
	movq	_OPEN_WRITE@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	callq	_sync_output
	movq	(%r15), %rax
	movq	(%rax,%r12,8), %rax
LBB0_2:
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movl	4(%rbx), %edi
	movq	_COPR_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	*8(%rbx)
	movl	(%rbx), %edi
	callq	_module_put
LBB0_4:
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_DMAbuf_release
	movq	(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_module_put                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_devs,8,3                 ## @audio_devs
	.comm	_OPEN_WRITE,4,2                 ## @OPEN_WRITE
	.comm	_COPR_PCM,4,2                   ## @COPR_PCM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audio_release                  ; -- Begin function audio_release
	.p2align	2
_audio_release:                         ; @audio_release
	.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	x20, x0
	mov	x0, x1
	bl	_translate_mode
	mov	x19, x0
	asr	w8, w20, #4
Lloh0:
	adrp	x21, _audio_devs@GOTPAGE
Lloh1:
	ldr	x21, [x21, _audio_devs@GOTPAGEOFF]
	ldr	x9, [x21]
	sbfx	x20, x20, #4, #28
	ldr	x8, [x9, w8, sxtw #3]
	mov	w9, #1
	ldp	x11, x10, [x8, #16]
	str	w9, [x10]
	str	w9, [x11]
Lloh2:
	adrp	x9, _OPEN_WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OPEN_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_sync_output
	ldr	x8, [x21]
	ldr	x8, [x8, x20, lsl #3]
LBB0_2:
	ldr	x22, [x8, #8]
	cbz	x22, LBB0_4
; %bb.3:
	ldr	x8, [x22, #8]
	ldr	w0, [x22, #4]
Lloh5:
	adrp	x9, _COPR_PCM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _COPR_PCM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	blr	x8
	ldr	w0, [x22]
	bl	_module_put
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_DMAbuf_release
	ldr	x8, [x21]
	ldr	x8, [x8, x20, lsl #3]
	ldr	x8, [x8]
	ldr	w0, [x8]
	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	_module_put
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_devs,8,3                 ; @audio_devs
	.comm	_OPEN_WRITE,4,2                 ; @OPEN_WRITE
	.comm	_COPR_PCM,4,2                   ; @COPR_PCM
.subsections_via_symbols
