	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetReplicationTransferLatency  ## -- Begin function GetReplicationTransferLatency
	.p2align	4, 0x90
_GetReplicationTransferLatency:         ## @GetReplicationTransferLatency
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_WalRcv@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	$0, -40(%rbp)
	movl	$0, -28(%rbp)
	movq	%rbx, %rdi
	callq	_SpinLockAcquire
	movl	4(%rbx), %r14d
	movl	8(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_SpinLockRelease
	leaq	-40(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_TimestampDifference
	imull	$1000, -40(%rbp), %ecx          ## imm = 0x3E8
	movslq	-28(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$38, %rax
	addl	%edx, %eax
	addl	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WalRcv,8,3                     ## @WalRcv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetReplicationTransferLatency  ; -- Begin function GetReplicationTransferLatency
	.p2align	2
_GetReplicationTransferLatency:         ; @GetReplicationTransferLatency
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _WalRcv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WalRcv@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
	mov	x0, x19
	bl	_SpinLockAcquire
	ldp	w21, w20, [x19, #4]
	mov	x0, x19
	bl	_SpinLockRelease
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x20
	mov	x1, x21
	bl	_TimestampDifference
	ldp	w10, w8, [sp, #4]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	mov	w9, #1000
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	mul	x10, x10, x11
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	madd	w0, w8, w9, w10
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WalRcv,8,3                     ; @WalRcv
.subsections_via_symbols
