	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_unmount                    ## -- Begin function zfs_unmount
	.p2align	4, 0x90
_zfs_unmount:                           ## @zfs_unmount
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	testq	%rsi, %rsi
	je	LBB0_1
LBB0_4:
	movq	%r14, %rdi
	callq	_zfs_strdup
	movq	%rax, %r13
	movq	_share_all_proto@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_zfs_unshare_proto
	movl	$-1, %r12d
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_unmount_one
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_zfs_shareall
	jmp	LBB0_8
LBB0_1:
	movq	%rbx, %rdi
	callq	_zfs_get_type
	movq	_ZFS_TYPE_FILESYSTEM@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_libzfs_mnttab_find
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movq	-48(%rbp), %rsi
	jmp	LBB0_4
LBB0_7:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_libzfs_mnttab_remove
	movq	%r13, %rdi
	callq	_free
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZFS_TYPE_FILESYSTEM,8,3        ## @ZFS_TYPE_FILESYSTEM
	.comm	_share_all_proto,4,2            ## @share_all_proto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_unmount                    ; -- Begin function zfs_unmount
	.p2align	2
_zfs_unmount:                           ; @zfs_unmount
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x19, x0
	ldr	x20, [x0, #8]
	cbz	x1, LBB0_3
LBB0_1:
	mov	x0, x20
	bl	_zfs_strdup
	mov	x22, x0
Lloh0:
	adrp	x8, _share_all_proto@GOTPAGE
Lloh1:
	ldr	x8, [x8, _share_all_proto@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_zfs_unshare_proto
	cbz	x0, LBB0_6
; %bb.2:
	mov	w0, #-1
	b	LBB0_10
LBB0_3:
	mov	x0, x19
	bl	_zfs_get_type
Lloh3:
	adrp	x8, _ZFS_TYPE_FILESYSTEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZFS_TYPE_FILESYSTEM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.4:
	ldr	w1, [x19]
	add	x2, sp, #8
	mov	x0, x20
	bl	_libzfs_mnttab_find
	cbnz	x0, LBB0_9
; %bb.5:
	ldr	x1, [sp, #8]
	b	LBB0_1
LBB0_6:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_unmount_one
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_free
	mov	x0, x19
	bl	_zfs_shareall
	mov	w0, #-1
	b	LBB0_10
LBB0_8:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_libzfs_mnttab_remove
	mov	x0, x22
	bl	_free
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ZFS_TYPE_FILESYSTEM,8,3        ; @ZFS_TYPE_FILESYSTEM
	.comm	_share_all_proto,4,2            ; @share_all_proto
.subsections_via_symbols
