	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_filesys_stop                ## -- Begin function vc_filesys_stop
	.p2align	4, 0x90
_vc_filesys_stop:                       ## @vc_filesys_stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_lock_obtain
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_vc_filesys_client@GOTPCREL(%rip), %r14
	movl	32(%r14), %edi
	callq	_vchi_service_close
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_vcos_assert
	movq	$0, 24(%r14)
	leaq	16(%r14), %rbx
	movq	%rbx, %rdi
	callq	_vcos_event_signal
	leaq	20(%r14), %rdi
	leaq	-24(%rbp), %rsi
	callq	_vcos_thread_join
	movq	%rbx, %rdi
	callq	_vcos_event_delete
	leaq	12(%r14), %rdi
	callq	_vcos_event_delete
	leaq	8(%r14), %rdi
	callq	_vcos_mutex_delete
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_vcos_free
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vc_filesys_client,40,3         ## @vc_filesys_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_filesys_stop                ; -- Begin function vc_filesys_stop
	.p2align	2
_vc_filesys_stop:                       ; @vc_filesys_stop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	bl	_lock_obtain
	cbnz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x20, _vc_filesys_client@GOTPAGE
Lloh1:
	ldr	x20, [x20, _vc_filesys_client@GOTPAGEOFF]
	ldr	w0, [x20, #32]
	bl	_vchi_service_close
	cmp	x0, #0
	cset	w0, eq
	bl	_vcos_assert
	str	xzr, [x20, #24]
	add	x19, x20, #16
	mov	x0, x19
	bl	_vcos_event_signal
	add	x0, x20, #20
	add	x1, sp, #8
	bl	_vcos_thread_join
	mov	x0, x19
	bl	_vcos_event_delete
	add	x0, x20, #12
	bl	_vcos_event_delete
	add	x0, x20, #8
	bl	_vcos_mutex_delete
	ldr	x0, [x20]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_vcos_free
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_vc_filesys_client,40,3         ; @vc_filesys_client
.subsections_via_symbols
