	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_cluster_compatibility    ## -- Begin function check_cluster_compatibility
	.p2align	4, 0x90
_check_cluster_compatibility:           ## @check_cluster_compatibility
	.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
	movl	%edi, %ebx
	movq	_old_cluster@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_get_control_data
	movq	_new_cluster@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_get_control_data
	leaq	12(%r15), %rdi
	leaq	12(%r14), %rsi
	callq	_check_control_data
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	movl	8(%r15), %edi
	callq	_GET_MAJOR_VERSION
	cmpl	$900, %eax                      ## imm = 0x384
	jg	LBB0_4
## %bb.2:
	movq	(%r15), %rax
	movq	_DEF_PGUPORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_pg_fatal
LBB0_4:
	movq	(%r15), %rax
	cmpq	(%r14), %rax
	jne	LBB0_5
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pg_fatal                       ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_old_cluster,16,3               ## @old_cluster
	.comm	_new_cluster,16,3               ## @new_cluster
	.comm	_DEF_PGUPORT,8,3                ## @DEF_PGUPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"When checking a pre-PG 9.1 live old server, you must specify the old server's port number.\n"

L_.str.1:                               ## @.str.1
	.asciz	"When checking a live server, the old and new port numbers must be different.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_cluster_compatibility    ; -- Begin function check_cluster_compatibility
	.p2align	2
_check_cluster_compatibility:           ; @check_cluster_compatibility
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
Lloh0:
	adrp	x19, _old_cluster@GOTPAGE
Lloh1:
	ldr	x19, [x19, _old_cluster@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	bl	_get_control_data
Lloh2:
	adrp	x20, _new_cluster@GOTPAGE
Lloh3:
	ldr	x20, [x20, _new_cluster@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #0
	bl	_get_control_data
	add	x0, x19, #12
	add	x1, x20, #12
	bl	_check_control_data
	cbz	w21, LBB0_6
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_GET_MAJOR_VERSION
	cmp	w0, #900
	b.gt	LBB0_4
; %bb.2:
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _DEF_PGUPORT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DEF_PGUPORT@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pg_fatal
LBB0_4:
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pg_fatal
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_old_cluster,16,3               ; @old_cluster
	.comm	_new_cluster,16,3               ; @new_cluster
	.comm	_DEF_PGUPORT,8,3                ; @DEF_PGUPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"When checking a pre-PG 9.1 live old server, you must specify the old server's port number.\n"

l_.str.1:                               ; @.str.1
	.asciz	"When checking a live server, the old and new port numbers must be different.\n"

.subsections_via_symbols
