	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_end_vacuum                 ## -- Begin function _bt_end_vacuum
	.p2align	4, 0x90
__bt_end_vacuum:                        ## @_bt_end_vacuum
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_BtreeVacuumLock@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_btvacinfo@GOTPCREL(%rip), %r8
	movq	(%r8), %rcx
	movl	(%rcx), %r9d
	testl	%r9d, %r9d
	jle	LBB0_6
## %bb.1:
	movq	8(%rcx), %rdx
	movq	(%rbx), %rdi
	movq	%r9, %rcx
	shlq	$4, %rcx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rsi
	cmpq	%rsi, %rcx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, (%rdx,%rsi)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdx,%rsi), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_5
## %bb.4:
	movslq	%r9d, %rax
	shlq	$4, %rax
	movups	-16(%rax,%rdx), %xmm0
	movups	%xmm0, (%rdx,%rsi)
	movq	(%r8), %rax
	decl	(%rax)
LBB0_6:
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BtreeVacuumLock,4,2            ## @BtreeVacuumLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_btvacinfo,8,3                  ## @btvacinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_end_vacuum                 ; -- Begin function _bt_end_vacuum
	.p2align	2
__bt_end_vacuum:                        ; @_bt_end_vacuum
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _BtreeVacuumLock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BtreeVacuumLock@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh5:
	adrp	x8, _btvacinfo@GOTPAGE
Lloh6:
	ldr	x8, [x8, _btvacinfo@GOTPAGEOFF]
	ldr	x10, [x8]
	ldr	w9, [x10]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	ldr	x10, [x10, #8]
	ldr	x12, [x19]
	mov	x13, x9
	mov	x11, x10
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #16
	subs	x13, x13, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x11]
	cmp	x14, x12
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x14, [x11, #8]
	ldr	x15, [x19, #8]
	cmp	x14, x15
	b.ne	LBB0_2
; %bb.5:
	sub	w9, w9, #1
	ldr	q0, [x10, w9, sxtw #4]
	str	q0, [x11]
	ldr	x8, [x8]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
LBB0_6:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_LWLockRelease
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BtreeVacuumLock,4,2            ; @BtreeVacuumLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_btvacinfo,8,3                  ; @btvacinfo
.subsections_via_symbols
