	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function upgrade_cb
_upgrade_cb:                            ## @upgrade_cb
	.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
	subq	$24, %rsp
	.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, %r15
	movq	_B_FALSE@GOTPCREL(%rip), %r12
	movq	(%r12), %r13
	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), %r12d
	leaq	L_.str(%rip), %rdi
	callq	_gettext
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_zpool_get_name
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_fprintf
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_zpool_get_config
	movq	_ZPOOL_CONFIG_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-56(%rbp), %rdx
	movq	%rax, %rdi
	callq	_nvlist_lookup_uint64
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movq	-56(%rbp), %rdi
	callq	_SPA_VERSION_IS_SUPPORTED
	movl	%eax, %edi
	callq	_assert
	movq	(%r14), %rsi
	cmpq	%rsi, -56(%rbp)
	jge	LBB0_5
## %bb.3:
	movq	(%r12), %rax
	movq	%rax, 16(%r14)
	movq	%r15, %rdi
	callq	_upgrade_version
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	(%r14), %rsi
LBB0_5:
	movq	_SPA_VERSION_FEATURES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jl	LBB0_10
## %bb.6:
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_upgrade_enable_all
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	cmpl	$0, -44(%rbp)
	jle	LBB0_9
## %bb.8:
	movq	(%r12), %rax
	movq	%rax, 16(%r14)
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_g_zfs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_history_str@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_zpool_log_history
	movq	(%r12), %rax
	movq	_log_history@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_9:
	testl	%ebx, %ebx
	jne	LBB0_12
LBB0_10:
	xorl	%ebx, %ebx
	testq	%r13, %r13
	je	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	callq	_gettext
	movq	%rax, %rdi
	callq	_printf
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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 currently unavailable.\n\n"

	.comm	_B_TRUE,8,3                     ## @B_TRUE
	.comm	_ZPOOL_CONFIG_VERSION,4,2       ## @ZPOOL_CONFIG_VERSION
	.comm	_SPA_VERSION_FEATURES,8,3       ## @SPA_VERSION_FEATURES
	.comm	_g_zfs,4,2                      ## @g_zfs
	.comm	_history_str,4,2                ## @history_str
	.comm	_log_history,8,3                ## @log_history
L_.str.1:                               ## @.str.1
	.asciz	"\n"

	.no_dead_strip	_upgrade_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function upgrade_cb
_upgrade_cb:                            ; @upgrade_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _B_FALSE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _B_FALSE@GOTPAGEOFF]
	ldr	x23, [x22]
	bl	_zpool_get_state
Lloh2:
	adrp	x8, _POOL_STATE_UNAVAIL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _POOL_STATE_UNAVAIL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gettext
	mov	x22, x0
	mov	x0, x20
	bl	_zpool_get_name
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_fprintf
	mov	w21, #0
Lloh10:
	adrp	x8, _B_TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _B_TRUE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	b	LBB0_13
LBB0_2:
	mov	x0, x20
	mov	x1, #0
	bl	_zpool_get_config
Lloh13:
	adrp	x8, _ZPOOL_CONFIG_VERSION@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ZPOOL_CONFIG_VERSION@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_nvlist_lookup_uint64
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	ldr	x0, [sp, #8]
	bl	_SPA_VERSION_IS_SUPPORTED
	bl	_assert
	ldr	x8, [sp, #8]
	ldr	x1, [x19]
	cmp	x8, x1
	b.ge	LBB0_5
; %bb.3:
	ldr	x8, [x22]
	str	x8, [x19, #16]
	mov	x0, x20
	bl	_upgrade_version
	mov	x21, x0
	cbnz	w0, LBB0_13
; %bb.4:
Lloh16:
	adrp	x8, _B_TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _B_TRUE@GOTPAGEOFF]
Lloh18:
	ldr	x23, [x8]
	ldr	x1, [x19]
LBB0_5:
Lloh19:
	adrp	x8, _SPA_VERSION_FEATURES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SPA_VERSION_FEATURES@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x1, x8
	b.lt	LBB0_10
; %bb.6:
	add	x1, sp, #4
	mov	x0, x20
	bl	_upgrade_enable_all
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	w8, [sp, #4]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.8:
	ldr	x8, [x22]
	str	x8, [x19, #16]
Lloh22:
	adrp	x8, _B_TRUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _B_TRUE@GOTPAGEOFF]
Lloh24:
	ldr	x23, [x8]
Lloh25:
	adrp	x8, _g_zfs@GOTPAGE
Lloh26:
	ldr	x8, [x8, _g_zfs@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _history_str@GOTPAGE
Lloh29:
	ldr	x8, [x8, _history_str@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_zpool_log_history
	ldr	x8, [x22]
Lloh31:
	adrp	x9, _log_history@GOTPAGE
Lloh32:
	ldr	x9, [x9, _log_history@GOTPAGEOFF]
Lloh33:
	str	x8, [x9]
LBB0_9:
	cbnz	w21, LBB0_13
LBB0_10:
	cbz	x23, LBB0_12
; %bb.11:
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_gettext
	bl	_printf
LBB0_12:
	mov	w21, #0
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh34, Lloh35
	.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 currently unavailable.\n\n"

	.comm	_B_TRUE,8,3                     ; @B_TRUE
	.comm	_ZPOOL_CONFIG_VERSION,4,2       ; @ZPOOL_CONFIG_VERSION
	.comm	_SPA_VERSION_FEATURES,8,3       ; @SPA_VERSION_FEATURES
	.comm	_g_zfs,4,2                      ; @g_zfs
	.comm	_history_str,4,2                ; @history_str
	.comm	_log_history,8,3                ; @log_history
l_.str.1:                               ; @.str.1
	.asciz	"\n"

	.no_dead_strip	_upgrade_cb
.subsections_via_symbols
