	.file	"extr_metadata_cache.c_CheckAvailableVersion.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"loaded Citus library version differs from latest available extension version"
	.align 8
.LC1:
	.string	"Loaded library requires %s, but the latest control file specifies %s."
	.align 8
.LC2:
	.string	"Restart the database to load the latest Citus library."
	.text
	.p2align 4
	.globl	CheckAvailableVersion
	.type	CheckAvailableVersion, @function
CheckAvailableVersion:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR EnableVersionChecks[rip]
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	test	eax, eax
	jne	.L2
.L4:
	mov	r12d, 1
.L1:
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	eax, eax
	mov	ebp, edi
	call	AvailableExtensionVersion@PLT
	mov	esi, DWORD PTR CITUS_EXTENSIONVERSION[rip]
	mov	rdi, rax
	mov	r13, rax
	call	MajorVersionsCompatible@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	lea	rdi, .LC0[rip]
	call	errmsg@PLT
	mov	esi, DWORD PTR CITUS_MAJORVERSION[rip]
	mov	rdx, r13
	lea	rdi, .LC1[rip]
	call	errdetail@PLT
	lea	rdi, .LC2[rip]
	call	errhint@PLT
	mov	edi, ebp
	mov	esi, eax
	call	ereport@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	CheckAvailableVersion, .-CheckAvailableVersion
	.comm	EnableVersionChecks,4,4
	.comm	CITUS_MAJORVERSION,4,4
	.comm	CITUS_EXTENSIONVERSION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_metadata_cache.c_CheckAvailableVersion.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"loaded Citus library version differs from latest av"
	.ascii	"ailable extension version\000"
	.align	2
.LC1:
	.ascii	"Loaded library requires %s, but the latest control "
	.ascii	"file specifies %s.\000"
	.align	2
.LC2:
	.ascii	"Restart the database to load the latest Citus libra"
	.ascii	"ry.\000"
	.text
	.align	2
	.global	CheckAvailableVersion
	.syntax unified
	.arm
	.fpu softvfp
	.type	CheckAvailableVersion, %function
CheckAvailableVersion:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
.L4:
	mov	r4, #1
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	mov	r5, r0
	bl	AvailableExtensionVersion
	ldr	r3, .L7+4
	mov	r6, r0
	ldr	r1, [r3]
	bl	MajorVersionsCompatible
	subs	r4, r0, #0
	bne	.L4
	ldr	r0, .L7+8
	bl	errmsg
	ldr	r3, .L7+12
	mov	r2, r6
	ldr	r1, [r3]
	ldr	r0, .L7+16
	bl	errdetail
	ldr	r0, .L7+20
	bl	errhint
	mov	r1, r0
	mov	r0, r5
	bl	ereport
	b	.L1
.L8:
	.align	2
.L7:
	.word	EnableVersionChecks
	.word	CITUS_EXTENSIONVERSION
	.word	.LC0
	.word	CITUS_MAJORVERSION
	.word	.LC1
	.word	.LC2
	.size	CheckAvailableVersion, .-CheckAvailableVersion
	.comm	EnableVersionChecks,4,4
	.comm	CITUS_MAJORVERSION,4,4
	.comm	CITUS_EXTENSIONVERSION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
