	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function upgrade_one
_upgrade_one:                           ## @upgrade_one
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	callq	_zpool_get_state
	movq	_POOL_STATE_UNAVAIL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rdi
	callq	_gettext
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_zpool_get_name
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_fprintf
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movl	$1, %r12d
	jmp	LBB0_22
LBB0_2:
	movq	%r13, %rdi
	callq	_zpool_get_name
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_ZPOOL_PROP_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_zpool_get_prop_int
	movq	%rax, %r15
	movq	(%r14), %rsi
	cmpq	%rsi, %rax
	jle	LBB0_7
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	callq	_gettext
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_zpool_get_name
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	callq	_gettext
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %r12d
	jmp	LBB0_22
LBB0_7:
	movq	_SPA_VERSION@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_10
## %bb.8:
	cmpq	%rsi, %r15
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	callq	_gettext
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_zpool_get_name
	movq	(%r14), %rdx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	%rax, %rsi
LBB0_6:
	xorl	%eax, %eax
	callq	_printf
LBB0_22:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r15, %rax
	cmpq	%rsi, %r15
	je	LBB0_13
## %bb.11:
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_upgrade_version
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.12:
	movq	(%r14), %rax
LBB0_13:
	movq	_SPA_VERSION_FEATURES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_14
LBB0_19:
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.21:
	leaq	L_.str.6(%rip), %rdi
	callq	_gettext
	xorl	%r12d, %r12d
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_22
LBB0_14:
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_upgrade_enable_all
	testl	%eax, %eax
	je	LBB0_15
## %bb.23:
	movl	%eax, %r12d
	jmp	LBB0_22
LBB0_20:
	xorl	%r12d, %r12d
	jmp	LBB0_22
LBB0_15:
	cmpl	$0, -44(%rbp)
	je	LBB0_17
## %bb.16:
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_19
LBB0_17:
	movq	_SPA_VERSION@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_19
## %bb.18:
	leaq	L_.str.5(%rip), %rdi
	callq	_gettext
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_zpool_get_name
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_B_FALSE,8,3                    ## @B_FALSE
	.comm	_POOL_STATE_UNAVAIL,8,3         ## @POOL_STATE_UNAVAIL
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot upgrade '%s': pool is is currently unavailable.\n\n"

	.comm	_B_TRUE,8,3                     ## @B_TRUE
L_.str.1:                               ## @.str.1
	.asciz	"log"

L_.str.2:                               ## @.str.2
	.asciz	"'log' is now a reserved word\nPool 'log' must be renamed using export and import to upgrade.\n\n"

	.comm	_ZPOOL_PROP_VERSION,4,2         ## @ZPOOL_PROP_VERSION
L_.str.3:                               ## @.str.3
	.asciz	"Pool '%s' is already formatted using more current version '%llu'.\n\n"

	.comm	_SPA_VERSION,8,3                ## @SPA_VERSION
L_.str.4:                               ## @.str.4
	.asciz	"Pool '%s' is already formatted using version %llu.\n\n"

	.comm	_SPA_VERSION_FEATURES,8,3       ## @SPA_VERSION_FEATURES
L_.str.5:                               ## @.str.5
	.asciz	"Pool '%s' already has all supported features enabled.\n\n"

L_.str.6:                               ## @.str.6
	.asciz	"\n"

	.no_dead_strip	_upgrade_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function upgrade_one
_upgrade_one:                           ; @upgrade_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	bl	_zpool_get_state
Lloh3:
	adrp	x8, _POOL_STATE_UNAVAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POOL_STATE_UNAVAIL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gettext
	mov	x22, x0
	mov	x0, x19
	bl	_zpool_get_name
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_fprintf
Lloh11:
	adrp	x8, _B_TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B_TRUE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	mov	w0, #1
	b	LBB0_16
LBB0_2:
	mov	x0, x19
	bl	_zpool_get_name
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.3:
Lloh16:
	adrp	x8, _ZPOOL_PROP_VERSION@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ZPOOL_PROP_VERSION@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_zpool_get_prop_int
	mov	x21, x0
	ldr	x1, [x20]
	cmp	x0, x1
	b.le	LBB0_6
