	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_cluster_versions         ## -- Begin function check_cluster_versions
	.p2align	4, 0x90
_check_cluster_versions:                ## @check_cluster_versions
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_prep_status
	movq	_old_cluster@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setne	%dil
	callq	_Assert
	movq	_new_cluster@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setne	%dil
	callq	_Assert
	movq	(%r15), %rdi
	callq	_GET_MAJOR_VERSION
	cmpl	$803, %eax                      ## imm = 0x323
	jg	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_fatal
LBB0_2:
	movq	(%r14), %rdi
	callq	_GET_MAJOR_VERSION
	movl	%eax, %ebx
	movq	_PG_VERSION_NUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_GET_MAJOR_VERSION
	cmpl	%eax, %ebx
	je	LBB0_4
## %bb.3:
	movq	_PG_MAJORVERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_fatal
LBB0_4:
	movq	(%r15), %rdi
	cmpq	(%r14), %rdi
	jle	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_fatal
	movq	(%r15), %rdi
LBB0_6:
	callq	_GET_MAJOR_VERSION
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	callq	_GET_MAJOR_VERSION
	cmpl	%eax, %ebx
	je	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_fatal
LBB0_8:
	movq	(%r14), %rdi
	callq	_GET_MAJOR_VERSION
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	callq	_GET_MAJOR_VERSION
	cmpl	%eax, %ebx
	je	LBB0_10
## %bb.9:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_fatal
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_check_ok                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Checking cluster versions"

	.comm	_old_cluster,16,3               ## @old_cluster
	.comm	_new_cluster,16,3               ## @new_cluster
L_.str.1:                               ## @.str.1
	.asciz	"This utility can only upgrade from PostgreSQL version 8.4 and later.\n"

	.comm	_PG_VERSION_NUM,8,3             ## @PG_VERSION_NUM
L_.str.2:                               ## @.str.2
	.asciz	"This utility can only upgrade to PostgreSQL version %s.\n"

	.comm	_PG_MAJORVERSION,4,2            ## @PG_MAJORVERSION
L_.str.3:                               ## @.str.3
	.asciz	"This utility cannot be used to downgrade to older major PostgreSQL versions.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Old cluster data and binary directories are from different major versions.\n"

L_.str.5:                               ## @.str.5
	.asciz	"New cluster data and binary directories are from different major versions.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_cluster_versions         ; -- Begin function check_cluster_versions
	.p2align	2
_check_cluster_versions:                ; @check_cluster_versions
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_prep_status
Lloh2:
	adrp	x21, _old_cluster@GOTPAGE
Lloh3:
	ldr	x21, [x21, _old_cluster@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
Lloh4:
	adrp	x20, _new_cluster@GOTPAGE
Lloh5:
	ldr	x20, [x20, _new_cluster@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	x0, [x21]
	bl	_GET_MAJOR_VERSION
	cmp	w0, #803
	b.gt	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pg_fatal
LBB0_2:
	ldr	x0, [x20]
	bl	_GET_MAJOR_VERSION
	mov	x19, x0
Lloh8:
	adrp	x8, _PG_VERSION_NUM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PG_VERSION_NUM@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	bl	_GET_MAJOR_VERSION
	cmp	w19, w0
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _PG_MAJORVERSION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PG_MAJORVERSION@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pg_fatal
LBB0_4:
	ldr	x0, [x21]
	ldr	x8, [x20]
	cmp	x0, x8
	b.le	LBB0_6
; %bb.5:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pg_fatal
	ldr	x0, [x21]
LBB0_6:
	bl	_GET_MAJOR_VERSION
	mov	x19, x0
	ldr	x0, [x21, #8]
	bl	_GET_MAJOR_VERSION
	cmp	w19, w0
	b.eq	LBB0_8
; %bb.7:
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pg_fatal
LBB0_8:
	ldr	x0, [x20]
	bl	_GET_MAJOR_VERSION
	mov	x19, x0
	ldr	x0, [x20, #8]
	bl	_GET_MAJOR_VERSION
	cmp	w19, w0
	b.eq	LBB0_10
; %bb.9:
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pg_fatal
LBB0_10:
	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
	b	_check_ok
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Checking cluster versions"

	.comm	_old_cluster,16,3               ; @old_cluster
	.comm	_new_cluster,16,3               ; @new_cluster
l_.str.1:                               ; @.str.1
	.asciz	"This utility can only upgrade from PostgreSQL version 8.4 and later.\n"

	.comm	_PG_VERSION_NUM,8,3             ; @PG_VERSION_NUM
l_.str.2:                               ; @.str.2
	.asciz	"This utility can only upgrade to PostgreSQL version %s.\n"

	.comm	_PG_MAJORVERSION,4,2            ; @PG_MAJORVERSION
l_.str.3:                               ; @.str.3
	.asciz	"This utility cannot be used to downgrade to older major PostgreSQL versions.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Old cluster data and binary directories are from different major versions.\n"

l_.str.5:                               ; @.str.5
	.asciz	"New cluster data and binary directories are from different major versions.\n"

.subsections_via_symbols
