	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spgRedoSplitTuple
_spgRedoSplitTuple:                     ## @spgRedoSplitTuple
	.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, %r13
	movl	(%rdi), %r14d
	callq	_XLogRecGetData
	movq	%rax, %rbx
	leaq	32(%rax), %r12
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movslq	-48(%rbp), %rax
	leaq	(%rbx,%rax), %r15
	addq	$32, %r15
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	cmpq	$0, 16(%rbx)
	jne	LBB0_7
## %bb.1:
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_XLogInitBufferForRedo
	movl	%eax, -44(%rbp)
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_SpGistInitBuffer
	jmp	LBB0_4
LBB0_3:
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_XLogReadBufferForRedo
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_4:
	movl	-44(%rbp), %edi
	callq	_BufferGetPage
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	%eax, %r14d
	movl	-56(%rbp), %edx
	movl	8(%rbx), %ecx
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_addOrReplaceTuple
	movl	%r14d, %edi
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_PageSetLSN
	movl	-44(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_5:
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	-44(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_7:
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_XLogReadBufferForRedo
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.8:
	movl	-44(%rbp), %edi
	callq	_BufferGetPage
	movl	%eax, %r13d
	movq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_PageIndexTupleDelete
	movl	-48(%rbp), %edx
	movq	(%rbx), %rcx
	movl	%r13d, %edi
	movl	%r12d, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_PageAddItem
	cmpq	(%rbx), %rax
	je	LBB0_10
## %bb.9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_10:
	cmpq	$0, 16(%rbx)
	je	LBB0_12
## %bb.11:
	movl	-56(%rbp), %edx
	movl	8(%rbx), %ecx
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_addOrReplaceTuple
LBB0_12:
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_PageSetLSN
	movl	-44(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_13:
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	-44(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_NEEDS_REDO,8,3             ## @BLK_NEEDS_REDO
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add item of size %u to SPGiST index page"

	.no_dead_strip	_spgRedoSplitTuple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spgRedoSplitTuple
_spgRedoSplitTuple:                     ; @spgRedoSplitTuple
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x23, x0
	ldr	w19, [x0]
	bl	_XLogRecGetData
	mov	x20, x0
	add	x22, x0, #32
	add	x0, sp, #24
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	ldrsw	x8, [sp, #24]
	add	x21, x22, x8
	add	x0, sp, #16
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x20, #16]
Lloh0:
	adrp	x25, _BLK_NEEDS_REDO@GOTPAGE
Lloh1:
	ldr	x25, [x25, _BLK_NEEDS_REDO@GOTPAGEOFF]
	cbnz	x8, LBB0_7
; %bb.1:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x23
	mov	w1, #1
	bl	_XLogInitBufferForRedo
	str	w0, [sp, #12]
	mov	w1, #0
	bl	_SpGistInitBuffer
	b	LBB0_4
LBB0_3:
	add	x2, sp, #12
	mov	x0, x23
	mov	w1, #1
	bl	_XLogReadBufferForRedo
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_4:
	ldr	w0, [sp, #12]
	bl	_BufferGetPage
	mov	x24, x0
	ldr	w2, [sp, #16]
	ldr	w3, [x20, #8]
	mov	x1, x21
	bl	_addOrReplaceTuple
	mov	x0, x24
	mov	x1, x19
	bl	_PageSetLSN
	ldr	w0, [sp, #12]
	bl	_MarkBufferDirty
LBB0_5:
	ldr	w0, [sp, #12]
	bl	_BufferIsValid
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [sp, #12]
	bl	_UnlockReleaseBuffer
LBB0_7:
	add	x2, sp, #12
	mov	x0, x23
	mov	w1, #0
	bl	_XLogReadBufferForRedo
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.8:
	ldr	w0, [sp, #12]
	bl	_BufferGetPage
	mov	x23, x0
	ldr	x1, [x20]
	bl	_PageIndexTupleDelete
	ldr	w2, [sp, #24]
	ldr	x3, [x20]
	mov	x0, x23
	mov	x1, x22
	mov	w4, #0
	mov	w5, #0
	bl	_PageAddItem
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.9:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w2, [sp, #24]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_10:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w2, [sp, #16]
	ldr	w3, [x20, #8]
	mov	x0, x23
	mov	x1, x21
	bl	_addOrReplaceTuple
LBB0_12:
	mov	x0, x23
	mov	x1, x19
	bl	_PageSetLSN
	ldr	w0, [sp, #12]
	bl	_MarkBufferDirty
LBB0_13:
	ldr	w0, [sp, #12]
	bl	_BufferIsValid
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w0, [sp, #12]
	bl	_UnlockReleaseBuffer
LBB0_15:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_NEEDS_REDO,8,3             ; @BLK_NEEDS_REDO
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add item of size %u to SPGiST index page"

	.no_dead_strip	_spgRedoSplitTuple
.subsections_via_symbols
