	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spgRedoVacuumRedirect
_spgRedoVacuumRedirect:                 ## @spgRedoVacuumRedirect
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %r13d
	callq	_XLogRecGetData
	movq	%rax, %r15
	movq	(%rax), %r14
	movq	_InHotStandby@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movl	16(%r15), %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	-52(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_XLogRecGetBlockTag
	movl	16(%r15), %edi
	movl	-52(%rbp), %esi
	callq	_ResolveRecoveryConflictWithSnapshot
LBB0_3:
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_XLogReadBufferForRedo
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.4:
	movl	-44(%rbp), %edi
	callq	_BufferGetPage
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_SpGistPageGetOpaque
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	movl	8(%r15), %eax
	testl	%eax, %eax
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	jle	LBB0_8
## %bb.5:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%r13,4), %esi
	movl	%r12d, %edi
	callq	_PageGetItemId
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %rbx
	movq	(%rax), %rax
	xorl	%edi, %edi
	movq	_SPGIST_REDIRECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	_SPGIST_PLACEHOLDER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	addq	$8, %rbx
	movq	%rbx, %rdi
	movq	%r15, %rbx
	callq	_ItemPointerSetInvalid
	incq	%r13
	movslq	8(%r15), %rax
	cmpq	%rax, %r13
	jl	LBB0_6
## %bb.7:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
LBB0_8:
	xorl	%edi, %edi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	cmpl	%eax, (%r14)
	setge	%dil
	callq	_Assert
	movl	8(%rbx), %eax
	subl	%eax, (%r14)
	addl	%eax, 4(%r14)
	movl	12(%rbx), %eax
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_20
## %bb.9:
	movl	%r12d, %edi
	callq	_PageGetMaxOffsetNumber
	movl	%eax, %r14d
	leal	(,%r14,4), %edi
	callq	_palloc
	movq	%rax, %r13
	movl	12(%rbx), %eax
	movl	%r14d, %edx
	subl	%eax, %edx
	jl	LBB0_19
## %bb.10:
	movl	%eax, (%r13)
	je	LBB0_18
## %bb.11:
	movl	%eax, %ecx
	notl	%ecx
	addl	%r14d, %ecx
	andl	$3, %edx
	je	LBB0_15
## %bb.12:
	incl	%eax
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %esi
	subl	12(%rbx), %esi
	movslq	%esi, %rsi
	movl	%eax, (%r13,%rsi,4)
	incl	%eax
	decl	%edx
	jne	LBB0_13
## %bb.14:
	decl	%eax
LBB0_15:
	cmpl	$3, %ecx
	jb	LBB0_18
## %bb.16:
	movl	%r14d, %ecx
	negl	%ecx
	addl	$4, %eax
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	leal	-3(%rax), %edx
	movl	%eax, %esi
	subl	12(%rbx), %esi
	addl	$-3, %esi
	movslq	%esi, %rsi
	movl	%edx, (%r13,%rsi,4)
	leal	-2(%rax), %edx
	movl	%eax, %esi
	subl	12(%rbx), %esi
	addl	$-2, %esi
	movslq	%esi, %rsi
	movl	%edx, (%r13,%rsi,4)
	leal	-1(%rax), %edx
	movl	12(%rbx), %esi
	notl	%esi
	addl	%eax, %esi
	movslq	%esi, %rsi
	movl	%edx, (%r13,%rsi,4)
	movl	%eax, %edx
	subl	12(%rbx), %edx
	movslq	%edx, %rdx
	movl	%eax, (%r13,%rdx,4)
	leal	(%rcx,%rax), %edx
	addl	$4, %edx
                                        ## kill: def $eax killed $eax killed $rax
	addl	$4, %eax
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$4, %edx
	jne	LBB0_17
LBB0_18:
	movl	12(%rbx), %eax
LBB0_19:
	subl	%eax, %r14d
	leal	1(%r14), %ebx
	xorl	%edi, %edi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	cmpl	%r14d, 4(%r15)
	setg	%dil
	callq	_Assert
	subl	%ebx, 4(%r15)
	movl	%r12d, %edi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_PageIndexMultiDelete
	movq	%r13, %rdi
	callq	_pfree
	movl	-48(%rbp), %r13d                ## 4-byte Reload
LBB0_20:
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_PageSetLSN
	movl	-44(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_21:
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movl	-44(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InHotStandby,8,3               ## @InHotStandby
	.comm	_BLK_NEEDS_REDO,8,3             ## @BLK_NEEDS_REDO
	.comm	_SPGIST_REDIRECT,8,3            ## @SPGIST_REDIRECT
	.comm	_SPGIST_PLACEHOLDER,8,3         ## @SPGIST_PLACEHOLDER
	.comm	_InvalidOffsetNumber,4,2        ## @InvalidOffsetNumber
	.no_dead_strip	_spgRedoVacuumRedirect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spgRedoVacuumRedirect
_spgRedoVacuumRedirect:                 ; @spgRedoVacuumRedirect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	w19, [x0]
	bl	_XLogRecGetData
	mov	x20, x0
	ldr	x24, [x0]
Lloh0:
	adrp	x8, _InHotStandby@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InHotStandby@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x20, #16]
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_3
; %bb.2:
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #0
	mov	x3, #0
	mov	x4, #0
	bl	_XLogRecGetBlockTag
	ldr	w0, [x20, #16]
	ldr	w1, [sp, #8]
	bl	_ResolveRecoveryConflictWithSnapshot
LBB0_3:
	add	x2, sp, #12
	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_15
; %bb.4:
	ldr	w0, [sp, #12]
	bl	_BufferGetPage
	mov	x21, x0
	bl	_SpGistPageGetOpaque
	mov	x22, x0
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x25, #0
Lloh6:
	adrp	x26, _SPGIST_REDIRECT@GOTPAGE
Lloh7:
	ldr	x26, [x26, _SPGIST_REDIRECT@GOTPAGEOFF]
Lloh8:
	adrp	x27, _SPGIST_PLACEHOLDER@GOTPAGE
Lloh9:
	ldr	x27, [x27, _SPGIST_PLACEHOLDER@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24, x25, lsl #2]
	mov	x0, x21
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x21
	bl	_PageGetItem
	mov	x23, x0
	ldr	x8, [x0]
	ldr	x9, [x26]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x27]
	str	x8, [x23], #8
	mov	x0, x23
	bl	_ItemPointerSetInvalid
	add	x25, x25, #1
	ldrsw	x8, [x20, #8]
	cmp	x25, x8
	b.lt	LBB0_6
LBB0_7:
	ldr	w9, [x22]
	cmp	w9, w8
	cset	w0, ge
	bl	_Assert
	ldp	w8, w9, [x22]
	ldp	w10, w11, [x20, #8]
	sub	w8, w8, w10
	add	w9, w9, w10
	stp	w8, w9, [x22]
Lloh10:
	adrp	x8, _InvalidOffsetNumber@GOTPAGE
Lloh11:
	ldr	x8, [x8, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w11, w8
	b.eq	LBB0_14
; %bb.8:
	mov	x0, x21
	bl	_PageGetMaxOffsetNumber
	mov	x24, x0
	lsl	w0, w0, #2
	bl	_palloc
	mov	x23, x0
	ldr	w8, [x20, #12]
	cmp	w8, w24
	b.gt	LBB0_13
; %bb.9:
	str	w8, [x23]
	b.eq	LBB0_12
; %bb.10:
	add	w8, w8, #1
	neg	w9, w24
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x20, #12]
	sub	w10, w8, w10
	str	w8, [x23, w10, sxtw #2]
	add	w8, w8, #1
	add	w10, w9, w8
	cmp	w10, #1
	b.ne	LBB0_11
LBB0_12:
	ldr	w8, [x20, #12]
LBB0_13:
	ldr	w9, [x22, #4]
	sub	w8, w24, w8
	cmp	w9, w8
	add	w20, w8, #1
	cset	w0, gt
	bl	_Assert
	ldr	w8, [x22, #4]
	sub	w8, w8, w20
	str	w8, [x22, #4]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	bl	_PageIndexMultiDelete
	mov	x0, x23
	bl	_pfree
LBB0_14:
	mov	x0, x21
	mov	x1, x19
	bl	_PageSetLSN
	ldr	w0, [sp, #12]
	bl	_MarkBufferDirty
LBB0_15:
	ldr	w0, [sp, #12]
	bl	_BufferIsValid
	cbz	x0, LBB0_17
; %bb.16:
	ldr	w0, [sp, #12]
	bl	_UnlockReleaseBuffer
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_InHotStandby,8,3               ; @InHotStandby
	.comm	_BLK_NEEDS_REDO,8,3             ; @BLK_NEEDS_REDO
	.comm	_SPGIST_REDIRECT,8,3            ; @SPGIST_REDIRECT
	.comm	_SPGIST_PLACEHOLDER,8,3         ; @SPGIST_PLACEHOLDER
	.comm	_InvalidOffsetNumber,4,2        ; @InvalidOffsetNumber
	.no_dead_strip	_spgRedoVacuumRedirect
.subsections_via_symbols
