	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ValidatePgVersion              ## -- Begin function ValidatePgVersion
	.p2align	4, 0x90
_ValidatePgVersion:                     ## @ValidatePgVersion
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_PG_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	-120(%rbp), %rsi
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	movl	$10, %edx
	callq	_strtol
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r14, %rcx
	callq	_snprintf
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_AllocateFile
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	movq	_FATAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	leaq	L_.str.3(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_errdetail
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str.4(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_errmsg
LBB0_4:
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	movb	$0, -112(%rbp)
	leaq	L_.str.5(%rip), %rsi
	leaq	-112(%rbp), %r15
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_fscanf
	movl	%eax, %ebx
	leaq	-120(%rbp), %rsi
	movq	%r15, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %r14
	cmpl	$1, %ebx
	jne	LBB0_7
## %bb.6:
	cmpq	%r15, -120(%rbp)
	jne	LBB0_8
LBB0_7:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_errmsg
	leaq	L_.str.6(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_errdetail
	leaq	L_.str.7(%rip), %rdi
	callq	_errhint
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_8:
	movq	%r12, %rdi
	callq	_FreeFile
	cmpq	%r14, -144(%rbp)                ## 8-byte Folded Reload
	je	LBB0_10
## %bb.9:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	leaq	L_.str.9(%rip), %rdi
	leaq	-112(%rbp), %rsi
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_errdetail
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.comm	_PG_VERSION,8,3                 ## @PG_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/PG_VERSION"

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

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_FATAL,4,2                      ## @FATAL
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
L_.str.2:                               ## @.str.2
	.asciz	"\"%s\" is not a valid data directory"

L_.str.3:                               ## @.str.3
	.asciz	"File \"%s\" is missing."

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

L_.str.5:                               ## @.str.5
	.asciz	"%63s"

L_.str.6:                               ## @.str.6
	.asciz	"File \"%s\" does not contain valid data."

L_.str.7:                               ## @.str.7
	.asciz	"You might need to initdb."

L_.str.8:                               ## @.str.8
	.asciz	"database files are incompatible with server"

L_.str.9:                               ## @.str.9
	.asciz	"The data directory was initialized by PostgreSQL version %s, which is not compatible with this version %s."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ValidatePgVersion              ; -- Begin function ValidatePgVersion
	.p2align	2
_ValidatePgVersion:                     ; @ValidatePgVersion
	.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, #80
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
Lloh8:
	adrp	x8, _PG_VERSION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PG_VERSION@GOTPAGEOFF]
Lloh10:
	ldr	x19, [x8]
	sub	x1, x29, #160
	mov	x0, x19
	mov	w2, #10
	bl	_strtol
	mov	x21, x0
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	mov	x3, x20
	bl	_snprintf
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_AllocateFile
	mov	x23, x0
Lloh15:
	adrp	x26, _FATAL@GOTPAGE
Lloh16:
	ldr	x26, [x26, _FATAL@GOTPAGEOFF]
Lloh17:
	adrp	x27, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh18:
	ldr	x27, [x27, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
	cbnz	x0, LBB0_5
; %bb.1:
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _ENOENT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ldr	w24, [x26]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x27]
	bl	_errcode
	str	x20, [sp, #-16]!
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	add	sp, sp, #16
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_errdetail
	b	LBB0_4
LBB0_3:
	bl	_errcode_for_file_access
	str	x22, [sp, #-16]!
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	add	sp, sp, #16
LBB0_4:
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_5:
	sturb	wzr, [x29, #-152]
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	sub	x28, x29, #152
	sub	x2, x29, #152
	mov	x0, x23
	bl	_fscanf
	mov	x25, x0
	sub	x0, x29, #152
	sub	x1, x29, #160
	mov	w2, #10
	bl	_strtol
	mov	x24, x0
	ldur	x8, [x29, #-160]
	cmp	w25, #1
	ccmp	x8, x28, #4, eq
	b.ne	LBB0_7
; %bb.6:
	ldr	w25, [x26]
	ldr	w0, [x27]
	bl	_errcode
	str	x20, [sp, #-16]!
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	add	sp, sp, #16
Lloh35:
	adrp	x0, l_.str.6@PAGE
Lloh36:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x22
	bl	_errdetail
Lloh37:
	adrp	x0, l_.str.7@PAGE
Lloh38:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_7:
	mov	x0, x23
	bl	_FreeFile
	cmp	x21, x24
	b.eq	LBB0_9
; %bb.8:
	ldr	w20, [x26]
	ldr	w0, [x27]
	bl	_errcode
Lloh39:
	adrp	x0, l_.str.8@PAGE
Lloh40:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_errmsg
	str	x19, [sp, #-16]!
Lloh41:
	adrp	x0, l_.str.9@PAGE
Lloh42:
	add	x0, x0, l_.str.9@PAGEOFF
	sub	x1, x29, #152
	bl	_errdetail
	add	sp, sp, #16
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.comm	_PG_VERSION,8,3                 ; @PG_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/PG_VERSION"

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

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_FATAL,4,2                      ; @FATAL
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
l_.str.2:                               ; @.str.2
	.asciz	"\"%s\" is not a valid data directory"

l_.str.3:                               ; @.str.3
	.asciz	"File \"%s\" is missing."

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

l_.str.5:                               ; @.str.5
	.asciz	"%63s"

l_.str.6:                               ; @.str.6
	.asciz	"File \"%s\" does not contain valid data."

l_.str.7:                               ; @.str.7
	.asciz	"You might need to initdb."

l_.str.8:                               ; @.str.8
	.asciz	"database files are incompatible with server"

l_.str.9:                               ; @.str.9
	.asciz	"The data directory was initialized by PostgreSQL version %s, which is not compatible with this version %s."

.subsections_via_symbols
