	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spgRedoMoveLeafs
_spgRedoMoveLeafs:                      ## @spgRedoMoveLeafs
	.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, -52(%rbp)                 ## 4-byte Spill
	callq	_XLogRecGetData
	movq	%rax, %r12
	xorl	%ebx, %ebx
	movl	$1, %r14d
	leaq	-56(%rbp), %r8
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_XLogRecGetBlockTag
	movl	40(%r12), %esi
	leaq	-80(%rbp), %rdi
	callq	_fillFakeState
	movslq	(%r12), %rax
	leal	1(%rax), %r13d
	cmpq	$0, 32(%r12)
	cmovnel	%r14d, %r13d
	movq	_SizeOfSpgxlogMoveLeafs@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%r12, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movslq	%r13d, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, 24(%r12)
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_XLogInitBufferForRedo
	movl	%eax, -44(%rbp)
	movq	_SPGIST_LEAF@GOTPCREL(%rip), %rcx
	cmpq	$0, 16(%r12)
	je	LBB0_3
## %bb.2:
	movq	_SPGIST_NULLS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_3:
	orl	(%rcx), %ebx
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_SpGistInitBuffer
	jmp	LBB0_5
LBB0_4:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_XLogReadBufferForRedo
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_9
LBB0_5:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edi
	callq	_BufferGetPage
	movl	%eax, %ebx
	testl	%r13d, %r13d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_8
## %bb.6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r12,%rax,4), %r14
	movl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	-48(%rbp), %edx
	movl	(%r12,%r15,4), %ecx
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_addOrReplaceTuple
	movslq	-48(%rbp), %rax
	addq	%rax, %r14
	incq	%r15
	cmpq	%r15, %r13
	jne	LBB0_7
LBB0_8:
	movl	%ebx, %edi
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	callq	_PageSetLSN
	movl	-44(%rbp), %edi
	callq	_MarkBufferDirty
	movq	-96(%rbp), %r12                 ## 8-byte Reload
