	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function upgrade_version
_upgrade_version:                       ## @upgrade_version
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorl	%esi, %esi
	callq	_zpool_get_config
	movq	_ZPOOL_CONFIG_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-36(%rbp), %rdx
	movq	%rax, %rdi
	callq	_nvlist_lookup_uint64
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movl	-36(%rbp), %edi
	callq	_SPA_VERSION_IS_SUPPORTED
	movl	%eax, %edi
	callq	_assert
	xorl	%edi, %edi
	cmpl	%r15d, -36(%rbp)
	setl	%dil
	callq	_assert
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_zpool_upgrade
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_SPA_VERSION_FEATURES@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jle	LBB0_2
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_gettext
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_zpool_get_name
	movl	-36(%rbp), %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_gettext
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_zpool_get_name
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZPOOL_CONFIG_VERSION,4,2       ## @ZPOOL_CONFIG_VERSION
	.comm	_SPA_VERSION_FEATURES,4,2       ## @SPA_VERSION_FEATURES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Successfully upgraded '%s' from version %llu to feature flags.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Successfully upgraded '%s' from version %llu to version %llu.\n"

	.no_dead_strip	_upgrade_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function upgrade_version
_upgrade_version:                       ; @upgrade_version
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x1, #0
	bl	_zpool_get_config
Lloh0:
	adrp	x8, _ZPOOL_CONFIG_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZPOOL_CONFIG_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_nvlist_lookup_uint64
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	ldr	w0, [sp, #12]
	bl	_SPA_VERSION_IS_SUPPORTED
	bl	_assert
	ldr	w8, [sp, #12]
	cmp	w8, w19
	cset	w0, lt
	bl	_assert
	mov	x0, x20
	mov	x1, x19
	bl	_zpool_upgrade
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _SPA_VERSION_FEATURES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPA_VERSION_FEATURES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.le	LBB0_3
; %bb.2:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_gettext
	mov	x22, x0
	mov	x0, x20
	bl	_zpool_get_name
	mov	x1, x0
	ldr	w2, [sp, #12]
	str	x19, [sp]
	mov	x0, x22
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gettext
	mov	x19, x0
	mov	x0, x20
	bl	_zpool_get_name
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x19
LBB0_4:
	bl	_printf
LBB0_5:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ZPOOL_CONFIG_VERSION,4,2       ; @ZPOOL_CONFIG_VERSION
	.comm	_SPA_VERSION_FEATURES,4,2       ; @SPA_VERSION_FEATURES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Successfully upgraded '%s' from version %llu to feature flags.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Successfully upgraded '%s' from version %llu to version %llu.\n"

	.no_dead_strip	_upgrade_version
.subsections_via_symbols
