	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readRecoverySignalFile
_readRecoverySignalFile:                ## @readRecoverySignalFile
	.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
	xorl	%eax, %eax
	callq	_IsBootstrapProcessingMode
	testq	%rax, %rax
	jne	LBB0_16
## %bb.1:
	movq	_RECOVERY_COMMAND_FILE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-24(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_3:
	movq	_RECOVERY_COMMAND_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_unlink
	movq	_STANDBY_SIGNAL_FILE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-24(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:
	movq	_RECOVERY_SIGNAL_FILE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-24(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	movl	(%rbx), %r14d
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_PG_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_sync_method@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_sync_bit
	orl	%eax, %ebx
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movq	_S_IWUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_BasicOpenFilePerm
	testl	%eax, %eax
	js	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_pg_fsync
	movl	%ebx, %edi
	callq	_close
LBB0_12:
	movq	_recovery_signal_file_found@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_13:
	movq	_standby_signal_file_found@GOTPCREL(%rip), %rcx
	movq	_StandbyModeRequested@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_ArchiveRecoveryRequested@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	cmpl	$0, (%rcx)
	jne	LBB0_7
## %bb.14:
	movq	_recovery_signal_file_found@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_16
## %bb.15:
	movl	$1, (%rax)
	jmp	LBB0_16
LBB0_4:
	movl	(%rbx), %r14d
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_PG_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_sync_method@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_sync_bit
	orl	%eax, %ebx
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movq	_S_IWUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_BasicOpenFilePerm
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_pg_fsync
	movl	%ebx, %edi
	callq	_close
LBB0_6:
	movq	_standby_signal_file_found@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_7:
	movq	_StandbyModeRequested@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_ArchiveRecoveryRequested@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_IsUnderPostmaster@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_16
## %bb.8:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RECOVERY_COMMAND_FILE,4,2      ## @RECOVERY_COMMAND_FILE
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"using recovery command file \"%s\" is not supported"

	.comm	_RECOVERY_COMMAND_DONE,4,2      ## @RECOVERY_COMMAND_DONE
	.comm	_STANDBY_SIGNAL_FILE,4,2        ## @STANDBY_SIGNAL_FILE
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_PG_BINARY,4,2                  ## @PG_BINARY
	.comm	_sync_method,4,2                ## @sync_method
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_standby_signal_file_found,4,2  ## @standby_signal_file_found
	.comm	_RECOVERY_SIGNAL_FILE,4,2       ## @RECOVERY_SIGNAL_FILE
	.comm	_recovery_signal_file_found,4,2 ## @recovery_signal_file_found
	.comm	_StandbyModeRequested,4,2       ## @StandbyModeRequested
	.comm	_ArchiveRecoveryRequested,4,2   ## @ArchiveRecoveryRequested
	.comm	_IsUnderPostmaster,4,2          ## @IsUnderPostmaster
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.1:                               ## @.str.1
	.asciz	"standby mode is not supported by single-user servers"

	.no_dead_strip	_readRecoverySignalFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readRecoverySignalFile
_readRecoverySignalFile:                ; @readRecoverySignalFile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_IsBootstrapProcessingMode
	cbnz	x0, LBB0_16
; %bb.1:
Lloh0:
	adrp	x20, _RECOVERY_COMMAND_FILE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RECOVERY_COMMAND_FILE@GOTPAGEOFF]
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_stat
	cbnz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _FATAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	bl	_errcode_for_file_access
	ldr	w8, [x20]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_3:
Lloh7:
	adrp	x8, _RECOVERY_COMMAND_DONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RECOVERY_COMMAND_DONE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_unlink
Lloh10:
	adrp	x19, _STANDBY_SIGNAL_FILE@GOTPAGE
Lloh11:
	ldr	x19, [x19, _STANDBY_SIGNAL_FILE@GOTPAGEOFF]
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_stat
Lloh12:
	adrp	x21, _StandbyModeRequested@GOTPAGE
Lloh13:
	ldr	x21, [x21, _StandbyModeRequested@GOTPAGEOFF]
Lloh14:
	adrp	x20, _ArchiveRecoveryRequested@GOTPAGE
Lloh15:
	ldr	x20, [x20, _ArchiveRecoveryRequested@GOTPAGEOFF]
	cbz	x0, LBB0_11
; %bb.4:
Lloh16:
	adrp	x19, _RECOVERY_SIGNAL_FILE@GOTPAGE
Lloh17:
	ldr	x19, [x19, _RECOVERY_SIGNAL_FILE@GOTPAGEOFF]
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_stat
	cbnz	x0, LBB0_8
; %bb.5:
	ldr	w19, [x19]
Lloh18:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh20:
	adrp	x9, _PG_BINARY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PG_BINARY@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	ldr	w9, [x9]
	orr	w22, w9, w8
Lloh24:
	adrp	x8, _sync_method@GOTPAGE
Lloh25:
	ldr	x8, [x8, _sync_method@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_get_sync_bit
Lloh27:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
	orr	w1, w22, w0
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _S_IWUSR@GOTPAGE
Lloh31:
	ldr	x9, [x9, _S_IWUSR@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_BasicOpenFilePerm
	tbnz	w0, #31, LBB0_7
; %bb.6:
	mov	x19, x0
	bl	_pg_fsync
	mov	x0, x19
	bl	_close
LBB0_7:
Lloh33:
	adrp	x8, _recovery_signal_file_found@GOTPAGE
Lloh34:
	ldr	x8, [x8, _recovery_signal_file_found@GOTPAGEOFF]
	mov	w9, #1
Lloh35:
	str	w9, [x8]
LBB0_8:
Lloh36:
	adrp	x8, _standby_signal_file_found@GOTPAGE
Lloh37:
	ldr	x8, [x8, _standby_signal_file_found@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	wzr, [x21]
	str	wzr, [x20]
	cbnz	w8, LBB0_14
; %bb.9:
Lloh39:
	adrp	x8, _recovery_signal_file_found@GOTPAGE
Lloh40:
	ldr	x8, [x8, _recovery_signal_file_found@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cbz	w8, LBB0_16
; %bb.10:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_16
LBB0_11:
	ldr	w19, [x19]
Lloh42:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh44:
	adrp	x9, _PG_BINARY@GOTPAGE
Lloh45:
	ldr	x9, [x9, _PG_BINARY@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	ldr	w9, [x9]
	orr	w22, w9, w8
Lloh48:
	adrp	x8, _sync_method@GOTPAGE
Lloh49:
	ldr	x8, [x8, _sync_method@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	bl	_get_sync_bit
Lloh51:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh52:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
	orr	w1, w22, w0
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x9, _S_IWUSR@GOTPAGE
Lloh55:
	ldr	x9, [x9, _S_IWUSR@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_BasicOpenFilePerm
	tbnz	w0, #31, LBB0_13
; %bb.12:
	mov	x19, x0
	bl	_pg_fsync
	mov	x0, x19
	bl	_close
LBB0_13:
Lloh57:
	adrp	x8, _standby_signal_file_found@GOTPAGE
Lloh58:
	ldr	x8, [x8, _standby_signal_file_found@GOTPAGEOFF]
	mov	w9, #1
Lloh59:
	str	w9, [x8]
LBB0_14:
	mov	w8, #1
	str	w8, [x21]
	str	w8, [x20]
Lloh60:
	adrp	x8, _IsUnderPostmaster@GOTPAGE
Lloh61:
	ldr	x8, [x8, _IsUnderPostmaster@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	cbnz	w8, LBB0_16
; %bb.15:
Lloh63:
	adrp	x8, _FATAL@GOTPAGE
Lloh64:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh65:
	ldr	w19, [x8]
Lloh66:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh67:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh68:
	ldr	w0, [x8]
	bl	_errcode
Lloh69:
	adrp	x0, l_.str.1@PAGE
Lloh70:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh46
	.loh AdrpLdrGotStr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.comm	_RECOVERY_COMMAND_FILE,4,2      ; @RECOVERY_COMMAND_FILE
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"using recovery command file \"%s\" is not supported"

	.comm	_RECOVERY_COMMAND_DONE,4,2      ; @RECOVERY_COMMAND_DONE
	.comm	_STANDBY_SIGNAL_FILE,4,2        ; @STANDBY_SIGNAL_FILE
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_PG_BINARY,4,2                  ; @PG_BINARY
	.comm	_sync_method,4,2                ; @sync_method
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_standby_signal_file_found,4,2  ; @standby_signal_file_found
	.comm	_RECOVERY_SIGNAL_FILE,4,2       ; @RECOVERY_SIGNAL_FILE
	.comm	_recovery_signal_file_found,4,2 ; @recovery_signal_file_found
	.comm	_StandbyModeRequested,4,2       ; @StandbyModeRequested
	.comm	_ArchiveRecoveryRequested,4,2   ; @ArchiveRecoveryRequested
	.comm	_IsUnderPostmaster,4,2          ; @IsUnderPostmaster
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.1:                               ; @.str.1
	.asciz	"standby mode is not supported by single-user servers"

	.no_dead_strip	_readRecoverySignalFile
.subsections_via_symbols
