	.file	"extr_nfs_nfsdport.c_nfsvno_accchk.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nfsvno_accchk
	.type	nfsvno_accchk, @function
nfsvno_accchk:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r9d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 104[rsp]
	mov	edx, DWORD PTR 96[rsp]
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	edx, edx
	je	.L50
.L2:
	test	DWORD PTR VWRITE[rip], ebx
	je	.L4
	mov	rdi, r14
	call	NFSVNO_EXRDONLY@PLT
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR 8[r15]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR MNT_RDONLY[rip], eax
	je	.L7
.L5:
	mov	eax, DWORD PTR [r15]
	add	eax, -128
	cmp	eax, 2
	ja	.L7
	mov	rdi, r15
	mov	r14d, DWORD PTR EROFS[rip]
	call	VOP_IS_TEXT@PLT
	test	rax, rax
	je	.L6
	test	r14d, r14d
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r14d, DWORD PTR ETXTBSY[rip]
.L6:
	test	r14d, r14d
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rcx, r13
	mov	rdx, rbp
	mov	esi, ebx
	mov	rdi, r15
	call	VOP_ACCESSX@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L10
.L13:
	xor	r14d, r14d
.L11:
	cmp	DWORD PTR NFSACCCHK_NOOVERRIDE[rip], r12d
	je	.L14
	cmp	DWORD PTR EPERM[rip], r14d
	je	.L15
	cmp	DWORD PTR EACCES[rip], r14d
	je	.L15
.L14:
	mov	eax, DWORD PTR 96[rsp]
	test	eax, eax
	je	.L51
