	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MultiXactShmemInit             ## -- Begin function MultiXactShmemInit
	.p2align	4, 0x90
_MultiXactShmemInit:                    ## @MultiXactShmemInit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_debug_elog2
	movq	_MultiXactOffsetPagePrecedes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MultiXactOffsetCtl@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movl	%eax, (%rdi)
	movq	_MultiXactMemberPagePrecedes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MultiXactMemberCtl@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_NUM_MXACTOFFSET_BUFFERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MultiXactOffsetControlLock@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_LWTRANCHE_MXACTOFFSET_BUFFERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %r9
	xorl	%ecx, %ecx
	callq	_SimpleLruInit
	movq	(%rbx), %rdi
	movq	_NUM_MXACTMEMBER_BUFFERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MultiXactMemberControlLock@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_LWTRANCHE_MXACTMEMBER_BUFFERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.4(%rip), %r9
	xorl	%ecx, %ecx
	callq	_SimpleLruInit
	movq	_SHARED_MULTIXACT_STATE_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str.5(%rip), %rdi
	leaq	-20(%rbp), %rdx
	callq	_ShmemInitStruct
	movq	_MultiXactState@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	_IsUnderPostmaster@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	-20(%rbp), %edi
	je	LBB0_1
## %bb.2:
	callq	_Assert
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	testl	%edi, %edi
	sete	%al
	movl	%eax, %edi
	callq	_Assert
	movq	(%rbx), %rdi
	movl	(%r14), %edx
	xorl	%esi, %esi
	callq	_MemSet
LBB0_3:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_OldestMemberMXactId@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_MaxOldestSlot@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	_OldestVisibleMXactId@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG2,4,2                     ## @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Shared Memory Init for MultiXact"

	.comm	_MultiXactOffsetPagePrecedes,4,2 ## @MultiXactOffsetPagePrecedes
	.comm	_MultiXactOffsetCtl,8,3         ## @MultiXactOffsetCtl
	.comm	_MultiXactMemberPagePrecedes,4,2 ## @MultiXactMemberPagePrecedes
	.comm	_MultiXactMemberCtl,8,3         ## @MultiXactMemberCtl
L_.str.1:                               ## @.str.1
	.asciz	"multixact_offset"

	.comm	_NUM_MXACTOFFSET_BUFFERS,4,2    ## @NUM_MXACTOFFSET_BUFFERS
	.comm	_MultiXactOffsetControlLock,4,2 ## @MultiXactOffsetControlLock
L_.str.2:                               ## @.str.2
	.asciz	"pg_multixact/offsets"

	.comm	_LWTRANCHE_MXACTOFFSET_BUFFERS,4,2 ## @LWTRANCHE_MXACTOFFSET_BUFFERS
L_.str.3:                               ## @.str.3
	.asciz	"multixact_member"

	.comm	_NUM_MXACTMEMBER_BUFFERS,4,2    ## @NUM_MXACTMEMBER_BUFFERS
	.comm	_MultiXactMemberControlLock,4,2 ## @MultiXactMemberControlLock
L_.str.4:                               ## @.str.4
	.asciz	"pg_multixact/members"

	.comm	_LWTRANCHE_MXACTMEMBER_BUFFERS,4,2 ## @LWTRANCHE_MXACTMEMBER_BUFFERS
L_.str.5:                               ## @.str.5
	.asciz	"Shared MultiXact State"

	.comm	_SHARED_MULTIXACT_STATE_SIZE,4,2 ## @SHARED_MULTIXACT_STATE_SIZE
	.comm	_MultiXactState,8,3             ## @MultiXactState
	.comm	_IsUnderPostmaster,4,2          ## @IsUnderPostmaster
	.comm	_OldestMemberMXactId,8,3        ## @OldestMemberMXactId
	.comm	_MaxOldestSlot,8,3              ## @MaxOldestSlot
	.comm	_OldestVisibleMXactId,8,3       ## @OldestVisibleMXactId
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MultiXactShmemInit             ; -- Begin function MultiXactShmemInit
	.p2align	2
_MultiXactShmemInit:                    ; @MultiXactShmemInit
	.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	x8, _DEBUG2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG2@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_debug_elog2
Lloh5:
	adrp	x8, _MultiXactOffsetPagePrecedes@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MultiXactOffsetPagePrecedes@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _MultiXactOffsetCtl@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MultiXactOffsetCtl@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x9]
	str	w8, [x0]
Lloh11:
	adrp	x8, _MultiXactMemberPagePrecedes@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MultiXactMemberPagePrecedes@GOTPAGEOFF]
Lloh13:
	adrp	x19, _MultiXactMemberCtl@GOTPAGE
Lloh14:
	ldr	x19, [x19, _MultiXactMemberCtl@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
Lloh16:
	adrp	x8, _NUM_MXACTOFFSET_BUFFERS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NUM_MXACTOFFSET_BUFFERS@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _MultiXactOffsetControlLock@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MultiXactOffsetControlLock@GOTPAGEOFF]
Lloh21:
	ldr	w4, [x8]
Lloh22:
	adrp	x8, _LWTRANCHE_MXACTOFFSET_BUFFERS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LWTRANCHE_MXACTOFFSET_BUFFERS@GOTPAGEOFF]
