	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moveLeafs
_moveLeafs:                             ## @moveLeafs
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -84(%rbp)                 ## 4-byte Spill
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movl	%edi, -88(%rbp)                 ## 4-byte Spill
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, -92(%rbp)
	movq	(%rcx), %rax
	movq	_InvalidBuffer@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_Assert
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	(%r12), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setne	%dil
	callq	_Assert
	movl	24(%rbx), %edi
	callq	_PageGetMaxOffsetNumber
	movl	%eax, %r12d
	leal	(,%r12,4), %edi
	callq	_palloc
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leal	4(,%r12,4), %edi
	callq	_palloc
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%r15, -144(%rbp)                ## 8-byte Spill
	movl	(%r15), %eax
	addl	$4, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_9
## %bb.1:
	xorl	%r15d, %r15d
LBB0_2:
	movq	_GBUF_LEAF@GOTPCREL(%rip), %rax
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %esi
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:
	movq	_GBUF_NULLS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_4:
	orl	(%rax), %esi
	leaq	-160(%rbp), %rcx
	movl	-88(%rbp), %edi                 ## 4-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_SpGistGetBuffer
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_BufferGetPage
	movl	%eax, %r12d
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_BufferGetBlockNumber
	movq	%rax, %rcx
	xorl	%edi, %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, -192(%rbp)                ## 8-byte Spill
	cmpq	16(%rax), %rcx
	setne	%dil
	callq	_Assert
	movl	%r13d, %edi
	callq	_palloc
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	movq	%rbx, -184(%rbp)                ## 8-byte Spill
	jne	LBB0_20
## %bb.5:
	testl	%r15d, %r15d
	jle	LBB0_20
## %bb.6:
	movl	%r15d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %ebx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %esi
	movl	%ebx, %edi
	callq	_PageGetItemId
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %rbx
	movq	8(%rax), %rax
	xorl	%edi, %edi
	movq	_SPGIST_LIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movl	%r14d, 16(%rbx)
	movl	(%rbx), %ecx
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movl	%r12d, %esi
	movl	%ebx, %edx
	leaq	-92(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_SpGistPageAddNewItem
	movl	%eax, %r14d
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	%r14d, (%rax,%r15,4)
	incq	%r15
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	movslq	(%rbx), %rbx
	addq	%r13, %rbx
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_7
## %bb.8:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %r13d
	jmp	LBB0_21
LBB0_9:
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=1
	movslq	%r15d, %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, (%rcx,%rax,4)
	movl	(%r12), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, %ecx
	addl	$4, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	incl	%r15d
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	16(%r12), %r13d
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_2
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	24(%rbx), %edi
	callq	_PageGetMaxOffsetNumber
	cmpl	%eax, %r13d
	setle	%al
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movzbl	%al, %edi
	callq	_Assert
	movl	24(%rbx), %ebx
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_PageGetItemId
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %r12
	movq	8(%rax), %rdx
	movq	_SPGIST_LIVE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_10
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_SPGIST_DEAD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%edi, %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	8(%rax), %r13d
	sete	%dil
	callq	_Assert
	movl	16(%r12), %eax
	xorl	%edi, %edi
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_Assert
	movslq	%r15d, %r15
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax,%r15,4)
	incl	%r15d
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	jmp	LBB0_11
LBB0_20:
	xorl	%r13d, %r13d
