	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_open                       ## -- Begin function zfs_open
	.p2align	4, 0x90
_zfs_open:                              ## @zfs_open
	.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	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	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	%r12, %rcx
	callq	_snprintf
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_zfs_validate_name
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	%r12, %rdi
	movl	$35, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %rbx
	movl	%r13d, -1076(%rbp)              ## 4-byte Spill
	movq	%rsp, -1088(%rbp)               ## 8-byte Spill
	movq	_ZFS_MAX_DATASET_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r12, -1112(%rbp)
	subq	%r12, %rbx
	xorl	%edi, %edi
	cmpq	%r13, %rbx
	setb	%dil
	xorps	%xmm0, %xmm0
	movups	%xmm0, -1104(%rbp)
	callq	_assert
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_strncpy
	movb	$0, (%r14,%rbx)
	movq	_errno@GOTPCREL(%rip), %r13
	movq	$0, (%r13)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_make_dataset_handle
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r12
	movq	$0, (%r13)
	movq	_zfs_open_bookmarks_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1112(%rbp), %rdx
	movq	%r12, %rdi
	callq	_zfs_iter_bookmarks
	movq	-1104(%rbp), %rbx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:
	testq	%rbx, %rbx
	jne	LBB0_10
## %bb.5:
	movq	_EZFS_NOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	movq	%r15, %rdi
	callq	_zfs_error
	jmp	LBB0_15
LBB0_6:
	movq	_EZFS_INVALIDNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	movq	%r15, %rdi
	callq	_zfs_error
	jmp	LBB0_17
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_make_dataset_handle
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	testl	%r13d, (%rbx)
	jne	LBB0_18
	jmp	LBB0_12
LBB0_9:
	movq	(%r13), %rsi
	leaq	-1072(%rbp), %rdx
	movq	%r15, %rdi
	callq	_zfs_standard_error
	jmp	LBB0_16
LBB0_10:
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.11:
	movq	%r12, %rdi
	callq	_zfs_close
	movq	-1088(%rbp), %rsp               ## 8-byte Reload
	movl	-1076(%rbp), %r13d              ## 4-byte Reload
	testl	%r13d, (%rbx)
	jne	LBB0_18
LBB0_12:
	movq	_EZFS_BADTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	movq	%r15, %rdi
	callq	_zfs_error
	movq	%rbx, %rdi
	callq	_zfs_close
	jmp	LBB0_17
LBB0_13:
	movq	(%r14), %rsi
	leaq	-1072(%rbp), %rdx
	movq	%r15, %rdi
	callq	_zfs_standard_error
	jmp	LBB0_17
LBB0_14:
	movq	(%r13), %rsi
	leaq	-1072(%rbp), %rdx
	movq	%r15, %rdi
	callq	_zfs_standard_error
LBB0_15:
	movq	%r12, %rdi
	callq	_zfs_close
LBB0_16:
	movq	-1088(%rbp), %rsp               ## 8-byte Reload
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TEXT_DOMAIN,4,2                ## @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot open '%s'"

	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.comm	_EZFS_INVALIDNAME,4,2           ## @EZFS_INVALIDNAME
	.comm	_errno,8,3                      ## @errno
	.comm	_ZFS_MAX_DATASET_NAME_LEN,4,2   ## @ZFS_MAX_DATASET_NAME_LEN
	.comm	_zfs_open_bookmarks_cb,4,2      ## @zfs_open_bookmarks_cb
	.comm	_EZFS_NOENT,4,2                 ## @EZFS_NOENT
	.comm	_ZFS_TYPE_SNAPSHOT,4,2          ## @ZFS_TYPE_SNAPSHOT
	.comm	_EZFS_BADTYPE,4,2               ## @EZFS_BADTYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_open                       ; -- Begin function zfs_open
	.p2align	2
_zfs_open:                              ; @zfs_open
	.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, #1056
	mov	x19, sp
	mov	x21, x2
	mov	x22, x1
	mov	x20, 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, _TEXT_DOMAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dgettext
	mov	x2, x0
	add	x0, x19, #24
	mov	w1, #1024
	mov	x3, x22
	bl	_snprintf
