	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SpGistInitMetapage             ## -- Begin function SpGistInitMetapage
	.p2align	4, 0x90
_SpGistInitMetapage:                    ## @SpGistInitMetapage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_SPGIST_META@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SpGistInitPage
	movq	%r14, %rdi
	callq	_SpGistPageGetMeta
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_SPGIST_MAGIC_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_SPGIST_CACHED_PAGES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	(%rbx), %rcx
	xorl	%edx, %edx
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%rax), %rdi
	cmpq	%rdi, %rdx
	jl	LBB0_2
LBB0_3:
	subl	%r14d, %ebx
	addl	$16, %ebx
	movl	%ebx, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPGIST_META,4,2                ## @SPGIST_META
	.comm	_SPGIST_MAGIC_NUMBER,4,2        ## @SPGIST_MAGIC_NUMBER
	.comm	_SPGIST_CACHED_PAGES,4,2        ## @SPGIST_CACHED_PAGES
	.comm	_InvalidBlockNumber,4,2         ## @InvalidBlockNumber
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SpGistInitMetapage             ; -- Begin function SpGistInitMetapage
	.p2align	2
_SpGistInitMetapage:                    ; @SpGistInitMetapage
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _SPGIST_META@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPGIST_META@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_SpGistInitPage
	mov	x0, x19
	bl	_SpGistPageGetMeta
	mov	x20, x0
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh3:
	adrp	x8, _SPGIST_MAGIC_NUMBER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPGIST_MAGIC_NUMBER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #8]
Lloh6:
	adrp	x8, _SPGIST_CACHED_PAGES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPGIST_CACHED_PAGES@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x10, [x20]
Lloh8:
	adrp	x11, _InvalidBlockNumber@GOTPAGE
Lloh9:
	ldr	x11, [x11, _InvalidBlockNumber@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	str	w12, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_2
LBB0_3:
	sub	w8, w20, w19
	add	w8, w8, #16
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SPGIST_META,4,2                ; @SPGIST_META
	.comm	_SPGIST_MAGIC_NUMBER,4,2        ; @SPGIST_MAGIC_NUMBER
	.comm	_SPGIST_CACHED_PAGES,4,2        ; @SPGIST_CACHED_PAGES
	.comm	_InvalidBlockNumber,4,2         ; @InvalidBlockNumber
.subsections_via_symbols
