	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_activate                    ## -- Begin function be_activate
	.p2align	4, 0x90
_be_activate:                           ## @be_activate
	.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
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BE_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_be_root_concat
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_be_exists
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	%eax, %esi
	jmp	LBB0_7
LBB0_2:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.3:
	movq	%r13, %r14
	movl	4(%r12), %edi
	xorl	%esi, %esi
	callq	_zpool_get_config
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r13
	movq	_ZPOOL_CONFIG_POOL_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	movq	%r13, %rdi
	callq	_nvlist_lookup_uint64
	testq	%rax, %rax
	je	LBB0_17
LBB0_5:
	movq	_BE_ERR_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%r12, %rdi
LBB0_7:
	callq	_set_error
LBB0_8:
	movl	%eax, %r14d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.10:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	8(%r12), %esi
	movq	%r12, %rdi
	callq	_be_deactivate
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_9
## %bb.12:
	movl	4(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_zpool_set_prop
	testl	%eax, %eax
	jne	LBB0_9
## %bb.13:
	movl	(%r12), %edi
	movq	_ZFS_TYPE_FILESYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_zfs_open
	testq	%rax, %rax
	je	LBB0_9
## %bb.14:
	movq	%rax, %rbx
	leaq	-56(%rbp), %rdi
	callq	_be_prop_list_alloc
	testq	%rax, %rax
	jne	LBB0_9
## %bb.15:
	movq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_be_get_dataset_props
	movq	-56(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	callq	_nvlist_free
	jmp	LBB0_9
LBB0_17:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rcx
	callq	_snprintf
	movq	_ZPOOL_CONFIG_VDEV_TREE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	callq	_nvlist_lookup_nvlist
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	_BE_ERR_NOPOOL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_19:
	movq	-56(%rbp), %rsi
	movl	-72(%rbp), %edx
	movq	%r12, %rdi
	movq	%r14, %rcx
	callq	_be_set_nextboot
	jmp	LBB0_8
LBB0_20:
	leaq	L_.str.2(%rip), %rsi
	leaq	-72(%rbp), %rdx
	callq	_nvlist_lookup_string
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:
	movq	-56(%rbp), %rdi
	callq	_nvlist_free
	movq	%rbx, %rdi
	callq	_zfs_close
LBB0_22:
	movq	_BE_ERR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_9
LBB0_23:
	movq	%rbx, %rdi
	callq	_zfs_promote
	movl	%eax, %r15d
	movq	-56(%rbp), %rdi
	callq	_nvlist_free
	movq	%rbx, %rdi
	callq	_zfs_close
	testl	%r15d, %r15d
	jne	LBB0_9
	jmp	LBB0_22
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BE_MAXPATHLEN,4,2              ## @BE_MAXPATHLEN
	.comm	_BE_ERR_UNKNOWN,4,2             ## @BE_ERR_UNKNOWN
	.comm	_ZPOOL_CONFIG_POOL_GUID,4,2     ## @ZPOOL_CONFIG_POOL_GUID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"zfs:%s:"

	.comm	_ZPOOL_CONFIG_VDEV_TREE,4,2     ## @ZPOOL_CONFIG_VDEV_TREE
	.comm	_BE_ERR_NOPOOL,4,2              ## @BE_ERR_NOPOOL
L_.str.1:                               ## @.str.1
	.asciz	"bootfs"

	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ## @ZFS_TYPE_FILESYSTEM
L_.str.2:                               ## @.str.2
	.asciz	"origin"

	.comm	_BE_ERR_SUCCESS,4,2             ## @BE_ERR_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_activate                    ; -- Begin function be_activate
	.p2align	2
_be_activate:                           ; @be_activate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #32
	mov	x23, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _BE_MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BE_MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x12, x9, #0x1fffffff0
	sub	x20, x8, x12
	mov	sp, x20
	mov	x9, x22
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x21, x8, x12
	mov	sp, x21
	mov	x2, x20
	bl	_be_root_concat
	mov	x0, x19
	mov	x1, x20
	bl	_be_exists
	cbz	w0, LBB0_2
; %bb.1:
	mov	x1, x0
	b	LBB0_7
LBB0_2:
	cbz	w23, LBB0_10
; %bb.3:
	ldr	w0, [x19, #4]
	mov	x1, #0
	bl	_zpool_get_config
	cbz	x0, LBB0_5
; %bb.4:
	mov	x23, x0
Lloh10:
	adrp	x8, _ZPOOL_CONFIG_POOL_GUID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ZPOOL_CONFIG_POOL_GUID@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	sub	x2, x29, #72
	bl	_nvlist_lookup_uint64
	cbz	x0, LBB0_13
LBB0_5:
Lloh13:
	adrp	x8, _BE_ERR_UNKNOWN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BE_ERR_UNKNOWN@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
LBB0_7:
	mov	x0, x19
	bl	_set_error
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.9:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_be_deactivate
	cbnz	x0, LBB0_12
; %bb.11:
	ldr	w0, [x19, #4]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_zpool_set_prop
	cbz	w0, LBB0_16
LBB0_12:
	mov	w0, #-1
	b	LBB0_8
LBB0_13:
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	mov	x3, x20
	bl	_snprintf
Lloh22:
	adrp	x8, _ZPOOL_CONFIG_VDEV_TREE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ZPOOL_CONFIG_VDEV_TREE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	sub	x2, x29, #64
	mov	x0, x23
	bl	_nvlist_lookup_nvlist
	cbz	x0, LBB0_15
; %bb.14:
Lloh25:
	adrp	x8, _BE_ERR_NOPOOL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BE_ERR_NOPOOL@GOTPAGEOFF]
	b	LBB0_6
LBB0_15:
	ldur	x1, [x29, #-64]
	ldur	w2, [x29, #-72]
	mov	x0, x19
	mov	x3, x21
	bl	_be_set_nextboot
	b	LBB0_8
LBB0_16:
	ldr	w0, [x19]
Lloh27:
	adrp	x8, _ZFS_TYPE_FILESYSTEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ZFS_TYPE_FILESYSTEM@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_zfs_open
	cbz	x0, LBB0_12
; %bb.17:
	mov	x21, x0
	sub	x0, x29, #64
	bl	_be_prop_list_alloc
	cbnz	x0, LBB0_12
; %bb.18:
	ldur	x2, [x29, #-64]
	mov	x0, x19
	mov	x1, x20
	bl	_be_get_dataset_props
	mov	x8, x0
	ldur	x0, [x29, #-64]
	cbz	x8, LBB0_20
; %bb.19:
	bl	_nvlist_free
	mov	w0, #-1
	b	LBB0_8
LBB0_20:
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	sub	x2, x29, #72
	bl	_nvlist_lookup_string
	cbz	x0, LBB0_23
; %bb.21:
	ldur	x0, [x29, #-64]
	bl	_nvlist_free
	mov	x0, x21
	bl	_zfs_close
LBB0_22:
Lloh32:
	adrp	x8, _BE_ERR_SUCCESS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BE_ERR_SUCCESS@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_23:
	mov	x0, x21
	bl	_zfs_promote
	mov	x19, x0
	ldur	x0, [x29, #-64]
	bl	_nvlist_free
	mov	x0, x21
	bl	_zfs_close
	cbnz	w19, LBB0_12
	b	LBB0_22
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_BE_MAXPATHLEN,4,2              ; @BE_MAXPATHLEN
	.comm	_BE_ERR_UNKNOWN,4,2             ; @BE_ERR_UNKNOWN
	.comm	_ZPOOL_CONFIG_POOL_GUID,4,2     ; @ZPOOL_CONFIG_POOL_GUID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"zfs:%s:"

	.comm	_ZPOOL_CONFIG_VDEV_TREE,4,2     ; @ZPOOL_CONFIG_VDEV_TREE
	.comm	_BE_ERR_NOPOOL,4,2              ; @BE_ERR_NOPOOL
l_.str.1:                               ; @.str.1
	.asciz	"bootfs"

	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ; @ZFS_TYPE_FILESYSTEM
l_.str.2:                               ; @.str.2
	.asciz	"origin"

	.comm	_BE_ERR_SUCCESS,4,2             ; @BE_ERR_SUCCESS
.subsections_via_symbols
