	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spgRedoVacuumLeaf
_spgRedoVacuumLeaf:                     ## @spgRedoVacuumLeaf
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	callq	_XLogRecGetData
	movq	%rax, %rbx
	movl	16(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_fillFakeState
	movq	_SizeOfSpgxlogVacuumLeaf@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	movslq	(%rbx), %r14
	movslq	4(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movslq	8(%rbx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movslq	12(%rbx), %r13
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_XLogReadBufferForRedo
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%r12), %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r15,%r14,4), %r13
	shlq	$2, %r14
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rcx
	addq	%r13, %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edi
	callq	_BufferGetPage
	movl	%eax, %r12d
	movl	(%rbx), %ecx
	movq	_SPGIST_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movl	%r8d, %r9d
	pushq	%rax
	pushq	%r10
	callq	_spgPageIndexMultiDelete
	addq	$16, %rsp
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %ecx
	movq	_SPGIST_PLACEHOLDER@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%r14), %ebx
	leaq	-48(%rbp), %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%r12d, %esi
	movq	%r13, %rdx
	movl	%r8d, %r9d
	pushq	%rbx
	pushq	%rax
	callq	_spgPageIndexMultiDelete
	addq	$16, %rsp
	movl	8(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.2:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r14
	addq	%r14, %r13
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r13
	addq	%r15, %r13
	addq	%rax, %r14
	addq	%r15, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %esi
	movl	%r12d, %edi
	callq	_PageGetItemId
	movq	%rax, %r15
	movl	(%r13,%rbx,4), %esi
	movl	%r12d, %edi
	callq	_PageGetItemId
	movl	(%r15), %ecx
	movl	(%rax), %edx
	movl	%edx, (%r15)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%ecx, (%rax)
	incq	%rbx
	movslq	8(%r15), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_3
LBB0_4:
	movq	_SPGIST_PLACEHOLDER@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	leaq	-48(%rbp), %rdi
	movl	%r12d, %esi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r8d, %r9d
	pushq	%rbx
	pushq	%rax
	callq	_spgPageIndexMultiDelete
	addq	$16, %rsp
	cmpl	$0, 12(%r15)
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	jle	LBB0_7
## %bb.5:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	shlq	$2, %rdi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rsi,8), %r14
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	addq	%rdx, %r14
	addq	%rdi, %r14
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	%rdi, %r14
	leaq	(%rdx,%rsi,8), %r13
	addq	%rcx, %r13
	addq	%rax, %r13
	addq	%rdi, %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%r15,4), %esi
	movl	%r12d, %edi
	callq	_PageGetItemId
	movl	%r12d, %edi
	movq	%rax, %rsi
	callq	_PageGetItem
	movq	%rax, %rbx
	movq	(%rax), %rax
	xorl	%edi, %edi
	movq	_SPGIST_LIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movl	(%r14,%r15,4), %eax
	movl	%eax, 8(%rbx)
	incq	%r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	12(%rax), %rax
	cmpq	%rax, %r15
	jl	LBB0_6
