	.file	"extr_zfs_vnops.c_zfs_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	zfs_open, @function
zfs_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rdi, QWORD PTR [rdi]
	call	VTOZ@PLT
	mov	r12, QWORD PTR 24[rax]
	mov	rbx, rax
	mov	rdi, r12
	call	ZFS_ENTER@PLT
	mov	rdi, rbx
	call	ZFS_VERIFY_ZP@PLT
	test	DWORD PTR FWRITE[rip], ebp
	je	.L2
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR ZFS_APPENDONLY[rip], eax
	je	.L2
	test	DWORD PTR FAPPEND[rip], ebp
	je	.L20
.L2:
	mov	rdi, rbx
	call	zfs_has_ctldir@PLT
	test	eax, eax
	je	.L21
.L3:
	mov	eax, DWORD PTR FSYNC[rip]
	or	eax, DWORD PTR FDSYNC[rip]
	test	eax, ebp
	jne	.L22
.L4:
	mov	rdi, r12
	call	ZFS_EXIT@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L21:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rbx]
	cmp	QWORD PTR [rax], 0
	je	.L3
	mov	rdi, rbx
	call	ZTOV@PLT
	mov	rcx, QWORD PTR VREG[rip]
	cmp	QWORD PTR [rax], rcx
	jne	.L3
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR ZFS_AV_QUARANTINED[rip], eax
	jne	.L3
	cmp	QWORD PTR 8[rbx], 0
	jle	.L3
	mov	rdi, QWORD PTR 0[r13]
	xor	edx, edx
	mov	rsi, r14
	call	fs_vscan@PLT
	test	rax, rax
	je	.L3
	mov	rdi, r12
	call	ZFS_EXIT@PLT
	mov	edi, DWORD PTR EACCES[rip]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rdi, 16[rbx]
	call	atomic_inc_32@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, r12
	call	ZFS_EXIT@PLT
	mov	edi, DWORD PTR EPERM[rip]
.L18:
	pop	rbx
	.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
	jmp	SET_ERROR@PLT
	.cfi_endproc
.LFE0:
	.size	zfs_open, .-zfs_open
	.comm	ZFS_AV_QUARANTINED,4,4
	.comm	ZFS_APPENDONLY,4,4
	.comm	VREG,8,8
	.comm	FWRITE,4,4
	.comm	FSYNC,4,4
	.comm	FDSYNC,4,4
	.comm	FAPPEND,4,4
	.comm	EPERM,4,4
	.comm	EACCES,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_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfs_open, %function
zfs_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r0, [r0]
	mov	r5, r1
	mov	r8, r2
	bl	VTOZ
	mov	r4, r0
	ldr	r7, [r0, #12]
	mov	r0, r7
	bl	ZFS_ENTER
	mov	r0, r4
	bl	ZFS_VERIFY_ZP
	ldr	r3, .L25
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L2
	ldr	r3, .L25+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L2
	ldr	r3, .L25+8
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L22
.L2:
	mov	r0, r4
	bl	zfs_has_ctldir
	cmp	r0, #0
	beq	.L23
.L3:
	ldr	r3, .L25+12
	ldr	r2, .L25+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	tst	r3, r5
	bne	.L24
.L4:
	mov	r0, r7
	bl	ZFS_EXIT
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	ldr	r3, [r4, #12]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	mov	r0, r4
	bl	ZTOV
	ldr	r3, .L25+20
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L3
	ldr	r3, .L25+24
	ldr	r2, [r4]
	ldr	r3, [r3]
	ands	r2, r2, r3
	bne	.L3
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ble	.L3
	mov	r1, r8
	ldr	r0, [r6]
	bl	fs_vscan
	cmp	r0, #0
	beq	.L3
	mov	r0, r7
	bl	ZFS_EXIT
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L25+28
	ldr	r0, [r3]
	b	SET_ERROR
.L24:
	add	r0, r4, #8
	bl	atomic_inc_32
	b	.L4
.L22:
	mov	r0, r7
	bl	ZFS_EXIT
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L25+32
	ldr	r0, [r3]
	b	SET_ERROR
.L26:
	.align	2
.L25:
	.word	FWRITE
	.word	ZFS_APPENDONLY
	.word	FAPPEND
	.word	FSYNC
	.word	FDSYNC
	.word	VREG
	.word	ZFS_AV_QUARANTINED
	.word	EACCES
	.word	EPERM
	.size	zfs_open, .-zfs_open
	.comm	ZFS_AV_QUARANTINED,4,4
	.comm	ZFS_APPENDONLY,4,4
	.comm	VREG,4,4
	.comm	FWRITE,4,4
	.comm	FSYNC,4,4
	.comm	FDSYNC,4,4
	.comm	FAPPEND,4,4
	.comm	EPERM,4,4
	.comm	EACCES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
