	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gistfinishsplit
_gistfinishsplit:                       ## @gistfinishsplit
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rcx, %rdi
	callq	_list_length
	xorl	%edi, %edi
	cmpl	$2, %eax
	setge	%dil
	callq	_Assert
	movq	16(%r12), %rax
	movl	(%rax), %edi
	movq	_GIST_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_gistFindCorrectParent
	movq	%rbx, %rdi
	callq	_list_length
	cmpl	$3, %eax
	jl	LBB0_5
## %bb.1:
	movl	%eax, %r14d
	incl	%r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	decl	%r14d
	cmpl	$3, %r14d
	jbe	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%r14), %esi
	movq	%rbx, %rdi
	callq	_list_nth
	movq	%rax, %r15
	leal	-3(%r14), %esi
	movq	%rbx, %rdi
	callq	_list_nth
	movq	16(%r12), %rsi
	leaq	8(%r15), %rcx
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r13, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	$1, %r8d
	pushq	$0
	pushq	$0
	pushq	(%r15)
	pushq	(%rax)
	callq	_gistinserttuples
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_gistFindCorrectParent
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	callq	_lsecond
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_linitial
	movq	%rax, %rbx
	movl	8(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -52(%rbp)
	movq	16(%r12), %rsi
	movl	12(%r12), %r9d
	leaq	-56(%rbp), %rcx
	movq	%r13, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	$2, %r8d
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	$1
	pushq	(%r14)
	pushq	(%rbx)
	callq	_gistinserttuples
	addq	$32, %rsp
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	sete	%dil
	callq	_Assert
	movl	$1, 8(%r12)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GIST_EXCLUSIVE,4,2             ## @GIST_EXCLUSIVE
	.comm	_InvalidOffsetNumber,4,2        ## @InvalidOffsetNumber
	.no_dead_strip	_gistfinishsplit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gistfinishsplit
_gistfinishsplit:                       ; @gistfinishsplit
	.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	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	x0, x3
	bl	_list_length
	cmp	w0, #1
	cset	w0, gt
	bl	_Assert
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _GIST_EXCLUSIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GIST_EXCLUSIVE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_LockBuffer
	ldr	w0, [x21]
	mov	x1, x19
	bl	_gistFindCorrectParent
	mov	x0, x23
	bl	_list_length
	cmp	w0, #3
	b.lt	LBB0_5
; %bb.1:
	add	w25, w0, #1
Lloh6:
	adrp	x26, _InvalidOffsetNumber@GOTPAGE
Lloh7:
	ldr	x26, [x26, _InvalidOffsetNumber@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w25, w25, #1
	cmp	w25, #3
	b.ls	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w1, w25, #2
	mov	x0, x23
	bl	_list_nth
	mov	x24, x0
	sub	w1, w25, #3
	mov	x0, x23
	bl	_list_nth
	ldr	x1, [x19, #16]
	ldr	w5, [x26]
	ldr	x6, [x0]
	ldr	x7, [x24], #8
	str	xzr, [sp]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x24
	mov	w4, #1
	bl	_gistinserttuples
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21]
	mov	x1, x19
	bl	_gistFindCorrectParent
	b	LBB0_2
LBB0_5:
	mov	x0, x23
	bl	_lsecond
	mov	x24, x0
	mov	x0, x23
	bl	_linitial
	mov	x23, x0
	ldr	w8, [x0, #8]
	ldr	w9, [x24, #8]
	stp	w8, w9, [sp, #16]
	ldr	x1, [x19, #16]
	ldr	w5, [x19, #12]
	ldr	x6, [x0]
	ldr	x7, [x24]
	mov	w24, #1
	stp	w24, w22, [sp]
	add	x3, sp, #16
	mov	x0, x21
	mov	x2, x20
	mov	w4, #2
	bl	_gistinserttuples
	ldr	x8, [x23]
	ldr	x9, [x19]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	str	w24, [x19, #8]
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GIST_EXCLUSIVE,4,2             ; @GIST_EXCLUSIVE
	.comm	_InvalidOffsetNumber,4,2        ; @InvalidOffsetNumber
	.no_dead_strip	_gistfinishsplit
.subsections_via_symbols
