	.file	"extr_libzfs_mount.c_zfs_unmount.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zfs_unmount
	.type	zfs_unmount, @function
zfs_unmount:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	r14, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	je	.L15
.L12:
	mov	rdi, r14
	call	zfs_strdup@PLT
	mov	edx, DWORD PTR share_all_proto[rip]
	mov	rdi, rbp
	mov	r12, rax
	mov	rsi, r12
	call	zfs_unshare_proto@PLT
	test	rax, rax
	jne	.L10
	mov	edx, r13d
	mov	rsi, r12
	mov	rdi, r14
	call	unmount_one@PLT
	test	rax, rax
	jne	.L16
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r14
	call	libzfs_mnttab_remove@PLT
	mov	rdi, r12
	call	free@PLT
.L13:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L17
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	call	zfs_get_type@PLT
	cmp	rax, QWORD PTR ZFS_TYPE_FILESYSTEM[rip]
	jne	.L13
	mov	esi, DWORD PTR 0[rbp]
	mov	rdx, rsp
	mov	rdi, r14
	call	libzfs_mnttab_find@PLT
	test	rax, rax
	jne	.L13
	mov	rsi, QWORD PTR [rsp]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, -1
	jmp	.L1
.L16:
	mov	rdi, r12
	call	free@PLT
	mov	rdi, rbp
	call	zfs_shareall@PLT
	mov	eax, -1
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	zfs_unmount, .-zfs_unmount
	.comm	share_all_proto,4,4
	.comm	ZFS_TYPE_FILESYSTEM,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_libzfs_mount.c_zfs_unmount.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	zfs_unmount
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfs_unmount, %function
zfs_unmount:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L17
	sub	sp, sp, #12
	cmp	r1, #0
	mov	r4, r0
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r7, [r0, #4]
	beq	.L14
.L12:
	mov	r0, r7
	bl	zfs_strdup
	mov	r5, r0
	ldr	r3, .L17+4
	mov	r1, r5
	mov	r0, r4
	ldr	r2, [r3]
	bl	zfs_unshare_proto
	cmp	r0, #0
	bne	.L10
	mov	r2, r6
	mov	r1, r5
	mov	r0, r7
	bl	unmount_one
	subs	r6, r0, #0
	bne	.L15
	mov	r0, r7
	ldr	r1, [r4]
	bl	libzfs_mnttab_remove
	mov	r0, r5
	bl	free
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	bl	zfs_get_type
	ldr	r3, .L17+8
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L3
.L6:
	mov	r6, #0
	b	.L1
.L3:
	mov	r2, sp
	mov	r0, r7
	ldr	r1, [r4]
	bl	libzfs_mnttab_find
	cmp	r0, #0
	bne	.L6
	ldr	r1, [sp]
	b	.L12
.L10:
	mvn	r6, #0
	b	.L1
.L15:
	mov	r0, r5
	bl	free
	mov	r0, r4
	bl	zfs_shareall
	mvn	r6, #0
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	share_all_proto
	.word	ZFS_TYPE_FILESYSTEM
	.size	zfs_unmount, .-zfs_unmount
	.comm	share_all_proto,4,4
	.comm	ZFS_TYPE_FILESYSTEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
