	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReplicationSlotsShmemInit      ## -- Begin function ReplicationSlotsShmemInit
	.p2align	4, 0x90
_ReplicationSlotsShmemInit:             ## @ReplicationSlotsShmemInit
	.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), %r12
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	callq	_ReplicationSlotsShmemSize
	leaq	L_.str(%rip), %rdi
	leaq	-44(%rbp), %rdx
	movl	%eax, %esi
	callq	_ShmemInitStruct
	movq	_ReplicationSlotCtl@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	movq	_LWTRANCHE_REPLICATION_SLOT_IO_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_LWLockRegisterTranche
	cmpl	$0, -44(%rbp)
	jne	LBB0_5
## %bb.2:
	movq	(%r13), %r14
	xorl	%eax, %eax
	callq	_ReplicationSlotsShmemSize
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_MemSet
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.3:
	movl	$8, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax), %r15
	leaq	(%r15,%rbx), %rdi
	callq	_SpinLockInit
	leaq	(%r15,%rbx), %rdi
	addq	$-4, %rdi
	movq	_LWTRANCHE_REPLICATION_SLOT_IO_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockInitialize
	leaq	(%r15,%rbx), %rdi
	addq	$-8, %rdi
	callq	_ConditionVariableInit
	incq	%r14
	movslq	(%r12), %rax
	addq	$12, %rbx
	cmpq	%rax, %r14
	jl	LBB0_4
LBB0_5:
	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	"ReplicationSlot Ctl"

	.comm	_ReplicationSlotCtl,8,3         ## @ReplicationSlotCtl
	.comm	_LWTRANCHE_REPLICATION_SLOT_IO_IN_PROGRESS,4,2 ## @LWTRANCHE_REPLICATION_SLOT_IO_IN_PROGRESS
L_.str.1:                               ## @.str.1
	.asciz	"replication_slot_io"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReplicationSlotsShmemInit      ; -- Begin function ReplicationSlotsShmemInit
	.p2align	2
_ReplicationSlotsShmemInit:             ; @ReplicationSlotsShmemInit
	.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_5
; %bb.1:
	bl	_ReplicationSlotsShmemSize
	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, _ReplicationSlotCtl@GOTPAGE
Lloh5:
	ldr	x21, [x21, _ReplicationSlotCtl@GOTPAGEOFF]
	str	x0, [x21]
Lloh6:
	adrp	x22, _LWTRANCHE_REPLICATION_SLOT_IO_IN_PROGRESS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _LWTRANCHE_REPLICATION_SLOT_IO_IN_PROGRESS@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_LWLockRegisterTranche
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_5
; %bb.2:
	ldr	x19, [x21]
	bl	_ReplicationSlotsShmemSize
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_MemSet
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x23, #0
	mov	w24, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8]
	add	x19, x8, x24
	mov	x0, x19
	bl	_SpinLockInit
	sub	x0, x19, #4
	ldr	w1, [x22]
	bl	_LWLockInitialize
	sub	x0, x19, #8
	bl	_ConditionVariableInit
	add	x23, x23, #1
	ldrsw	x8, [x20]
	add	x24, x24, #12
	cmp	x23, x8
	b.lt	LBB0_4
LBB0_5:
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_max_replication_slots,4,2      ; @max_replication_slots
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ReplicationSlot Ctl"

	.comm	_ReplicationSlotCtl,8,3         ; @ReplicationSlotCtl
	.comm	_LWTRANCHE_REPLICATION_SLOT_IO_IN_PROGRESS,4,2 ; @LWTRANCHE_REPLICATION_SLOT_IO_IN_PROGRESS
l_.str.1:                               ; @.str.1
	.asciz	"replication_slot_io"

.subsections_via_symbols
