	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReplicationOriginShmemInit     ## -- Begin function ReplicationOriginShmemInit
	.p2align	4, 0x90
_ReplicationOriginShmemInit:            ## @ReplicationOriginShmemInit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_max_replication_slots@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_6
## %bb.1:
	xorl	%eax, %eax
	callq	_ReplicationOriginShmemSize
	leaq	L_.str(%rip), %rdi
	leaq	-44(%rbp), %rdx
	movl	%eax, %esi
	callq	_ShmemInitStruct
	movq	_replication_states_ctl@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	movq	8(%rax), %r15
	movq	_replication_states@GOTPCREL(%rip), %r13
	movq	%r15, (%r13)
	cmpl	$0, -44(%rbp)
	jne	LBB0_5
## %bb.2:
	movq	_LWTRANCHE_REPLICATION_ORIGIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	callq	_ReplicationOriginShmemSize
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_MemSet
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.3:
	movl	$4, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	movq	(%r12), %rax
	movl	(%rax), %esi
	callq	_LWLockInitialize
	movq	(%r13), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$-4, %rdi
	callq	_ConditionVariableInit
	incq	%r15
	movslq	(%r14), %rax
	addq	$8, %rbx
	cmpq	%rax, %r15
	jl	LBB0_4
LBB0_5:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_LWLockRegisterTranche
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_replication_slots,4,2      ## @max_replication_slots
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ReplicationOriginState"

	.comm	_replication_states_ctl,8,3     ## @replication_states_ctl
	.comm	_replication_states,8,3         ## @replication_states
	.comm	_LWTRANCHE_REPLICATION_ORIGIN,4,2 ## @LWTRANCHE_REPLICATION_ORIGIN
L_.str.1:                               ## @.str.1
	.asciz	"replication_origin"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReplicationOriginShmemInit     ; -- Begin function ReplicationOriginShmemInit
	.p2align	2
_ReplicationOriginShmemInit:            ; @ReplicationOriginShmemInit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x20, _max_replication_slots@GOTPAGE
Lloh1:
	ldr	x20, [x20, _max_replication_slots@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.1:
	bl	_ReplicationOriginShmemSize
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_ShmemInitStruct
Lloh4:
	adrp	x21, _replication_states_ctl@GOTPAGE
Lloh5:
	ldr	x21, [x21, _replication_states_ctl@GOTPAGEOFF]
	str	x0, [x21]
	ldr	x19, [x0, #8]
Lloh6:
	adrp	x22, _replication_states@GOTPAGE
Lloh7:
	ldr	x22, [x22, _replication_states@GOTPAGEOFF]
	str	x19, [x22]
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_5
; %bb.2:
Lloh8:
	adrp	x8, _LWTRANCHE_REPLICATION_ORIGIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LWTRANCHE_REPLICATION_ORIGIN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x0]
	bl	_ReplicationOriginShmemSize
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_MemSet
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x19, #0
	mov	w23, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x0, x8, x23
	ldr	x8, [x21]
	ldr	w1, [x8]
	bl	_LWLockInitialize
	ldr	x8, [x22]
	add	x8, x8, x23
	sub	x0, x8, #4
	bl	_ConditionVariableInit
	add	x19, x19, #1
	ldrsw	x8, [x20]
	add	x23, x23, #8
	cmp	x19, x8
	b.lt	LBB0_4
LBB0_5:
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_LWLockRegisterTranche
LBB0_6:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_max_replication_slots,4,2      ; @max_replication_slots
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ReplicationOriginState"

	.comm	_replication_states_ctl,8,3     ; @replication_states_ctl
	.comm	_replication_states,8,3         ; @replication_states
	.comm	_LWTRANCHE_REPLICATION_ORIGIN,4,2 ; @LWTRANCHE_REPLICATION_ORIGIN
l_.str.1:                               ; @.str.1
	.asciz	"replication_origin"

.subsections_via_symbols
