	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PostmasterStateMachine
_PostmasterStateMachine:                ## @PostmasterStateMachine
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pmState@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_PM_WAIT_BACKUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	callq	_BackupInProgress
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	(%r14), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_PM_WAIT_BACKENDS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_4:
	movq	_PM_WAIT_READONLY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.5:
	movq	_BACKEND_TYPE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CountChildren
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rax
	jmp	LBB0_12
LBB0_7:
	movq	_StartupPID@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal_child
LBB0_9:
	movq	_WalReceiverPID@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal_child
LBB0_11:
	movq	_PM_WAIT_BACKENDS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_12:
	movq	_PM_WAIT_BACKENDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_33
## %bb.13:
	movq	_BACKEND_TYPE_NORMAL@GOTPCREL(%rip), %rax
	movq	_BACKEND_TYPE_WORKER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_CountChildren
	testq	%rax, %rax
	jne	LBB0_33
## %bb.14:
	movq	_StartupPID@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_33
## %bb.15:
	movq	_WalReceiverPID@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_33
## %bb.16:
	movq	_BgWriterPID@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_33
## %bb.17:
	movq	_CheckpointerPID@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_20
## %bb.18:
	movq	_FatalError@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_33
## %bb.19:
	movq	_Shutdown@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ImmediateShutdown@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_33
LBB0_20:
	movq	_WalWriterPID@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_33
## %bb.21:
	movq	_AutoVacPID@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_33
## %bb.22:
	movq	_Shutdown@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ImmediateShutdown@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_24
## %bb.23:
	movq	_FatalError@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jne	LBB0_24
## %bb.26:
	movq	_NoShutdown@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setg	%dil
	callq	_Assert
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_28
## %bb.27:
	xorl	%eax, %eax
	callq	_StartCheckpointer
	movq	%rax, %rdi
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_29
LBB0_28:
	movq	_SIGUSR2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal_child
	movq	_PM_SHUTDOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_24:
	movq	_PM_WAIT_DEAD_END@GOTPCREL(%rip), %rax
LBB0_25:
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_33:
	movq	(%r14), %rax
	movq	_PM_SHUTDOWN_2@GOTPCREL(%rip), %rcx
	movq	_PgArchPID@GOTPCREL(%rip), %rbx
	cmpq	(%rcx), %rax
	jne	LBB0_38
## %bb.34:
	cmpq	$0, (%rbx)
	jne	LBB0_38
## %bb.35:
	movq	_BACKEND_TYPE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CountChildren
	testq	%rax, %rax
	je	LBB0_37
## %bb.36:
	movq	(%r14), %rax
	jmp	LBB0_38
LBB0_37:
	movq	_PM_WAIT_DEAD_END@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_38:
	movq	_PM_WAIT_DEAD_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_43
## %bb.39:
	movq	_BackendList@GOTPCREL(%rip), %rdi
	callq	_dlist_is_empty
	testq	%rax, %rax
	je	LBB0_43
## %bb.40:
	cmpq	$0, (%rbx)
	jne	LBB0_43
## %bb.41:
	movq	_PgStatPID@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_43
## %bb.42:
	movq	_StartupPID@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_Assert
	movq	_WalReceiverPID@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_Assert
	movq	_BgWriterPID@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_Assert
	movq	_CheckpointerPID@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_Assert
	movq	_WalWriterPID@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_Assert
	movq	_AutoVacPID@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_Assert
	movq	_PM_NO_CHILDREN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_43:
	movq	_Shutdown@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_NoShutdown@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_51
## %bb.44:
	movq	(%r14), %rax
	movq	_PM_NO_CHILDREN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_51
## %bb.45:
	movq	_FatalError@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_47
## %bb.46:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	$1, %ebx
	jmp	LBB0_50
LBB0_47:
	movq	_ReachedNormalRunning@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_48
## %bb.49:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_CancelBackup
	jmp	LBB0_50
LBB0_48:
	xorl	%ebx, %ebx
LBB0_50:
	movl	%ebx, %edi
	callq	_ExitPostmaster
