	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_clone
_be_clone:                              ## @be_clone
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BE_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_be_validate_name
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.2:
	movq	%r13, %rdi
	movl	%eax, %esi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_error                      ## TAILCALL
LBB0_3:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_be_root_concat
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_be_validate_snap
	testl	%eax, %eax
	je	LBB0_6
LBB0_4:
	movq	%r13, %rdi
	movl	%eax, %esi
LBB0_11:
	callq	_set_error
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$64, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movb	$0, (%rax)
	incq	%rax
	movq	%r13, -56(%rbp)
	movq	%r15, -88(%rbp)
	movq	%rax, -80(%rbp)
	movq	$0, -64(%rbp)
	movl	%r14d, -72(%rbp)
	movl	(%r13), %edi
	movq	_ZFS_TYPE_DATASET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_zfs_open
	leaq	-88(%rbp), %rsi
	movq	%rax, %rdi
	callq	_be_clone_cb
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_free
	movq	%r13, %rdi
	movl	%ebx, %esi
	jmp	LBB0_11
LBB0_9:
	movq	%r12, %rdi
	callq	_free
LBB0_7:
	movq	_BE_ERR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	jmp	LBB0_11
LBB0_13:
	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	_ZFS_TYPE_DATASET,4,2           ## @ZFS_TYPE_DATASET
	.no_dead_strip	_be_clone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_clone
_be_clone:                              ; @be_clone
	.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, #48
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	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	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	bl	_be_validate_name
	cbz	w0, LBB0_3
; %bb.1:
	ldur	x8, [x29, #-56]
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_14
; %bb.2:
	mov	x1, x0
	mov	x0, x19
	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
	b	_set_error
LBB0_3:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_be_root_concat
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x22
	bl	_be_validate_snap
	cbz	w0, LBB0_9
LBB0_5:
	mov	x1, x0
LBB0_6:
	mov	x0, x19
LBB0_7:
	bl	_set_error
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.8:
	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_9:
	mov	x0, x22
	bl	_strdup
	cbz	x0, LBB0_13
; %bb.10:
	mov	x22, x0
	mov	w1, #64
	bl	_strchr
	cbz	x0, LBB0_12
; %bb.11:
	strb	wzr, [x0], #1
	stp	x21, x0, [x29, #-96]
	stp	xzr, x19, [x29, #-72]
	stur	w20, [x29, #-80]
	ldr	w0, [x19]
Lloh14:
	adrp	x8, _ZFS_TYPE_DATASET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ZFS_TYPE_DATASET@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_zfs_open
	sub	x1, x29, #96
	bl	_be_clone_cb
	mov	x20, x0
	mov	x0, x22
	bl	_free
	mov	x0, x19
	mov	x1, x20
	b	LBB0_7
LBB0_12:
	mov	x0, x22
	bl	_free
LBB0_13:
Lloh17:
	adrp	x8, _BE_ERR_UNKNOWN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BE_ERR_UNKNOWN@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	b	LBB0_6
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BE_MAXPATHLEN,4,2              ; @BE_MAXPATHLEN
	.comm	_BE_ERR_UNKNOWN,4,2             ; @BE_ERR_UNKNOWN
	.comm	_ZFS_TYPE_DATASET,4,2           ; @ZFS_TYPE_DATASET
	.no_dead_strip	_be_clone
.subsections_via_symbols
