	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CheckDataVersion
_CheckDataVersion:                      ## @CheckDataVersion
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	leaq	-96(%rbp), %rdi
	movl	$64, %esi
	movq	%rax, %rdx
	callq	_fgets
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	-96(%rbp), %r14
	movq	%r14, %rdi
	callq	_pg_strip_crlf
	movq	_PG_MAJORVERSION@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_fclose
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_9
## %bb.7:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	movq	%rbx, %rdi
	callq	_ferror
	testl	%eax, %eax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rdi
	cmoveq	%rax, %rdi
LBB0_2:
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_pg_log_error
	movl	$1, %edi
	callq	_exit
LBB0_8:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_log_error
	movl	(%r15), %ecx
	leaq	L_.str.6(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-96(%rbp), %rdx
	callq	_pg_log_info
	movl	$1, %edi
	callq	_exit
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PG_VERSION"

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

L_.str.2:                               ## @.str.2
	.asciz	"could not open file \"%s\" for reading: %m"

L_.str.3:                               ## @.str.3
	.asciz	"unexpected empty file \"%s\""

L_.str.4:                               ## @.str.4
	.asciz	"could not read file \"%s\": %m"

	.comm	_PG_MAJORVERSION,4,2            ## @PG_MAJORVERSION
L_.str.5:                               ## @.str.5
	.asciz	"data directory is of wrong version"

L_.str.6:                               ## @.str.6
	.asciz	"File \"%s\" contains \"%s\", which is not compatible with this program's version \"%s\"."

	.no_dead_strip	_CheckDataVersion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CheckDataVersion
_CheckDataVersion:                      ; @CheckDataVersion
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
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	x19, l_.str@PAGE
Lloh4:
	add	x19, x19, l_.str@PAGEOFF
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x20
	bl	_fgets
	cbz	w0, LBB0_6
; %bb.2:
	add	x0, sp, #8
	bl	_pg_strip_crlf
Lloh7:
	adrp	x19, _PG_MAJORVERSION@GOTPAGE
Lloh8:
	ldr	x19, [x19, _PG_MAJORVERSION@GOTPAGEOFF]
	ldr	w1, [x19]
	add	x0, sp, #8
	bl	_strcmp
	cbnz	x0, LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_fclose
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	str	x19, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_ferror
Lloh14:
	adrp	x8, l_.str.4@PAGE
Lloh15:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh16:
	adrp	x9, l_.str.3@PAGE
Lloh17:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w0, #0
	csel	x0, x9, x8, eq
	str	x19, [sp]
LBB0_7:
	bl	_pg_log_error
	mov	w0, #1
	bl	_exit
LBB0_8:
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pg_log_error
	ldr	w3, [x19]
Lloh20:
	adrp	x0, l_.str.6@PAGE
Lloh21:
	add	x0, x0, l_.str.6@PAGEOFF
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_pg_log_info
	mov	w0, #1
	bl	_exit
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PG_VERSION"

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

l_.str.2:                               ; @.str.2
	.asciz	"could not open file \"%s\" for reading: %m"

l_.str.3:                               ; @.str.3
	.asciz	"unexpected empty file \"%s\""

l_.str.4:                               ; @.str.4
	.asciz	"could not read file \"%s\": %m"

	.comm	_PG_MAJORVERSION,4,2            ; @PG_MAJORVERSION
l_.str.5:                               ; @.str.5
	.asciz	"data directory is of wrong version"

l_.str.6:                               ; @.str.6
	.asciz	"File \"%s\" contains \"%s\", which is not compatible with this program's version \"%s\"."

	.no_dead_strip	_CheckDataVersion
.subsections_via_symbols
