	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_path_to_zhandle            ## -- Begin function zfs_path_to_zhandle
	.p2align	4, 0x90
_zfs_path_to_zhandle:                   ## @zfs_path_to_zhandle
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpb	$47, (%rsi)
	je	LBB0_2
## %bb.1:
	movl	%edx, %r15d
	leaq	L_.str(%rip), %r12
	movq	%r12, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zfs_open                       ## TAILCALL
LBB0_2:
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat64
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_statfs
	testl	%eax, %eax
	je	LBB0_5
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%r15d, %edi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_8:
	movq	%r14, %rax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-40(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_statfs2mnttab
	movl	-56(%rbp), %edi
	movq	_MNTTYPE_ZFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.2(%rip), %rdi
	callq	_gettext
	xorl	%r14d, %r14d
	movl	%r15d, %edi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_8
LBB0_7:
	movq	-64(%rbp), %rsi
	movq	_ZFS_TYPE_FILESYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_zfs_open
	movq	%rax, %r14
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"./"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"%s: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_MNTTYPE_ZFS,4,2                ## @MNTTYPE_ZFS
L_.str.2:                               ## @.str.2
	.asciz	"'%s': not a ZFS filesystem\n"

	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ## @ZFS_TYPE_FILESYSTEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_path_to_zhandle            ; -- Begin function zfs_path_to_zhandle
	.p2align	2
_zfs_path_to_zhandle:                   ; @zfs_path_to_zhandle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x20, x0
	ldrb	w8, [x1]
	cmp	w8, #47
	b.eq	LBB0_3
; %bb.1:
	mov	x21, x2
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_strncmp
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	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
	add	sp, sp, #96
	b	_zfs_open
LBB0_3:
	add	x1, sp, #40
	mov	x0, x19
	bl	_stat64
	cbnz	x0, LBB0_5
; %bb.4:
	add	x1, sp, #8
	mov	x0, x19
	bl	_statfs
	cbz	w0, LBB0_8
LBB0_5:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x20
	mov	x2, x19
	bl	_fprintf
	mov	x0, #0
LBB0_7:
	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
	add	sp, sp, #96
	ret
LBB0_8:
	add	x0, sp, #8
	add	x1, sp, #16
	bl	_statfs2mnttab
	ldr	w0, [sp, #24]
Lloh10:
	adrp	x8, _MNTTYPE_ZFS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MNTTYPE_ZFS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.9:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_gettext
	mov	x1, x0
	b	LBB0_6
LBB0_10:
	ldr	x1, [sp, #16]
Lloh18:
	adrp	x8, _ZFS_TYPE_FILESYSTEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ZFS_TYPE_FILESYSTEM@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_zfs_open
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"./"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"%s: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_MNTTYPE_ZFS,4,2                ; @MNTTYPE_ZFS
l_.str.2:                               ; @.str.2
	.asciz	"'%s': not a ZFS filesystem\n"

	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ; @ZFS_TYPE_FILESYSTEM
.subsections_via_symbols
