	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_snapshot                   ## -- Begin function zfs_snapshot
	.p2align	4, 0x90
_zfs_snapshot:                          ## @zfs_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	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -1104(%rbp)               ## 8-byte Spill
	movq	%rdx, -1096(%rbp)               ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -1088(%rbp)
	movq	_ZFS_MAX_DATASET_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dgettext
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rax, %rdx
	movq	%r14, %rcx
	callq	_snprintf
	movq	_ZFS_TYPE_SNAPSHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_zfs_validate_name
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_strlcpy
	movq	%r13, %rdi
	movl	$64, %esi
	callq	_strchr
	movb	$0, (%rax)
	incq	%rax
	movq	%rax, -1088(%rbp)
	movq	_ZFS_TYPE_FILESYSTEM@GOTPCREL(%rip), %rax
	movq	_ZFS_TYPE_VOLUME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_zfs_open
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	leaq	-1080(%rbp), %rdi
	movq	_NV_UNIQUE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_nvlist_alloc
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	cmpq	$0, -1096(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_zfs_handle_dup
	leaq	-1088(%rbp), %rsi
	movl	%eax, %edi
	callq	_zfs_snapshot_cb
	jmp	LBB0_7
LBB0_1:
	movq	_EZFS_INVALIDNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	movq	%r15, %rdi
	callq	_zfs_error
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_3:
	movl	$-1, %ebx
	jmp	LBB0_8
LBB0_6:
	movl	-1080(%rbp), %edi
	movq	%r14, %rsi
	callq	_fnvlist_add_boolean
LBB0_7:
	movl	-1080(%rbp), %esi
	movq	%r15, %rdi
	movq	-1104(%rbp), %rdx               ## 8-byte Reload
	callq	_zfs_snapshot_nvl
	movl	%eax, %ebx
	movl	-1080(%rbp), %edi
	callq	_nvlist_free
	movq	%r13, %rdi
	callq	_zfs_close
LBB0_8:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ZFS_MAX_DATASET_NAME_LEN,4,2   ## @ZFS_MAX_DATASET_NAME_LEN
	.comm	_TEXT_DOMAIN,4,2                ## @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot snapshot %s"

	.comm	_ZFS_TYPE_SNAPSHOT,4,2          ## @ZFS_TYPE_SNAPSHOT
	.comm	_B_TRUE,4,2                     ## @B_TRUE
	.comm	_EZFS_INVALIDNAME,4,2           ## @EZFS_INVALIDNAME
	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ## @ZFS_TYPE_FILESYSTEM
	.comm	_ZFS_TYPE_VOLUME,4,2            ## @ZFS_TYPE_VOLUME
	.comm	_NV_UNIQUE_NAME,4,2             ## @NV_UNIQUE_NAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_snapshot                   ; -- Begin function zfs_snapshot
	.p2align	2
_zfs_snapshot:                          ; @zfs_snapshot
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1056
	mov	x19, sp
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stp	xzr, xzr, [x19, #8]
Lloh3:
	adrp	x8, _ZFS_MAX_DATASET_NAME_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZFS_MAX_DATASET_NAME_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	mov	x9, x25
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x25, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
Lloh8:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dgettext
	mov	x2, x0
	add	x0, x19, #24
	mov	w1, #1024
	mov	x3, x22
	bl	_snprintf
Lloh13:
	adrp	x8, _ZFS_TYPE_SNAPSHOT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ZFS_TYPE_SNAPSHOT@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _B_TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _B_TRUE@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_zfs_validate_name
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x25
	bl	_strlcpy
	mov	x0, x24
	mov	w1, #64
	bl	_strchr
	strb	wzr, [x0], #1
Lloh19:
	adrp	x8, _ZFS_TYPE_FILESYSTEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ZFS_TYPE_FILESYSTEM@GOTPAGEOFF]
	str	x0, [x19, #8]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _ZFS_TYPE_VOLUME@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ZFS_TYPE_VOLUME@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	mov	x1, x24
	bl	_zfs_open
	cbz	x0, LBB0_5
; %bb.2:
	mov	x24, x0
	add	x8, x19, #8
	add	x0, x8, #8
Lloh25:
	adrp	x8, _NV_UNIQUE_NAME@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NV_UNIQUE_NAME@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_nvlist_alloc
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	cbz	x23, LBB0_6
; %bb.3:
	mov	x0, x24
	bl	_zfs_handle_dup
	add	x1, x19, #8
	bl	_zfs_snapshot_cb
	b	LBB0_7
LBB0_4:
Lloh28:
	adrp	x8, _EZFS_INVALIDNAME@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EZFS_INVALIDNAME@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	add	x2, x19, #24
	mov	x0, x20
	bl	_zfs_error
	mov	x20, x0
	b	LBB0_8
LBB0_5:
	mov	w20, #-1
	b	LBB0_8
LBB0_6:
	ldr	w0, [x19, #16]
	mov	x1, x22
	bl	_fnvlist_add_boolean
LBB0_7:
	ldr	w1, [x19, #16]
	mov	x0, x20
	mov	x2, x21
	bl	_zfs_snapshot_nvl
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_nvlist_free
	mov	x0, x24
	bl	_zfs_close
LBB0_8:
	mov	sp, x26
	ldur	x8, [x29, #-88]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_ZFS_MAX_DATASET_NAME_LEN,4,2   ; @ZFS_MAX_DATASET_NAME_LEN
	.comm	_TEXT_DOMAIN,4,2                ; @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot snapshot %s"

	.comm	_ZFS_TYPE_SNAPSHOT,4,2          ; @ZFS_TYPE_SNAPSHOT
	.comm	_B_TRUE,4,2                     ; @B_TRUE
	.comm	_EZFS_INVALIDNAME,4,2           ; @EZFS_INVALIDNAME
	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ; @ZFS_TYPE_FILESYSTEM
	.comm	_ZFS_TYPE_VOLUME,4,2            ; @ZFS_TYPE_VOLUME
	.comm	_NV_UNIQUE_NAME,4,2             ; @NV_UNIQUE_NAME
.subsections_via_symbols
