	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReadCheckpointRecord
_ReadCheckpointRecord:                  ## @ReadCheckpointRecord
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	_XRecOffIsValid
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$1, %ecx
	callq	_ReadRecord
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	(%rax), %rcx
	movq	_RM_XLOG_ID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.8:
	movq	_XLR_INFO_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	8(%rax), %ecx
	movq	_XLOG_CHECKPOINT_SHUTDOWN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_11
## %bb.9:
	movq	_XLOG_CHECKPOINT_ONLINE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_11
## %bb.10:
	cmpl	$1, %r14d
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_13
LBB0_1:
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.2:
	cmpl	$1, %r14d
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_13
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.5:
	cmpl	$1, %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_13
LBB0_7:
	cmpl	$1, %r14d
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %rdi
LBB0_13:
	cmoveq	%rax, %rdi
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_SizeOfXLogRecord@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_SizeOfXLogRecordDataHeaderShort@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	%rdx, %rcx
	addq	$4, %rcx
	cmpq	%rcx, 16(%rax)
	je	LBB0_15
## %bb.12:
	cmpl	$1, %r14d
	leaq	L_.str.8(%rip), %rax
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid primary checkpoint link in control file"

L_.str.1:                               ## @.str.1
	.asciz	"invalid checkpoint link in backup_label file"

L_.str.2:                               ## @.str.2
	.asciz	"invalid primary checkpoint record"

L_.str.3:                               ## @.str.3
	.asciz	"invalid checkpoint record"

	.comm	_RM_XLOG_ID,8,3                 ## @RM_XLOG_ID
L_.str.4:                               ## @.str.4
	.asciz	"invalid resource manager ID in primary checkpoint record"

L_.str.5:                               ## @.str.5
	.asciz	"invalid resource manager ID in checkpoint record"

	.comm	_XLR_INFO_MASK,4,2              ## @XLR_INFO_MASK
	.comm	_XLOG_CHECKPOINT_SHUTDOWN,4,2   ## @XLOG_CHECKPOINT_SHUTDOWN
	.comm	_XLOG_CHECKPOINT_ONLINE,4,2     ## @XLOG_CHECKPOINT_ONLINE
L_.str.6:                               ## @.str.6
	.asciz	"invalid xl_info in primary checkpoint record"

L_.str.7:                               ## @.str.7
	.asciz	"invalid xl_info in checkpoint record"

	.comm	_SizeOfXLogRecord,8,3           ## @SizeOfXLogRecord
	.comm	_SizeOfXLogRecordDataHeaderShort,8,3 ## @SizeOfXLogRecordDataHeaderShort
L_.str.8:                               ## @.str.8
	.asciz	"invalid length of primary checkpoint record"

L_.str.9:                               ## @.str.9
	.asciz	"invalid length of checkpoint record"

	.no_dead_strip	_ReadCheckpointRecord
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReadCheckpointRecord
_ReadCheckpointRecord:                  ; @ReadCheckpointRecord
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_XRecOffIsValid
Lloh0:
	adrp	x23, _LOG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LOG@GOTPAGEOFF]
	cbz	w0, LBB0_6
; %bb.1:
	ldr	w2, [x23]
	mov	x0, x22
	mov	x1, x21
	mov	w3, #1
	bl	_ReadRecord
	cbz	x0, LBB0_8
; %bb.2:
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _RM_XLOG_ID@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RM_XLOG_ID@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.3:
	ldr	w8, [x0, #8]
Lloh5:
	adrp	x9, _XLR_INFO_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _XLR_INFO_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh8:
	adrp	x9, _XLOG_CHECKPOINT_SHUTDOWN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _XLOG_CHECKPOINT_SHUTDOWN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _XLOG_CHECKPOINT_ONLINE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _XLOG_CHECKPOINT_ONLINE@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_11
; %bb.4:
	ldr	x8, [x0, #16]
Lloh14:
	adrp	x9, _SizeOfXLogRecord@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SizeOfXLogRecord@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _SizeOfXLogRecordDataHeaderShort@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SizeOfXLogRecordDataHeaderShort@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	add	x9, x9, x10
	add	x9, x9, #4
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.5:
Lloh20:
	adrp	x8, l_.str.9@PAGE
Lloh21:
	add	x8, x8, l_.str.9@PAGEOFF
Lloh22:
	adrp	x9, l_.str.8@PAGE
Lloh23:
	add	x9, x9, l_.str.8@PAGEOFF
	b	LBB0_12
LBB0_6:
	cbz	w20, LBB0_13
; %bb.7:
Lloh24:
	adrp	x8, l_.str.1@PAGE
Lloh25:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh26:
	adrp	x9, l_.str@PAGE
Lloh27:
	add	x9, x9, l_.str@PAGEOFF
	b	LBB0_12
LBB0_8:
	cbz	w20, LBB0_13
; %bb.9:
Lloh28:
	adrp	x8, l_.str.3@PAGE
Lloh29:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh30:
	adrp	x9, l_.str.2@PAGE
Lloh31:
	add	x9, x9, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh32:
	adrp	x8, l_.str.5@PAGE
Lloh33:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh34:
	adrp	x9, l_.str.4@PAGE
Lloh35:
	add	x9, x9, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh36:
	adrp	x8, l_.str.7@PAGE
Lloh37:
	add	x8, x8, l_.str.7@PAGEOFF
Lloh38:
	adrp	x9, l_.str.6@PAGE
Lloh39:
	add	x9, x9, l_.str.6@PAGEOFF
LBB0_12:
	cmp	w19, #1
	csel	x0, x9, x8, eq
	ldr	w19, [x23]
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_13:
	mov	x0, #0
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid primary checkpoint link in control file"

l_.str.1:                               ; @.str.1
	.asciz	"invalid checkpoint link in backup_label file"

l_.str.2:                               ; @.str.2
	.asciz	"invalid primary checkpoint record"

l_.str.3:                               ; @.str.3
	.asciz	"invalid checkpoint record"

	.comm	_RM_XLOG_ID,8,3                 ; @RM_XLOG_ID
l_.str.4:                               ; @.str.4
	.asciz	"invalid resource manager ID in primary checkpoint record"

l_.str.5:                               ; @.str.5
	.asciz	"invalid resource manager ID in checkpoint record"

	.comm	_XLR_INFO_MASK,4,2              ; @XLR_INFO_MASK
	.comm	_XLOG_CHECKPOINT_SHUTDOWN,4,2   ; @XLOG_CHECKPOINT_SHUTDOWN
	.comm	_XLOG_CHECKPOINT_ONLINE,4,2     ; @XLOG_CHECKPOINT_ONLINE
l_.str.6:                               ; @.str.6
	.asciz	"invalid xl_info in primary checkpoint record"

l_.str.7:                               ; @.str.7
	.asciz	"invalid xl_info in checkpoint record"

	.comm	_SizeOfXLogRecord,8,3           ; @SizeOfXLogRecord
	.comm	_SizeOfXLogRecordDataHeaderShort,8,3 ; @SizeOfXLogRecordDataHeaderShort
l_.str.8:                               ; @.str.8
	.asciz	"invalid length of primary checkpoint record"

l_.str.9:                               ; @.str.9
	.asciz	"invalid length of checkpoint record"

	.no_dead_strip	_ReadCheckpointRecord
.subsections_via_symbols
