	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ginVacuumPostingTreeLeaves
_ginVacuumPostingTreeLeaves:            ## @ginVacuumPostingTreeLeaves
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_GIN_SHARE@GOTPCREL(%rip), %r12
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %r8d
	movl	4(%r14), %edi
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RBM_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edx
	callq	_ReadBufferExtended
	movl	%eax, %r15d
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_LockBuffer
	movl	%r15d, %edi
	callq	_BufferGetPage
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_GinPageIsData
	movl	%eax, %edi
	callq	_Assert
	movl	%ebx, %edi
	callq	_GinPageIsLeaf
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_PageGetMaxOffsetNumber
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setge	%dil
	callq	_Assert
	movq	(%r13), %rsi
	movl	%ebx, %edi
	callq	_GinDataPageGetPostingItem
	movq	%rax, %rdi
	callq	_PostingItemGetBlockNumber
	movl	%eax, %ebx
	xorl	%edi, %edi
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	setne	%dil
	callq	_Assert
	movl	%r15d, %edi
	callq	_UnlockReleaseBuffer
	jmp	LBB0_1
LBB0_3:
	movq	_GIN_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LockBuffer
	movq	_GIN_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LockBuffer
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r13d
	movl	4(%r14), %edi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_ginVacuumPostingTreeLeaf
	movl	%r13d, %edi
	callq	_MemoryContextSwitchTo
	movl	8(%r14), %edi
	callq	_MemoryContextReset
	movl	%ebx, %edi
	callq	_GinDataLeafPageIsEmpty
	testq	%rax, %rax
	movl	$1, %eax
	cmovnel	%eax, %r12d
	movl	%ebx, %edi
	callq	_GinPageGetOpaque
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_UnlockReleaseBuffer
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %r8d
	movl	4(%r14), %edi
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RBM_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edx
	callq	_ReadBufferExtended
	movl	%eax, %r15d
	movq	_GIN_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LockBuffer
	movl	%r15d, %edi
	callq	_BufferGetPage
	movl	%eax, %ebx
	jmp	LBB0_4
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAIN_FORKNUM,4,2               ## @MAIN_FORKNUM
	.comm	_RBM_NORMAL,4,2                 ## @RBM_NORMAL
	.comm	_GIN_SHARE,4,2                  ## @GIN_SHARE
	.comm	_GIN_UNLOCK,4,2                 ## @GIN_UNLOCK
	.comm	_GIN_EXCLUSIVE,4,2              ## @GIN_EXCLUSIVE
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_InvalidBlockNumber,4,2         ## @InvalidBlockNumber
	.no_dead_strip	_ginVacuumPostingTreeLeaves
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ginVacuumPostingTreeLeaves
_ginVacuumPostingTreeLeaves:            ; @ginVacuumPostingTreeLeaves
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _MAIN_FORKNUM@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAIN_FORKNUM@GOTPAGEOFF]
Lloh2:
	adrp	x25, _RBM_NORMAL@GOTPAGE
Lloh3:
	ldr	x25, [x25, _RBM_NORMAL@GOTPAGEOFF]
Lloh4:
	adrp	x22, _GIN_SHARE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _GIN_SHARE@GOTPAGEOFF]
Lloh6:
	adrp	x23, _FirstOffsetNumber@GOTPAGE
Lloh7:
	ldr	x23, [x23, _FirstOffsetNumber@GOTPAGEOFF]
Lloh8:
	adrp	x26, _InvalidBlockNumber@GOTPAGE
Lloh9:
	ldr	x26, [x26, _InvalidBlockNumber@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	ldr	w3, [x25]
	ldp	w4, w0, [x19]
	mov	x2, x21
	bl	_ReadBufferExtended
	mov	x20, x0
	ldr	w1, [x22]
	bl	_LockBuffer
	mov	x0, x20
	bl	_BufferGetPage
	mov	x21, x0
	bl	_GinPageIsData
	bl	_Assert
	mov	x0, x21
	bl	_GinPageIsLeaf
	cbnz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_PageGetMaxOffsetNumber
	ldr	x8, [x23]
	cmp	x0, x8
	cset	w0, ge
	bl	_Assert
	ldr	x1, [x23]
	mov	x0, x21
	bl	_GinDataPageGetPostingItem
	bl	_PostingItemGetBlockNumber
	mov	x21, x0
	ldr	w8, [x26]
	cmp	w0, w8
	cset	w0, ne
	bl	_Assert
	mov	x0, x20
	bl	_UnlockReleaseBuffer
	b	LBB0_1
LBB0_3:
Lloh10:
	adrp	x8, _GIN_UNLOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GIN_UNLOCK@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_LockBuffer
Lloh13:
	adrp	x27, _GIN_EXCLUSIVE@GOTPAGE
Lloh14:
	ldr	x27, [x27, _GIN_EXCLUSIVE@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x20
	bl	_LockBuffer
	mov	w22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	bl	_MemoryContextSwitchTo
	mov	x23, x0
	ldr	w0, [x19, #4]
	mov	x1, x20
	mov	x2, x19
	bl	_ginVacuumPostingTreeLeaf
	mov	x0, x23
	bl	_MemoryContextSwitchTo
	ldr	w0, [x19, #8]
	bl	_MemoryContextReset
	mov	x0, x21
	bl	_GinDataLeafPageIsEmpty
	cmp	x0, #0
	csinc	w22, w22, wzr, eq
	mov	x0, x21
	bl	_GinPageGetOpaque
	ldr	w21, [x0]
	mov	x0, x20
	bl	_UnlockReleaseBuffer
	ldr	w8, [x26]
	cmp	w21, w8
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x24]
	ldr	w3, [x25]
	ldp	w4, w0, [x19]
	mov	x2, x21
	bl	_ReadBufferExtended
	mov	x20, x0
	ldr	w1, [x27]
	bl	_LockBuffer
	mov	x0, x20
	bl	_BufferGetPage
	mov	x21, x0
	b	LBB0_4
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAIN_FORKNUM,4,2               ; @MAIN_FORKNUM
	.comm	_RBM_NORMAL,4,2                 ; @RBM_NORMAL
	.comm	_GIN_SHARE,4,2                  ; @GIN_SHARE
	.comm	_GIN_UNLOCK,4,2                 ; @GIN_UNLOCK
	.comm	_GIN_EXCLUSIVE,4,2              ; @GIN_EXCLUSIVE
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_InvalidBlockNumber,4,2         ; @InvalidBlockNumber
	.no_dead_strip	_ginVacuumPostingTreeLeaves
.subsections_via_symbols
