	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_table_block_parallelscan_initialize ## -- Begin function table_block_parallelscan_initialize
	.p2align	4, 0x90
_table_block_parallelscan_initialize:   ## @table_block_parallelscan_initialize
	.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
	movl	%edi, %r14d
	movslq	%esi, %rbx
	callq	_RelationGetRelid
	movl	%eax, 20(%rbx)
	movl	%r14d, %edi
	callq	_RelationGetNumberOfBlocks
	movl	%eax, (%rbx)
	movq	_synchronize_seqscans@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movl	%r14d, %edi
	callq	_RelationUsesLocalBuffers
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_NBuffers@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	xorl	%r15d, %r15d
	cmpl	%ecx, (%rbx)
	setg	%r15b
LBB0_3:
	movl	%r15d, 16(%rbx)
	leaq	12(%rbx), %rdi
	callq	_SpinLockInit
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	addq	$4, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pg_atomic_init_u64
	movl	$4, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_synchronize_seqscans,8,3       ## @synchronize_seqscans
	.comm	_NBuffers,4,2                   ## @NBuffers
	.comm	_InvalidBlockNumber,4,2         ## @InvalidBlockNumber
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_table_block_parallelscan_initialize ; -- Begin function table_block_parallelscan_initialize
	.p2align	2
_table_block_parallelscan_initialize:   ; @table_block_parallelscan_initialize
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	sxtw	x20, w1
	bl	_RelationGetRelid
	str	w0, [x20, #20]
	mov	x0, x19
	bl	_RelationGetNumberOfBlocks
	str	w0, [x20]
Lloh0:
	adrp	x8, _synchronize_seqscans@GOTPAGE
Lloh1:
	ldr	x8, [x8, _synchronize_seqscans@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_RelationUsesLocalBuffers
	cbz	w0, LBB0_3
; %bb.2:
	mov	w8, #0
	b	LBB0_4
LBB0_3:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _NBuffers@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NBuffers@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	cmp	w8, w9, asr #2
	cset	w8, gt
LBB0_4:
	str	w8, [x20, #16]
	add	x0, x20, #12
	bl	_SpinLockInit
Lloh6:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh7:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	add	x0, x20, #4
	mov	w1, #0
	bl	_pg_atomic_init_u64
	mov	w0, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_synchronize_seqscans,8,3       ; @synchronize_seqscans
	.comm	_NBuffers,4,2                   ; @NBuffers
	.comm	_InvalidBlockNumber,4,2         ; @InvalidBlockNumber
.subsections_via_symbols