LBB0_7:
	movl	%r12d, %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_PageSetLSN
	movl	-44(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_8:
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	-44(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_10:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SizeOfSpgxlogVacuumLeaf,4,2    ## @SizeOfSpgxlogVacuumLeaf
	.comm	_BLK_NEEDS_REDO,8,3             ## @BLK_NEEDS_REDO
	.comm	_SPGIST_DEAD,4,2                ## @SPGIST_DEAD
	.comm	_InvalidBlockNumber,4,2         ## @InvalidBlockNumber
	.comm	_InvalidOffsetNumber,4,2        ## @InvalidOffsetNumber
	.comm	_SPGIST_PLACEHOLDER,4,2         ## @SPGIST_PLACEHOLDER
	.comm	_SPGIST_LIVE,8,3                ## @SPGIST_LIVE
	.no_dead_strip	_spgRedoVacuumLeaf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spgRedoVacuumLeaf
_spgRedoVacuumLeaf:                     ; @spgRedoVacuumLeaf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x0
	ldr	w24, [x0]
	bl	_XLogRecGetData
	mov	x20, x0
	ldr	w1, [x0, #16]
	add	x0, sp, #44
	bl	_fillFakeState
Lloh0:
	adrp	x8, _SizeOfSpgxlogVacuumLeaf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SizeOfSpgxlogVacuumLeaf@GOTPAGEOFF]
Lloh2:
	ldrsw	x28, [x8]
	ldpsw	x22, x19, [x20]
	ldpsw	x25, x23, [x20, #8]
	add	x2, sp, #40
	mov	x0, x21
	mov	w1, #0
	bl	_XLogReadBufferForRedo
Lloh3:
	adrp	x8, _BLK_NEEDS_REDO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLK_NEEDS_REDO@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.1:
	str	x25, [sp, #32]                  ; 8-byte Folded Spill
	str	w24, [sp, #28]                  ; 4-byte Folded Spill
	str	x23, [sp, #16]                  ; 8-byte Folded Spill
	lsl	x25, x22, #2
	add	x23, x20, x28
	add	x24, x23, x25
	lsl	x26, x19, #2
	add	x22, x24, x26
	ldr	w0, [sp, #40]
	bl	_BufferGetPage
	mov	x21, x0
	ldr	w3, [x20]
Lloh6:
	adrp	x8, _SPGIST_DEAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPGIST_DEAD@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x27, _InvalidBlockNumber@GOTPAGE
Lloh10:
	ldr	x27, [x27, _InvalidBlockNumber@GOTPAGEOFF]
	ldr	w6, [x27]
	mov	x19, x28
Lloh11:
	adrp	x28, _InvalidOffsetNumber@GOTPAGE
Lloh12:
	ldr	x28, [x28, _InvalidOffsetNumber@GOTPAGEOFF]
	ldr	w7, [x28]
	add	x0, sp, #44
	mov	x1, x21
	mov	x2, x23
	mov	x5, x4
	bl	_spgPageIndexMultiDelete
	ldr	w3, [x20, #4]
Lloh13:
	adrp	x23, _SPGIST_PLACEHOLDER@GOTPAGE
Lloh14:
	ldr	x23, [x23, _SPGIST_PLACEHOLDER@GOTPAGEOFF]
	ldr	w4, [x23]
	ldr	w6, [x27]
	ldr	w7, [x28]
	add	x0, sp, #44
	mov	x1, x21
	mov	x2, x24
	mov	x5, x4
	bl	_spgPageIndexMultiDelete
	ldr	w3, [x20, #8]
	cmp	w3, #1
	b.lt	LBB0_5
; %bb.2:
	stp	x26, x22, [sp]                  ; 16-byte Folded Spill
	mov	x24, #0
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	lsl	x8, x8, #2
	add	x9, x26, x25
	add	x8, x9, x8
	add	x8, x8, x19
	add	x22, x20, x8
	add	x8, x9, x19
	add	x27, x20, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x26, x24, #2
	ldr	w1, [x27, x26]
	mov	x0, x21
	bl	_PageGetItemId
	mov	x23, x0
	ldr	w1, [x22, x26]
	mov	x0, x21
	bl	_PageGetItemId
	ldr	w8, [x23]
	ldr	w9, [x0]
	str	w9, [x23]
	str	w8, [x0]
	add	x24, x24, #1
	ldrsw	x3, [x20, #8]
	cmp	x24, x3
	b.lt	LBB0_3
; %bb.4:
	ldr	w27, [sp, #28]                  ; 4-byte Folded Reload
	ldp	x26, x22, [sp]                  ; 16-byte Folded Reload
Lloh15:
	adrp	x23, _SPGIST_PLACEHOLDER@GOTPAGE
Lloh16:
	ldr	x23, [x23, _SPGIST_PLACEHOLDER@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	ldr	w27, [sp, #28]                  ; 4-byte Folded Reload
LBB0_6:
	ldr	w4, [x23]
Lloh17:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh18:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh19:
	ldr	w6, [x8]
Lloh20:
	adrp	x8, _InvalidOffsetNumber@GOTPAGE
Lloh21:
	ldr	x8, [x8, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh22:
	ldr	w7, [x8]
	add	x0, sp, #44
	mov	x1, x21
	mov	x2, x22
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x5, x4
	bl	_spgPageIndexMultiDelete
	ldr	w8, [x20, #12]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x23, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	lsl	x8, x8, #2
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	lsl	x9, x9, #3
	add	x10, x9, x26
	add	x10, x10, x25
	add	x8, x10, x8
	add	x8, x8, x19
	add	x24, x20, x8
	add	x8, x9, x25
	add	x8, x8, x26
	add	x8, x8, x19
	add	x19, x20, x8
Lloh23:
	adrp	x25, _SPGIST_LIVE@GOTPAGE
Lloh24:
	ldr	x25, [x25, _SPGIST_LIVE@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x26, x23, #2
	ldr	w1, [x19, x26]
	mov	x0, x21
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x21
	bl	_PageGetItem
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x9, [x25]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x24, x26]
	str	w8, [x22, #8]
	add	x23, x23, #1
	ldrsw	x8, [x20, #12]
	cmp	x23, x8
	b.lt	LBB0_8
LBB0_9:
	mov	x0, x21
	mov	x1, x27
	bl	_PageSetLSN
	ldr	w0, [sp, #40]
	bl	_MarkBufferDirty
LBB0_10:
	ldr	w0, [sp, #40]
	bl	_BufferIsValid
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w0, [sp, #40]
	bl	_UnlockReleaseBuffer
LBB0_12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SizeOfSpgxlogVacuumLeaf,4,2    ; @SizeOfSpgxlogVacuumLeaf
	.comm	_BLK_NEEDS_REDO,8,3             ; @BLK_NEEDS_REDO
	.comm	_SPGIST_DEAD,4,2                ; @SPGIST_DEAD
	.comm	_InvalidBlockNumber,4,2         ; @InvalidBlockNumber
	.comm	_InvalidOffsetNumber,4,2        ; @InvalidOffsetNumber
	.comm	_SPGIST_PLACEHOLDER,4,2         ; @SPGIST_PLACEHOLDER
	.comm	_SPGIST_LIVE,8,3                ; @SPGIST_LIVE
	.no_dead_strip	_spgRedoVacuumLeaf
.subsections_via_symbols