LBB0_51:
	movq	(%r14), %rax
	movq	_PM_NO_CHILDREN@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_55
## %bb.52:
	movq	_StartupStatus@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_STARTUP_CRASHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_54
## %bb.53:
	movq	_restart_after_crash@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_55
LBB0_54:
	movl	$1, %edi
	callq	_ExitPostmaster
LBB0_55:
	movq	_FatalError@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_58
## %bb.56:
	movq	(%r14), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_58
## %bb.57:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	xorl	%eax, %eax
	callq	_ResetBackgroundWorkerCrashTimes
	movl	$1, %edi
	callq	_shmem_exit
	movl	$1, %edi
	callq	_LocalProcessControlFile
	xorl	%eax, %eax
	callq	_reset_shared
	xorl	%eax, %eax
	callq	_StartupDataBase
	movq	_StartupPID@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_Assert
	movq	_STARTUP_RUNNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_StartupStatus@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_PM_STARTUP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_AbortStartTime@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_58:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movl	$1, (%r15)
	movq	_PM_WAIT_DEAD_END@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_SIGQUIT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_SignalChildren
	movq	_PgArchPID@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.30:
	movl	(%rbx), %esi
	callq	_signal_child
LBB0_31:
	movq	_PgStatPID@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.32:
	movl	(%rbx), %esi
	callq	_signal_child
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_pmState,8,3                    ## @pmState
	.comm	_PM_WAIT_BACKUP,8,3             ## @PM_WAIT_BACKUP
	.comm	_PM_WAIT_BACKENDS,8,3           ## @PM_WAIT_BACKENDS
	.comm	_PM_WAIT_READONLY,8,3           ## @PM_WAIT_READONLY
	.comm	_BACKEND_TYPE_NORMAL,4,2        ## @BACKEND_TYPE_NORMAL
	.comm	_StartupPID,8,3                 ## @StartupPID
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_WalReceiverPID,8,3             ## @WalReceiverPID
	.comm	_BACKEND_TYPE_WORKER,4,2        ## @BACKEND_TYPE_WORKER
	.comm	_BgWriterPID,8,3                ## @BgWriterPID
	.comm	_CheckpointerPID,8,3            ## @CheckpointerPID
	.comm	_FatalError,4,2                 ## @FatalError
	.comm	_Shutdown,8,3                   ## @Shutdown
	.comm	_ImmediateShutdown,8,3          ## @ImmediateShutdown
	.comm	_WalWriterPID,8,3               ## @WalWriterPID
	.comm	_AutoVacPID,8,3                 ## @AutoVacPID
	.comm	_PM_WAIT_DEAD_END,8,3           ## @PM_WAIT_DEAD_END
	.comm	_NoShutdown,8,3                 ## @NoShutdown
	.comm	_SIGUSR2,4,2                    ## @SIGUSR2
	.comm	_PM_SHUTDOWN,8,3                ## @PM_SHUTDOWN
	.comm	_SIGQUIT,4,2                    ## @SIGQUIT
	.comm	_PgArchPID,8,3                  ## @PgArchPID
	.comm	_PgStatPID,8,3                  ## @PgStatPID
	.comm	_PM_SHUTDOWN_2,8,3              ## @PM_SHUTDOWN_2
	.comm	_BACKEND_TYPE_ALL,4,2           ## @BACKEND_TYPE_ALL
	.comm	_BackendList,4,2                ## @BackendList
	.comm	_PM_NO_CHILDREN,8,3             ## @PM_NO_CHILDREN
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"abnormal database system shutdown"

	.comm	_ReachedNormalRunning,8,3       ## @ReachedNormalRunning
	.comm	_StartupStatus,8,3              ## @StartupStatus
	.comm	_STARTUP_CRASHED,8,3            ## @STARTUP_CRASHED
	.comm	_restart_after_crash,4,2        ## @restart_after_crash
