	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gistfixsplit
_gistfixsplit:                          ## @gistfixsplit
	.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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rdi), %edi
	callq	_RelationGetRelationName
	movl	12(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_elog
	movl	8(%rbx), %edi
	callq	_GistFollowRight
	movq	%rax, %rdi
	callq	_Assert
	movl	4(%rbx), %edi
	callq	_OffsetNumberIsValid
	movq	%rax, %rdi
	callq	_Assert
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$8, %edi
	callq	_palloc
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_BufferGetPage
	movl	%eax, %r14d
	movl	(%r12), %edi
	movl	%ebx, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_gistformdownlink
	movl	%ebx, 4(%r15)
	movl	%eax, (%r15)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_lappend
	movq	%rax, %r13
	movl	%r14d, %edi
	callq	_GistFollowRight
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %ebx
	movl	%r14d, %edi
	callq	_GistPageGetOpaque
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_ReadBuffer
	movl	%eax, %ebx
	movq	_GIST_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_LockBuffer
	jmp	LBB0_1
LBB0_3:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gistfinishsplit                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fixing incomplete split in index \"%s\", block %u"

	.comm	_GIST_EXCLUSIVE,4,2             ## @GIST_EXCLUSIVE
	.no_dead_strip	_gistfixsplit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gistfixsplit
_gistfixsplit:                          ; @gistfixsplit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
	ldr	x21, [x0, #8]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x8, _LOG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	ldr	w0, [x0]
	bl	_RelationGetRelationName
	mov	x2, x0
	ldr	w3, [x21, #12]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_elog
	ldr	w0, [x21, #8]
	bl	_GistFollowRight
	bl	_Assert
	ldr	w0, [x21, #4]
	bl	_OffsetNumberIsValid
	bl	_Assert
	ldr	w23, [x21]
Lloh8:
	adrp	x26, _GIST_EXCLUSIVE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _GIST_EXCLUSIVE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #8
	bl	_palloc
	mov	x25, x0
	mov	x0, x23
	bl	_BufferGetPage
	mov	x24, x0
	ldr	w0, [x20]
	mov	x1, x23
	mov	x2, x19
	mov	x3, x21
	bl	_gistformdownlink
	stp	w0, w23, [x25]
	mov	x0, x22
	mov	x1, x25
	bl	_lappend
	mov	x22, x0
	mov	x0, x24
	bl	_GistFollowRight
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w23, [x20]
	mov	x0, x24
	bl	_GistPageGetOpaque
	ldr	w1, [x0]
	mov	x0, x23
	bl	_ReadBuffer
	mov	x23, x0
	ldr	w1, [x26]
	bl	_LockBuffer
	b	LBB0_1
LBB0_3:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x22
	mov	w4, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_gistfinishsplit
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fixing incomplete split in index \"%s\", block %u"

	.comm	_GIST_EXCLUSIVE,4,2             ; @GIST_EXCLUSIVE
	.no_dead_strip	_gistfixsplit
.subsections_via_symbols
