	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLogArchiveNotify              ## -- Begin function XLogArchiveNotify
	.p2align	4, 0x90
_XLogArchiveNotify:                     ## @XLogArchiveNotify
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_StatusFilePath
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_AllocateFile
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rdi
	callq	_FreeFile
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	movq	%rbx, %rsi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_IsUnderPostmaster@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_PMSIGNAL_WAKEN_ARCHIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SendPostmasterSignal
	jmp	LBB0_7
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".ready"

L_.str.1:                               ## @.str.1
	.asciz	"w"

	.comm	_LOG,4,2                        ## @LOG
L_.str.2:                               ## @.str.2
	.asciz	"could not create archive status file \"%s\": %m"

L_.str.3:                               ## @.str.3
	.asciz	"could not write archive status file \"%s\": %m"

	.comm	_IsUnderPostmaster,8,3          ## @IsUnderPostmaster
	.comm	_PMSIGNAL_WAKEN_ARCHIVER,4,2    ## @PMSIGNAL_WAKEN_ARCHIVER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLogArchiveNotify              ; -- Begin function XLogArchiveNotify
	.p2align	2
_XLogArchiveNotify:                     ; @XLogArchiveNotify
	.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
	sub	sp, sp, #16
	mov	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_StatusFilePath
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_AllocateFile
	cbz	x0, LBB0_3
; %bb.1:
	bl	_FreeFile
	cbz	x0, LBB0_7
; %bb.2:
Lloh12:
	adrp	x8, _LOG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _LOG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_4:
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.6:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh25:
	adrp	x8, _IsUnderPostmaster@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IsUnderPostmaster@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.8:
Lloh28:
	adrp	x8, _PMSIGNAL_WAKEN_ARCHIVER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PMSIGNAL_WAKEN_ARCHIVER@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_SendPostmasterSignal
	b	LBB0_5
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".ready"

l_.str.1:                               ; @.str.1
	.asciz	"w"

	.comm	_LOG,4,2                        ; @LOG
l_.str.2:                               ; @.str.2
	.asciz	"could not create archive status file \"%s\": %m"

l_.str.3:                               ; @.str.3
	.asciz	"could not write archive status file \"%s\": %m"

	.comm	_IsUnderPostmaster,8,3          ; @IsUnderPostmaster
	.comm	_PMSIGNAL_WAKEN_ARCHIVER,4,2    ; @PMSIGNAL_WAKEN_ARCHIVER
.subsections_via_symbols