; %bb.4:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_gettext
	mov	x20, x0
	mov	x0, x19
	bl	_zpool_get_name
	stp	x0, x21, [sp]
	mov	x0, x20
	b	LBB0_14
LBB0_5:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_gettext
	bl	_printf
	mov	w0, #1
	b	LBB0_16
LBB0_6:
Lloh23:
	adrp	x23, _SPA_VERSION@GOTPAGE
Lloh24:
	ldr	x23, [x23, _SPA_VERSION@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x1, x8
	ccmp	x21, x1, #0, ne
	b.eq	LBB0_13
; %bb.7:
	mov	x8, x21
	cmp	x21, x1
	b.eq	LBB0_10
; %bb.8:
Lloh25:
	adrp	x8, _B_TRUE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _B_TRUE@GOTPAGEOFF]
Lloh27:
	ldr	x22, [x8]
	mov	x0, x19
	bl	_upgrade_version
	cbnz	w0, LBB0_16
; %bb.9:
	ldr	x8, [x20]
LBB0_10:
Lloh28:
	adrp	x9, _SPA_VERSION_FEATURES@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SPA_VERSION_FEATURES@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_17
LBB0_11:
	cbz	x22, LBB0_15
; %bb.12:
Lloh31:
	adrp	x0, l_.str.6@PAGE
Lloh32:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_gettext
	b	LBB0_14
LBB0_13:
Lloh33:
	adrp	x0, l_.str.4@PAGE
Lloh34:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_gettext
	mov	x21, x0
	mov	x0, x19
	bl	_zpool_get_name
	ldr	x8, [x20]
	stp	x0, x8, [sp]
	mov	x0, x21
LBB0_14:
	bl	_printf
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_17:
	str	wzr, [sp, #28]
	add	x1, sp, #28
	mov	x0, x19
	bl	_upgrade_enable_all
	cbnz	w0, LBB0_16
; %bb.18:
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_20
; %bb.19:
Lloh35:
	adrp	x8, _B_TRUE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _B_TRUE@GOTPAGEOFF]
Lloh37:
	ldr	x22, [x8]
	b	LBB0_11
LBB0_20:
	ldr	x8, [x23]
	cmp	x21, x8
	b.ne	LBB0_11
; %bb.21:
Lloh38:
	adrp	x0, l_.str.5@PAGE
Lloh39:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_gettext
	mov	x20, x0
	mov	x0, x19
	bl	_zpool_get_name
	str	x0, [sp]
	mov	x0, x20
	bl	_printf
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_B_FALSE,8,3                    ; @B_FALSE
	.comm	_POOL_STATE_UNAVAIL,8,3         ; @POOL_STATE_UNAVAIL
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot upgrade '%s': pool is is currently unavailable.\n\n"

	.comm	_B_TRUE,8,3                     ; @B_TRUE
l_.str.1:                               ; @.str.1
	.asciz	"log"

l_.str.2:                               ; @.str.2
	.asciz	"'log' is now a reserved word\nPool 'log' must be renamed using export and import to upgrade.\n\n"

	.comm	_ZPOOL_PROP_VERSION,4,2         ; @ZPOOL_PROP_VERSION
l_.str.3:                               ; @.str.3
	.asciz	"Pool '%s' is already formatted using more current version '%llu'.\n\n"

	.comm	_SPA_VERSION,8,3                ; @SPA_VERSION
l_.str.4:                               ; @.str.4
	.asciz	"Pool '%s' is already formatted using version %llu.\n\n"

	.comm	_SPA_VERSION_FEATURES,8,3       ; @SPA_VERSION_FEATURES
l_.str.5:                               ; @.str.5
	.asciz	"Pool '%s' already has all supported features enabled.\n\n"

l_.str.6:                               ; @.str.6
	.asciz	"\n"

	.no_dead_strip	_upgrade_one
.subsections_via_symbols
