	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zfs_do_bookmark
_zfs_do_bookmark:                       ## @zfs_do_bookmark
	.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	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ZFS_MAX_DATASET_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leaq	L_.str(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_getopt
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$63, %eax
	jne	LBB0_1
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_gettext
	movq	_optopt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_4
LBB0_5:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	subl	%r13d, %ebx
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.8:
	cmpl	$1, %ebx
	jne	LBB0_10
## %bb.9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_7
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
LBB0_7:
	callq	_gettext
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_4:
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
	movl	$-1, %eax
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_24
## %bb.23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	8(%r12,%r13,8), %rbx
	movq	%rbx, %rdi
	movl	$35, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	(%r12,%r13,8), %rsi
	cmpb	$64, (%rsi)
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_strncpy
	movq	%r14, %rdi
	movl	$35, %esi
	callq	_strchr
	movb	$0, (%rax)
	movq	(%r12,%r13,8), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_strlcat
	jmp	LBB0_15
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	_gettext
	movq	8(%r12,%r13,8), %rdx
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_4
LBB0_14:
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_strncpy
LBB0_15:
	movq	_g_zfs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ZFS_TYPE_SNAPSHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_zfs_open
	testq	%rax, %rax
	je	LBB0_4
## %bb.16:
	movq	%rax, %rdi
	callq	_zfs_close
	xorl	%eax, %eax
	callq	_fnvlist_alloc
	movq	%rax, %rbx
	movq	8(%r12,%r13,8), %rsi
	movq	%rax, %rdi
	movq	%r14, %rdx
	callq	_fnvlist_add_string
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_lzc_bookmark
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_fnvlist_free
	testl	%r14d, %r14d
	je	LBB0_21
## %bb.17:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_dgettext
	movq	8(%r12,%r13,8), %rcx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rax, %rdx
	callq	_snprintf
	leal	-128(%r14), %eax
	cmpl	$4, %eax
	ja	LBB0_18
## %bb.19:
	cltq
	leaq	l_reltable.zfs_do_bookmark(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str.11(%rip), %rsi
LBB0_20:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r15), %edi
	callq	_dgettext
	leaq	L_.str.12(%rip), %rsi
	leaq	-1072(%rbp), %rdx
	movl	%ebx, %edi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_21:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	setne	%al
	jmp	LBB0_22
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ZFS_MAX_DATASET_NAME_LEN,4,2   ## @ZFS_MAX_DATASET_NAME_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"invalid option '%c'\n"

	.comm	_optopt,4,2                     ## @optopt
	.comm	_optind,8,3                     ## @optind
L_.str.2:                               ## @.str.2
	.asciz	"missing snapshot argument\n"

L_.str.3:                               ## @.str.3
	.asciz	"missing bookmark argument\n"

L_.str.4:                               ## @.str.4
	.asciz	"invalid bookmark name '%s' -- must contain a '#'\n"

	.comm	_g_zfs,4,2                      ## @g_zfs
	.comm	_ZFS_TYPE_SNAPSHOT,4,2          ## @ZFS_TYPE_SNAPSHOT
	.comm	_TEXT_DOMAIN,4,2                ## @TEXT_DOMAIN
L_.str.5:                               ## @.str.5
	.asciz	"cannot create bookmark '%s'"

L_.str.6:                               ## @.str.6
	.asciz	"bookmark is in a different pool"

L_.str.7:                               ## @.str.7
	.asciz	"bookmark exists"

L_.str.8:                               ## @.str.8
	.asciz	"invalid argument"

L_.str.9:                               ## @.str.9
	.asciz	"bookmark feature not enabled"

L_.str.10:                              ## @.str.10
	.asciz	"out of space"

L_.str.11:                              ## @.str.11
	.asciz	"unknown error"

L_.str.12:                              ## @.str.12
	.asciz	"%s: %s\n"

	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.no_dead_strip	_zfs_do_bookmark
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.zfs_do_bookmark
l_reltable.zfs_do_bookmark:
	.long	L_.str.6-l_reltable.zfs_do_bookmark
	.long	L_.str.9-l_reltable.zfs_do_bookmark
	.long	L_.str.10-l_reltable.zfs_do_bookmark
	.long	L_.str.8-l_reltable.zfs_do_bookmark
	.long	L_.str.7-l_reltable.zfs_do_bookmark

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zfs_do_bookmark
_zfs_do_bookmark:                       ; @zfs_do_bookmark
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #1040
	mov	x19, sp
	mov	x22, x1
	mov	x23, 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	x8, _ZFS_MAX_DATASET_NAME_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZFS_MAX_DATASET_NAME_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x24, l_.str@PAGE
Lloh9:
	add	x24, x24, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_getopt
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #63
	b.ne	LBB0_1
; %bb.3:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_gettext
	mov	x1, x0
Lloh15:
	adrp	x8, _optopt@GOTPAGE
Lloh16:
	ldr	x8, [x8, _optopt@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
LBB0_4:
	str	x8, [sp, #-16]!
	mov	x0, x20
	bl	_fprintf
	add	sp, sp, #16
	b	LBB0_10
LBB0_5:
Lloh18:
	adrp	x8, _optind@GOTPAGE
Lloh19:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	sub	w9, w23, w8
	cmp	w9, #0
	b.le	LBB0_8
; %bb.6:
	cmp	w9, #1
	b.ne	LBB0_13
; %bb.7:
Lloh21:
	adrp	x8, _stderr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w20, [x8]
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_9:
	bl	_gettext
	mov	x1, x0
	mov	x0, x20
	bl	_fprintf
LBB0_10:
Lloh31:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_usage
	mov	w0, #-1
LBB0_11:
	ldur	x8, [x29, #-72]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.12:
	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	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	add	x23, x22, x8, lsl #3
	ldr	x22, [x23, #8]
	mov	x0, x22
	mov	w1, #35
	bl	_strchr
	cbz	x0, LBB0_16
; %bb.14:
	ldr	x1, [x23]
	ldrb	w8, [x1]
	mov	x0, x20
	cmp	w8, #64
	b.ne	LBB0_17
; %bb.15:
	mov	x1, x22
	mov	x2, x21
	bl	_strncpy
	mov	x0, x20
	mov	w1, #35
	bl	_strchr
	strb	wzr, [x0]
	ldr	x1, [x23]
	mov	x0, x20
	mov	x2, x21
	bl	_strlcat
	b	LBB0_18
LBB0_16:
Lloh37:
	adrp	x8, _stderr@GOTPAGE
Lloh38:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh39:
	ldr	w20, [x8]
Lloh40:
	adrp	x0, l_.str.4@PAGE
Lloh41:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_gettext
	mov	x1, x0
	ldr	x8, [x23, #8]
	b	LBB0_4
LBB0_17:
	mov	x2, x21
	bl	_strncpy
LBB0_18:
Lloh42:
	adrp	x8, _g_zfs@GOTPAGE
Lloh43:
	ldr	x8, [x8, _g_zfs@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x8, _ZFS_TYPE_SNAPSHOT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ZFS_TYPE_SNAPSHOT@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_zfs_open
	cbz	x0, LBB0_10
; %bb.19:
	bl	_zfs_close
	bl	_fnvlist_alloc
	mov	x21, x0
	ldr	x1, [x23, #8]
	mov	x2, x20
	bl	_fnvlist_add_string
	mov	x0, x21
	mov	x1, #0
	bl	_lzc_bookmark
	mov	x20, x0
	mov	x0, x21
	bl	_fnvlist_free
	cbz	w20, LBB0_24
; %bb.20:
Lloh48:
	adrp	x22, _TEXT_DOMAIN@GOTPAGE
Lloh49:
	ldr	x22, [x22, _TEXT_DOMAIN@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh50:
	adrp	x1, l_.str.5@PAGE
Lloh51:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dgettext
	mov	x2, x0
	ldr	x3, [x23, #8]
	add	x23, x19, #8
	add	x0, x19, #8
	mov	w1, #1024
	bl	_snprintf
	sub	w8, w20, #128
	cmp	w8, #4
	b.hi	LBB0_22
; %bb.21:
Lloh52:
	adrp	x9, l_switch.table.zfs_do_bookmark@PAGE
Lloh53:
	add	x9, x9, l_switch.table.zfs_do_bookmark@PAGEOFF
	ldr	x1, [x9, w8, sxtw #3]
	b	LBB0_23
LBB0_22:
Lloh54:
	adrp	x1, l_.str.11@PAGE
Lloh55:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_23:
Lloh56:
	adrp	x8, _stderr@GOTPAGE
Lloh57:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh58:
	ldr	w21, [x8]
	ldr	w0, [x22]
	bl	_dgettext
	stp	x23, x0, [sp, #-16]!
Lloh59:
	adrp	x1, l_.str.12@PAGE
Lloh60:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x21
	bl	_fprintf
	add	sp, sp, #16
LBB0_24:
	cmp	w20, #0
	cset	w0, ne
	b	LBB0_11
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_ZFS_MAX_DATASET_NAME_LEN,4,2   ; @ZFS_MAX_DATASET_NAME_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"invalid option '%c'\n"

	.comm	_optopt,4,2                     ; @optopt
	.comm	_optind,8,3                     ; @optind
l_.str.2:                               ; @.str.2
	.asciz	"missing snapshot argument\n"

l_.str.3:                               ; @.str.3
	.asciz	"missing bookmark argument\n"

l_.str.4:                               ; @.str.4
	.asciz	"invalid bookmark name '%s' -- must contain a '#'\n"

	.comm	_g_zfs,4,2                      ; @g_zfs
	.comm	_ZFS_TYPE_SNAPSHOT,4,2          ; @ZFS_TYPE_SNAPSHOT
	.comm	_TEXT_DOMAIN,4,2                ; @TEXT_DOMAIN
l_.str.5:                               ; @.str.5
	.asciz	"cannot create bookmark '%s'"

l_.str.6:                               ; @.str.6
	.asciz	"bookmark is in a different pool"

l_.str.7:                               ; @.str.7
	.asciz	"bookmark exists"

l_.str.8:                               ; @.str.8
	.asciz	"invalid argument"

l_.str.9:                               ; @.str.9
	.asciz	"bookmark feature not enabled"

l_.str.10:                              ; @.str.10
	.asciz	"out of space"

l_.str.11:                              ; @.str.11
	.asciz	"unknown error"

l_.str.12:                              ; @.str.12
	.asciz	"%s: %s\n"

	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.no_dead_strip	_zfs_do_bookmark
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.zfs_do_bookmark
l_switch.table.zfs_do_bookmark:
	.quad	l_.str.6
	.quad	l_.str.9
	.quad	l_.str.10
	.quad	l_.str.8
	.quad	l_.str.7

.subsections_via_symbols
