	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sq_release
_sq_release:                            ## @sq_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_lock_kernel
	movl	(%rbx), %eax
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.1:
	movq	_write_sq@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.3:
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_sq_fsync
	movl	%eax, %r14d
	jmp	LBB0_4
LBB0_2:
	xorl	%r14d, %r14d
LBB0_4:
	xorl	%eax, %eax
	callq	_sq_reset_output
	xorl	%eax, %eax
	callq	_write_sq_release_buffers
	movq	$0, (%r15)
	movl	(%rbx), %eax
LBB0_5:
	movq	_shared_resource_owner@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	$0, (%rcx)
	movq	_shared_resources_initialised@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dmasound@GOTPCREL(%rip), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 8(%rax)
LBB0_7:
	movq	_dmasound@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_module_put
	xorl	%eax, %eax
	callq	_unlock_kernel
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_write_sq,8,3                   ## @write_sq
	.comm	_shared_resource_owner,4,2      ## @shared_resource_owner
	.comm	_shared_resources_initialised,8,3 ## @shared_resources_initialised
	.comm	_dmasound,12,2                  ## @dmasound
	.no_dead_strip	_sq_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sq_release
_sq_release:                            ; @sq_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, x1
	bl	_lock_kernel
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _FMODE_WRITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FMODE_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x21, _write_sq@GOTPAGE
Lloh4:
	ldr	x21, [x21, _write_sq@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w1, [x20, #4]
	mov	x0, x20
	bl	_sq_fsync
	mov	x19, x0
	b	LBB0_5
LBB0_3:
	mov	w19, #0
	b	LBB0_6
LBB0_4:
	mov	w19, #0
LBB0_5:
	bl	_sq_reset_output
	bl	_write_sq_release_buffers
	str	xzr, [x21]
	ldr	w8, [x20]
LBB0_6:
Lloh5:
	adrp	x10, _shared_resource_owner@GOTPAGE
Lloh6:
	ldr	x10, [x10, _shared_resource_owner@GOTPAGEOFF]
	ldr	w11, [x10]
Lloh7:
	adrp	x9, _dmasound@GOTPAGE
Lloh8:
	ldr	x9, [x9, _dmasound@GOTPAGEOFF]
	tst	w11, w8
	b.eq	LBB0_8
; %bb.7:
	str	wzr, [x10]
Lloh9:
	adrp	x8, _shared_resources_initialised@GOTPAGE
Lloh10:
	ldr	x8, [x8, _shared_resources_initialised@GOTPAGEOFF]
Lloh11:
	str	xzr, [x8]
	ldr	w8, [x9, #4]
	str	w8, [x9, #8]
LBB0_8:
	ldr	w0, [x9]
	bl	_module_put
	bl	_unlock_kernel
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_write_sq,8,3                   ; @write_sq
	.comm	_shared_resource_owner,4,2      ; @shared_resource_owner
	.comm	_shared_resources_initialised,8,3 ; @shared_resources_initialised
	.comm	_dmasound,12,2                  ; @dmasound
	.no_dead_strip	_sq_release
.subsections_via_symbols
