	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function gistInitBuffering
LCPI0_0:
	.quad	0xc010000000000000              ## double -4
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0x4090000000000000              ## double 1024
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gistInitBuffering:                     ## @gistInitBuffering
	.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
	movq	32(%rdi), %r15
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	movq	_SizeOfPageHeaderData@GOTPCREL(%rip), %rax
	cvtsi2sdl	(%rax), %xmm0
	subsd	%xmm0, %xmm1
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	addsd	%xmm0, %xmm1
	addsd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rdi), %xmm0
	cvtsi2sdq	24(%rdi), %xmm2
	subsd	%xmm0, %xmm1
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdq	16(%rdi), %xmm0
	divsd	%xmm0, %xmm2
	movsd	%xmm2, -48(%rbp)                ## 8-byte Spill
	movl	$4, %edi
	callq	_MAXALIGN
	xorps	%xmm2, %xmm2
	cvtsi2sd	%rax, %xmm2
	movq	(%r15), %rdi
	cmpl	$0, (%rdi)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_VARHDRSZ@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%rax), %xmm0
	movsd	-64(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	addsd	%xmm0, %xmm2
	incl	%ebx
	movq	(%r15), %rdi
	cmpl	(%rdi), %ebx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm2, -64(%rbp)                ## 8-byte Spill
	movl	%ebx, %esi
	callq	_TupleDescAttr
	cmpq	$0, (%rax)
	movq	%r14, %rax
	js	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdi
	movl	%ebx, %esi
	callq	_TupleDescAttr
	jmp	LBB0_4
LBB0_5:
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movapd	%xmm0, %xmm1
	divsd	-48(%rbp), %xmm1                ## 8-byte Folded Reload
	divsd	%xmm2, %xmm0
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	movl	$1, %r12d
	movq	_effective_cache_size@GOTPCREL(%rip), %r13
	movq	_maintenance_work_mem@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %ebx
	leal	1(%rbx), %r12d
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r12d, %xmm1
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_pow
	movl	$1, %ecx
	subl	%eax, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	divsd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	xorps	%xmm1, %xmm1
	cvtsi2sd	%ebx, %xmm1
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_pow
	movl	(%r13), %ecx
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%edx, %xmm0
	movsd	-64(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%r14), %xmm1
	mulsd	LCPI0_2(%rip), %xmm1
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	divsd	(%rax), %xmm1
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_6
LBB0_8:
	cmpl	$1, %ebx
	ja	LBB0_10
## %bb.9:
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
	movq	_GIST_BUFFERING_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	decl	%ebx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_calculatePagesPerBuffer
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_gistGetMaxLevel
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_gistInitBuildBuffers
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_gistInitParentMap
	movq	_GIST_BUFFERING_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elog                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BLCKSZ,8,3                     ## @BLCKSZ
	.comm	_SizeOfPageHeaderData,4,2       ## @SizeOfPageHeaderData
	.comm	_VARHDRSZ,8,3                   ## @VARHDRSZ
	.comm	_effective_cache_size,4,2       ## @effective_cache_size
	.comm	_maintenance_work_mem,8,3       ## @maintenance_work_mem
	.comm	_DEBUG1,4,2                     ## @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to switch to buffered GiST build"

	.comm	_GIST_BUFFERING_DISABLED,4,2    ## @GIST_BUFFERING_DISABLED
	.comm	_GIST_BUFFERING_ACTIVE,4,2      ## @GIST_BUFFERING_ACTIVE
L_.str.1:                               ## @.str.1
	.asciz	"switched to buffered GiST build; level step = %d, pagesPerBuffer = %d"

	.no_dead_strip	_gistInitBuffering
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gistInitBuffering
_gistInitBuffering:                     ; @gistInitBuffering
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x19, x0
	ldr	x20, [x0, #32]
Lloh0:
	adrp	x22, _BLCKSZ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BLCKSZ@GOTPAGEOFF]
	ldr	d0, [x22]
Lloh2:
	adrp	x8, _SizeOfPageHeaderData@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SizeOfPageHeaderData@GOTPAGEOFF]