Lloh8:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_zfs_validate_name
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x22
	mov	w1, #35
	bl	_strchr
	cbz	x0, LBB0_7
; %bb.2:
	mov	x25, sp
Lloh11:
	adrp	x8, _ZFS_MAX_DATASET_NAME_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ZFS_MAX_DATASET_NAME_LEN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	mov	x9, x8
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x23, x9, x10
	mov	sp, x23
	stp	xzr, xzr, [x19, #8]
	sub	x24, x0, x22
	cmp	x24, x8
	cset	w0, lo
	str	x22, [x19]
	bl	_assert
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_strncpy
	strb	wzr, [x23, x24]
Lloh16:
	adrp	x24, _errno@GOTPAGE
Lloh17:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	str	xzr, [x24]
	mov	x0, x20
	mov	x1, x23
	bl	_make_dataset_handle
	cbz	x0, LBB0_10
; %bb.3:
	mov	x23, x0
	str	xzr, [x24]
Lloh18:
	adrp	x8, _zfs_open_bookmarks_cb@GOTPAGE
Lloh19:
	ldr	x8, [x8, _zfs_open_bookmarks_cb@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, x19, #0
	bl	_zfs_iter_bookmarks
	ldr	x22, [x19, #8]
	cmp	x0, #0
	ccmp	x22, #0, #0, eq
	b.eq	LBB0_11
; %bb.4:
	cbz	x22, LBB0_13
; %bb.5:
	mov	x0, x23
	bl	_zfs_close
	mov	sp, x25
	b	LBB0_8
LBB0_6:
Lloh21:
	adrp	x8, _EZFS_INVALIDNAME@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EZFS_INVALIDNAME@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, x19, #24
	mov	x0, x20
	bl	_zfs_error
	b	LBB0_16
LBB0_7:
Lloh24:
	adrp	x23, _errno@GOTPAGE
Lloh25:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	str	xzr, [x23]
	mov	x0, x20
	mov	x1, x22
	bl	_make_dataset_handle
	mov	x22, x0
	cbz	x0, LBB0_12
LBB0_8:
	ldr	w8, [x22]
	tst	w8, w21
	b.ne	LBB0_17
; %bb.9:
Lloh26:
	adrp	x8, _EZFS_BADTYPE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EZFS_BADTYPE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	add	x2, x19, #24
	mov	x0, x20
	bl	_zfs_error
	mov	x0, x22
	bl	_zfs_close
	b	LBB0_16
LBB0_10:
	ldr	x1, [x24]
	add	x2, x19, #24
	mov	x0, x20
	bl	_zfs_standard_error
	b	LBB0_15
LBB0_11:
Lloh29:
	adrp	x8, _EZFS_NOENT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EZFS_NOENT@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	add	x2, x19, #24
	mov	x0, x20
	bl	_zfs_error
	b	LBB0_14
LBB0_12:
	ldr	x1, [x23]
	add	x2, x19, #24
	mov	x0, x20
	bl	_zfs_standard_error
	b	LBB0_17
LBB0_13:
	ldr	x1, [x24]
	add	x2, x19, #24
	mov	x0, x20
	bl	_zfs_standard_error
LBB0_14:
	mov	x0, x23
	bl	_zfs_close
LBB0_15:
	mov	sp, x25
LBB0_16:
	mov	x22, #0
LBB0_17:
	ldur	x8, [x29, #-72]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x22
	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_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_TEXT_DOMAIN,4,2                ; @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot open '%s'"

	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.comm	_EZFS_INVALIDNAME,4,2           ; @EZFS_INVALIDNAME
	.comm	_errno,8,3                      ; @errno
	.comm	_ZFS_MAX_DATASET_NAME_LEN,4,2   ; @ZFS_MAX_DATASET_NAME_LEN
	.comm	_zfs_open_bookmarks_cb,4,2      ; @zfs_open_bookmarks_cb
	.comm	_EZFS_NOENT,4,2                 ; @EZFS_NOENT
	.comm	_ZFS_TYPE_SNAPSHOT,4,2          ; @ZFS_TYPE_SNAPSHOT
	.comm	_EZFS_BADTYPE,4,2               ; @EZFS_BADTYPE
.subsections_via_symbols
