	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function initscan
_initscan:                              ## @initscan
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_2:
	movl	16(%rbx), %edi
	callq	_RelationGetNumberOfBlocks
LBB0_3:
	movl	%eax, (%rbx)
	movl	16(%rbx), %edi
	callq	_RelationUsesLocalBuffers
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	_NBuffers@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	cmpl	%ecx, (%rbx)
	jle	LBB0_8
## %bb.5:
	movl	8(%rbx), %eax
	movq	_SO_ALLOW_SYNC@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	testl	%eax, (%rcx)
	movq	_SO_ALLOW_STRAT@GOTPCREL(%rip), %rcx
	setne	%r12b
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.6:
	cmpq	$0, 80(%rbx)
	jne	LBB0_11
## %bb.7:
	movq	_BAS_BULKREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetAccessStrategy
	movq	%rax, 80(%rbx)
	jmp	LBB0_11
LBB0_8:
	movq	80(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_FreeAccessStrategy
LBB0_10:
	movq	$0, 80(%rbx)
LBB0_11:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	cmpq	$0, (%rax)
	movq	_SO_ALLOW_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_17
LBB0_13:
	orl	%eax, 8(%rbx)
	jmp	LBB0_18
LBB0_14:
	testl	%r12d, %r12d
	setne	%al
	movq	_synchronize_seqscans@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	setne	%cl
	andb	%al, %cl
	movq	_SO_ALLOW_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %r15d
	je	LBB0_23
## %bb.15:
	testb	%cl, %cl
	jne	LBB0_13
LBB0_17:
	notl	%eax
	andl	%eax, 8(%rbx)
LBB0_18:
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, 64(%rbx)
	movl	$0, 4(%rbx)
	leaq	48(%rbx), %rdi
	movq	$0, 56(%rbx)
	callq	_ItemPointerSetInvalid
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	(%r15), %rax
	movq	%rax, 32(%rbx)
	testq	%r14, %r14
	je	LBB0_20
## %bb.19:
	movl	12(%rbx), %edx
	movl	20(%rbx), %edi
	shll	$2, %edx
	movq	%r14, %rsi
	callq	_memcpy
LBB0_20:
	movq	_SO_TYPE_SEQSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_22
## %bb.21:
	movl	16(%rbx), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pgstat_count_heap_scan         ## TAILCALL
LBB0_22:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	testb	%cl, %cl
	je	LBB0_25
## %bb.24:
	orl	%eax, 8(%rbx)
	movl	(%rbx), %esi
	movl	16(%rbx), %edi
	callq	_ss_get_location
	movq	%rax, 72(%rbx)
	jmp	LBB0_18
LBB0_25:
	notl	%eax
	andl	%eax, 8(%rbx)
	movq	$0, 72(%rbx)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_NBuffers,4,2                   ## @NBuffers
	.comm	_SO_ALLOW_STRAT,4,2             ## @SO_ALLOW_STRAT
	.comm	_SO_ALLOW_SYNC,4,2              ## @SO_ALLOW_SYNC
	.comm	_BAS_BULKREAD,4,2               ## @BAS_BULKREAD
	.comm	_synchronize_seqscans,8,3       ## @synchronize_seqscans
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_SO_TYPE_SEQSCAN,4,2            ## @SO_TYPE_SEQSCAN
	.no_dead_strip	_initscan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function initscan
_initscan:                              ; @initscan
	.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, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #16]
	bl	_RelationGetNumberOfBlocks
LBB0_3:
	str	w0, [x19]
	ldr	w0, [x19, #16]
	bl	_RelationUsesLocalBuffers
	cbnz	w0, LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _NBuffers@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NBuffers@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh2:
	ldr	w8, [x8]
	add	w10, w8, #3
	cmp	w8, #0
	csel	w8, w10, w8, lt
	cmp	w9, w8, asr #2
	b.le	LBB0_8
; %bb.5:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _SO_ALLOW_STRAT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SO_ALLOW_STRAT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _SO_ALLOW_SYNC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SO_ALLOW_SYNC@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w22, ne
	and	w8, w9, w8
	cbz	w8, LBB0_9
; %bb.6:
	ldr	x8, [x19, #80]
	cbnz	x8, LBB0_12
; %bb.7:
Lloh9:
	adrp	x8, _BAS_BULKREAD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BAS_BULKREAD@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_GetAccessStrategy
	str	x0, [x19, #80]
	b	LBB0_12
LBB0_8:
	mov	w22, #0
LBB0_9:
	ldr	x0, [x19, #80]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_FreeAccessStrategy
LBB0_11:
	str	xzr, [x19, #80]
LBB0_12:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_15
; %bb.13:
	ldr	x9, [x8]
Lloh12:
	adrp	x8, _SO_ALLOW_SYNC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SO_ALLOW_SYNC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cbz	x9, LBB0_17
LBB0_14:
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	b	LBB0_18
LBB0_15:
	cmp	w22, #0
Lloh15:
	adrp	x8, _synchronize_seqscans@GOTPAGE
Lloh16:
	ldr	x8, [x8, _synchronize_seqscans@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ccmp	x8, #0, #4, ne
	cset	w9, ne
Lloh18:
	adrp	x8, _SO_ALLOW_SYNC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SO_ALLOW_SYNC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cbz	w21, LBB0_24
; %bb.16:
	cbnz	w9, LBB0_14
LBB0_17:
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
LBB0_18:
	str	w8, [x19, #8]
LBB0_19:
Lloh21:
	adrp	x21, _InvalidBlockNumber@GOTPAGE
Lloh22:
	ldr	x21, [x21, _InvalidBlockNumber@GOTPAGEOFF]
	ldr	x8, [x21]
	str	wzr, [x19, #4]
	add	x0, x19, #48
	stp	xzr, x8, [x19, #56]
	bl	_ItemPointerSetInvalid
Lloh23:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh24:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	ldr	x8, [x21]
	str	x8, [x19, #32]
	cbz	x20, LBB0_21
; %bb.20:
	ldr	w0, [x19, #20]
	ldr	w8, [x19, #12]
	lsl	w2, w8, #2
	mov	x1, x20
	bl	_memcpy
LBB0_21:
	ldr	w8, [x19, #8]
Lloh26:
	adrp	x9, _SO_TYPE_SEQSCAN@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SO_TYPE_SEQSCAN@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.22:
	ldr	w0, [x19, #16]
	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	_pgstat_count_heap_scan
LBB0_23:
	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
	ret
LBB0_24:
	cbz	w9, LBB0_26
; %bb.25:
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldr	w0, [x19, #16]
	ldr	w1, [x19]
	bl	_ss_get_location
	str	x0, [x19, #72]
	b	LBB0_19
LBB0_26:
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	str	xzr, [x19, #72]
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_NBuffers,4,2                   ; @NBuffers
	.comm	_SO_ALLOW_STRAT,4,2             ; @SO_ALLOW_STRAT
	.comm	_SO_ALLOW_SYNC,4,2              ; @SO_ALLOW_SYNC
	.comm	_BAS_BULKREAD,4,2               ; @BAS_BULKREAD
	.comm	_synchronize_seqscans,8,3       ; @synchronize_seqscans
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_SO_TYPE_SEQSCAN,4,2            ; @SO_TYPE_SEQSCAN
	.no_dead_strip	_initscan
.subsections_via_symbols
