	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gistgetbitmap                  ## -- Begin function gistgetbitmap
	.p2align	4, 0x90
_gistgetbitmap:                         ## @gistgetbitmap
	.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
	movslq	12(%rdi), %r13
	movl	$0, -44(%rbp)
	cmpl	$0, 24(%r13)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	callq	_pgstat_count_index_scan
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r13)
	movq	$0, (%r15)
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_MemoryContextReset
LBB0_4:
	movq	_GIST_ROOT_BLKNO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_gistScanPage
	movq	%r13, %rdi
	callq	_getNextGISTSearchItem
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %rbx
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	(%rbx), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rcx
	movq	%r12, %r8
	callq	_gistScanPage
	movq	%rbx, %rdi
	callq	_pfree
	movq	%r13, %rdi
	callq	_getNextGISTSearchItem
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
LBB0_7:
	movl	-44(%rbp), %eax
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GIST_ROOT_BLKNO,4,2            ## @GIST_ROOT_BLKNO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gistgetbitmap                  ; -- Begin function gistgetbitmap
	.p2align	2
_gistgetbitmap:                         ; @gistgetbitmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	ldrsw	x21, [x0, #12]
	str	wzr, [sp, #28]
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_pgstat_count_index_scan
	stp	xzr, xzr, [x21, #8]
	str	xzr, [x20]
	ldr	x0, [x21]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_MemoryContextReset
LBB0_3:
Lloh0:
	adrp	x8, _GIST_ROOT_BLKNO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GIST_ROOT_BLKNO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	add	x8, sp, #8
	add	x0, x8, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x1, sp, #8
	add	x4, sp, #28
	mov	x0, x20
	mov	x2, #0
	mov	x3, x19
	bl	_gistScanPage
	mov	x0, x21
	bl	_getNextGISTSearchItem
	cbz	x0, LBB0_6
; %bb.4:
	mov	x22, x0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	ldr	x2, [x22]
	add	x4, sp, #28
	mov	x0, x20
	mov	x1, x22
	mov	x3, x19
	bl	_gistScanPage
	mov	x0, x22
	bl	_pfree
	mov	x0, x21
	bl	_getNextGISTSearchItem
	mov	x22, x0
	cbnz	x0, LBB0_5
LBB0_6:
	ldr	w0, [sp, #28]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GIST_ROOT_BLKNO,4,2            ; @GIST_ROOT_BLKNO
.subsections_via_symbols
