	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MaybeStartWalReceiver
_MaybeStartWalReceiver:                 ## @MaybeStartWalReceiver
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_WalReceiverPID@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_8
## %bb.1:
	movq	_pmState@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PM_STARTUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	movq	_PM_RECOVERY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	_PM_HOT_STANDBY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_PM_WAIT_READONLY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_5:
	movq	_Shutdown@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_NoShutdown@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	callq	_StartWalReceiver
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_WalReceiverRequested@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WalReceiverPID,8,3             ## @WalReceiverPID
	.comm	_pmState,8,3                    ## @pmState
	.comm	_PM_STARTUP,8,3                 ## @PM_STARTUP
	.comm	_PM_RECOVERY,8,3                ## @PM_RECOVERY
	.comm	_PM_HOT_STANDBY,8,3             ## @PM_HOT_STANDBY
	.comm	_PM_WAIT_READONLY,8,3           ## @PM_WAIT_READONLY
	.comm	_Shutdown,8,3                   ## @Shutdown
	.comm	_NoShutdown,8,3                 ## @NoShutdown
	.comm	_WalReceiverRequested,4,2       ## @WalReceiverRequested
	.no_dead_strip	_MaybeStartWalReceiver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MaybeStartWalReceiver
_MaybeStartWalReceiver:                 ; @MaybeStartWalReceiver
	.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	x19, _WalReceiverPID@GOTPAGE
Lloh1:
	ldr	x19, [x19, _WalReceiverPID@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _pmState@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pmState@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _PM_STARTUP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PM_STARTUP@GOTPAGEOFF]
Lloh7:
	adrp	x10, _PM_RECOVERY@GOTPAGE
Lloh8:
	ldr	x10, [x10, _PM_RECOVERY@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	adrp	x11, _PM_HOT_STANDBY@GOTPAGE
Lloh12:
	ldr	x11, [x11, _PM_HOT_STANDBY@GOTPAGEOFF]
Lloh13:
	adrp	x12, _PM_WAIT_READONLY@GOTPAGE
Lloh14:
	ldr	x12, [x12, _PM_WAIT_READONLY@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x11]
Lloh16:
	ldr	x12, [x12]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_5
; %bb.2:
Lloh17:
	adrp	x8, _Shutdown@GOTPAGE
Lloh18:
	ldr	x8, [x8, _Shutdown@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _NoShutdown@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NoShutdown@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	bl	_StartWalReceiver
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
Lloh23:
	adrp	x8, _WalReceiverRequested@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WalReceiverRequested@GOTPAGEOFF]
Lloh25:
	str	wzr, [x8]
LBB0_5:
	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	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_WalReceiverPID,8,3             ; @WalReceiverPID
	.comm	_pmState,8,3                    ; @pmState
	.comm	_PM_STARTUP,8,3                 ; @PM_STARTUP
	.comm	_PM_RECOVERY,8,3                ; @PM_RECOVERY
	.comm	_PM_HOT_STANDBY,8,3             ; @PM_HOT_STANDBY
	.comm	_PM_WAIT_READONLY,8,3           ; @PM_WAIT_READONLY
	.comm	_Shutdown,8,3                   ; @Shutdown
	.comm	_NoShutdown,8,3                 ; @NoShutdown
	.comm	_WalReceiverRequested,4,2       ; @WalReceiverRequested
	.no_dead_strip	_MaybeStartWalReceiver
.subsections_via_symbols
