	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WalRcvRunning                  ## -- Begin function WalRcvRunning
	.p2align	4, 0x90
_WalRcvRunning:                         ## @WalRcvRunning
	.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	_WalRcv@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_SpinLockAcquire
	movq	(%rbx), %r14
	movq	8(%rbx), %r13
	movq	%r15, %rdi
	callq	_SpinLockRelease
	movq	_WALRCV_STARTING@GOTPCREL(%rip), %r12
	cmpq	(%r12), %r14
	jne	LBB0_5
## %bb.1:
	xorl	%edi, %edi
	callq	_time
	cltq
	subq	%r13, %rax
	movq	_WALRCV_STARTUP_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	callq	_SpinLockAcquire
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_4
## %bb.3:
	movq	_WALRCV_STOPPED@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, (%rbx)
LBB0_4:
	movq	%r15, %rdi
	callq	_SpinLockRelease
LBB0_5:
	movq	_WALRCV_STOPPED@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %r14
	setne	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WalRcv,8,3                     ## @WalRcv
	.comm	_WALRCV_STARTING,8,3            ## @WALRCV_STARTING
	.comm	_WALRCV_STARTUP_TIMEOUT,8,3     ## @WALRCV_STARTUP_TIMEOUT
	.comm	_WALRCV_STOPPED,8,3             ## @WALRCV_STOPPED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WalRcvRunning                  ; -- Begin function WalRcvRunning
	.p2align	2
_WalRcvRunning:                         ; @WalRcvRunning
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _WalRcv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WalRcv@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	add	x19, x22, #16
	mov	x0, x19
	bl	_SpinLockAcquire
	ldp	x20, x24, [x22]
	mov	x0, x19
	bl	_SpinLockRelease
Lloh3:
	adrp	x23, _WALRCV_STARTING@GOTPAGE
Lloh4:
	ldr	x23, [x23, _WALRCV_STARTING@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh5:
	adrp	x21, _WALRCV_STOPPED@GOTPAGE
Lloh6:
	ldr	x21, [x21, _WALRCV_STOPPED@GOTPAGEOFF]
	cmp	x20, x8
	b.ne	LBB0_5
; %bb.1:
	mov	x0, #0
	bl	_time
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
Lloh7:
	adrp	x9, _WALRCV_STARTUP_TIMEOUT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WALRCV_STARTUP_TIMEOUT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	sub	x8, x8, x24
	cmp	x8, x9
	b.le	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_SpinLockAcquire
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x20, [x21]
	str	x20, [x22]
LBB0_4:
	mov	x0, x19
	bl	_SpinLockRelease
LBB0_5:
	ldr	x8, [x21]
	cmp	x20, x8
	cset	w0, ne
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_WalRcv,8,3                     ; @WalRcv
	.comm	_WALRCV_STARTING,8,3            ; @WALRCV_STARTING
	.comm	_WALRCV_STARTUP_TIMEOUT,8,3     ; @WALRCV_STARTUP_TIMEOUT
	.comm	_WALRCV_STOPPED,8,3             ; @WALRCV_STOPPED
.subsections_via_symbols
