	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resetSpGistScanOpaque
_resetSpGistScanOpaque:                 ## @resetSpGistScanOpaque
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	60(%rdi), %edi
	callq	_MemoryContextReset
	movl	60(%r15), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	movq	_pairingheap_SpGistSearchItem_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_pairingheap_allocate
	movl	%eax, 56(%r15)
	cmpq	$0, 48(%r15)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_spgAddStartItem
LBB0_2:
	cmpq	$0, 40(%r15)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_spgAddStartItem
LBB0_4:
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	cmpq	$0, (%r15)
	jle	LBB0_10
## %bb.5:
	movl	8(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	callq	_pfree
	movl	8(%r15), %eax
	jmp	LBB0_9
LBB0_10:
	cmpq	$0, 24(%r15)
	je	LBB0_14
## %bb.11:
	cmpl	$0, 8(%r15)
	jle	LBB0_14
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_pfree
	incq	%rbx
	movslq	8(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_13
LBB0_14:
	movq	$0, 8(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pairingheap_SpGistSearchItem_cmp,4,2 ## @pairingheap_SpGistSearchItem_cmp
	.no_dead_strip	_resetSpGistScanOpaque
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resetSpGistScanOpaque
_resetSpGistScanOpaque:                 ; @resetSpGistScanOpaque
	.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
	ldr	w0, [x0, #60]
	bl	_MemoryContextReset
	ldr	w0, [x19, #60]
	bl	_MemoryContextSwitchTo
	mov	x20, x0
Lloh0:
	adrp	x8, _pairingheap_SpGistSearchItem_cmp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pairingheap_SpGistSearchItem_cmp@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_pairingheap_allocate
	str	w0, [x19, #56]
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_spgAddStartItem
LBB0_2:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_spgAddStartItem
LBB0_4:
	mov	x0, x20
	bl	_MemoryContextSwitchTo
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.5:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x20, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #32]
	ldr	x0, [x9, x20, lsl #3]
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_pfree
	ldr	w8, [x19, #8]
	b	LBB0_7
LBB0_10:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_14
; %bb.11:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x20, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x20, lsl #3]
	bl	_pfree
	add	x20, x20, #1
	ldrsw	x8, [x19, #8]
	cmp	x20, x8
	b.lt	LBB0_13
LBB0_14:
	str	xzr, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_pairingheap_SpGistSearchItem_cmp,4,2 ; @pairingheap_SpGistSearchItem_cmp
	.no_dead_strip	_resetSpGistScanOpaque
.subsections_via_symbols
