	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReadRecord
_ReadRecord:                            ## @ReadRecord
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %rax
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, (%rax)
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, 4(%rax)
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	%rsi, (%rcx)
	setne	%dl
	movl	%edx, 8(%rax)
	movq	_lastSourceFailed@GOTPCREL(%rip), %r12
	movl	$0, (%r12)
	movq	_EndRecPtr@GOTPCREL(%rip), %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rsi, (%rdx)
	movq	_ThisTimeLineID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, 8(%rdx)
	movq	%rsi, %rax
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_minRecoveryPoint@GOTPCREL(%rip), %rdx
	movq	%rax, (%rdx)
	movq	_minRecoveryPointTLI@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movq	_updateMinRecoveryPoint@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_UpdateControlFile
	movq	_ControlFileLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	xorl	%eax, %eax
	callq	_CheckRecoveryConsistency
	movl	$0, (%r12)
	movq	_currentSource@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	leaq	-80(%rbp), %rdx
	callq	_XLogReadRecord
	movq	%rax, %r14
	movl	20(%rbx), %eax
	movq	_ReadRecPtr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%rbx), %rax
	movq	%rax, (%r13)
	testq	%r14, %r14
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rbx), %edi
	movq	_expectedTLEs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tliInHistory
	testl	%eax, %eax
	jne	LBB0_24
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	_MAXFNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	16(%rbx), %edi
	movq	_wal_segment_size@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_XLByteToSeg
	movl	16(%rbx), %edi
	movl	(%r12), %esi
	callq	_XLogSegmentOffset
	movl	%eax, %r14d
	movl	12(%rbx), %esi
	movl	(%r12), %ecx
	movq	%r13, %rdi
	callq	_XLogFileName
	movq	%r15, %rsi
	movq	%r15, %r12
	testq	%r15, %r15
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_EndRecPtr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_emode_for_corrupt_record
	movl	%eax, %r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	%r12, %r15
	movq	_lastSourceFailed@GOTPCREL(%rip), %r12
	movq	_EndRecPtr@GOTPCREL(%rip), %r13
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_readFile@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	js	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_close
	movq	_readFile@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, -80(%rbp)
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rsi
	testq	%r15, %r15
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rsi
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_emode_for_corrupt_record
	movl	%eax, %ebx
	movq	-80(%rbp), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, (%r12)
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_InArchiveRecovery@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_ArchiveRecoveryRequested@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	_InArchiveRecovery@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_StandbyModeRequested@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_StandbyMode@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_ControlFileLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_DB_IN_ARCHIVE_RECOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ControlFile@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%eax, 12(%rdx)
	movq	(%rdx), %rax
	movq	(%r13), %rsi
	cmpq	%rsi, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jl	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rdx), %ecx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_StandbyMode@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_CheckForStandbyTrigger
	testl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_1
LBB0_23:
	xorl	%r14d, %r14d
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	movq	%r14, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidXLogRecPtr,8,3          ## @InvalidXLogRecPtr
	.comm	_lastSourceFailed,4,2           ## @lastSourceFailed
	.comm	_ReadRecPtr,4,2                 ## @ReadRecPtr
	.comm	_EndRecPtr,8,3                  ## @EndRecPtr
	.comm	_readFile,4,2                   ## @readFile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_expectedTLEs,4,2               ## @expectedTLEs
	.comm	_MAXFNAMELEN,4,2                ## @MAXFNAMELEN
	.comm	_wal_segment_size,4,2           ## @wal_segment_size
L_.str.1:                               ## @.str.1
	.asciz	"unexpected timeline ID %u in log segment %s, offset %u"

	.comm	_InArchiveRecovery,4,2          ## @InArchiveRecovery
	.comm	_ArchiveRecoveryRequested,8,3   ## @ArchiveRecoveryRequested
	.comm	_DEBUG1,4,2                     ## @DEBUG1