.L3:
	mov	edi, r14d
	call	NFSEXITCODE@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L52
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR VDELETE[rip]
	or	eax, DWORD PTR VDELETE_CHILD[rip]
	test	eax, ebx
	je	.L11
	mov	esi, DWORD PTR VEXPLICIT_DENY[rip]
	mov	rcx, r13
	mov	rdx, rbp
	mov	rdi, r15
	or	esi, ebx
	call	VOP_ACCESSX@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L11
	cmp	DWORD PTR [r15], 130
	je	.L53
	mov	rbx, QWORD PTR 8[rsp]
	test	rbx, rbx
	je	.L13
	mov	eax, DWORD PTR NFSACCESS_DELETE[rip]
	not	eax
	and	DWORD PTR [rbx], eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r15
	call	VOP_IS_TEXT@PLT
	test	rax, rax
	je	.L4
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L50:
	mov	esi, DWORD PTR LK_SHARED[rip]
	call	NFSVOPLOCK@PLT
	test	rax, rax
	je	.L2
	mov	r14d, DWORD PTR EPERM[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L51:
	xor	esi, esi
	mov	rdi, r15
	call	NFSVOPUNLOCK@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	cmp	QWORD PTR 0[rbp], 0
	jne	.L16
	test	DWORD PTR NFSACCCHK_ALLOWROOT[rip], r12d
	je	.L16
.L17:
	xor	r14d, r14d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L16:
	test	DWORD PTR NFSACCCHK_ALLOWOWNER[rip], r12d
	je	.L14
	lea	rsi, 16[rsp]
	mov	rdx, rbp
	mov	rdi, r15
	call	VOP_GETATTR@PLT
	test	eax, eax
	jne	.L14
	mov	rax, QWORD PTR 16[rsp]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L14
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L53:
	mov	esi, DWORD PTR VDELETE[rip]
	mov	rcx, r13
	mov	rdx, rbp
	mov	rdi, r15
	or	esi, DWORD PTR VDELETE_CHILD[rip]
	not	esi
	and	esi, ebx
	or	esi, DWORD PTR VWRITE[rip]
	call	VOP_ACCESSX@PLT
	mov	r14d, eax
	jmp	.L11
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nfsvno_accchk, .-nfsvno_accchk
	.comm	VWRITE,4,4
	.comm	VEXPLICIT_DENY,4,4
	.comm	VDELETE_CHILD,4,4
	.comm	VDELETE,4,4
	.comm	NFSACCESS_DELETE,4,4
	.comm	NFSACCCHK_NOOVERRIDE,4,4
	.comm	NFSACCCHK_ALLOWROOT,4,4
	.comm	NFSACCCHK_ALLOWOWNER,4,4
	.comm	MNT_RDONLY,4,4
	.comm	LK_SHARED,4,4
	.comm	ETXTBSY,4,4
	.comm	EROFS,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_nfs_nfsdport.c_nfsvno_accchk.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	nfsvno_accchk
	.syntax unified
	.arm
	.fpu softvfp
	.type	nfsvno_accchk, %function
nfsvno_accchk:
	@ args = 16, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	ldr	r7, [sp, #56]
	mov	fp, r3
	ldr	r3, .L54
	cmp	r7, #0
	mov	r5, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r0
	ldr	r8, [sp, #48]
	ldr	r10, [sp, #60]
	beq	.L50
.L2:
	ldr	r9, .L54+4
	ldr	r3, [r9]
	tst	r5, r3
	beq	.L4
	mov	r0, fp
	bl	NFSVNO_EXRDONLY
	cmp	r0, #0
	bne	.L5
	ldr	r2, [r4, #4]
	ldr	r3, .L54+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L7
.L5:
	ldr	r3, [r4]
	sub	r3, r3, #128
	cmp	r3, #2
	bhi	.L7
	ldr	r3, .L54+12
	mov	r0, r4
	ldr	fp, [r3]
	bl	VOP_IS_TEXT
	cmp	r0, #0
	beq	.L6
	cmp	fp, #0
	bne	.L14
.L8:
	ldr	r3, .L54+16
	ldr	fp, [r3]
.L6:
	cmp	fp, #0
	bne	.L14
.L4:
	mov	r3, r8
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	bl	VOP_ACCESSX
	subs	fp, r0, #0
	bne	.L10
.L13:
	mov	fp, #0
.L11:
	ldr	r2, .L54+20
	ldr	r3, [sp, #52]
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L14
	ldr	r2, .L54+24
	ldr	r2, [r2]
	cmp	r2, fp
	beq	.L15
	ldr	r2, .L54+28
	ldr	r2, [r2]
	cmp	r2, fp
	beq	.L15
.L14:
	cmp	r7, #0
	beq	.L51
.L3:
	mov	r0, fp
	bl	NFSEXITCODE
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L52
	mov	r0, fp
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r3, .L54+32
	ldr	r2, [r3]
	ldr	r3, .L54+36
	ldr	r1, [r3]
	orr	r2, r2, r1
	tst	r2, r5
	beq	.L11
	ldr	r2, .L54+40
	mov	r3, r8
	ldr	r1, [r2]
	mov	r0, r4
	mov	r2, r6
	orr	r1, r5, r1
	bl	VOP_ACCESSX
	subs	fp, r0, #0
	bne	.L11
	ldr	r2, [r4]
	cmp	r2, #130
	beq	.L53
	cmp	r10, #0
	beq	.L13
	ldr	r1, .L54+44
	ldr	r2, [r10]
	ldr	r1, [r1]
	bic	r2, r2, r1
	str	r2, [r10]
	b	.L11
.L7:
	mov	r0, r4
	bl	VOP_IS_TEXT
	cmp	r0, #0
	beq	.L4
	b	.L8
.L50:
	ldr	r3, .L54+48
	ldr	r1, [r3]
	bl	NFSVOPLOCK
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L54+24
	ldr	fp, [r3]
	b	.L3
.L51:
	mov	r1, r7
	mov	r0, r4
	bl	NFSVOPUNLOCK
	b	.L3
.L15:
	ldr	r2, [r6]
	cmp	r2, #0
	bne	.L16
	ldr	r2, .L54+52
	ldr	r3, [sp, #52]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L16
.L17:
	mov	fp, #0
	b	.L14
.L16:
	ldr	r2, .L54+56
	ldr	r3, [sp, #52]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L14
	mov	r2, r6
	mov	r1, sp
	mov	r0, r4
	bl	VOP_GETATTR
	cmp	r0, #0
	bne	.L14
	ldr	r1, [r6]
	ldr	r2, [sp]
	cmp	r1, r2
	bne	.L14
	b	.L17
.L53:
	ldr	r3, .L54+32
	ldr	r2, .L54+36
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r9]
	orr	r3, r3, r2
	bic	r5, r5, r3
	mov	r2, r6
	mov	r3, r8
	mov	r0, r4
	orr	r1, r5, r1
	bl	VOP_ACCESSX
	mov	fp, r0
	b	.L11
.L52:
	bl	__stack_chk_fail
.L55:
	.align	2
.L54:
	.word	.LC0
	.word	VWRITE
	.word	MNT_RDONLY
	.word	EROFS
	.word	ETXTBSY
	.word	NFSACCCHK_NOOVERRIDE
	.word	EPERM
	.word	EACCES
	.word	VDELETE
	.word	VDELETE_CHILD
	.word	VEXPLICIT_DENY
	.word	NFSACCESS_DELETE
	.word	LK_SHARED
	.word	NFSACCCHK_ALLOWROOT
	.word	NFSACCCHK_ALLOWOWNER
	.size	nfsvno_accchk, .-nfsvno_accchk
	.comm	VWRITE,4,4
	.comm	VEXPLICIT_DENY,4,4
	.comm	VDELETE_CHILD,4,4
	.comm	VDELETE,4,4
	.comm	NFSACCESS_DELETE,4,4
	.comm	NFSACCCHK_NOOVERRIDE,4,4
	.comm	NFSACCCHK_ALLOWROOT,4,4
	.comm	NFSACCCHK_ALLOWOWNER,4,4
	.comm	MNT_RDONLY,4,4
	.comm	LK_SHARED,4,4
	.comm	ETXTBSY,4,4
	.comm	EROFS,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
