	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function upgrade_set_callback
_upgrade_set_callback:                  ## @upgrade_set_callback
	.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	$40, %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, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ZFS_PROP_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_zfs_prop_get_int
	movl	%eax, %r15d
	leaq	-68(%rbp), %rsi
	movq	%r12, %rdi
	callq	_zfs_spa_version
	movl	$-1, %ebx
	testq	%rax, %rax
	js	LBB0_14
## %bb.1:
	movl	(%r14), %edi
	callq	_zfs_spa_version_map
	testl	%eax, %eax
	js	LBB0_14
## %bb.2:
	movl	%eax, %r13d
	cmpl	%eax, -68(%rbp)
	jge	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_gettext
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_zfs_get_name
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r13d, %edx
LBB0_4:
	callq	_printf
	incl	8(%r14)
	jmp	LBB0_13
LBB0_5:
	movl	(%r14), %ecx
	cmpl	%ecx, %r15d
	jge	LBB0_10
## %bb.6:
	leaq	L_.str.1(%rip), %rdx
	leaq	-64(%rbp), %rdi
	movl	$16, %esi
	callq	_snprintf
	movq	16(%r14), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_9
## %bb.7:
	movq	%r12, %rdi
	callq	_same_pool
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_g_zfs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_history_str@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_zpool_log_history
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_log_history@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	callq	_zfs_prop_set
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	shlq	$4, %rcx
	incl	8(%rcx,%r14)
	movq	16(%r14), %rbx
	movq	%r12, %rdi
	callq	_zfs_get_name
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_strcpy
	jmp	LBB0_13
LBB0_10:
	jle	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	callq	_gettext
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_zfs_get_name
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	jmp	LBB0_4
LBB0_12:
	incl	4(%r14)
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ZFS_PROP_VERSION,4,2           ## @ZFS_PROP_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: can not be upgraded; the pool version needs to first be upgraded\nto version %d\n\n"

L_.str.1:                               ## @.str.1
	.asciz	"%llu"

	.comm	_g_zfs,4,2                      ## @g_zfs
	.comm	_history_str,4,2                ## @history_str
	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.comm	_log_history,4,2                ## @log_history
L_.str.2:                               ## @.str.2
	.asciz	"version"

L_.str.3:                               ## @.str.3
	.asciz	"%s: can not be downgraded; it is already at version %u\n"

	.no_dead_strip	_upgrade_set_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function upgrade_set_callback
_upgrade_set_callback:                  ; @upgrade_set_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _ZFS_PROP_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZFS_PROP_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_zfs_prop_get_int
	mov	x21, x0
	add	x1, sp, #4
	mov	x0, x20
	bl	_zfs_spa_version
	tbnz	x0, #63, LBB0_5
; %bb.1:
	ldr	w0, [x19]
	bl	_zfs_spa_version_map
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x22, x0
	ldr	w8, [sp, #4]
	cmp	w8, w0
	b.ge	LBB0_8
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gettext
	mov	x21, x0
	mov	x0, x20
	bl	_zfs_get_name
	mov	x1, x0
	mov	x0, x21
	mov	x2, x22
LBB0_4:
	bl	_printf
	mov	w0, #0
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	w3, [x19]
	cmp	w21, w3
	b.ge	LBB0_13
; %bb.9:
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #16
	bl	_snprintf
	ldr	x1, [x19, #16]
	ldr	x8, [x1]
	cbz	x8, LBB0_12
; %bb.10:
	mov	x0, x20
	bl	_same_pool
	cbnz	w0, LBB0_12
; %bb.11:
Lloh13:
	adrp	x8, _g_zfs@GOTPAGE
Lloh14:
	ldr	x8, [x8, _g_zfs@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _history_str@GOTPAGE
Lloh17:
	ldr	x8, [x8, _history_str@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_zpool_log_history
Lloh19:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _log_history@GOTPAGE
Lloh23:
	ldr	x9, [x9, _log_history@GOTPAGEOFF]
Lloh24:
	str	w8, [x9]
LBB0_12:
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_zfs_prop_set
	mov	w8, #8
	mov	w9, #24
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w9, [x19, x8]
	add	w9, w9, #1
	str	w9, [x19, x8]
	ldr	x19, [x19, #16]
	mov	x0, x20
	bl	_zfs_get_name
	mov	x1, x0
	mov	x0, x19
	bl	_strcpy
	mov	w0, #0
	b	LBB0_6
LBB0_13:
	b.le	LBB0_15
; %bb.14:
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_gettext
	mov	x22, x0
	mov	x0, x20
	bl	_zfs_get_name
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	b	LBB0_4
LBB0_15:
	mov	w0, #0
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	b	LBB0_6
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ZFS_PROP_VERSION,4,2           ; @ZFS_PROP_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: can not be upgraded; the pool version needs to first be upgraded\nto version %d\n\n"

l_.str.1:                               ; @.str.1
	.asciz	"%llu"

	.comm	_g_zfs,4,2                      ; @g_zfs
	.comm	_history_str,4,2                ; @history_str
	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.comm	_log_history,4,2                ; @log_history
l_.str.2:                               ; @.str.2
	.asciz	"version"

l_.str.3:                               ; @.str.3
	.asciz	"%s: can not be downgraded; it is already at version %u\n"

	.no_dead_strip	_upgrade_set_callback
.subsections_via_symbols
