	.file	"extr_zpool_main.c_upgrade_version.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Upgrade not performed due to %d unsupported filesystems (max v%d).\n"
	.align 8
.LC1:
	.string	"Successfully upgraded '%s' from version %llu to feature flags.\n"
	.align 8
.LC2:
	.string	"Successfully upgraded '%s' from version %llu to version %llu.\n"
	.text
	.p2align 4
	.type	upgrade_version, @function
upgrade_version:
.LFB0:
	.cfi_startproc
	endbr64
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	xor	esi, esi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 12[rsp], 0
	call	zpool_get_config@PLT
	mov	esi, DWORD PTR ZPOOL_CONFIG_VERSION[rip]
	lea	rdx, 16[rsp]
	mov	rdi, rax
	call	nvlist_lookup_uint64@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	verify@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	SPA_VERSION_IS_SUPPORTED@PLT
	mov	edi, eax
	call	assert@PLT
	xor	edi, edi
	cmp	QWORD PTR 16[rsp], rbx
	setl	dil
	call	assert@PLT
	mov	r12d, DWORD PTR check_unsupp_fs[rip]
	mov	rdi, rbp
	call	zpool_get_handle@PLT
	lea	rdx, 12[rsp]
	mov	esi, r12d
	mov	edi, eax
	call	zfs_iter_root@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	r12d, DWORD PTR 12[rsp]
	test	r12d, r12d
	jne	.L8
	mov	rsi, rbx
	mov	rdi, rbp
	call	zpool_upgrade@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR SPA_VERSION_FEATURES[rip], rbx
	mov	r13, QWORD PTR 16[rsp]
	mov	rdi, rbp
	jg	.L4
	call	zpool_get_name@PLT
	lea	rdi, .LC1[rip]
	mov	rbp, rax
	call	gettext@PLT
	mov	edx, r13d
	mov	rsi, rbp
	mov	rdi, rax
	xor	eax, eax
	call	printf@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L8:
	.cfi_restore_state
	mov	rbx, QWORD PTR ZPL_VERSION[rip]
	lea	rdi, .LC0[rip]
	call	gettext@PLT
	mov	edi, DWORD PTR stderr[rip]
	mov	edx, r12d
	mov	r12d, 1
	mov	rsi, rax
	mov	ecx, ebx
	call	fprintf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	call	zpool_get_name@PLT
	lea	rdi, .LC2[rip]
	mov	rbp, rax
	call	gettext@PLT
	mov	ecx, ebx
	mov	edx, r13d
	mov	rsi, rbp
	mov	rdi, rax
	xor	eax, eax
	call	printf@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	upgrade_version, .-upgrade_version
	.comm	stderr,4,4
	.comm	check_unsupp_fs,4,4
	.comm	ZPOOL_CONFIG_VERSION,4,4
	.comm	ZPL_VERSION,8,8
	.comm	SPA_VERSION_FEATURES,8,8
	.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_zpool_main.c_upgrade_version.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Upgrade not performed due to %d unsupported filesys"
	.ascii	"tems (max v%d).\012\000"
	.align	2
.LC1:
	.ascii	"Successfully upgraded '%s' from version %llu to fea"
	.ascii	"ture flags.\012\000"
	.align	2
.LC2:
	.ascii	"Successfully upgraded '%s' from version %llu to ver"
	.ascii	"sion %llu.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	upgrade_version, %function
upgrade_version:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, lr}
	ldr	r2, .L10
	sub	sp, sp, #16
	mov	r5, r1
	mov	r1, r3
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	mov	r6, r0
	str	r3, [sp, #8]
	bl	zpool_get_config
	ldr	r3, .L10+4
	add	r2, sp, #4
	ldr	r1, [r3]
	bl	nvlist_lookup_uint64
	clz	r0, r0
	lsr	r0, r0, #5
	bl	verify
	ldr	r0, [sp, #4]
	bl	SPA_VERSION_IS_SUPPORTED
	bl	assert
	ldr	r0, [sp, #4]
	cmp	r0, r5
	movge	r0, #0
	movlt	r0, #1
	bl	assert
	mov	r0, r6
	bl	zpool_get_handle
	ldr	r3, .L10+8
	add	r2, sp, #8
	ldr	r1, [r3]
	bl	zfs_iter_root
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, [sp, #8]
	cmp	r3, #0
	bne	.L8
	mov	r1, r5
	mov	r0, r6
	bl	zpool_upgrade
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L10+12
	ldr	r3, [r3]
	cmp	r3, r5
	bgt	.L4
	ldr	r0, .L10+16
	bl	gettext
	mov	r5, r0
	mov	r0, r6
	bl	zpool_get_name
	ldr	r2, [sp, #4]
	mov	r1, r0
	mov	r0, r5
	bl	printf
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L10+20
	ldr	r0, .L10+24
	ldr	r4, [r3]
	bl	gettext
	ldr	r3, .L10+28
	mov	r1, r0
	ldr	r3, [r3]
	mov	r0, r4
	ldr	r2, [sp, #8]
	bl	fprintf
	mov	r4, #1
	b	.L1
.L4:
	ldr	r0, .L10+32
	bl	gettext
	mov	r3, r0
	mov	r0, r6
	mov	r6, r3
	bl	zpool_get_name
	mov	r3, r5
	mov	r1, r0
	ldr	r2, [sp, #4]
	mov	r0, r6
	bl	printf
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	ZPOOL_CONFIG_VERSION
	.word	check_unsupp_fs
	.word	SPA_VERSION_FEATURES
	.word	.LC1
	.word	stderr
	.word	.LC0
	.word	ZPL_VERSION
	.word	.LC2
	.size	upgrade_version, .-upgrade_version
	.comm	stderr,4,4
	.comm	check_unsupp_fs,4,4
	.comm	ZPOOL_CONFIG_VERSION,4,4
	.comm	ZPL_VERSION,4,4
	.comm	SPA_VERSION_FEATURES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
