	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spgRedoPickSplit
_spgRedoPickSplit:                      ## @spgRedoPickSplit
	.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	$104, %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), %r14d
	callq	_XLogRecGetData
	movq	%rax, %r13
	leaq	-68(%rbp), %r8
	movq	%r15, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_XLogRecGetBlockTag
	movl	72(%r13), %esi
	leaq	-64(%rbp), %rdi
	callq	_fillFakeState
	movq	_SizeOfSpgxlogPickSplit@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	addq	%r13, %r12
	movslq	(%r13), %rax
	leaq	(%r12,%rax,4), %rax
	movslq	4(%r13), %rcx
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rcx,4), %rax
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rcx,8), %rsi
	leaq	-96(%rbp), %rdi
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movl	$4, %edx
	callq	_memcpy
	movslq	-96(%rbp), %rbx
	cmpq	$0, 8(%r13)
	je	LBB0_2
## %bb.1:
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
LBB0_2:
	cmpq	$0, 64(%r13)
	je	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	xorl	%r15d, %r15d
	movq	%rdi, %r12
	xorl	%esi, %esi
	callq	_XLogInitBufferForRedo
	movl	%eax, -56(%rbp)
	movl	%eax, %edi
	callq	_BufferGetPage
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %edi
	movq	_SPGIST_LEAF@GOTPCREL(%rip), %rax
	cmpq	$0, 40(%r13)
	je	LBB0_5
## %bb.4:
	movq	_SPGIST_NULLS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_5:
	orl	(%rax), %r15d
	movl	%r15d, %esi
	callq	_SpGistInitBuffer
	movq	%r12, %r15
	jmp	LBB0_11
LBB0_6:
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_XLogReadBufferForRedo
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.7:
	movl	-56(%rbp), %edi
	callq	_BufferGetPage
	cmpl	$0, -64(%rbp)
	movl	(%r13), %ecx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.8:
	movq	_SPGIST_PLACEHOLDER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r11d
	leaq	-64(%rbp), %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	movl	%r8d, %r9d
	jmp	LBB0_10
LBB0_9:
	movq	_SPGIST_REDIRECT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_SPGIST_PLACEHOLDER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	-68(%rbp), %r10d
	movl	24(%r13), %r11d
	leaq	-64(%rbp), %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
LBB0_10:
	pushq	%r11
	pushq	%r10
	callq	_spgPageIndexMultiDelete
	addq	$16, %rsp
LBB0_11:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_XLogRecHasBlockRef
	testq	%rax, %rax
	movl	%r14d, -100(%rbp)               ## 4-byte Spill
	movq	%r15, -136(%rbp)                ## 8-byte Spill
	je	LBB0_16
## %bb.12:
	cmpq	$0, 56(%r13)
	je	LBB0_17
## %bb.13:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_XLogInitBufferForRedo
	movl	%eax, -52(%rbp)
	movl	%eax, %edi
	callq	_BufferGetPage
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %edi
	movq	_SPGIST_LEAF@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpq	$0, 40(%r13)
	je	LBB0_15
## %bb.14:
	movq	_SPGIST_NULLS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_15:
	orl	(%rax), %esi
	callq	_SpGistInitBuffer
	cmpl	$0, 4(%r13)
	jg	LBB0_21
	jmp	LBB0_25
LBB0_16:
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	jmp	LBB0_19
LBB0_17:
	leaq	-52(%rbp), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_XLogReadBufferForRedo
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.18:
	movl	-52(%rbp), %edi
	callq	_BufferGetPage
	jmp	LBB0_20
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%r13)
	jle	LBB0_25
LBB0_21:
	movq	-128(%rbp), %r12                ## 8-byte Reload
	shlq	$2, %r12
	addq	-112(%rbp), %rbx                ## 8-byte Folded Reload
	addq	-120(%rbp), %r12                ## 8-byte Folded Reload
	xorl	%r14d, %r14d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=1
	addq	%r13, %rbx
	incq	%r14
	movq	%r15, %r13
	movslq	4(%r15), %rax
	cmpq	%rax, %r14
	jge	LBB0_25
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r15
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	cmpq	$0, (%r12,%r14,8)
	movslq	-48(%rbp), %r13
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	cmoveq	-88(%rbp), %rdi                 ## 8-byte Folded Reload
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r14,4), %ecx
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	_addOrReplaceTuple
	jmp	LBB0_22
LBB0_25:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	movl	-100(%rbp), %r14d               ## 4-byte Reload
	je	LBB0_27
