	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vwsnd_audio_release
_vwsnd_audio_release:                   ## @vwsnd_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	8(%rsi), %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_lock_kernel
	leaq	12(%r14), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_DBGEV
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r12d
	movq	_FMODE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	24(%r14), %r13
	testl	%r12d, %ebx
	cmoveq	%r15, %r13
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	16(%r14), %r15
	movq	%r14, %rdi
	callq	_pcm_flush_frag
	movq	%r14, %rdi
	callq	_pcm_write_sync
LBB0_2:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_pcm_shutdown
	testl	%r12d, %ebx
	je	LBB0_4
## %bb.3:
	movq	_SW_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
LBB0_4:
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	_SW_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_mutex_unlock
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_wake_up
	xorl	%eax, %eax
	callq	_DBGR
	xorl	%eax, %eax
	callq	_unlock_kernel
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(inode=0x%p, file=0x%p)\n"

	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_SW_OFF,8,3                     ## @SW_OFF
	.comm	_DEC_USE_COUNT,4,2              ## @DEC_USE_COUNT
	.no_dead_strip	_vwsnd_audio_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vwsnd_audio_release
_vwsnd_audio_release:                   ; @vwsnd_audio_release
	.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	x20, x1
	mov	x22, x0
	ldr	x19, [x1, #8]
	bl	_lock_kernel
	add	x21, x19, #12
	mov	x0, x21
	bl	_mutex_lock
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x20
	bl	_DBGEV
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ands	w24, w9, w8
	add	x9, x19, #24
	csel	x22, xzr, x9, eq
Lloh5:
	adrp	x9, _FMODE_WRITE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FMODE_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	add	x23, x19, #16
	mov	x0, x19
	bl	_pcm_flush_frag
	mov	x0, x19
	bl	_pcm_write_sync
	b	LBB0_3
LBB0_2:
	mov	x23, #0
LBB0_3:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_pcm_shutdown
Lloh8:
	adrp	x8, _SW_OFF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SW_OFF@GOTPAGEOFF]
	cbz	w24, LBB0_5
; %bb.4:
	ldr	x9, [x8]
	str	x9, [x22]
LBB0_5:
	cbz	x23, LBB0_7
; %bb.6:
	ldr	x8, [x8]
	str	x8, [x23]
LBB0_7:
	mov	x0, x21
	bl	_mutex_unlock
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [x20]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19], #4
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	bl	_wake_up
	bl	_DBGR
	bl	_unlock_kernel
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(inode=0x%p, file=0x%p)\n"

	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_SW_OFF,8,3                     ; @SW_OFF
	.comm	_DEC_USE_COUNT,4,2              ; @DEC_USE_COUNT
	.no_dead_strip	_vwsnd_audio_release
.subsections_via_symbols
