	.file	"extr_kpi_vfs.c_vnode_setattr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"SETATTR - returning ENOTSUP to request to set extended security"
	.text
	.p2align 4
	.globl	vnode_setattr
	.type	vnode_setattr, @function
vnode_setattr:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR VNODE_ATTR_ALL[rip]
	not	eax
	test	DWORD PTR [rsi], eax
	je	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rdi, QWORD PTR 8[rdi]
	mov	rbp, rsi
	call	vfs_isrdonly@PLT
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR EROFS[rip]
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, r12
	call	vnode_isswap@PLT
	test	rax, rax
	jne	.L32
.L5:
	mov	esi, DWORD PTR va_data_size[rip]
	mov	rdi, rbp
	call	VATTR_IS_ACTIVE@PLT
	test	rax, rax
	je	.L7
	mov	eax, DWORD PTR 4[r12]
	cmp	eax, 128
	je	.L7
	cmp	eax, 129
	je	.L33
	mov	esi, DWORD PTR va_data_size[rip]
	mov	rdi, rbp
	call	VATTR_CLEAR_ACTIVE@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	je	.L15
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 8[r12]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR MNT_IGNORE_OWNERSHIP[rip], eax
	jne	.L34
.L10:
	mov	rdi, r12
	call	vnode_mount@PLT
	mov	edi, eax
	call	vfs_extendedsecurity@PLT
	test	eax, eax
	jne	.L11
	mov	esi, DWORD PTR va_acl[rip]
	mov	rdi, rbp
	call	VATTR_IS_ACTIVE@PLT
	test	rax, rax
	jne	.L13
	mov	esi, DWORD PTR va_uuuid[rip]
	mov	rdi, rbp
	call	VATTR_IS_ACTIVE@PLT
	test	rax, rax
	jne	.L13
	mov	esi, DWORD PTR va_guuid[rip]
	mov	rdi, rbp
	call	VATTR_IS_ACTIVE@PLT
	test	rax, rax
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR va_flags[rip]
	mov	rdi, rbp
	call	VATTR_IS_ACTIVE@PLT
	test	rax, rax
	je	.L14
	mov	eax, DWORD PTR SF_SUPPORTED[rip]
	or	eax, DWORD PTR UF_SETTABLE[rip]
	and	DWORD PTR 4[rbp], eax
.L14:
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r12
	call	VNOP_SETATTR@PLT
	test	eax, eax
	jne	.L1
	mov	rdi, rbp
	call	VATTR_ALL_SUPPORTED@PLT
	test	eax, eax
	je	.L35