L_.str.1:                               ## @.str.1
	.asciz	"all server processes terminated; reinitializing"

	.comm	_STARTUP_RUNNING,8,3            ## @STARTUP_RUNNING
	.comm	_PM_STARTUP,8,3                 ## @PM_STARTUP
	.comm	_AbortStartTime,8,3             ## @AbortStartTime
	.no_dead_strip	_PostmasterStateMachine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PostmasterStateMachine
_PostmasterStateMachine:                ; @PostmasterStateMachine
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x20, _pmState@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pmState@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _PM_WAIT_BACKUP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PM_WAIT_BACKUP@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x23, _PM_WAIT_BACKENDS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _PM_WAIT_BACKENDS@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	bl	_BackupInProgress
	cbz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x20]
	b	LBB0_4
LBB0_3:
	ldr	x8, [x23]
	str	x8, [x20]
LBB0_4:
Lloh7:
	adrp	x9, _PM_WAIT_READONLY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PM_WAIT_READONLY@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.5:
Lloh10:
	adrp	x8, _BACKEND_TYPE_NORMAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BACKEND_TYPE_NORMAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_CountChildren
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x20]
	b	LBB0_12
LBB0_7:
Lloh13:
	adrp	x8, _StartupPID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _StartupPID@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
Lloh16:
	adrp	x19, _SIGTERM@GOTPAGE
Lloh17:
	ldr	x19, [x19, _SIGTERM@GOTPAGEOFF]
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w1, [x19]
	bl	_signal_child
LBB0_9:
Lloh18:
	adrp	x8, _WalReceiverPID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WalReceiverPID@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w1, [x19]
	bl	_signal_child
LBB0_11:
	ldr	x8, [x23]
	str	x8, [x20]
LBB0_12:
Lloh21:
	adrp	x21, _FatalError@GOTPAGE
Lloh22:
	ldr	x21, [x21, _FatalError@GOTPAGEOFF]
Lloh23:
	adrp	x19, _Shutdown@GOTPAGE
Lloh24:
	ldr	x19, [x19, _Shutdown@GOTPAGEOFF]
Lloh25:
	adrp	x22, _NoShutdown@GOTPAGE