LBB0_21:
	movq	-144(%rbp), %r15                ## 8-byte Reload
	movl	%r14d, 16(%r15)
	movl	(%r15), %ecx
	leaq	-92(%rbp), %r8
	movq	-128(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	xorl	%r9d, %r9d
	callq	_SpGistPageAddNewItem
	movl	%eax, %r14d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movl	%r14d, (%rcx,%rax,4)
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_memcpy
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %esi
	cmpq	$0, (%r12)
	movq	_SPGIST_PLACEHOLDER@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r9d, %r8d
	jne	LBB0_23
## %bb.22:
	movq	_SPGIST_REDIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_23:
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movslq	(%rax), %r15
	movq	%r12, %rdi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	pushq	%r14
	movq	-192(%rbp), %r12                ## 8-byte Reload
	pushq	%r12
	callq	_spgPageIndexMultiDelete
	addq	$16, %rsp
	movl	-88(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	%r12, %rdx
	movl	%r14d, %ecx
	callq	_saveNodeLink
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_MarkBufferDirty
	movq	-136(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	callq	_MarkBufferDirty
	movl	%r13d, %edi
	callq	_RelationNeedsWAL
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_28
## %bb.24:
	cmpq	$0, (%rdi)
	jne	LBB0_28
## %bb.25:
	addq	%r15, %rbx
	movl	-148(%rbp), %esi
	callq	_STORE_STATE
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movl	%r15d, -176(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -172(%rbp)
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -168(%rbp)
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	8(%rcx), %eax
	movl	%eax, -164(%rbp)
	movl	28(%rcx), %eax
	movl	%eax, -152(%rbp)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movq	_SizeOfSpgxlogMoveLeafs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-176(%rbp), %rdi
	callq	_XLogRegisterData
	shll	$2, %r15d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_XLogRegisterData
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	4(,%rax,4), %esi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_XLogRegisterData
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	subl	%edi, %ebx
	movl	%ebx, %esi
	callq	_XLogRegisterData
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rsi
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%edi, %edi
	callq	_XLogRegisterBuffer
	cmpq	$0, -160(%rbp)
	je	LBB0_27
## %bb.26:
	movq	_REGBUF_WILL_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_27:
	orl	(%rbx), %r14d
	movl	$1, %edi
	movq	-136(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_XLogRegisterBuffer
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	(%r14), %rsi
	movl	(%rbx), %edx
	movl	$2, %edi
	callq	_XLogRegisterBuffer
	movq	_RM_SPGIST_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_SPGIST_MOVE_LEAFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	movl	%eax, %ebx
	movl	24(%r12), %edi
	movl	%eax, %esi
	callq	_PageSetLSN
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_PageSetLSN
	movl	24(%r14), %edi
	movq	%r15, %r14
	movl	%ebx, %esi
	callq	_PageSetLSN
LBB0_28:
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	movl	%r13d, %edi
	movq	%r14, %rsi
	callq	_SpGistSetLastUsedPage
	movq	%r14, %rdi
	callq	_UnlockReleaseBuffer
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidOffsetNumber,4,2        ## @InvalidOffsetNumber
	.comm	_InvalidBuffer,8,3              ## @InvalidBuffer
	.comm	_FirstOffsetNumber,4,2          ## @FirstOffsetNumber
	.comm	_SPGIST_LIVE,8,3                ## @SPGIST_LIVE
	.comm	_SPGIST_DEAD,8,3                ## @SPGIST_DEAD
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected SPGiST tuple state: %d"

	.comm	_GBUF_LEAF,4,2                  ## @GBUF_LEAF
	.comm	_GBUF_NULLS,4,2                 ## @GBUF_NULLS
	.comm	_SPGIST_PLACEHOLDER,4,2         ## @SPGIST_PLACEHOLDER
	.comm	_SPGIST_REDIRECT,4,2            ## @SPGIST_REDIRECT
	.comm	_SizeOfSpgxlogMoveLeafs,4,2     ## @SizeOfSpgxlogMoveLeafs
	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_REGBUF_WILL_INIT,4,2           ## @REGBUF_WILL_INIT
	.comm	_RM_SPGIST_ID,4,2               ## @RM_SPGIST_ID
	.comm	_XLOG_SPGIST_MOVE_LEAFS,4,2     ## @XLOG_SPGIST_MOVE_LEAFS
	.no_dead_strip	_moveLeafs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moveLeafs
_moveLeafs:                             ; @moveLeafs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	str	w5, [sp, #76]                   ; 4-byte Folded Spill
	mov	x22, x4
	mov	x19, x3
	mov	x21, x2
	str	x1, [sp, #80]                   ; 8-byte Folded Spill
	mov	x23, x0
Lloh0:
	adrp	x20, _InvalidOffsetNumber@GOTPAGE
Lloh1:
	ldr	x20, [x20, _InvalidOffsetNumber@GOTPAGEOFF]
	ldr	w28, [x20]
	stur	w28, [x29, #-84]
	ldr	x8, [x3]
Lloh2:
	adrp	x9, _InvalidBuffer@GOTPAGE
Lloh3:
	ldr	x9, [x9, _InvalidBuffer@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_Assert
	str	x19, [sp, #32]                  ; 8-byte Folded Spill
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, ne
	bl	_Assert
	ldr	w0, [x21, #24]
	bl	_PageGetMaxOffsetNumber
	lsl	w19, w0, #2
	mov	x0, x19
	bl	_palloc
	mov	x27, x0
	add	w0, w19, #4
	bl	_palloc
	str	x0, [sp, #88]                   ; 8-byte Folded Spill
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	ldr	w8, [x22]
	add	w19, w8, #4
	ldr	w22, [x21, #8]
	ldr	w8, [x20]
	cmp	w22, w8
	b.ne	LBB0_7
; %bb.1:
	str	wzr, [sp, #100]                 ; 4-byte Folded Spill
	mov	w26, #0
LBB0_2:
Lloh5:
	adrp	x8, _GBUF_LEAF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GBUF_LEAF@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _GBUF_NULLS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GBUF_NULLS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	w10, [sp, #76]                  ; 4-byte Folded Reload
	cmp	w10, #0
	csel	w9, wzr, w9, eq
	orr	w1, w9, w8
	add	x8, sp, #104
	add	x3, x8, #16
	mov	x0, x23
	mov	x2, x19
	bl	_SpGistGetBuffer
	mov	x20, x0
	bl	_BufferGetPage
	str	w0, [sp, #60]                   ; 4-byte Folded Spill
	mov	x0, x20
	bl	_BufferGetBlockNumber
	mov	x22, x0
	ldr	x8, [x21, #16]
	cmp	x0, x8
	cset	w0, ne
	bl	_Assert
	mov	x0, x19
	bl	_palloc
	mov	x19, x0
	bl	_START_CRIT_SECTION
	mov	w24, #0
	ldr	w8, [sp, #100]                  ; 4-byte Folded Reload
	str	x27, [sp, #64]                  ; 8-byte Folded Spill
	stp	x22, x20, [sp, #40]             ; 16-byte Folded Spill
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	cbnz	w8, LBB0_17
; %bb.3:
	cmp	w26, #1
	b.lt	LBB0_17
; %bb.4:
	stp	w26, w23, [sp, #8]              ; 8-byte Folded Spill
	mov	x24, x27
	ldp	x27, x20, [sp, #80]             ; 16-byte Folded Reload
	mov	w23, w26
	mov	x26, x21
	ldr	w21, [sp, #60]                  ; 4-byte Folded Reload
Lloh11:
	adrp	x25, _SPGIST_LIVE@GOTPAGE
Lloh12:
	ldr	x25, [x25, _SPGIST_LIVE@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x26, #24]
	ldr	w1, [x24], #4
	mov	x0, x22
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x22
	bl	_PageGetItem
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	str	w28, [x22, #16]
	ldr	w3, [x22]
	sub	x4, x29, #84
	mov	x0, x27
	mov	x1, x21
	mov	x2, x22
	mov	w5, #0
	bl	_SpGistPageAddNewItem
	mov	x28, x0
	str	w0, [x20], #4
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x22
	bl	_memcpy
	ldrsw	x8, [x22]
	add	x19, x19, x8
	subs	x23, x23, #1
	b.ne	LBB0_5
; %bb.6:
	ldp	w8, w25, [sp, #8]               ; 8-byte Folded Reload
	mov	x24, x8
	ldp	x20, x27, [sp, #24]             ; 16-byte Folded Reload
	mov	x1, x21
	mov	x21, x26
	mov	x26, x8
	b	LBB0_18
LBB0_7:
	mov	w26, #0
	str	wzr, [sp, #100]                 ; 4-byte Folded Spill
Lloh13:
	adrp	x24, _FirstOffsetNumber@GOTPAGE
Lloh14:
	ldr	x24, [x24, _FirstOffsetNumber@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	w22, [x27, w26, sxtw #2]
	ldr	w8, [x25]
	add	w8, w19, w8
	add	w19, w8, #4
	add	w26, w26, #1
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w22, [x25, #16]
	ldr	w8, [x20]
	cmp	w22, w8
	b.eq	LBB0_2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	cmp	w22, w8
	b.ge	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x21, #24]
	bl	_PageGetMaxOffsetNumber
	cmp	w22, w0
	cset	w0, le
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	bl	_Assert
	ldr	w25, [x21, #24]
	mov	x0, x25
	mov	x1, x22
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x25
	bl	_PageGetItem
	mov	x25, x0
	ldr	x2, [x0, #8]
Lloh15:
	adrp	x8, _SPGIST_LIVE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SPGIST_LIVE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x2, x8
	b.eq	LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
Lloh18:
	adrp	x8, _SPGIST_DEAD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SPGIST_DEAD@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x21, #8]
	cmp	w22, w8
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x25, #16]
	ldr	w9, [x20]
	cmp	w8, w9
	cset	w0, eq
	bl	_Assert
	str	w22, [x27, w26, sxtw #2]
	add	w26, w26, #1
	mov	w8, #1
	str	w8, [sp, #100]                  ; 4-byte Folded Spill
	b	LBB0_9
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
Lloh21:
	adrp	x8, _ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	b	LBB0_9
LBB0_17:
	ldp	x20, x27, [sp, #24]             ; 16-byte Folded Reload
	mov	x25, x23
	ldr	w1, [sp, #60]                   ; 4-byte Folded Reload
LBB0_18:
	str	w28, [x20, #16]
	ldr	w3, [x20]
	sub	x4, x29, #84
	ldr	x28, [sp, #80]                  ; 8-byte Folded Reload
	mov	x0, x28
	mov	x2, x20
	mov	w5, #0
	bl	_SpGistPageAddNewItem
	mov	x22, x0
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	str	w0, [x8, w24, uxtw #2]
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_memcpy
	ldrsw	x20, [x20]
	ldr	w1, [x21, #24]
	ldr	x8, [x28]
Lloh26:
	adrp	x9, _SPGIST_PLACEHOLDER@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SPGIST_PLACEHOLDER@GOTPAGEOFF]
Lloh28:
	ldr	w5, [x9]
Lloh29:
	adrp	x9, _SPGIST_REDIRECT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SPGIST_REDIRECT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w4, w9, w5, eq
	mov	x0, x28
	ldr	x2, [sp, #64]                   ; 8-byte Folded Reload
	mov	x3, x26
	ldr	x23, [sp, #40]                  ; 8-byte Folded Reload
	mov	x6, x23
	mov	x7, x22
	bl	_spgPageIndexMultiDelete
	mov	x0, x25
	mov	x1, x27
	mov	x2, x23
	mov	x3, x22
	bl	_saveNodeLink
	ldr	x0, [x21]
	bl	_MarkBufferDirty
	ldr	x22, [sp, #48]                  ; 8-byte Folded Reload
	mov	x0, x22
	bl	_MarkBufferDirty
	mov	x0, x25
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_21
; %bb.19:
	ldr	x8, [x28]
	cbnz	x8, LBB0_21
; %bb.20:
	add	x19, x19, x20
	ldr	w1, [sp, #132]
	mov	x0, x28
	bl	_STORE_STATE
	ldr	w8, [sp, #100]                  ; 4-byte Folded Reload
	stp	w26, w8, [sp, #104]
	ldr	w8, [x27, #8]
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	stp	w9, w8, [sp, #112]
	ldr	w8, [x27, #28]
	str	w8, [sp, #128]
	bl	_XLogBeginInsert
Lloh32:
	adrp	x8, _SizeOfSpgxlogMoveLeafs@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SizeOfSpgxlogMoveLeafs@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	add	x0, sp, #104
	bl	_XLogRegisterData
	lsl	w1, w26, #2
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
	bl	_XLogRegisterData
	lsl	w8, w24, #2
	add	w1, w8, #4
	ldr	x0, [sp, #88]                   ; 8-byte Folded Reload
	bl	_XLogRegisterData
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	sub	w1, w19, w0
	bl	_XLogRegisterData
	ldr	x1, [x21]
Lloh35:
	adrp	x19, _REGBUF_STANDARD@GOTPAGE
Lloh36:
	ldr	x19, [x19, _REGBUF_STANDARD@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	w0, #0
	bl	_XLogRegisterBuffer
	ldr	w8, [x19]
	ldr	x9, [sp, #120]
Lloh37:
	adrp	x10, _REGBUF_WILL_INIT@GOTPAGE
Lloh38:
	ldr	x10, [x10, _REGBUF_WILL_INIT@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w2, w9, w8
	mov	w0, #1
	mov	x1, x22
	bl	_XLogRegisterBuffer
	ldr	x1, [x27]
	ldr	w2, [x19]
	mov	w0, #2
	bl	_XLogRegisterBuffer
Lloh40:
	adrp	x8, _RM_SPGIST_ID@GOTPAGE
Lloh41:
	ldr	x8, [x8, _RM_SPGIST_ID@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x8, _XLOG_SPGIST_MOVE_LEAFS@GOTPAGE
Lloh44:
	ldr	x8, [x8, _XLOG_SPGIST_MOVE_LEAFS@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	bl	_XLogInsert
	mov	x19, x0
	ldr	w0, [x21, #24]
	mov	x1, x19
	bl	_PageSetLSN
	ldr	w0, [sp, #60]                   ; 4-byte Folded Reload
	mov	x1, x19
	bl	_PageSetLSN
	ldr	w0, [x27, #24]
	mov	x1, x19
	bl	_PageSetLSN
LBB0_21:
	bl	_END_CRIT_SECTION
	mov	x0, x25
	mov	x1, x22
	bl	_SpGistSetLastUsedPage
	mov	x0, x22
	bl	_UnlockReleaseBuffer
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidOffsetNumber,4,2        ; @InvalidOffsetNumber
	.comm	_InvalidBuffer,8,3              ; @InvalidBuffer
	.comm	_FirstOffsetNumber,4,2          ; @FirstOffsetNumber
	.comm	_SPGIST_LIVE,8,3                ; @SPGIST_LIVE
	.comm	_SPGIST_DEAD,8,3                ; @SPGIST_DEAD
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected SPGiST tuple state: %d"

	.comm	_GBUF_LEAF,4,2                  ; @GBUF_LEAF
	.comm	_GBUF_NULLS,4,2                 ; @GBUF_NULLS
	.comm	_SPGIST_PLACEHOLDER,4,2         ; @SPGIST_PLACEHOLDER
	.comm	_SPGIST_REDIRECT,4,2            ; @SPGIST_REDIRECT
	.comm	_SizeOfSpgxlogMoveLeafs,4,2     ; @SizeOfSpgxlogMoveLeafs
	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_REGBUF_WILL_INIT,4,2           ; @REGBUF_WILL_INIT
	.comm	_RM_SPGIST_ID,4,2               ; @RM_SPGIST_ID
	.comm	_XLOG_SPGIST_MOVE_LEAFS,4,2     ; @XLOG_SPGIST_MOVE_LEAFS
	.no_dead_strip	_moveLeafs
.subsections_via_symbols
