	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReplicationOriginShmemSize     ## -- Begin function ReplicationOriginShmemSize
	.p2align	4, 0x90
_ReplicationOriginShmemSize:            ## @ReplicationOriginShmemSize
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_max_replication_slots@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_1
## %bb.2:
	movq	_ReplicationStateCtl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_states@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_add_size
	movl	%eax, %ebx
	movq	(%r14), %rdi
	movl	$4, %esi
	callq	_mul_size
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_add_size                       ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_replication_slots,8,3      ## @max_replication_slots
	.comm	_ReplicationStateCtl,4,2        ## @ReplicationStateCtl
	.comm	_states,4,2                     ## @states
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReplicationOriginShmemSize     ; -- Begin function ReplicationOriginShmemSize
	.p2align	2
_ReplicationOriginShmemSize:            ; @ReplicationOriginShmemSize
	.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
Lloh0:
	adrp	x20, _max_replication_slots@GOTPAGE
Lloh1:
	ldr	x20, [x20, _max_replication_slots@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ReplicationStateCtl@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ReplicationStateCtl@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _states@GOTPAGE
Lloh6:
	ldr	x8, [x8, _states@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_offsetof
	mov	x1, x0
	mov	w0, #0
	bl	_add_size
	mov	x19, x0
	ldr	x0, [x20]
	mov	w1, #4
	bl	_mul_size
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_add_size
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_max_replication_slots,8,3      ; @max_replication_slots
	.comm	_ReplicationStateCtl,4,2        ; @ReplicationStateCtl
	.comm	_states,4,2                     ; @states
.subsections_via_symbols