Lloh24:
	ldr	w6, [x8]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh27:
	adrp	x5, l_.str.2@PAGE
Lloh28:
	add	x5, x5, l_.str.2@PAGEOFF
	mov	w3, #0
	bl	_SimpleLruInit
	ldr	x0, [x19]
Lloh29:
	adrp	x8, _NUM_MXACTMEMBER_BUFFERS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NUM_MXACTMEMBER_BUFFERS@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x8, _MultiXactMemberControlLock@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MultiXactMemberControlLock@GOTPAGEOFF]
Lloh34:
	ldr	w4, [x8]
Lloh35:
	adrp	x8, _LWTRANCHE_MXACTMEMBER_BUFFERS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _LWTRANCHE_MXACTMEMBER_BUFFERS@GOTPAGEOFF]
Lloh37:
	ldr	w6, [x8]
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh40:
	adrp	x5, l_.str.4@PAGE
Lloh41:
	add	x5, x5, l_.str.4@PAGEOFF
	mov	w3, #0
	bl	_SimpleLruInit
Lloh42:
	adrp	x20, _SHARED_MULTIXACT_STATE_SIZE@GOTPAGE
Lloh43:
	ldr	x20, [x20, _SHARED_MULTIXACT_STATE_SIZE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh44:
	adrp	x0, l_.str.5@PAGE
Lloh45:
	add	x0, x0, l_.str.5@PAGEOFF
	add	x2, sp, #12
	bl	_ShmemInitStruct
Lloh46:
	adrp	x19, _MultiXactState@GOTPAGE
Lloh47:
	ldr	x19, [x19, _MultiXactState@GOTPAGEOFF]
	str	x0, [x19]
Lloh48:
	adrp	x8, _IsUnderPostmaster@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IsUnderPostmaster@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	ldr	w0, [sp, #12]
	cbz	w8, LBB0_2
; %bb.1:
	bl	_Assert
	b	LBB0_3
LBB0_2:
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	x0, [x19]
	ldr	w2, [x20]
	mov	w1, #0
	bl	_MemSet
LBB0_3:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh51:
	adrp	x9, _OldestMemberMXactId@GOTPAGE
Lloh52:
	ldr	x9, [x9, _OldestMemberMXactId@GOTPAGEOFF]
Lloh53:
	adrp	x10, _MaxOldestSlot@GOTPAGE
Lloh54:
	ldr	x10, [x10, _MaxOldestSlot@GOTPAGEOFF]
Lloh55:
	str	x8, [x9]
Lloh56:
	ldr	x9, [x10]
	add	x8, x9, x8
Lloh57:
	adrp	x9, _OldestVisibleMXactId@GOTPAGE
Lloh58:
	ldr	x9, [x9, _OldestVisibleMXactId@GOTPAGEOFF]
Lloh59:
	str	x8, [x9]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh56
	.loh AdrpLdrGotStr	Lloh51, Lloh52, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG2,4,2                     ; @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Shared Memory Init for MultiXact"

	.comm	_MultiXactOffsetPagePrecedes,4,2 ; @MultiXactOffsetPagePrecedes
	.comm	_MultiXactOffsetCtl,8,3         ; @MultiXactOffsetCtl
	.comm	_MultiXactMemberPagePrecedes,4,2 ; @MultiXactMemberPagePrecedes
	.comm	_MultiXactMemberCtl,8,3         ; @MultiXactMemberCtl
l_.str.1:                               ; @.str.1
	.asciz	"multixact_offset"

	.comm	_NUM_MXACTOFFSET_BUFFERS,4,2    ; @NUM_MXACTOFFSET_BUFFERS
	.comm	_MultiXactOffsetControlLock,4,2 ; @MultiXactOffsetControlLock
l_.str.2:                               ; @.str.2
	.asciz	"pg_multixact/offsets"

	.comm	_LWTRANCHE_MXACTOFFSET_BUFFERS,4,2 ; @LWTRANCHE_MXACTOFFSET_BUFFERS
l_.str.3:                               ; @.str.3
	.asciz	"multixact_member"

	.comm	_NUM_MXACTMEMBER_BUFFERS,4,2    ; @NUM_MXACTMEMBER_BUFFERS
	.comm	_MultiXactMemberControlLock,4,2 ; @MultiXactMemberControlLock
l_.str.4:                               ; @.str.4
	.asciz	"pg_multixact/members"

	.comm	_LWTRANCHE_MXACTMEMBER_BUFFERS,4,2 ; @LWTRANCHE_MXACTMEMBER_BUFFERS
l_.str.5:                               ; @.str.5
	.asciz	"Shared MultiXact State"

	.comm	_SHARED_MULTIXACT_STATE_SIZE,4,2 ; @SHARED_MULTIXACT_STATE_SIZE
	.comm	_MultiXactState,8,3             ; @MultiXactState
	.comm	_IsUnderPostmaster,4,2          ; @IsUnderPostmaster
	.comm	_OldestMemberMXactId,8,3        ; @OldestMemberMXactId
	.comm	_MaxOldestSlot,8,3              ; @MaxOldestSlot
	.comm	_OldestVisibleMXactId,8,3       ; @OldestVisibleMXactId
.subsections_via_symbols