L_.str.2:                               ## @.str.2
	.asciz	"reached end of WAL in pg_wal, entering archive recovery"

	.comm	_StandbyModeRequested,8,3       ## @StandbyModeRequested
	.comm	_StandbyMode,4,2                ## @StandbyMode
	.comm	_ControlFileLock,4,2            ## @ControlFileLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_DB_IN_ARCHIVE_RECOVERY,4,2     ## @DB_IN_ARCHIVE_RECOVERY
	.comm	_ControlFile,8,3                ## @ControlFile
	.comm	_ThisTimeLineID,4,2             ## @ThisTimeLineID
	.comm	_minRecoveryPoint,8,3           ## @minRecoveryPoint
	.comm	_minRecoveryPointTLI,4,2        ## @minRecoveryPointTLI
	.comm	_updateMinRecoveryPoint,4,2     ## @updateMinRecoveryPoint
	.comm	_currentSource,8,3              ## @currentSource
	.no_dead_strip	_ReadRecord
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReadRecord
_ReadRecord:                            ; @ReadRecord
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x8, [x0, #24]
	stp	w2, w3, [x29, #-104]            ; 8-byte Folded Spill
	stp	w3, w2, [x8]
Lloh3:
	adrp	x9, _InvalidXLogRecPtr@GOTPAGE
Lloh4:
	ldr	x9, [x9, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x1
	cset	w9, ne
	str	w9, [x8, #8]
Lloh6:
	adrp	x20, _lastSourceFailed@GOTPAGE
Lloh7:
	ldr	x20, [x20, _lastSourceFailed@GOTPAGEOFF]
	str	wzr, [x20]
Lloh8:
	adrp	x25, _EndRecPtr@GOTPAGE
Lloh9:
	ldr	x25, [x25, _EndRecPtr@GOTPAGEOFF]
Lloh10:
	adrp	x23, _readFile@GOTPAGE
Lloh11:
	ldr	x23, [x23, _readFile@GOTPAGEOFF]
	mov	w24, #1
Lloh12:
	adrp	x19, _InArchiveRecovery@GOTPAGE
Lloh13:
	ldr	x19, [x19, _InArchiveRecovery@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x11, [x9]
Lloh14:
	adrp	x8, _ThisTimeLineID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ThisTimeLineID@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x8]
	str	w10, [x9, #8]
	mov	x8, x11
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh17:
	adrp	x9, _minRecoveryPoint@GOTPAGE
Lloh18:
	ldr	x9, [x9, _minRecoveryPoint@GOTPAGEOFF]
Lloh19:
	str	x8, [x9]
Lloh20:
	adrp	x8, _minRecoveryPointTLI@GOTPAGE
Lloh21:
	ldr	x8, [x8, _minRecoveryPointTLI@GOTPAGEOFF]
Lloh22:
	str	w10, [x8]
Lloh23:
	adrp	x8, _updateMinRecoveryPoint@GOTPAGE
Lloh24:
	ldr	x8, [x8, _updateMinRecoveryPoint@GOTPAGEOFF]
Lloh25:
	str	w24, [x8]
	bl	_UpdateControlFile
Lloh26:
	adrp	x8, _ControlFileLock@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ControlFileLock@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_LWLockRelease
	bl	_CheckRecoveryConsistency
	str	wzr, [x20]
Lloh29:
	adrp	x8, _currentSource@GOTPAGE
Lloh30:
	ldr	x8, [x8, _currentSource@GOTPAGEOFF]
Lloh31:
	str	xzr, [x8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x2, x29, #96
	mov	x0, x22
	mov	x1, x21
	bl	_XLogReadRecord
	ldr	w8, [x22, #20]
Lloh32:
	adrp	x9, _ReadRecPtr@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ReadRecPtr@GOTPAGEOFF]
Lloh34:
	str	w8, [x9]
	ldr	x8, [x22]
	str	x8, [x25]
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x0
	ldr	w0, [x22, #8]
Lloh35:
	adrp	x8, _expectedTLEs@GOTPAGE
Lloh36:
	ldr	x8, [x8, _expectedTLEs@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	bl	_tliInHistory
	cbnz	w0, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, sp
Lloh38:
	adrp	x8, _MAXFNAMELEN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MAXFNAMELEN@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	mov	x9, x8
Lloh41:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh42:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x26, x9, x8
	mov	sp, x26
	ldr	w0, [x22, #16]
Lloh43:
	adrp	x28, _wal_segment_size@GOTPAGE
Lloh44:
	ldr	x28, [x28, _wal_segment_size@GOTPAGEOFF]
	ldr	w2, [x28]
	bl	_XLByteToSeg
	ldr	w0, [x22, #16]
	ldr	w1, [x28]
	bl	_XLogSegmentOffset
	mov	x27, x0
	ldr	w1, [x22, #12]
	ldr	w3, [x28]
	mov	x0, x26
	bl	_XLogFileName
	ldr	x8, [x25]
	cmp	x21, #0
	csel	x1, x8, x21, eq
	ldur	w0, [x29, #-104]                ; 4-byte Folded Reload
	bl	_emode_for_corrupt_record
	mov	x28, x0
	ldr	w1, [x22, #8]
Lloh45:
	adrp	x0, l_.str.1@PAGE
Lloh46:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x26
	mov	x3, x27
	bl	_errmsg
	mov	x1, x0
	mov	x0, x28
	bl	_ereport
	mov	sp, x24
	mov	w24, #1
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x23]
	tbnz	w0, #31, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_close
	mov	w8, #-1
	str	w8, [x23]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldur	x8, [x29, #-96]
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25]
	cmp	x21, #0
	csel	x1, x8, x21, eq
	ldur	w0, [x29, #-104]                ; 4-byte Folded Reload
	bl	_emode_for_corrupt_record
	mov	x26, x0
	ldur	x8, [x29, #-96]
	str	x8, [sp, #-16]!
Lloh47:
	adrp	x0, l_.str@PAGE
Lloh48:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg_internal
	add	sp, sp, #16
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w24, [x20]
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	cbnz	w8, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
Lloh49:
	adrp	x9, _ArchiveRecoveryRequested@GOTPAGE
Lloh50:
	ldr	x9, [x9, _ArchiveRecoveryRequested@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh52:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh53:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh54:
	ldr	w26, [x8]
Lloh55:
	adrp	x0, l_.str.2@PAGE
Lloh56:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
	str	w24, [x19]
Lloh57:
	adrp	x8, _StandbyModeRequested@GOTPAGE
Lloh58:
	ldr	x8, [x8, _StandbyModeRequested@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh60:
	adrp	x8, _StandbyMode@GOTPAGE
Lloh61:
	ldr	x8, [x8, _StandbyMode@GOTPAGEOFF]
Lloh62:
	str	w24, [x8]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh63:
	adrp	x8, _ControlFileLock@GOTPAGE
Lloh64:
	ldr	x8, [x8, _ControlFileLock@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
Lloh66:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh67:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh69:
	adrp	x8, _DB_IN_ARCHIVE_RECOVERY@GOTPAGE
Lloh70:
	ldr	x8, [x8, _DB_IN_ARCHIVE_RECOVERY@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
Lloh72:
	adrp	x9, _ControlFile@GOTPAGE
Lloh73:
	ldr	x9, [x9, _ControlFile@GOTPAGEOFF]
Lloh74:
	ldr	x9, [x9]
	str	w8, [x9, #12]
	ldr	x8, [x9]
	ldr	x11, [x25]
	cmp	x8, x11
	b.lt	LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x9, #8]
	b	LBB0_2
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh75:
	adrp	x8, _StandbyMode@GOTPAGE
Lloh76:
	ldr	x8, [x8, _StandbyMode@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	cbz	w8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	bl	_CheckForStandbyTrigger
	cbz	w0, LBB0_3
LBB0_18:
	mov	x26, #0
LBB0_19:
	ldur	x8, [x29, #-88]
Lloh78:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh79:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh80:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x26
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotStr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidXLogRecPtr,8,3          ; @InvalidXLogRecPtr
	.comm	_lastSourceFailed,4,2           ; @lastSourceFailed
	.comm	_ReadRecPtr,4,2                 ; @ReadRecPtr
	.comm	_EndRecPtr,8,3                  ; @EndRecPtr
	.comm	_readFile,4,2                   ; @readFile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_expectedTLEs,4,2               ; @expectedTLEs
	.comm	_MAXFNAMELEN,4,2                ; @MAXFNAMELEN
	.comm	_wal_segment_size,4,2           ; @wal_segment_size
l_.str.1:                               ; @.str.1
	.asciz	"unexpected timeline ID %u in log segment %s, offset %u"

	.comm	_InArchiveRecovery,4,2          ; @InArchiveRecovery
	.comm	_ArchiveRecoveryRequested,8,3   ; @ArchiveRecoveryRequested
	.comm	_DEBUG1,4,2                     ; @DEBUG1
l_.str.2:                               ; @.str.2
	.asciz	"reached end of WAL in pg_wal, entering archive recovery"

	.comm	_StandbyModeRequested,8,3       ; @StandbyModeRequested
	.comm	_StandbyMode,4,2                ; @StandbyMode
	.comm	_ControlFileLock,4,2            ; @ControlFileLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_DB_IN_ARCHIVE_RECOVERY,4,2     ; @DB_IN_ARCHIVE_RECOVERY
	.comm	_ControlFile,8,3                ; @ControlFile
	.comm	_ThisTimeLineID,4,2             ; @ThisTimeLineID
	.comm	_minRecoveryPoint,8,3           ; @minRecoveryPoint
	.comm	_minRecoveryPointTLI,4,2        ; @minRecoveryPointTLI
	.comm	_updateMinRecoveryPoint,4,2     ; @updateMinRecoveryPoint
	.comm	_currentSource,8,3              ; @currentSource
	.no_dead_strip	_ReadRecord
.subsections_via_symbols
