	.file	"extr_zfs_vnops.c_zfs_close.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	zfs_close, @function
zfs_close:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	VTOZ@PLT
	mov	r15, QWORD PTR 16[rax]
	mov	rbx, rax
	xor	eax, eax
	call	ddi_get_pid@PLT
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, eax
	call	cleanlocks@PLT
	xor	eax, eax
	call	ddi_get_pid@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	cleanshares@PLT
	mov	rdi, r15
	call	ZFS_ENTER@PLT
	mov	rdi, rbx
	call	ZFS_VERIFY_ZP@PLT
	mov	eax, DWORD PTR FSYNC[rip]
	or	eax, DWORD PTR FDSYNC[rip]
	test	eax, r12d
	je	.L2
	cmp	r13d, 1
	je	.L14
.L2:
	mov	rdi, rbx
	call	zfs_has_ctldir@PLT
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR 16[rbx]
	cmp	QWORD PTR [rax], 0
	jne	.L15
.L4:
	mov	rdi, r15
	call	ZFS_EXIT@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, rbx
	call	ZTOV@PLT
	mov	rcx, QWORD PTR VREG[rip]
	cmp	QWORD PTR [rax], rcx
	jne	.L4
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR ZFS_AV_QUARANTINED[rip], eax
	jne	.L4
	cmp	QWORD PTR 8[rbx], 0
	jle	.L4
	mov	rdi, rbp
	mov	edx, 1
	mov	rsi, r14
	call	fs_vscan@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rdi, 24[rbx]
	call	atomic_dec_32@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	zfs_close, .-zfs_close
	.comm	ZFS_AV_QUARANTINED,4,4
	.comm	VREG,8,8
	.comm	FSYNC,4,4
	.comm	FDSYNC,4,4
	.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_zfs_vnops.c_zfs_close.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfs_close, %function
zfs_close:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r1
	mov	r5, r2
	mov	r6, r0
	bl	VTOZ
	mov	r4, r0
	ldr	r7, [r0, #8]
	bl	ddi_get_pid
	mov	r2, #0
	mov	r1, r0
	mov	r0, r6
	bl	cleanlocks
	bl	ddi_get_pid
	sub	r5, r5, #1
	clz	r5, r5
	mov	r1, r0
	mov	r0, r6
	bl	cleanshares
	mov	r0, r7
	bl	ZFS_ENTER
	mov	r0, r4
	bl	ZFS_VERIFY_ZP
	ldr	r3, .L16
	ldr	r2, .L16+4
	ldr	r3, [r3]
	ldr	r1, [r2]
	lsr	r5, r5, #5
	orr	r3, r3, r1
	and	r1, r3, r8
	cmp	r1, #0
	moveq	r5, #0
	cmp	r5, #0
	bne	.L14
.L2:
	mov	r0, r4
	bl	zfs_has_ctldir
	cmp	r0, #0
	bne	.L4
	ldr	r3, [r4, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L15
.L4:
	mov	r0, r7
	bl	ZFS_EXIT
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r0, r4
	bl	ZTOV
	ldr	r3, .L16+8
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L4
	ldr	r3, .L16+12
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L4
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ble	.L4
	mov	r0, r6
	mov	r2, #1
	ldr	r1, [sp, #24]
	bl	fs_vscan
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	b	.L4
.L14:
	add	r0, r4, #12
	bl	atomic_dec_32
	b	.L2
.L17:
	.align	2
.L16:
	.word	FSYNC
	.word	FDSYNC
	.word	VREG
	.word	ZFS_AV_QUARANTINED
	.size	zfs_close, .-zfs_close
	.comm	ZFS_AV_QUARANTINED,4,4
	.comm	VREG,4,4
	.comm	FSYNC,4,4
	.comm	FDSYNC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