## %bb.26:
	movl	%r14d, %esi
	callq	_PageSetLSN
	movl	-56(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_27:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	movq	-136(%rbp), %r15                ## 8-byte Reload
	je	LBB0_29
## %bb.28:
	movl	%r14d, %esi
	callq	_PageSetLSN
	movl	-52(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_29:
	cmpq	$0, 48(%r13)
	je	LBB0_33
## %bb.30:
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_XLogInitBufferForRedo
	movl	%eax, -48(%rbp)
	xorl	%esi, %esi
	cmpq	$0, 40(%r13)
	je	LBB0_32
## %bb.31:
	movq	_SPGIST_NULLS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_32:
	movl	%eax, %edi
	callq	_SpGistInitBuffer
	jmp	LBB0_34
LBB0_33:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_XLogReadBufferForRedo
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_37
LBB0_34:
	movl	-48(%rbp), %edi
	callq	_BufferGetPage
	movq	%rax, %rbx
	movl	-96(%rbp), %edx
	movl	24(%r13), %ecx
	movq	%rax, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_addOrReplaceTuple
	cmpq	$0, 16(%r13)
	je	LBB0_36
## %bb.35:
	movl	32(%r13), %esi
	movq	%rbx, %rdi
	callq	_PageGetItemId
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_PageGetItem
	movl	24(%r13), %ecx
	movl	28(%r13), %esi
	movl	-68(%rbp), %edx
	movq	%rax, %rdi
	callq	_spgUpdateNodeLink
LBB0_36:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_PageSetLSN
	movl	-48(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_37:
	movl	-48(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_39
## %bb.38:
	movl	-48(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_39:
	movl	-56(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_41
## %bb.40:
	movl	-56(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_41:
	movl	-52(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_43
## %bb.42:
	movl	-52(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_43:
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_XLogRecHasBlockRef
	testq	%rax, %rax
	je	LBB0_48
## %bb.44:
	leaq	-60(%rbp), %rdx
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_XLogReadBufferForRedo
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_46
## %bb.45:
	movl	-60(%rbp), %edi
	callq	_BufferGetPage
	movq	%rax, %rbx
	movl	32(%r13), %esi
	movq	%rax, %rdi
	callq	_PageGetItemId
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_PageGetItem
	movl	24(%r13), %ecx
	movl	28(%r13), %esi
	movl	-68(%rbp), %edx
	movq	%rax, %rdi
	callq	_spgUpdateNodeLink
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_PageSetLSN
	movl	-60(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_46:
	movl	-60(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_51
## %bb.47:
	movl	-60(%rbp), %edi
	callq	_UnlockReleaseBuffer
	jmp	LBB0_51
LBB0_48:
	movl	$1, %edi
	cmpq	$0, 16(%r13)
	jne	LBB0_50
## %bb.49:
	xorl	%edi, %edi
	cmpq	$0, 8(%r13)
	setne	%dil
LBB0_50:
	callq	_Assert
LBB0_51:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SizeOfSpgxlogPickSplit,4,2     ## @SizeOfSpgxlogPickSplit
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_SPGIST_LEAF,4,2                ## @SPGIST_LEAF
	.comm	_SPGIST_NULLS,4,2               ## @SPGIST_NULLS
	.comm	_BLK_NEEDS_REDO,8,3             ## @BLK_NEEDS_REDO
	.comm	_SPGIST_REDIRECT,4,2            ## @SPGIST_REDIRECT
	.comm	_SPGIST_PLACEHOLDER,4,2         ## @SPGIST_PLACEHOLDER
	.comm	_InvalidBlockNumber,4,2         ## @InvalidBlockNumber
	.comm	_InvalidOffsetNumber,4,2        ## @InvalidOffsetNumber
	.no_dead_strip	_spgRedoPickSplit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spgRedoPickSplit
_spgRedoPickSplit:                      ; @spgRedoPickSplit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	add	x4, sp, #28
	mov	x0, x21
	mov	w1, #2
	mov	x2, #0
	mov	x3, #0
	bl	_XLogRecGetBlockTag
	ldr	w1, [x20, #72]
	add	x0, sp, #48
	bl	_fillFakeState
Lloh0:
	adrp	x8, _SizeOfSpgxlogPickSplit@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SizeOfSpgxlogPickSplit@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x24, x20, x8
	ldpsw	x8, x9, [x20]
	add	x28, x24, x8, lsl #2
	lsl	x26, x9, #2
	add	x8, x28, x26
	add	x1, x8, x9, lsl #3
	add	x0, sp, #56
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	mov	w2, #4
	bl	_memcpy
	ldrsw	x25, [sp, #56]
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x27, _SPGIST_NULLS@GOTPAGE
Lloh4:
	ldr	x27, [x27, _SPGIST_NULLS@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x23, #0
Lloh5:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh6:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #44]
	b	LBB0_10
LBB0_2:
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	w1, #0
	bl	_XLogInitBufferForRedo
	str	w0, [sp, #44]
	bl	_BufferGetPage
	mov	x23, x0
	ldr	w0, [sp, #44]
Lloh8:
	adrp	x8, _SPGIST_LEAF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SPGIST_LEAF@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [x20, #40]
	ldr	w10, [x27]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w1, w9, w8
	bl	_SpGistInitBuffer
	b	LBB0_10
LBB0_4:
	add	x2, sp, #44
	mov	x0, x21
	mov	w1, #0
	bl	_XLogReadBufferForRedo
Lloh11:
	adrp	x8, _BLK_NEEDS_REDO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BLK_NEEDS_REDO@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
	ldr	w0, [sp, #44]
	bl	_BufferGetPage
	mov	x23, x0
	ldr	w8, [sp, #48]
	ldr	w3, [x20]
	cbz	w8, LBB0_8
; %bb.6:
Lloh14:
	adrp	x8, _SPGIST_PLACEHOLDER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SPGIST_PLACEHOLDER@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
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, #48
	mov	x1, x23
	mov	x2, x24
	mov	x5, x4
	b	LBB0_9
LBB0_7:
	mov	x23, #0
	b	LBB0_10
LBB0_8:
Lloh23:
	adrp	x8, _SPGIST_REDIRECT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SPGIST_REDIRECT@GOTPAGEOFF]
Lloh25:
	ldr	w4, [x8]
Lloh26:
	adrp	x8, _SPGIST_PLACEHOLDER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SPGIST_PLACEHOLDER@GOTPAGEOFF]
Lloh28:
	ldr	w5, [x8]
	ldr	w6, [sp, #28]
	ldr	w7, [x20, #24]
	add	x0, sp, #48
	mov	x1, x23
	mov	x2, x24
LBB0_9:
	bl	_spgPageIndexMultiDelete
LBB0_10:
	mov	x0, x21
	mov	w1, #1
	bl	_XLogRecHasBlockRef
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_14
; %bb.12:
	mov	x0, x21
	mov	w1, #1
	bl	_XLogInitBufferForRedo
	str	w0, [sp, #40]
	bl	_BufferGetPage
	mov	x24, x0
	ldr	w0, [sp, #40]
Lloh29:
	adrp	x8, _SPGIST_LEAF@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SPGIST_LEAF@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	x9, [x20, #40]
	mov	x22, x27
	ldr	w10, [x27]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w1, w9, w8
	bl	_SpGistInitBuffer
	b	LBB0_17
LBB0_13:
	mov	x22, x27
	mov	x24, #0
Lloh32:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh33:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	b	LBB0_17
LBB0_14:
	add	x2, sp, #40
	mov	x0, x21
	mov	w1, #1
	bl	_XLogReadBufferForRedo
Lloh35:
	adrp	x8, _BLK_NEEDS_REDO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BLK_NEEDS_REDO@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	mov	x22, x27
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.15:
	ldr	w0, [sp, #40]
	bl	_BufferGetPage
	mov	x24, x0
	b	LBB0_17
LBB0_16:
	mov	x24, #0
LBB0_17:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.18:
	mov	x27, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x25, x8, x25
	add	x19, x28, x26
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x25, x25, x26
	add	x27, x27, #1
	ldrsw	x8, [x20, #4]
	cmp	x27, x8
	b.ge	LBB0_22
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #32
	mov	x1, x25
	mov	w2, #4
	bl	_memcpy
	ldrsw	x26, [sp, #32]
	ldr	x8, [x19, x27, lsl #3]
	cmp	x8, #0
	csel	x0, x23, x24, eq
	cbz	x0, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w3, [x28, x27, lsl #2]
	mov	x1, x25
	mov	x2, x26
	bl	_addOrReplaceTuple
	b	LBB0_19
LBB0_22:
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
	cbz	x23, LBB0_24
; %bb.23:
	mov	x0, x23
	mov	x1, x19
	bl	_PageSetLSN
	ldr	w0, [sp, #44]
	bl	_MarkBufferDirty
LBB0_24:
	cbz	x24, LBB0_26
; %bb.25:
	mov	x0, x24
	mov	x1, x19
	bl	_PageSetLSN
	ldr	w0, [sp, #40]
	bl	_MarkBufferDirty
LBB0_26:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_28
; %bb.27:
	mov	x0, x21
	mov	w1, #2
	bl	_XLogInitBufferForRedo
	str	w0, [sp, #32]
	ldr	x8, [x20, #40]
	ldr	w9, [x22]
	cmp	x8, #0
	csel	w1, wzr, w9, eq
	bl	_SpGistInitBuffer
	b	LBB0_29
LBB0_28:
	add	x2, sp, #32
	mov	x0, x21
	mov	w1, #2
	bl	_XLogReadBufferForRedo
Lloh38:
	adrp	x8, _BLK_NEEDS_REDO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BLK_NEEDS_REDO@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_32
LBB0_29:
	ldr	w0, [sp, #32]
	bl	_BufferGetPage
	mov	x23, x0
	ldr	w2, [sp, #56]
	ldr	w3, [x20, #24]
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_addOrReplaceTuple
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_31
; %bb.30:
	ldr	w1, [x20, #32]
	mov	x0, x23
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x23
	bl	_PageGetItem
	ldr	w2, [sp, #28]
	ldp	w3, w1, [x20, #24]
	bl	_spgUpdateNodeLink
LBB0_31:
	mov	x0, x23
	mov	x1, x19
	bl	_PageSetLSN
	ldr	w0, [sp, #32]
	bl	_MarkBufferDirty
LBB0_32:
	ldr	w0, [sp, #32]
	bl	_BufferIsValid
	cbz	x0, LBB0_34
; %bb.33:
	ldr	w0, [sp, #32]
	bl	_UnlockReleaseBuffer
LBB0_34:
	ldr	w0, [sp, #44]
	bl	_BufferIsValid
	cbz	x0, LBB0_36
; %bb.35:
	ldr	w0, [sp, #44]
	bl	_UnlockReleaseBuffer
LBB0_36:
	ldr	w0, [sp, #40]
	bl	_BufferIsValid
	cbz	x0, LBB0_38
; %bb.37:
	ldr	w0, [sp, #40]
	bl	_UnlockReleaseBuffer
LBB0_38:
	mov	x0, x21
	mov	w1, #3
	bl	_XLogRecHasBlockRef
	cbz	x0, LBB0_43
; %bb.39:
	add	x2, sp, #24
	mov	x0, x21
	mov	w1, #3
	bl	_XLogReadBufferForRedo
Lloh41:
	adrp	x8, _BLK_NEEDS_REDO@GOTPAGE
Lloh42:
	ldr	x8, [x8, _BLK_NEEDS_REDO@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_41
; %bb.40:
	ldr	w0, [sp, #24]
	bl	_BufferGetPage
	mov	x21, x0
	ldr	w1, [x20, #32]
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x21
	bl	_PageGetItem
	ldr	w2, [sp, #28]
	ldp	w3, w1, [x20, #24]
	bl	_spgUpdateNodeLink
	mov	x0, x21
	mov	x1, x19
	bl	_PageSetLSN
	ldr	w0, [sp, #24]
	bl	_MarkBufferDirty
LBB0_41:
	ldr	w0, [sp, #24]
	bl	_BufferIsValid
	cbz	x0, LBB0_47
; %bb.42:
	ldr	w0, [sp, #24]
	bl	_UnlockReleaseBuffer
	b	LBB0_47
LBB0_43:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_45
; %bb.44:
	mov	w0, #1
	b	LBB0_46
LBB0_45:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, ne
LBB0_46:
	bl	_Assert
LBB0_47:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_SizeOfSpgxlogPickSplit,4,2     ; @SizeOfSpgxlogPickSplit
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_SPGIST_LEAF,4,2                ; @SPGIST_LEAF
	.comm	_SPGIST_NULLS,4,2               ; @SPGIST_NULLS
	.comm	_BLK_NEEDS_REDO,8,3             ; @BLK_NEEDS_REDO
	.comm	_SPGIST_REDIRECT,4,2            ; @SPGIST_REDIRECT
	.comm	_SPGIST_PLACEHOLDER,4,2         ; @SPGIST_PLACEHOLDER
	.comm	_InvalidBlockNumber,4,2         ; @InvalidBlockNumber
	.comm	_InvalidOffsetNumber,4,2        ; @InvalidOffsetNumber
	.no_dead_strip	_spgRedoPickSplit
.subsections_via_symbols
