	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v_ex_done
_v_ex_done:                             ## @v_ex_done
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	leaq	-24(%rbp), %rcx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_db_eget
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, (%rbx)
	movq	$0, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	8(%rbx), %rax
	movq	-24(%rbp), %rcx
	cmpq	%rcx, %rax
	jb	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	subq	$1, %rcx
	cmovaeq	%rcx, %rax
	movq	%rax, 8(%rbx)
LBB0_4:
	movl	(%rbx), %ecx
	movl	%ecx, (%r14)
	movq	%rax, 8(%r14)
	movq	_VM_RCM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_F_CLR
	movq	_VM_RCM_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_F_SET
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_RCM_MASK,4,2                ## @VM_RCM_MASK
	.comm	_VM_RCM_SET,4,2                 ## @VM_RCM_SET
	.no_dead_strip	_v_ex_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v_ex_done
_v_ex_done:                             ; @v_ex_done
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x0]
	add	x3, sp, #8
	mov	x2, #0
	mov	x4, #0
	bl	_db_eget
	cbz	x0, LBB0_2
; %bb.1:
	mov	x8, #0
	mov	w9, #1
	str	w9, [x20]
	str	xzr, [x20, #8]
	b	LBB0_4
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.lo	LBB0_4
; %bb.3:
	sub	x8, x9, #1
	cmp	x9, #0
	csel	x8, xzr, x8, eq
	str	x8, [x20, #8]
LBB0_4:
	ldr	w9, [x20]
	str	w9, [x19]
	str	x8, [x19, #8]
Lloh0:
	adrp	x8, _VM_RCM_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_RCM_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_CLR
Lloh3:
	adrp	x8, _VM_RCM_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VM_RCM_SET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_SET
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_RCM_MASK,4,2                ; @VM_RCM_MASK
	.comm	_VM_RCM_SET,4,2                 ; @VM_RCM_SET
	.no_dead_strip	_v_ex_done
.subsections_via_symbols
