	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WalRcvDie
_WalRcvDie:                             ## @WalRcvDie
	.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	_WalRcv@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$1, %edi
	callq	_XLogWalRcvFlush
	leaq	20(%rbx), %r14
	movq	%r14, %rdi
	callq	_SpinLockAcquire
	movq	(%rbx), %rax
	movq	_WALRCV_STREAMING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_WALRCV_RESTARTING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%dl
	orb	%cl, %dl
	movq	_WALRCV_STARTING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	movq	_WALRCV_WAITING@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	sete	%cl
	orb	%dil, %cl
	orb	%dl, %cl
	movq	_WALRCV_STOPPING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_Assert
	movq	8(%rbx), %rax
	movq	_MyProcPid@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	_WALRCV_STOPPED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	$0, 8(%rbx)
	movl	$0, 16(%rbx)
	movq	$0, 24(%rbx)
	movq	%r14, %rdi
	callq	_SpinLockRelease
	movq	_wrconn@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_walrcv_disconnect
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WakeupRecovery                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WalRcv,8,3                     ## @WalRcv
	.comm	_WALRCV_STREAMING,8,3           ## @WALRCV_STREAMING
	.comm	_WALRCV_RESTARTING,8,3          ## @WALRCV_RESTARTING
	.comm	_WALRCV_STARTING,8,3            ## @WALRCV_STARTING
	.comm	_WALRCV_WAITING,8,3             ## @WALRCV_WAITING
	.comm	_WALRCV_STOPPING,8,3            ## @WALRCV_STOPPING
	.comm	_MyProcPid,8,3                  ## @MyProcPid
	.comm	_WALRCV_STOPPED,8,3             ## @WALRCV_STOPPED
	.comm	_wrconn,8,3                     ## @wrconn
	.no_dead_strip	_WalRcvDie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WalRcvDie
_WalRcvDie:                             ; @WalRcvDie
	.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	x8, _WalRcv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WalRcv@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	mov	w0, #1
	bl	_XLogWalRcvFlush
	add	x19, x20, #20
	mov	x0, x19
	bl	_SpinLockAcquire
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _WALRCV_STREAMING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WALRCV_STREAMING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh6:
	adrp	x9, _WALRCV_RESTARTING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WALRCV_RESTARTING@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _WALRCV_STARTING@GOTPAGE
Lloh10:
	ldr	x10, [x10, _WALRCV_STARTING@GOTPAGEOFF]
	ccmp	x8, x9, #4, ne
Lloh11:
	ldr	x9, [x10]
	ccmp	x8, x9, #4, ne
Lloh12:
	adrp	x9, _WALRCV_WAITING@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WALRCV_WAITING@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
Lloh15:
	adrp	x9, _WALRCV_STOPPING@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WALRCV_STOPPING@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x20, #8]
Lloh18:
	adrp	x9, _MyProcPid@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MyProcPid@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
Lloh21:
	adrp	x8, _WALRCV_STOPPED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WALRCV_STOPPED@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	stp	x8, xzr, [x20]
	str	wzr, [x20, #16]
	str	xzr, [x20, #24]
	mov	x0, x19
	bl	_SpinLockRelease
Lloh24:
	adrp	x8, _wrconn@GOTPAGE
Lloh25:
	ldr	x8, [x8, _wrconn@GOTPAGEOFF]
Lloh26:
	ldr	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_walrcv_disconnect
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WakeupRecovery
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WalRcv,8,3                     ; @WalRcv
	.comm	_WALRCV_STREAMING,8,3           ; @WALRCV_STREAMING
	.comm	_WALRCV_RESTARTING,8,3          ; @WALRCV_RESTARTING
	.comm	_WALRCV_STARTING,8,3            ; @WALRCV_STARTING
	.comm	_WALRCV_WAITING,8,3             ; @WALRCV_WAITING
	.comm	_WALRCV_STOPPING,8,3            ; @WALRCV_STOPPING
	.comm	_MyProcPid,8,3                  ; @MyProcPid
	.comm	_WALRCV_STOPPED,8,3             ; @WALRCV_STOPPED
	.comm	_wrconn,8,3                     ; @wrconn
	.no_dead_strip	_WalRcvDie
.subsections_via_symbols
