	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spginsert                      ## -- Begin function spginsert
	.p2align	4, 0x90
_spginsert:                             ## @spginsert
	.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	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ALLOCSET_DEFAULT_SIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_AllocSetContextCreate
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	-48(%rbp), %rdi
	movl	%ebx, %esi
	callq	_initSpGistState
	movq	%r12, %r13
	movl	(%r12), %ecx
	movq	%r15, %r12
	movl	(%r15), %r8d
	movl	%ebx, %edi
	leaq	-48(%rbp), %rsi
	movl	%r14d, %r15d
	movl	%r14d, %edx
	callq	_spgdoinsert
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextReset
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_initSpGistState
	movl	(%r13), %ecx
	movl	(%r12), %r8d
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_spgdoinsert
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movl	%ebx, %edi
	callq	_SpGistUpdateMetaPage
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextSwitchTo
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextDelete
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SP-GiST insert temporary context"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ## @ALLOCSET_DEFAULT_SIZES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spginsert                      ; -- Begin function spginsert
	.p2align	2
_spginsert:                             ; @spginsert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_AllocSetContextCreate
	mov	x23, x0
	bl	_MemoryContextSwitchTo
	mov	x24, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	mov	x1, x20
	bl	_initSpGistState
	ldr	w3, [x22]
	ldr	w4, [x21]
	add	x1, sp, #12
	mov	x0, x20
	mov	x2, x19
	bl	_spgdoinsert
	cbnz	w0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_MemoryContextReset
	b	LBB0_1
LBB0_3:
	mov	x0, x20
	bl	_SpGistUpdateMetaPage
	mov	x0, x24
	bl	_MemoryContextSwitchTo
	mov	x0, x23
	bl	_MemoryContextDelete
	mov	w0, #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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SP-GiST insert temporary context"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ; @ALLOCSET_DEFAULT_SIZES
.subsections_via_symbols
