	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gistfillbuffer                 ## -- Begin function gistfillbuffer
	.p2align	4, 0x90
_gistfillbuffer:                        ## @gistfillbuffer
	.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
	movl	%edx, %r14d
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, (%rax)
	jne	LBB0_5
## %bb.1:
	movl	%ebx, %edi
	callq	_PageIsEmpty
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_4
LBB0_3:
	movl	%ebx, %edi
	callq	_PageGetMaxOffsetNumber
	movl	%eax, %edi
	callq	_OffsetNumberNext
LBB0_4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_5:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.6:
	movl	%r14d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	%rbx, %r13
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx), %r15
	movq	(%r12,%rbx,8), %rdi
	callq	_IndexTupleSize
	movq	%rax, %r14
	movl	(%r12,%rbx,8), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%rax, %rdx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_PageAddItem
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	callq	_elog
	jmp	LBB0_9
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidOffsetNumber,8,3        ## @InvalidOffsetNumber
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add item to GiST index page, item %d out of %d, size %d bytes"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gistfillbuffer                 ; -- Begin function gistfillbuffer
	.p2align	2
_gistfillbuffer:                        ; @gistfillbuffer
	.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	x21, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x27, _InvalidOffsetNumber@GOTPAGE
Lloh1:
	ldr	x27, [x27, _InvalidOffsetNumber@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x8, x3
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_PageIsEmpty
	cbz	x0, LBB0_8
; %bb.2:
Lloh2:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh4:
	ldr	x21, [x8]
LBB0_3:
	cmp	w23, #1
	b.lt	LBB0_9
LBB0_4:
	mov	x22, #0
	mov	w23, w23
Lloh5:
	adrp	x24, l_.str@PAGE
Lloh6:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	cmp	x23, x22
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x26, x21, x22
	lsl	x28, x22, #3
	ldr	x0, [x19, x28]
	bl	_IndexTupleSize
	mov	x25, x0
	ldr	x1, [x19, x28]
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x25
	mov	x3, x26
	mov	w4, #0
	mov	w5, #0
	bl	_PageAddItem
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh7:
	adrp	x8, _ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x24
	mov	x2, x22
	mov	x3, x23
	mov	x4, x25
	bl	_elog
	b	LBB0_5
LBB0_8:
	mov	x0, x20
	bl	_PageGetMaxOffsetNumber
	bl	_OffsetNumberNext
	mov	x21, x0
	cmp	w23, #1
	b.ge	LBB0_4
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add item to GiST index page, item %d out of %d, size %d bytes"

.subsections_via_symbols
