	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkSplitConditions
_checkSplitConditions:                  ## @checkSplitConditions
	.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	%rcx, %rbx
	movq	%rdx, %r13
	movl	8(%rdx), %edi
	callq	_SpGistBlockIsRoot
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	(%rax), %r15d
	jmp	LBB0_14
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %r14d
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, %r15d
	cmpl	(%rax), %r14d
	jne	LBB0_3
LBB0_13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
LBB0_14:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movl	16(%r12), %eax
	addl	%eax, %r15d
	addl	$4, %r15d
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r12), %r14d
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r13), %edi
	callq	_PageGetMaxOffsetNumber
	cmpl	%eax, %r14d
	setle	%al
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%al, %edi
	callq	_Assert
	movl	4(%r13), %ebx
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_PageGetItemId
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %r12
	movq	(%rax), %rdx
	movq	_SPGIST_LIVE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_SPGIST_DEAD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	cmpl	(%r13), %r14d
	sete	%dil
	callq	_Assert
	movl	8(%r12), %eax
	xorl	%edi, %edi
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_Assert
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_InvalidOffsetNumber,4,2        ## @InvalidOffsetNumber
	.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"

	.no_dead_strip	_checkSplitConditions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkSplitConditions
_checkSplitConditions:                  ; @checkSplitConditions
	.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
	mov	x19, x3
	mov	x20, x2
	ldr	w0, [x2, #8]
	bl	_SpGistBlockIsRoot
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x19]
	ldr	w21, [x8]
	b	LBB0_5
LBB0_2:
	ldr	w23, [x20]
Lloh2:
	adrp	x26, _InvalidOffsetNumber@GOTPAGE
Lloh3:
	ldr	x26, [x26, _InvalidOffsetNumber@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w23, w8
	b.ne	LBB0_6
; %bb.3:
	mov	w25, #0
	mov	w21, #0
LBB0_4:
	str	w25, [x19]
LBB0_5:
	mov	x0, x21
	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_6:
	mov	w21, #0
	mov	w25, #0
Lloh4:
	adrp	x27, _FirstOffsetNumber@GOTPAGE
Lloh5:
	ldr	x27, [x27, _FirstOffsetNumber@GOTPAGEOFF]
Lloh6:
	adrp	x28, _SPGIST_LIVE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _SPGIST_LIVE@GOTPAGEOFF]
Lloh8:
	adrp	x22, _SPGIST_DEAD@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SPGIST_DEAD@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w25, w25, #1
	ldr	w8, [x24, #16]
	add	w8, w21, w8
	add	w21, w8, #4
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w23, [x24, #8]
	ldr	w8, [x26]
	cmp	w23, w8
	b.eq	LBB0_4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	cmp	w23, w8
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x20, #4]
	bl	_PageGetMaxOffsetNumber
	cmp	w23, w0
	cset	w0, le
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	bl	_Assert
	ldr	w24, [x20, #4]
	mov	x0, x24
	mov	x1, x23
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x24
	bl	_PageGetItem
	mov	x24, x0
	ldr	x2, [x0]
	ldr	x8, [x28]
	cmp	x2, x8
	b.eq	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x22]
	cmp	x2, x8
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x20]
	cmp	w23, w8
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x24, #8]
	ldr	w9, [x26]
	cmp	w8, w9
	cset	w0, eq
	bl	_Assert
	b	LBB0_8
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_InvalidOffsetNumber,4,2        ; @InvalidOffsetNumber
	.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"

	.no_dead_strip	_checkSplitConditions
.subsections_via_symbols
