	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spgPageIndexMultiDelete        ## -- Begin function spgPageIndexMultiDelete
	.p2align	4, 0x90
_spgPageIndexMultiDelete:               ## @spgPageIndexMultiDelete
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MaxIndexTuplesPerPage@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	testl	%r14d, %r14d
	je	LBB0_18
## %bb.1:
	leal	(,%r14,8), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_memcpy
	cmpl	$2, %r14d
	jl	LBB0_3
## %bb.2:
	movq	_cmpOffsetNumbers@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$8, %edx
	callq	_qsort
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_PageIndexMultiDelete
	jmp	LBB0_4
LBB0_3:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_PageIndexMultiDelete
	cmpl	$1, %r14d
	jne	LBB0_18
LBB0_4:
	movq	(%r15), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r14d, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_SpGistPageGetOpaque
	addq	$4, %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	(%rax)
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	cmpq	%r13, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_18
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r13,8), %r12
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	cmpq	-96(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-56(%rbp), %r15d                ## 4-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r15d, (%r14)
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	16(%rbp), %edx
	movq	24(%rbp), %rcx
	callq	_spgFormDeadTuple
	movq	%rax, %r14
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r14), %edx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_PageAddItem
	cmpq	%r12, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_SPGIST_REDIRECT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_SPGIST_PLACEHOLDER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_SpGistPageGetOpaque
	jmp	LBB0_16
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxIndexTuplesPerPage,4,2      ## @MaxIndexTuplesPerPage
	.comm	_cmpOffsetNumbers,4,2           ## @cmpOffsetNumbers
	.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"

	.comm	_SPGIST_REDIRECT,4,2            ## @SPGIST_REDIRECT
	.comm	_SPGIST_PLACEHOLDER,4,2         ## @SPGIST_PLACEHOLDER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spgPageIndexMultiDelete        ; -- Begin function spgPageIndexMultiDelete
	.p2align	2
_spgPageIndexMultiDelete:               ; @spgPageIndexMultiDelete
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	stur	x7, [x29, #-96]                 ; 8-byte Folded Spill
	stur	w6, [x29, #-100]                ; 4-byte Folded Spill
	mov	x21, x5
	mov	x22, x4
	mov	x26, x3
	mov	x28, x2
	mov	x23, x1
	stur	x0, [x29, #-112]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MaxIndexTuplesPerPage@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MaxIndexTuplesPerPage@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x25, x9, x8
	mov	sp, x25
	cbz	w3, LBB0_16
; %bb.1:
	lsl	w2, w26, #3
	mov	x0, x25
	mov	x1, x28
	bl	_memcpy
	cmp	w26, #2
	b.lt	LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _cmpOffsetNumbers@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cmpOffsetNumbers@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x25
	mov	x1, x26
	mov	w2, #8
	bl	_qsort
	mov	x0, x23
	mov	x1, x25
	mov	x2, x26
	bl	_PageIndexMultiDelete
	b	LBB0_4
LBB0_3:
	mov	x0, x23
	mov	x1, x25
	mov	x2, x26
	bl	_PageIndexMultiDelete
	cmp	w26, #1
	b.ne	LBB0_16
LBB0_4:
	mov	x27, #0
	ldr	x19, [x28]
	mov	w20, w26
Lloh11:
	adrp	x24, _SPGIST_REDIRECT@GOTPAGE
Lloh12:
	ldr	x24, [x24, _SPGIST_REDIRECT@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x23
	bl	_SpGistPageGetOpaque
	add	x0, x0, #4
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x25, #8
	subs	x20, x20, #1
	b.eq	LBB0_16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x25]
	cmp	x26, x19
	csel	w28, w22, w21, eq
	cbz	x27, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x27]
	cmp	w8, w28
	b.eq	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	x0, [x29, #-112]                ; 8-byte Folded Reload
	mov	x1, x28
	ldur	w2, [x29, #-100]                ; 4-byte Folded Reload
	ldur	x3, [x29, #-96]                 ; 8-byte Folded Reload
	bl	_spgFormDeadTuple
	mov	x27, x0
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x27, #4]
	mov	x0, x23
	mov	x1, x27
	mov	x3, x26
	mov	w4, #0
	mov	w5, #0
	bl	_PageAddItem
	cmp	x0, x26
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh13:
	adrp	x8, _ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w2, [x27, #4]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x24]
	cmp	w28, w8
	b.eq	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh18:
	adrp	x8, _SPGIST_PLACEHOLDER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SPGIST_PLACEHOLDER@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w28, w8
	b.ne	LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x23
	bl	_SpGistPageGetOpaque
	b	LBB0_6
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxIndexTuplesPerPage,4,2      ; @MaxIndexTuplesPerPage
	.comm	_cmpOffsetNumbers,4,2           ; @cmpOffsetNumbers
	.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"

	.comm	_SPGIST_REDIRECT,4,2            ; @SPGIST_REDIRECT
	.comm	_SPGIST_PLACEHOLDER,4,2         ; @SPGIST_PLACEHOLDER
.subsections_via_symbols