.L15:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	xor	eax, eax
	call	vfs_context_kernel@PLT
	cmp	rax, r13
	je	.L5
	mov	eax, DWORD PTR EPERM[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rdi, .LC0[rip]
	call	KAUTH_DEBUG@PLT
	mov	eax, DWORD PTR ENOTSUP[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	mov	eax, DWORD PTR EISDIR[rip]
	jmp	.L1
.L35:
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r12
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	vnode_setattr_fallback@PLT
	.p2align 4,,10
	.p2align 3
.L34:
	.cfi_restore_state
	mov	esi, DWORD PTR va_uid[rip]
	mov	rdi, rbp
	call	VATTR_CLEAR_ACTIVE@PLT
	mov	esi, DWORD PTR va_gid[rip]
	mov	rdi, rbp
	call	VATTR_CLEAR_ACTIVE@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	vnode_setattr, .-vnode_setattr
	.comm	va_uuuid,4,4
	.comm	va_uid,4,4
	.comm	va_guuid,4,4
	.comm	va_gid,4,4
	.comm	va_flags,4,4
	.comm	va_data_size,4,4
	.comm	va_backup_time,4,4
	.comm	va_acl,4,4
	.comm	va_access_time,4,4
	.comm	VNODE_ATTR_va_data_size,4,4
	.comm	VNODE_ATTR_RDONLY,4,4
	.comm	VNODE_ATTR_ALL,4,4
	.comm	VISNAMEDSTREAM,4,4
	.comm	UF_SETTABLE,4,4
	.comm	SF_SUPPORTED,4,4
	.comm	PERMISSION_BITS,4,4
	.comm	MNT_IGNORE_OWNERSHIP,4,4
	.comm	FSE_STAT_CHANGED,4,4
	.comm	FSE_CHOWN,4,4
	.comm	FSE_ARG_VNODE,4,4
	.comm	FSE_ARG_DONE,4,4
	.comm	EROFS,4,4
	.comm	EPERM,4,4
	.comm	ENOTSUP,4,4
	.comm	EISDIR,4,4
	.comm	EINVAL,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_kpi_vfs.c_vnode_setattr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SETATTR - returning ENOTSUP to request to set exten"
	.ascii	"ded security\000"
	.text
	.align	2
	.global	vnode_setattr
	.syntax unified
	.arm
	.fpu softvfp
	.type	vnode_setattr, %function
vnode_setattr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r1, .L33
	ldr	r3, [r4]
	ldr	r1, [r1]
	bics	r3, r3, r1
	beq	.L2
	ldr	r3, .L33+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r5, r0
	ldr	r0, [r0, #8]
	mov	r6, r2
	bl	vfs_isrdonly
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L33+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, r5
	bl	vnode_isswap
	cmp	r0, #0
	bne	.L30
.L5:
	ldr	r7, .L33+12
	mov	r0, r4
	ldr	r1, [r7]
	bl	VATTR_IS_ACTIVE
	cmp	r0, #0
	beq	.L7
	ldr	r3, [r5, #4]
	cmp	r3, #128
	beq	.L7
	cmp	r3, #129
	beq	.L31
	mov	r0, r4
	ldr	r1, [r7]
	bl	VATTR_CLEAR_ACTIVE
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L7
.L15:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L30:
	bl	vfs_context_kernel
	cmp	r0, r6
	beq	.L5
	ldr	r3, .L33+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r2, [r5, #8]
	ldr	r3, .L33+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L32
.L10:
	mov	r0, r5
	bl	vnode_mount
	bl	vfs_extendedsecurity
	cmp	r0, #0
	bne	.L11
	ldr	r3, .L33+24
	mov	r0, r4
	ldr	r1, [r3]
	bl	VATTR_IS_ACTIVE
	cmp	r0, #0
	bne	.L13
	ldr	r3, .L33+28
	mov	r0, r4
	ldr	r1, [r3]
	bl	VATTR_IS_ACTIVE
	cmp	r0, #0
	bne	.L13
	ldr	r3, .L33+32
	mov	r0, r4
	ldr	r1, [r3]
	bl	VATTR_IS_ACTIVE
	cmp	r0, #0
	bne	.L13
.L11:
	ldr	r3, .L33+36
	mov	r0, r4
	ldr	r1, [r3]
	bl	VATTR_IS_ACTIVE
	cmp	r0, #0
	beq	.L14
	ldr	r3, .L33+40
	ldr	r2, .L33+44
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r4, #4]
	orr	r2, r2, r1
	and	r3, r3, r2
	str	r3, [r4, #4]
.L14:
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	bl	VNOP_SETATTR
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	bl	VATTR_ALL_SUPPORTED
	cmp	r0, #0
	bne	.L15
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	vnode_setattr_fallback
.L13:
	ldr	r0, .L33+48
	bl	KAUTH_DEBUG
	ldr	r3, .L33+52
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L31:
	ldr	r3, .L33+56
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L32:
	ldr	r3, .L33+60
	mov	r0, r4
	ldr	r1, [r3]
	bl	VATTR_CLEAR_ACTIVE
	ldr	r3, .L33+64
	mov	r0, r4
	ldr	r1, [r3]
	bl	VATTR_CLEAR_ACTIVE
	b	.L10
.L34:
	.align	2
.L33:
	.word	VNODE_ATTR_ALL
	.word	EINVAL
	.word	EROFS
	.word	va_data_size
	.word	EPERM
	.word	MNT_IGNORE_OWNERSHIP
	.word	va_acl
	.word	va_uuuid
	.word	va_guuid
	.word	va_flags
	.word	UF_SETTABLE
	.word	SF_SUPPORTED
	.word	.LC0
	.word	ENOTSUP
	.word	EISDIR
	.word	va_uid
	.word	va_gid
	.size	vnode_setattr, .-vnode_setattr
	.comm	va_uuuid,4,4
	.comm	va_uid,4,4
	.comm	va_guuid,4,4
	.comm	va_gid,4,4
	.comm	va_flags,4,4
	.comm	va_data_size,4,4
	.comm	va_backup_time,4,4
	.comm	va_acl,4,4
	.comm	va_access_time,4,4
	.comm	VNODE_ATTR_va_data_size,4,4
	.comm	VNODE_ATTR_RDONLY,4,4
	.comm	VNODE_ATTR_ALL,4,4
	.comm	VISNAMEDSTREAM,4,4
	.comm	UF_SETTABLE,4,4
	.comm	SF_SUPPORTED,4,4
	.comm	PERMISSION_BITS,4,4
	.comm	MNT_IGNORE_OWNERSHIP,4,4
	.comm	FSE_STAT_CHANGED,4,4
	.comm	FSE_CHOWN,4,4
	.comm	FSE_ARG_VNODE,4,4
	.comm	FSE_ARG_DONE,4,4
	.comm	EROFS,4,4
	.comm	EPERM,4,4
	.comm	ENOTSUP,4,4
	.comm	EISDIR,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
