	.file	"extr_zfs_vnops.c_zfs_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zfs_open
	.type	zfs_open, @function
zfs_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	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	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	ITOZ@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	ITOZSB@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	ZFS_ENTER@PLT
	mov	rdi, rbx
	call	ZFS_VERIFY_ZP@PLT
	test	DWORD PTR FMODE_WRITE[rip], r14d
	je	.L2
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR ZFS_APPENDONLY[rip], eax
	je	.L2
	test	DWORD PTR O_APPEND[rip], r13d
	je	.L23
.L2:
	mov	rdi, rbx
	call	zfs_has_ctldir@PLT
	test	eax, eax
	je	.L24
.L3:
	test	DWORD PTR O_SYNC[rip], r13d
	jne	.L25
.L4:
	mov	rdi, rbp
	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
.L24:
	.cfi_restore_state
	cmp	QWORD PTR 0[rbp], 0
	je	.L3
	mov	edi, DWORD PTR [r12]
	call	S_ISREG@PLT
	test	rax, rax
	je	.L3
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR ZFS_AV_QUARANTINED[rip], eax
	jne	.L3
	cmp	QWORD PTR 8[rbx], 0
	jle	.L3
	xor	edx, edx
	mov	rsi, r15
	mov	rdi, r12
	call	zfs_vscan@PLT
	test	rax, rax
	je	.L3
	mov	rdi, rbp
	call	ZFS_EXIT@PLT
	mov	edi, DWORD PTR EACCES[rip]
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rdi, 16[rbx]
	call	atomic_inc_32@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, rbp
	call	ZFS_EXIT@PLT
	mov	edi, DWORD PTR EPERM[rip]
.L21:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	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
	jmp	SET_ERROR@PLT
	.cfi_endproc
.LFE0:
	.size	zfs_open, .-zfs_open
	.comm	ZFS_AV_QUARANTINED,4,4
	.comm	ZFS_APPENDONLY,4,4
	.comm	O_SYNC,4,4
	.comm	O_APPEND,4,4
	.comm	FMODE_WRITE,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
	.global	zfs_open
	.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, r9, r10, lr}
	mov	r9, r1
	mov	r6, r2
	mov	r8, r3
	mov	r7, r0
	bl	ITOZ
	mov	r4, r0
	mov	r0, r7
	bl	ITOZSB
	mov	r5, r0
	bl	ZFS_ENTER
	mov	r0, r4
	bl	ZFS_VERIFY_ZP
	ldr	ip, .L28
	ldr	ip, [ip]
	tst	r9, ip
	beq	.L2
	ldr	r3, .L28+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L2
	ldr	r3, .L28+8
	ldr	r3, [r3]
	tst	r6, r3
	beq	.L25
.L2:
	mov	r0, r4
	bl	zfs_has_ctldir
	cmp	r0, #0
	beq	.L26
.L3:
	ldr	r3, .L28+12
	ldr	r3, [r3]
	tst	r6, r3
	bne	.L27
.L4:
	mov	r0, r5
	bl	ZFS_EXIT
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L26:
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L3
	ldr	r0, [r7]
	bl	S_ISREG
	cmp	r0, #0
	beq	.L3
	ldr	r3, .L28+16
	ldr	r2, [r4]
	ldr	r3, [r3]
	ands	r2, r2, r3
	bne	.L3
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ble	.L3
	mov	r1, r8
	mov	r0, r7
	bl	zfs_vscan
	cmp	r0, #0
	beq	.L3
	mov	r0, r5
	bl	ZFS_EXIT
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L28+20
	ldr	r0, [r3]
	b	SET_ERROR
.L27:
	add	r0, r4, #8
	bl	atomic_inc_32
	b	.L4
.L25:
	mov	r0, r5
	bl	ZFS_EXIT
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L28+24
	ldr	r0, [r3]
	b	SET_ERROR
.L29:
	.align	2
.L28:
	.word	FMODE_WRITE
	.word	ZFS_APPENDONLY
	.word	O_APPEND
	.word	O_SYNC
	.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	O_SYNC,4,4
	.comm	O_APPEND,4,4
	.comm	FMODE_WRITE,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
