	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spgrescan                      ## -- Begin function spgrescan
	.p2align	4, 0x90
_spgrescan:                             ## @spgrescan
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdi, %r12
	movslq	24(%rdi), %r14
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movl	(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_3
## %bb.2:
	movq	16(%r12), %rdi
	shll	$2, %edx
	callq	_memmove
LBB0_3:
	testq	%r15, %r15
	je	LBB0_8
## %bb.4:
	movl	4(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_8
## %bb.5:
	movq	8(%r12), %rdi
	shll	$2, %edx
	movq	%r15, %rsi
	callq	_memmove
	cmpl	$0, 4(%r12)
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_get_func_rettype
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	callq	_spgPrepareScanKeys
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_resetSpGistScanOpaque          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spgrescan                      ; -- Begin function spgrescan
	.p2align	2
_spgrescan:                             ; @spgrescan
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x3
	mov	x20, x0
	ldrsw	x19, [x0, #24]
	cbz	x1, LBB0_3
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.2:
	ldr	x0, [x20, #16]
	lsl	w2, w8, #2
	bl	_memmove
LBB0_3:
	cbz	x21, LBB0_8
; %bb.4:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	ldr	x0, [x20, #8]
	lsl	w2, w8, #2
	mov	x1, x21
	bl	_memmove
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x21, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	lsl	x22, x21, #2
	ldr	w0, [x8, x22]
	bl	_get_func_rettype
	ldr	x8, [x19]
	str	w0, [x8, x22]
	add	x21, x21, #1
	ldrsw	x8, [x20, #4]
	cmp	x21, x8
	b.lt	LBB0_7
LBB0_8:
	mov	x0, x20
	bl	_spgPrepareScanKeys
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_resetSpGistScanOpaque
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
