	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gistBuildCallback
_gistBuildCallback:                     ## @gistBuildCallback
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	24(%r9), %rax
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	24(%rbx), %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movl	$1, %r8d
	callq	_gistFormTuple
	movq	%rax, %r12
	movl	(%r14), %eax
	movl	%eax, (%r12)
	movq	(%rbx), %rax
	movq	_GIST_BUFFERING_ACTIVE@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_gistBufferingBuildInsert
	jmp	LBB0_3
LBB0_2:
	movl	40(%rbx), %edx
	movq	24(%rbx), %rcx
	movl	36(%rbx), %r8d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %r9d
	callq	_gistdoinsert
LBB0_3:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	incl	8(%rbx)
	movq	%r12, %rdi
	callq	_IndexTupleSize
	addl	%eax, 32(%rbx)
	movl	%r13d, %edi
	callq	_MemoryContextSwitchTo
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	callq	_MemoryContextReset
	movq	(%rbx), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_6
## %bb.4:
	movl	8(%rbx), %eax
	movq	_BUFFERING_MODE_TUPLE_SIZE_STATS_TARGET@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	testl	%edx, %edx
	jne	LBB0_6
## %bb.5:
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_calculatePagesPerBuffer
	movq	16(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	(%rbx), %rcx
LBB0_6:
	movq	_GIST_BUFFERING_AUTO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_10
## %bb.7:
	movl	8(%rbx), %eax
	movq	_BUFFERING_MODE_SWITCH_CHECK_STEP@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	testl	%edx, %edx
	jne	LBB0_10
## %bb.8:
	movq	_effective_cache_size@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	(%r15), %edi
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_smgrnblocks
	cmpq	%rax, %r14
	jl	LBB0_13
## %bb.9:
	movq	(%rbx), %rcx
LBB0_10:
	movq	_GIST_BUFFERING_STATS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_12
## %bb.11:
	movl	8(%rbx), %eax
	movq	_BUFFERING_MODE_TUPLE_SIZE_STATS_TARGET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_13
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gistInitBuffering              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GIST_BUFFERING_ACTIVE,8,3      ## @GIST_BUFFERING_ACTIVE
	.comm	_BUFFERING_MODE_TUPLE_SIZE_STATS_TARGET,4,2 ## @BUFFERING_MODE_TUPLE_SIZE_STATS_TARGET
	.comm	_GIST_BUFFERING_AUTO,8,3        ## @GIST_BUFFERING_AUTO
	.comm	_BUFFERING_MODE_SWITCH_CHECK_STEP,4,2 ## @BUFFERING_MODE_SWITCH_CHECK_STEP
	.comm	_effective_cache_size,8,3       ## @effective_cache_size
	.comm	_MAIN_FORKNUM,4,2               ## @MAIN_FORKNUM
	.comm	_GIST_BUFFERING_STATS,8,3       ## @GIST_BUFFERING_STATS
	.no_dead_strip	_gistBuildCallback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gistBuildCallback
_gistBuildCallback:                     ; @gistBuildCallback
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x5
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	ldr	x8, [x5, #24]
	ldr	w0, [x8]
	bl	_MemoryContextSwitchTo
	mov	x21, x0
	ldr	x0, [x19, #24]
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	w4, #1
	bl	_gistFormTuple
	mov	x22, x0
	ldr	w8, [x24]
	str	w8, [x0]
	ldr	x8, [x19]
Lloh0:
	adrp	x23, _GIST_BUFFERING_ACTIVE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GIST_BUFFERING_ACTIVE@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	bl	_gistBufferingBuildInsert
	b	LBB0_3
LBB0_2:
	ldr	x3, [x19, #24]
	ldp	w4, w2, [x19, #36]
	mov	x0, x20
	mov	x1, x22
	mov	w5, #1
	bl	_gistdoinsert
LBB0_3:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	mov	x0, x22
	bl	_IndexTupleSize
	ldr	w8, [x19, #32]
	add	w8, w8, w0
	str	w8, [x19, #32]
	mov	x0, x21
	bl	_MemoryContextSwitchTo
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_MemoryContextReset
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	w9, [x19, #8]
Lloh2:
	adrp	x10, _BUFFERING_MODE_TUPLE_SIZE_STATS_TARGET@GOTPAGE
Lloh3:
	ldr	x10, [x10, _BUFFERING_MODE_TUPLE_SIZE_STATS_TARGET@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	cbnz	w9, LBB0_6
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_calculatePagesPerBuffer
	ldr	x8, [x19, #16]
	str	w0, [x8, #4]
	ldr	x8, [x19]
LBB0_6:
Lloh5:
	adrp	x9, _GIST_BUFFERING_AUTO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GIST_BUFFERING_AUTO@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	ldr	w9, [x19, #8]
Lloh8:
	adrp	x10, _BUFFERING_MODE_SWITCH_CHECK_STEP@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BUFFERING_MODE_SWITCH_CHECK_STEP@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	cbnz	w9, LBB0_10
; %bb.8:
Lloh11:
	adrp	x8, _effective_cache_size@GOTPAGE
Lloh12:
	ldr	x8, [x8, _effective_cache_size@GOTPAGEOFF]
Lloh13:
	ldr	x21, [x8]
	ldr	w0, [x20]
Lloh14:
	adrp	x8, _MAIN_FORKNUM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAIN_FORKNUM@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_smgrnblocks
	cmp	x21, x0
	b.lt	LBB0_13
; %bb.9:
	ldr	x8, [x19]
LBB0_10:
Lloh17:
	adrp	x9, _GIST_BUFFERING_STATS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _GIST_BUFFERING_STATS@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldr	w8, [x19, #8]
Lloh20:
	adrp	x9, _BUFFERING_MODE_TUPLE_SIZE_STATS_TARGET@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BUFFERING_MODE_TUPLE_SIZE_STATS_TARGET@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_13
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_gistInitBuffering
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GIST_BUFFERING_ACTIVE,8,3      ; @GIST_BUFFERING_ACTIVE
	.comm	_BUFFERING_MODE_TUPLE_SIZE_STATS_TARGET,4,2 ; @BUFFERING_MODE_TUPLE_SIZE_STATS_TARGET
	.comm	_GIST_BUFFERING_AUTO,8,3        ; @GIST_BUFFERING_AUTO
	.comm	_BUFFERING_MODE_SWITCH_CHECK_STEP,4,2 ; @BUFFERING_MODE_SWITCH_CHECK_STEP
	.comm	_effective_cache_size,8,3       ; @effective_cache_size
	.comm	_MAIN_FORKNUM,4,2               ; @MAIN_FORKNUM
	.comm	_GIST_BUFFERING_STATS,8,3       ; @GIST_BUFFERING_STATS
	.no_dead_strip	_gistBuildCallback
.subsections_via_symbols