Lloh4:
	ldr	s1, [x8]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fsub	d0, d0, d1
	fmov	d1, #-4.00000000
	fadd	d0, d0, d1
	fadd	d0, d0, d1
	ldr	s1, [x0]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fsub	d9, d0, d1
	ldp	d1, d0, [x0, #16]
	scvtf	d0, d0
	scvtf	d1, d1
	fdiv	d8, d0, d1
	mov	w0, #4
	bl	_MAXALIGN
	scvtf	d10, x0
	ldr	x0, [x20]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w21, #0
Lloh5:
	adrp	x23, _VARHDRSZ@GOTPAGE
Lloh6:
	ldr	x23, [x23, _VARHDRSZ@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20]
	mov	x1, x21
	bl	_TupleDescAttr
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	d0, [x0]
	scvtf	d0, d0
	fadd	d10, d10, d0
	add	w21, w21, #1
	ldr	x0, [x20]
	ldr	w8, [x0]
	cmp	w21, w8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x21
	bl	_TupleDescAttr
	ldr	x8, [x0]
	tbz	x8, #63, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	b	LBB0_3
LBB0_6:
	fdiv	d8, d9, d8
	fdiv	d9, d9, d10
	fmov	d0, #1.00000000
	fsub	d10, d0, d8
	mov	w21, #1
Lloh7:
	adrp	x23, _effective_cache_size@GOTPAGE
Lloh8:
	ldr	x23, [x23, _effective_cache_size@GOTPAGEOFF]
Lloh9:
	adrp	x24, _maintenance_work_mem@GOTPAGE
Lloh10:
	ldr	x24, [x24, _maintenance_work_mem@GOTPAGEOFF]
	mov	x25, #4652218415073722368
	mov	w27, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, x27
	add	w27, w27, #1
	scvtf	d1, w27
	fmov	d0, d8
	bl	_pow
	sub	w8, w21, w0
	scvtf	d0, w8
	fdiv	d11, d0, d10
	scvtf	d1, w26
	fmov	d0, d9
	bl	_pow
	ldr	w8, [x23]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	scvtf	d0, w8
	fcmp	d11, d0
	b.gt	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	scvtf	d0, w0
	ldr	d1, [x24]
	scvtf	d1, d1
	fmov	d2, x25
	fmul	d1, d1, d2
	ldr	d2, [x22]
	fdiv	d1, d1, d2
	fcmp	d1, d0
	b.pl	LBB0_7
LBB0_9:
	subs	w21, w26, #1
	b.hi	LBB0_11
; %bb.10:
Lloh11:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
Lloh16:
	adrp	x8, _GIST_BUFFERING_DISABLED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GIST_BUFFERING_DISABLED@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	bl	_calculatePagesPerBuffer
	mov	x22, x0
	mov	x0, x20
	bl	_gistGetMaxLevel
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_gistInitBuildBuffers
	str	w0, [x19, #8]
	mov	x0, x19
	bl	_gistInitParentMap
Lloh19:
	adrp	x8, _GIST_BUFFERING_ACTIVE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GIST_BUFFERING_ACTIVE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh22:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	stp	x21, x22, [sp]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_BLCKSZ,8,3                     ; @BLCKSZ
	.comm	_SizeOfPageHeaderData,4,2       ; @SizeOfPageHeaderData
	.comm	_VARHDRSZ,8,3                   ; @VARHDRSZ
	.comm	_effective_cache_size,4,2       ; @effective_cache_size
	.comm	_maintenance_work_mem,8,3       ; @maintenance_work_mem
	.comm	_DEBUG1,4,2                     ; @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to switch to buffered GiST build"

	.comm	_GIST_BUFFERING_DISABLED,4,2    ; @GIST_BUFFERING_DISABLED
	.comm	_GIST_BUFFERING_ACTIVE,4,2      ; @GIST_BUFFERING_ACTIVE
l_.str.1:                               ; @.str.1
	.asciz	"switched to buffered GiST build; level step = %d, pagesPerBuffer = %d"

	.no_dead_strip	_gistInitBuffering
.subsections_via_symbols
