	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_snapshot                    ## -- Begin function be_snapshot
	.p2align	4, 0x90
_be_snapshot:                           ## @be_snapshot
	.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	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	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), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_be_root_concat
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_be_exists
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	%eax, %esi
	jmp	LBB0_13
LBB0_2:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_7
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_strlcat
	cltq
	cmpq	%r13, %rax
	jae	LBB0_11
## %bb.4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_strlcat
	cltq
	cmpq	%r13, %rax
	jae	LBB0_11
## %bb.5:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.6:
	movq	_BE_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_snprintf
	jmp	LBB0_9
LBB0_7:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_be_setup_snapshot_name
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_strlcpy
	cltq
	cmpq	%r13, %rax
	jae	LBB0_11
LBB0_9:
	movl	(%r12), %edi
	movq	%rbx, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_zfs_snapshot
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	cmpl	$128, %eax
	jne	LBB0_17
LBB0_11:
	movq	_BE_ERR_INVALIDNAME@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	movq	%r12, %rdi
LBB0_13:
	callq	_set_error
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_20
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_BE_ERR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_17:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ENOTSUP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.18:
	movq	_BE_ERR_NOPOOL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_19:
	movq	_BE_ERR_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BE_MAXPATHLEN,4,2              ## @BE_MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"@"

	.comm	_BE_ERR_INVALIDNAME,4,2         ## @BE_ERR_INVALIDNAME
L_.str.1:                               ## @.str.1
	.asciz	"%s@%s"

	.comm	_errno,4,2                      ## @errno
	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
	.comm	_BE_ERR_NOPOOL,4,2              ## @BE_ERR_NOPOOL
	.comm	_BE_ERR_UNKNOWN,4,2             ## @BE_ERR_UNKNOWN
	.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_snapshot                    ; -- Begin function be_snapshot
	.p2align	2
_be_snapshot:                           ; @be_snapshot
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x22, x4
	mov	x20, x3
	mov	x24, x2
	mov	x25, 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, #-72]
Lloh3:
	adrp	x26, _BE_MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _BE_MAXPATHLEN@GOTPAGEOFF]
	ldr	w23, [x26]
	mov	x9, x23
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	mov	x2, x21
	bl	_be_root_concat
	mov	x0, x19
	mov	x1, x21
	bl	_be_exists
	cbz	w0, LBB0_2
; %bb.1:
	mov	x1, x0
	b	LBB0_13
LBB0_2:
	cbz	x24, LBB0_7
; %bb.3:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	bl	_strlcat
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x23
	b.hs	LBB0_11
; %bb.4:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_strlcat
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x23
	b.hs	LBB0_11
; %bb.5:
	cbz	x22, LBB0_9
; %bb.6:
	ldr	w1, [x26]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x3, x25
	mov	x4, x24
	bl	_snprintf
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_be_setup_snapshot_name
	cbz	x22, LBB0_9
; %bb.8:
	mov	x0, x21
	mov	w1, #47
	bl	_strrchr
	add	x1, x0, #1
	mov	x0, x22
	mov	x2, x23
	bl	_strlcpy
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x23
	b.hs	LBB0_11
LBB0_9:
	ldr	w0, [x19]
	mov	x1, x21
	mov	x2, x20
	mov	x3, #0
	bl	_zfs_snapshot
	cbz	w0, LBB0_16
; %bb.10:
	cmp	w0, #128
	b.ne	LBB0_17
LBB0_11:
Lloh11:
	adrp	x8, _BE_ERR_INVALIDNAME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BE_ERR_INVALIDNAME@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x8]
LBB0_13:
	mov	x0, x19
	bl	_set_error
LBB0_14:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.15:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh16:
	adrp	x8, _BE_ERR_SUCCESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BE_ERR_SUCCESS@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_17:
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _ENOTSUP@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ENOTSUP@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.18:
Lloh25:
	adrp	x8, _BE_ERR_NOPOOL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BE_ERR_NOPOOL@GOTPAGEOFF]
	b	LBB0_12
LBB0_19:
Lloh27:
	adrp	x8, _BE_ERR_UNKNOWN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BE_ERR_UNKNOWN@GOTPAGEOFF]
	b	LBB0_12
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_BE_MAXPATHLEN,4,2              ; @BE_MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"@"

	.comm	_BE_ERR_INVALIDNAME,4,2         ; @BE_ERR_INVALIDNAME
l_.str.1:                               ; @.str.1
	.asciz	"%s@%s"

	.comm	_errno,4,2                      ; @errno
	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
	.comm	_BE_ERR_NOPOOL,4,2              ; @BE_ERR_NOPOOL
	.comm	_BE_ERR_UNKNOWN,4,2             ; @BE_ERR_UNKNOWN
	.comm	_BE_ERR_SUCCESS,4,2             ; @BE_ERR_SUCCESS
.subsections_via_symbols
