	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WalRcvStreaming                ## -- Begin function WalRcvStreaming
	.p2align	4, 0x90
_WalRcvStreaming:                       ## @WalRcvStreaming
	.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), %r14
	movq	%r14, %rdi
	callq	_SpinLockAcquire
	movq	(%rbx), %r12
	movq	8(%rbx), %r13
	movq	%r14, %rdi
	callq	_SpinLockRelease
	movq	_WALRCV_STARTING@GOTPCREL(%rip), %r15
	cmpq	(%r15), %r12
	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	%r14, %rdi
	callq	_SpinLockAcquire
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.3:
	movq	_WALRCV_STOPPED@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, (%rbx)
LBB0_4:
	movq	%r14, %rdi
	callq	_SpinLockRelease
LBB0_5:
	movq	_WALRCV_STREAMING@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	sete	%al
	cmpq	(%r15), %r12
	sete	%cl
	orb	%al, %cl
	movq	_WALRCV_RESTARTING@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	sete	%al
	orb	%cl, %al
	movzbl	%al, %eax
	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
	.comm	_WALRCV_STREAMING,8,3           ## @WALRCV_STREAMING
	.comm	_WALRCV_RESTARTING,8,3          ## @WALRCV_RESTARTING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WalRcvStreaming                ; -- Begin function WalRcvStreaming
	.p2align	2
_WalRcvStreaming:                       ; @WalRcvStreaming
	.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, x23, [x22]
	mov	x0, x19
	bl	_SpinLockRelease
Lloh3:
	adrp	x21, _WALRCV_STARTING@GOTPAGE
Lloh4:
	ldr	x21, [x21, _WALRCV_STARTING@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x20, x8
	b.ne	LBB0_5
; %bb.1:
	mov	x0, #0
	bl	_time
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
Lloh5:
	adrp	x9, _WALRCV_STARTUP_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WALRCV_STARTUP_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	sub	x8, x8, x23
	cmp	x8, x9
	b.le	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_SpinLockAcquire
	ldr	x8, [x22]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _WALRCV_STOPPED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WALRCV_STOPPED@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x8]
	str	x20, [x22]
LBB0_4:
	mov	x0, x19
	bl	_SpinLockRelease
LBB0_5:
Lloh11:
	adrp	x8, _WALRCV_STREAMING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WALRCV_STREAMING@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x20, x8
	ldr	x8, [x21]
	ccmp	x20, x8, #4, ne
Lloh14:
	adrp	x8, _WALRCV_RESTARTING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WALRCV_RESTARTING@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ccmp	x20, x8, #4, ne
	cset	w0, eq
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.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
	.comm	_WALRCV_STREAMING,8,3           ; @WALRCV_STREAMING
	.comm	_WALRCV_RESTARTING,8,3          ; @WALRCV_RESTARTING
.subsections_via_symbols