Lloh26:
	ldr	x22, [x22, _NoShutdown@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh27:
	adrp	x24, _PM_WAIT_DEAD_END@GOTPAGE
Lloh28:
	ldr	x24, [x24, _PM_WAIT_DEAD_END@GOTPAGEOFF]
Lloh29:
	adrp	x23, _PgArchPID@GOTPAGE
Lloh30:
	ldr	x23, [x23, _PgArchPID@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.13:
Lloh31:
	adrp	x8, _BACKEND_TYPE_NORMAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BACKEND_TYPE_NORMAL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _BACKEND_TYPE_WORKER@GOTPAGE
Lloh35:
	ldr	x9, [x9, _BACKEND_TYPE_WORKER@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_CountChildren
Lloh37:
	adrp	x8, _StartupPID@GOTPAGE
Lloh38:
	ldr	x8, [x8, _StartupPID@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
Lloh40:
	adrp	x9, _WalReceiverPID@GOTPAGE
Lloh41:
	ldr	x9, [x9, _WalReceiverPID@GOTPAGEOFF]
Lloh42:
	adrp	x10, _BgWriterPID@GOTPAGE
Lloh43:
	ldr	x10, [x10, _BgWriterPID@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
Lloh45:
	ldr	x10, [x10]
	cmp	x0, #0
	ccmp	x8, #0, #0, eq
	ccmp	x9, #0, #0, eq
	ccmp	x10, #0, #0, eq
	b.ne	LBB0_26
; %bb.14:
Lloh46:
	adrp	x25, _CheckpointerPID@GOTPAGE
Lloh47:
	ldr	x25, [x25, _CheckpointerPID@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_17
; %bb.15:
	ldr	w8, [x21]
	cbnz	w8, LBB0_26
; %bb.16:
	ldr	x8, [x19]
Lloh48:
	adrp	x9, _ImmediateShutdown@GOTPAGE
Lloh49:
	ldr	x9, [x9, _ImmediateShutdown@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_26
LBB0_17:
Lloh51:
	adrp	x8, _WalWriterPID@GOTPAGE
Lloh52:
	ldr	x8, [x8, _WalWriterPID@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	cbnz	x8, LBB0_26
; %bb.18:
Lloh54:
	adrp	x8, _AutoVacPID@GOTPAGE
Lloh55:
	ldr	x8, [x8, _AutoVacPID@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	cbnz	x8, LBB0_26
; %bb.19:
	ldr	x8, [x19]
Lloh57:
	adrp	x9, _ImmediateShutdown@GOTPAGE
Lloh58:
	ldr	x9, [x9, _ImmediateShutdown@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_24
; %bb.20:
	ldr	w9, [x21]
	cbnz	w9, LBB0_24
; %bb.21:
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, gt
	bl	_Assert
	ldr	x0, [x25]
	cbnz	x0, LBB0_23
; %bb.22:
	bl	_StartCheckpointer
	str	x0, [x25]
	cbz	x0, LBB0_51
LBB0_23:
Lloh60:
	adrp	x8, _SIGUSR2@GOTPAGE
Lloh61:
	ldr	x8, [x8, _SIGUSR2@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	bl	_signal_child
Lloh63:
	adrp	x8, _PM_SHUTDOWN@GOTPAGE
Lloh64:
	ldr	x8, [x8, _PM_SHUTDOWN@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
	b	LBB0_25
LBB0_24:
	ldr	x8, [x24]
LBB0_25:
	str	x8, [x20]
LBB0_26:
	ldr	x8, [x20]
Lloh66:
	adrp	x9, _PM_SHUTDOWN_2@GOTPAGE
Lloh67:
	ldr	x9, [x9, _PM_SHUTDOWN_2@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	ldr	x10, [x23]
	cmp	x8, x9
	ccmp	x10, #0, #0, eq
	b.ne	LBB0_30
; %bb.27:
Lloh69:
	adrp	x8, _BACKEND_TYPE_ALL@GOTPAGE
Lloh70:
	ldr	x8, [x8, _BACKEND_TYPE_ALL@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
	bl	_CountChildren
	cbz	x0, LBB0_29
; %bb.28:
	ldr	x8, [x20]
	b	LBB0_30
LBB0_29:
	ldr	x8, [x24]
	str	x8, [x20]
LBB0_30:
	ldr	x9, [x24]
Lloh72:
	adrp	x24, _PM_NO_CHILDREN@GOTPAGE
Lloh73:
	ldr	x24, [x24, _PM_NO_CHILDREN@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_35
; %bb.31:
Lloh74:
	adrp	x0, _BackendList@GOTPAGE
Lloh75:
	ldr	x0, [x0, _BackendList@GOTPAGEOFF]
	bl	_dlist_is_empty
	cbz	x0, LBB0_35
; %bb.32:
	ldr	x8, [x23]
	cbnz	x8, LBB0_35
; %bb.33:
Lloh76:
	adrp	x8, _PgStatPID@GOTPAGE
Lloh77:
	ldr	x8, [x8, _PgStatPID@GOTPAGEOFF]
Lloh78:
	ldr	x8, [x8]
	cbnz	x8, LBB0_35
; %bb.34:
Lloh79:
	adrp	x8, _StartupPID@GOTPAGE
Lloh80:
	ldr	x8, [x8, _StartupPID@GOTPAGEOFF]
Lloh81:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
Lloh82:
	adrp	x8, _WalReceiverPID@GOTPAGE
Lloh83:
	ldr	x8, [x8, _WalReceiverPID@GOTPAGEOFF]
Lloh84:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
Lloh85:
	adrp	x8, _BgWriterPID@GOTPAGE
Lloh86:
	ldr	x8, [x8, _BgWriterPID@GOTPAGEOFF]
Lloh87:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
Lloh88:
	adrp	x8, _CheckpointerPID@GOTPAGE
Lloh89:
	ldr	x8, [x8, _CheckpointerPID@GOTPAGEOFF]
Lloh90:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
Lloh91:
	adrp	x8, _WalWriterPID@GOTPAGE
Lloh92:
	ldr	x8, [x8, _WalWriterPID@GOTPAGEOFF]
Lloh93:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
Lloh94:
	adrp	x8, _AutoVacPID@GOTPAGE
Lloh95:
	ldr	x8, [x8, _AutoVacPID@GOTPAGEOFF]
Lloh96:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x24]
	str	x8, [x20]
LBB0_35:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.le	LBB0_43
; %bb.36:
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_43
; %bb.37:
	ldr	w8, [x21]
	cbz	w8, LBB0_39
; %bb.38:
Lloh97:
	adrp	x8, _LOG@GOTPAGE
Lloh98:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh99:
	ldr	w19, [x8]
Lloh100:
	adrp	x0, l_.str@PAGE
Lloh101:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	mov	w0, #1
	b	LBB0_42
LBB0_39:
Lloh102:
	adrp	x8, _ReachedNormalRunning@GOTPAGE
Lloh103:
	ldr	x8, [x8, _ReachedNormalRunning@GOTPAGEOFF]
Lloh104:
	ldr	x8, [x8]
	cbz	x8, LBB0_41
; %bb.40:
	bl	_CancelBackup
LBB0_41:
	mov	w0, #0
LBB0_42:
	bl	_ExitPostmaster
LBB0_43:
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_47
; %bb.44:
Lloh105:
	adrp	x8, _StartupStatus@GOTPAGE
Lloh106:
	ldr	x8, [x8, _StartupStatus@GOTPAGEOFF]
Lloh107:
	ldr	x8, [x8]
Lloh108:
	adrp	x9, _STARTUP_CRASHED@GOTPAGE
Lloh109:
	ldr	x9, [x9, _STARTUP_CRASHED@GOTPAGEOFF]
Lloh110:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_46
; %bb.45:
Lloh111:
	adrp	x8, _restart_after_crash@GOTPAGE
Lloh112:
	ldr	x8, [x8, _restart_after_crash@GOTPAGEOFF]
Lloh113:
	ldr	w8, [x8]
	cbnz	w8, LBB0_47
LBB0_46:
	mov	w0, #1
	bl	_ExitPostmaster
LBB0_47:
	ldr	w8, [x21]
	cbz	w8, LBB0_50
; %bb.48:
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_50
; %bb.49:
Lloh114:
	adrp	x8, _LOG@GOTPAGE
Lloh115:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh116:
	ldr	w19, [x8]
Lloh117:
	adrp	x0, l_.str.1@PAGE
Lloh118:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	bl	_ResetBackgroundWorkerCrashTimes
	mov	w0, #1
	bl	_shmem_exit
	mov	w0, #1
	bl	_LocalProcessControlFile
	bl	_reset_shared
	bl	_StartupDataBase
Lloh119:
	adrp	x8, _StartupPID@GOTPAGE
Lloh120:
	ldr	x8, [x8, _StartupPID@GOTPAGEOFF]
Lloh121:
	str	x0, [x8]
	cmp	x0, #0
	cset	w0, ne
	bl	_Assert
Lloh122:
	adrp	x8, _STARTUP_RUNNING@GOTPAGE
Lloh123:
	ldr	x8, [x8, _STARTUP_RUNNING@GOTPAGEOFF]
Lloh124:
	ldr	x8, [x8]
Lloh125:
	adrp	x9, _StartupStatus@GOTPAGE
Lloh126:
	ldr	x9, [x9, _StartupStatus@GOTPAGEOFF]
Lloh127:
	adrp	x10, _PM_STARTUP@GOTPAGE
Lloh128:
	ldr	x10, [x10, _PM_STARTUP@GOTPAGEOFF]
Lloh129:
	str	x8, [x9]
Lloh130:
	ldr	x8, [x10]
	str	x8, [x20]
Lloh131:
	adrp	x8, _AbortStartTime@GOTPAGE
Lloh132:
	ldr	x8, [x8, _AbortStartTime@GOTPAGEOFF]
Lloh133:
	str	xzr, [x8]
LBB0_50:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_51:
	mov	w8, #1
	str	w8, [x21]
	ldr	x8, [x24]
	str	x8, [x20]
Lloh134:
	adrp	x25, _SIGQUIT@GOTPAGE
Lloh135:
	ldr	x25, [x25, _SIGQUIT@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_SignalChildren
	ldr	x0, [x23]
	cbz	x0, LBB0_53
; %bb.52:
	ldr	w1, [x25]
	bl	_signal_child
LBB0_53:
Lloh136:
	adrp	x8, _PgStatPID@GOTPAGE
Lloh137:
	ldr	x8, [x8, _PgStatPID@GOTPAGEOFF]
Lloh138:
	ldr	x0, [x8]
	cbz	x0, LBB0_26
; %bb.54:
	ldr	w1, [x25]
	bl	_signal_child
	b	LBB0_26
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh44
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotStr	Lloh131, Lloh132, Lloh133
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh130
	.loh AdrpLdrGotStr	Lloh125, Lloh126, Lloh129
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotStr	Lloh119, Lloh120, Lloh121
	.loh AdrpAdd	Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGot	Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh138
	.cfi_endproc
                                        ; -- End function
	.comm	_pmState,8,3                    ; @pmState
	.comm	_PM_WAIT_BACKUP,8,3             ; @PM_WAIT_BACKUP
	.comm	_PM_WAIT_BACKENDS,8,3           ; @PM_WAIT_BACKENDS
	.comm	_PM_WAIT_READONLY,8,3           ; @PM_WAIT_READONLY
	.comm	_BACKEND_TYPE_NORMAL,4,2        ; @BACKEND_TYPE_NORMAL
	.comm	_StartupPID,8,3                 ; @StartupPID
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_WalReceiverPID,8,3             ; @WalReceiverPID
	.comm	_BACKEND_TYPE_WORKER,4,2        ; @BACKEND_TYPE_WORKER
	.comm	_BgWriterPID,8,3                ; @BgWriterPID
	.comm	_CheckpointerPID,8,3            ; @CheckpointerPID
	.comm	_FatalError,4,2                 ; @FatalError
	.comm	_Shutdown,8,3                   ; @Shutdown
	.comm	_ImmediateShutdown,8,3          ; @ImmediateShutdown
	.comm	_WalWriterPID,8,3               ; @WalWriterPID
	.comm	_AutoVacPID,8,3                 ; @AutoVacPID
	.comm	_PM_WAIT_DEAD_END,8,3           ; @PM_WAIT_DEAD_END
	.comm	_NoShutdown,8,3                 ; @NoShutdown
	.comm	_SIGUSR2,4,2                    ; @SIGUSR2
	.comm	_PM_SHUTDOWN,8,3                ; @PM_SHUTDOWN
	.comm	_SIGQUIT,4,2                    ; @SIGQUIT
	.comm	_PgArchPID,8,3                  ; @PgArchPID
	.comm	_PgStatPID,8,3                  ; @PgStatPID
	.comm	_PM_SHUTDOWN_2,8,3              ; @PM_SHUTDOWN_2
	.comm	_BACKEND_TYPE_ALL,4,2           ; @BACKEND_TYPE_ALL
	.comm	_BackendList,4,2                ; @BackendList
	.comm	_PM_NO_CHILDREN,8,3             ; @PM_NO_CHILDREN
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"abnormal database system shutdown"

	.comm	_ReachedNormalRunning,8,3       ; @ReachedNormalRunning
	.comm	_StartupStatus,8,3              ; @StartupStatus
	.comm	_STARTUP_CRASHED,8,3            ; @STARTUP_CRASHED
	.comm	_restart_after_crash,4,2        ; @restart_after_crash
l_.str.1:                               ; @.str.1
	.asciz	"all server processes terminated; reinitializing"

	.comm	_STARTUP_RUNNING,8,3            ; @STARTUP_RUNNING
	.comm	_PM_STARTUP,8,3                 ; @PM_STARTUP
	.comm	_AbortStartTime,8,3             ; @AbortStartTime
	.no_dead_strip	_PostmasterStateMachine
.subsections_via_symbols
