	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ShutdownXLOG                   ## -- Begin function ShutdownXLOG
	.p2align	4, 0x90
_ShutdownXLOG:                          ## @ShutdownXLOG
	.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	_AuxProcessResourceOwner@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setne	%dil
	callq	_Assert
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	sete	%cl
	cmpq	(%rbx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_Assert
	movq	(%rbx), %rax
	movq	%rax, (%r14)
	movq	_IsPostmasterEnvironment@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_NOTICE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_LOG@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	xorl	%eax, %eax
	callq	_WalSndInitStopping
	xorl	%eax, %eax
	callq	_WalSndWaitStopping
	xorl	%eax, %eax
	callq	_RecoveryInProgress
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_CHECKPOINT_IS_SHUTDOWN@GOTPCREL(%rip), %rax
	movq	_CHECKPOINT_IMMEDIATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_CreateRestartPoint
	jmp	LBB0_9
LBB0_5:
	xorl	%eax, %eax
	callq	_XLogArchivingActive
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	callq	_XLogArchiveCommandSet
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	callq	_RequestXLogSwitch
LBB0_8:
	movq	_CHECKPOINT_IS_SHUTDOWN@GOTPCREL(%rip), %rax
	movq	_CHECKPOINT_IMMEDIATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_CreateCheckPoint
LBB0_9:
	xorl	%eax, %eax
	callq	_ShutdownCLOG
	xorl	%eax, %eax
	callq	_ShutdownCommitTs
	xorl	%eax, %eax
	callq	_ShutdownSUBTRANS
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ShutdownMultiXact              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AuxProcessResourceOwner,8,3    ## @AuxProcessResourceOwner
	.comm	_CurrentResourceOwner,8,3       ## @CurrentResourceOwner
	.comm	_IsPostmasterEnvironment,8,3    ## @IsPostmasterEnvironment
	.comm	_LOG,4,2                        ## @LOG
	.comm	_NOTICE,4,2                     ## @NOTICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"shutting down"

	.comm	_CHECKPOINT_IS_SHUTDOWN,4,2     ## @CHECKPOINT_IS_SHUTDOWN
	.comm	_CHECKPOINT_IMMEDIATE,4,2       ## @CHECKPOINT_IMMEDIATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ShutdownXLOG                   ; -- Begin function ShutdownXLOG
	.p2align	2
_ShutdownXLOG:                          ; @ShutdownXLOG
	.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, _AuxProcessResourceOwner@GOTPAGE
Lloh1:
	ldr	x19, [x19, _AuxProcessResourceOwner@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
Lloh2:
	adrp	x20, _CurrentResourceOwner@GOTPAGE
Lloh3:
	ldr	x20, [x20, _CurrentResourceOwner@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #0
	ldr	x9, [x19]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x19]
	str	x8, [x20]
Lloh4:
	adrp	x8, _IsPostmasterEnvironment@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IsPostmasterEnvironment@GOTPAGEOFF]
Lloh6:
	adrp	x9, _LOG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LOG@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x10, _NOTICE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NOTICE@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w19, [x8]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	bl	_WalSndInitStopping
	bl	_WalSndWaitStopping
	bl	_RecoveryInProgress
	cbz	x0, LBB0_2
; %bb.1:
Lloh13:
	adrp	x8, _CHECKPOINT_IS_SHUTDOWN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CHECKPOINT_IS_SHUTDOWN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _CHECKPOINT_IMMEDIATE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CHECKPOINT_IMMEDIATE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_CreateRestartPoint
	b	LBB0_6
LBB0_2:
	bl	_XLogArchivingActive
	cbz	x0, LBB0_5
; %bb.3:
	bl	_XLogArchiveCommandSet
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #0
	bl	_RequestXLogSwitch
LBB0_5:
Lloh19:
	adrp	x8, _CHECKPOINT_IS_SHUTDOWN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CHECKPOINT_IS_SHUTDOWN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _CHECKPOINT_IMMEDIATE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CHECKPOINT_IMMEDIATE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_CreateCheckPoint
LBB0_6:
	bl	_ShutdownCLOG
	bl	_ShutdownCommitTs
	bl	_ShutdownSUBTRANS
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ShutdownMultiXact
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AuxProcessResourceOwner,8,3    ; @AuxProcessResourceOwner
	.comm	_CurrentResourceOwner,8,3       ; @CurrentResourceOwner
	.comm	_IsPostmasterEnvironment,8,3    ; @IsPostmasterEnvironment
	.comm	_LOG,4,2                        ; @LOG
	.comm	_NOTICE,4,2                     ; @NOTICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shutting down"

	.comm	_CHECKPOINT_IS_SHUTDOWN,4,2     ; @CHECKPOINT_IS_SHUTDOWN
	.comm	_CHECKPOINT_IMMEDIATE,4,2       ; @CHECKPOINT_IMMEDIATE
.subsections_via_symbols
