	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SyncScanShmemInit              ## -- Begin function SyncScanShmemInit
	.p2align	4, 0x90
_SyncScanShmemInit:                     ## @SyncScanShmemInit
	.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	_SYNC_SCAN_NELEM@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_SizeOfScanLocations
	leaq	L_.str(%rip), %rdi
	leaq	-28(%rbp), %rdx
	movl	%eax, %esi
	callq	_ShmemInitStruct
	movq	_scan_locations@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movq	_IsUnderPostmaster@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	-28(%rbp), %edi
	je	LBB0_1
## %bb.10:
	callq	_Assert
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	testl	%edi, %edi
	sete	%al
	movl	%eax, %edi
	callq	_Assert
	movq	(%r15), %rax
	movq	(%rax), %rdx
	movq	%rdx, 16(%rax)
	movslq	(%r14), %rsi
	leaq	(%rsi,%rsi,2), %rcx
	shlq	$4, %rcx
	addq	%rdx, %rcx
	addq	$-48, %rcx
	movq	%rcx, 8(%rax)
	testq	%rsi, %rsi
	jle	LBB0_11
## %bb.2:
	movq	_InvalidOid@GOTPCREL(%rip), %r9
	movq	(%r9), %rcx
	movq	%rcx, 40(%rdx)
	movq	%rcx, 32(%rdx)
	movq	%rcx, 24(%rdx)
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %r8
	movl	(%r8), %ecx
	movl	%ecx, 16(%rdx)
	movq	$0, 8(%rdx)
	cmpl	$1, %esi
	jne	LBB0_4
## %bb.3:
	movq	$0, (%rdx)
	jmp	LBB0_11
LBB0_4:
	leaq	48(%rdx), %rsi
	movq	%rsi, (%rdx)
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	movq	(%rsi), %rsi
	movq	(%r9), %rbx
	leaq	(%rdx,%rdx,2), %rdi
	shlq	$4, %rdi
	movq	%rbx, 40(%rsi,%rdi)
	movq	(%r9), %rbx
	movq	%rbx, 32(%rsi,%rdi)
	movq	(%r9), %rbx
	movq	%rbx, 24(%rsi,%rdi)
	movl	%ecx, 16(%rsi,%rdi)
	movq	(%r15), %rcx
	leal	-1(%rdx), %ebx
	leaq	(%rbx,%rbx,2), %rbx
	shlq	$4, %rbx
	addq	(%rcx), %rbx
	movq	%rbx, 8(%rsi,%rdi)
	movslq	(%r14), %rcx
	leaq	-1(%rcx), %rbx
	cmpq	%rbx, %rdx
	jge	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	incq	%rdx
	leaq	(%rdx,%rdx,2), %rbx
	shlq	$4, %rbx
	addq	(%rax), %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdx
	xorl	%ebx, %ebx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, (%rsi,%rdi)
	cmpq	%rcx, %rdx
	jge	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r8), %ecx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sync Scan Locations List"

	.comm	_SYNC_SCAN_NELEM,4,2            ## @SYNC_SCAN_NELEM
	.comm	_scan_locations,8,3             ## @scan_locations
	.comm	_IsUnderPostmaster,4,2          ## @IsUnderPostmaster
	.comm	_InvalidOid,8,3                 ## @InvalidOid
	.comm	_InvalidBlockNumber,4,2         ## @InvalidBlockNumber
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SyncScanShmemInit              ; -- Begin function SyncScanShmemInit
	.p2align	2
_SyncScanShmemInit:                     ; @SyncScanShmemInit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x19, _SYNC_SCAN_NELEM@GOTPAGE
Lloh1:
	ldr	x19, [x19, _SYNC_SCAN_NELEM@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_SizeOfScanLocations
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_ShmemInitStruct
Lloh4:
	adrp	x20, _scan_locations@GOTPAGE
Lloh5:
	ldr	x20, [x20, _scan_locations@GOTPAGEOFF]
	str	x0, [x20]
Lloh6:
	adrp	x8, _IsUnderPostmaster@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IsUnderPostmaster@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w0, [sp, #12]
	cbz	w8, LBB0_3
; %bb.1:
	bl	_Assert
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x20]
	ldr	x10, [x8]
	ldr	w11, [x19]
	subs	w9, w11, #1
	mov	w12, #48
	smaddl	x9, w9, w12, x10
	stp	x9, x10, [x8, #8]
	b.lt	LBB0_2
; %bb.4:
Lloh9:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh10:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
	ldr	x9, [x8]
	stp	x9, x9, [x10, #32]
	str	x9, [x10, #24]
Lloh11:
	adrp	x9, _InvalidBlockNumber@GOTPAGE
Lloh12:
	ldr	x9, [x9, _InvalidBlockNumber@GOTPAGEOFF]
	ldr	w13, [x9]
	str	w13, [x10, #16]
	str	xzr, [x10, #8]
	cmp	w11, #1
	b.ne	LBB0_6
; %bb.5:
	str	xzr, [x10]
	b	LBB0_2
LBB0_6:
	add	x11, x10, #48
	str	x11, [x10]
	mov	w11, #1
	mov	w10, #48
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x20]
	ldr	x12, [x12]
	ldr	x14, [x8]
	madd	x15, x11, x10, x12
	str	x14, [x15, #40]
	ldr	x14, [x8]
	str	x14, [x15, #32]
	ldr	x14, [x8]
	str	x14, [x15, #24]
	str	w13, [x15, #16]
	ldr	x13, [x20]
	ldr	x13, [x13]
	sub	w14, w11, #1
	umaddl	x13, w14, w10, x13
	str	x13, [x15, #8]
	ldrsw	x13, [x19]
	sub	x14, x13, #1
	cmp	x11, x14
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x14, [x20]
	ldr	x15, [x14]
	add	x14, x11, #1
	madd	x15, x14, x10, x15
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x15, #0
	add	x14, x11, #1
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mul	x11, x11, x10
	str	x15, [x12, x11]
	cmp	x14, x13
	b.ge	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w13, [x9]
	mov	x11, x14
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sync Scan Locations List"

	.comm	_SYNC_SCAN_NELEM,4,2            ; @SYNC_SCAN_NELEM
	.comm	_scan_locations,8,3             ; @scan_locations
	.comm	_IsUnderPostmaster,4,2          ; @IsUnderPostmaster
	.comm	_InvalidOid,8,3                 ; @InvalidOid
	.comm	_InvalidBlockNumber,4,2         ; @InvalidBlockNumber
.subsections_via_symbols