LBB0_9:
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	-44(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_11:
	leaq	-44(%rbp), %rdx
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_XLogReadBufferForRedo
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_15
## %bb.12:
	movl	-44(%rbp), %edi
	callq	_BufferGetPage
	movl	%eax, %ebx
	movl	(%r12), %ecx
	cmpq	$0, -80(%rbp)
	movq	_SPGIST_PLACEHOLDER@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r9d, %r8d
	jne	LBB0_14
## %bb.13:
	movq	_SPGIST_REDIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_14:
	movl	-56(%rbp), %r10d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-4(%rdx,%rax,4), %eax
	leaq	-80(%rbp), %rdi
	movl	%ebx, %esi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	pushq	%rax
	pushq	%r10
	callq	_spgPageIndexMultiDelete
	addq	$16, %rsp
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_PageSetLSN
	movl	-44(%rbp), %edi
	callq	_MarkBufferDirty
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %rbx
LBB0_15:
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	-44(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_17:
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_XLogReadBufferForRedo
	cmpq	(%rbx), %rax
	jne	LBB0_19
## %bb.18:
	movl	-44(%rbp), %edi
	callq	_BufferGetPage
	movl	%eax, %r14d
	movl	8(%r12), %esi
	movl	%eax, %edi
	callq	_PageGetItemId
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movl	4(%r12), %esi
	movl	-56(%rbp), %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-4(%rdi,%rcx,4), %ecx
	movq	%rax, %rdi
	callq	_spgUpdateNodeLink
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_PageSetLSN
	movl	-44(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_19:
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movl	-44(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_21:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SizeOfSpgxlogMoveLeafs,4,2     ## @SizeOfSpgxlogMoveLeafs
	.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_PLACEHOLDER,4,2         ## @SPGIST_PLACEHOLDER
	.comm	_SPGIST_REDIRECT,4,2            ## @SPGIST_REDIRECT
	.no_dead_strip	_spgRedoMoveLeafs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spgRedoMoveLeafs
_spgRedoMoveLeafs:                      ; @spgRedoMoveLeafs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	w22, #1
	add	x4, sp, #16
	mov	x0, x21
	mov	w1, #1
	mov	x2, #0
	mov	x3, #0
	bl	_XLogRecGetBlockTag
	ldr	w1, [x20, #40]
	add	x0, sp, #24
	bl	_fillFakeState
	ldrsw	x8, [x20]
	ldp	x10, x9, [x20, #24]
	cmp	x9, #0
	csinc	w27, w22, w8, ne
Lloh0:
	adrp	x9, _SizeOfSpgxlogMoveLeafs@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SizeOfSpgxlogMoveLeafs@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	add	x22, x20, x9
	add	x28, x22, x8, lsl #2
	add	x25, x28, w27, sxtw #2
Lloh3:
	adrp	x26, _BLK_NEEDS_REDO@GOTPAGE
Lloh4:
	ldr	x26, [x26, _BLK_NEEDS_REDO@GOTPAGEOFF]
	cbz	x10, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	w1, #1
	bl	_XLogInitBufferForRedo
	str	w0, [sp, #20]
Lloh5:
	adrp	x8, _SPGIST_LEAF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPGIST_LEAF@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x20, #16]
Lloh8:
	adrp	x10, _SPGIST_NULLS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SPGIST_NULLS@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w1, w9, w8
	bl	_SpGistInitBuffer
	b	LBB0_3
LBB0_2:
	add	x2, sp, #20
	mov	x0, x21
	mov	w1, #1
	bl	_XLogReadBufferForRedo
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_7
LBB0_3:
	ldr	w0, [sp, #20]
	bl	_BufferGetPage
	mov	x23, x0
	cmp	w27, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x24, x25
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x24
	mov	w2, #4
	bl	_memcpy
	ldr	w2, [sp, #8]
	ldr	w3, [x28], #4
	mov	x0, x23
	mov	x1, x24
	bl	_addOrReplaceTuple
	ldrsw	x8, [sp, #8]
	add	x24, x24, x8
	subs	x27, x27, #1
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x23
	mov	x1, x19
	bl	_PageSetLSN
	ldr	w0, [sp, #20]
	bl	_MarkBufferDirty
LBB0_7:
	ldr	w0, [sp, #20]
	bl	_BufferIsValid
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [sp, #20]
	bl	_UnlockReleaseBuffer
LBB0_9:
	add	x2, sp, #20
	mov	x0, x21
	mov	w1, #0
	bl	_XLogReadBufferForRedo
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	ldr	w0, [sp, #20]
	bl	_BufferGetPage
	mov	x23, x0
	ldr	w3, [x20]
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, _SPGIST_PLACEHOLDER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SPGIST_PLACEHOLDER@GOTPAGEOFF]
Lloh13:
	adrp	x10, _SPGIST_REDIRECT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _SPGIST_REDIRECT@GOTPAGEOFF]
Lloh15:
	ldr	w5, [x9]
Lloh16:
	ldr	w9, [x10]
	cmp	x8, #0
	csel	w4, w9, w5, eq
	ldr	w6, [sp, #16]
	ldur	w7, [x25, #-4]
	add	x0, sp, #24
	mov	x1, x23
	mov	x2, x22
	bl	_spgPageIndexMultiDelete
	mov	x0, x23
	mov	x1, x19
	bl	_PageSetLSN
	ldr	w0, [sp, #20]
	bl	_MarkBufferDirty
LBB0_11:
	ldr	w0, [sp, #20]
	bl	_BufferIsValid
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w0, [sp, #20]
	bl	_UnlockReleaseBuffer
LBB0_13:
	add	x2, sp, #20
	mov	x0, x21
	mov	w1, #2
	bl	_XLogReadBufferForRedo
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.14:
	ldr	w0, [sp, #20]
	bl	_BufferGetPage
	mov	x21, x0
	ldr	w1, [x20, #8]
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x21
	bl	_PageGetItem
	ldr	w1, [x20, #4]
	ldr	w2, [sp, #16]
	ldur	w3, [x25, #-4]
	bl	_spgUpdateNodeLink
	mov	x0, x21
	mov	x1, x19
	bl	_PageSetLSN
	ldr	w0, [sp, #20]
	bl	_MarkBufferDirty
LBB0_15:
	ldr	w0, [sp, #20]
	bl	_BufferIsValid
	cbz	x0, LBB0_17
; %bb.16:
	ldr	w0, [sp, #20]
	bl	_UnlockReleaseBuffer
LBB0_17:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SizeOfSpgxlogMoveLeafs,4,2     ; @SizeOfSpgxlogMoveLeafs
	.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_PLACEHOLDER,4,2         ; @SPGIST_PLACEHOLDER
	.comm	_SPGIST_REDIRECT,4,2            ; @SPGIST_REDIRECT
	.no_dead_strip	_spgRedoMoveLeafs
.subsections_via_symbols
