	.file	"extr_tmpfs_subr.c_tmpfs_chmod.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"chmod"
.LC1:
	.string	"chmod2"
	.text
	.p2align 4
	.globl	tmpfs_chmod
	.type	tmpfs_chmod, @function
tmpfs_chmod:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	ASSERT_VOP_ELOCKED@PLT
	mov	rdi, rbp
	call	VP_TO_TMPFS_NODE@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR 8[rbp]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR MNT_RDONLY[rip], eax
	jne	.L22
	mov	eax, DWORD PTR IMMUTABLE[rip]
	or	eax, DWORD PTR APPEND[rip]
	test	DWORD PTR [rbx], eax
	je	.L4
	mov	r14d, DWORD PTR EPERM[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR VADMIN[rip]
	mov	rcx, r14
	mov	rdx, r13
	mov	rdi, rbp
	call	VOP_ACCESS@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR VDIR[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L5
	test	DWORD PTR S_ISTXT[rip], r12d
	jne	.L23
.L5:
	mov	edi, DWORD PTR 12[rbx]
	mov	rsi, r13
	call	groupmember@PLT
	test	eax, eax
	jne	.L7
	test	DWORD PTR S_ISGID[rip], r12d
	jne	.L24
.L7:
	mov	esi, DWORD PTR 4[rbx]
	mov	eax, DWORD PTR TMPFS_NODE_CHANGED[rip]
	mov	rdi, rbp
	or	DWORD PTR 8[rbx], eax
	xor	r12d, esi
	and	r12d, DWORD PTR ALLPERMS[rip]
	xor	r12d, esi
	lea	rsi, .LC1[rip]
	mov	DWORD PTR 4[rbx], r12d
	call	ASSERT_VOP_ELOCKED@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
.L22:
	.cfi_restore_state
	mov	r14d, DWORD PTR EROFS[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	mov	eax, r14d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	esi, DWORD PTR PRIV_VFS_STICKYFILE[rip]
	mov	rdi, r13
	call	priv_check_cred@PLT
	test	eax, eax
	je	.L5
	mov	r14d, DWORD PTR EFTYPE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, DWORD PTR PRIV_VFS_SETGID[rip]
	mov	rdi, r13
	call	priv_check_cred@PLT
	test	eax, eax
	je	.L7
	mov	r14d, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	tmpfs_chmod, .-tmpfs_chmod
	.comm	VDIR,8,8
	.comm	VADMIN,4,4
	.comm	TMPFS_NODE_CHANGED,4,4
	.comm	S_ISTXT,4,4
	.comm	S_ISGID,4,4
	.comm	PRIV_VFS_STICKYFILE,4,4
	.comm	PRIV_VFS_SETGID,4,4
	.comm	MNT_RDONLY,4,4
	.comm	IMMUTABLE,4,4
	.comm	EROFS,4,4
	.comm	EPERM,4,4
	.comm	EFTYPE,4,4
	.comm	APPEND,4,4
	.comm	ALLPERMS,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_tmpfs_subr.c_tmpfs_chmod.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"chmod\000"
	.align	2
.LC1:
	.ascii	"chmod2\000"
	.text
	.align	2
	.global	tmpfs_chmod
	.syntax unified
	.arm
	.fpu softvfp
	.type	tmpfs_chmod, %function
tmpfs_chmod:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r6, r1
	ldr	r1, .L25
	mov	r7, r2
	mov	r8, r3
	bl	ASSERT_VOP_ELOCKED
	mov	r0, r4
	bl	VP_TO_TMPFS_NODE
	ldr	r2, [r4, #4]
	ldr	r3, .L25+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L22
	ldr	r2, .L25+8
	ldr	r3, .L25+12
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r0]
	orr	r3, r3, r1
	tst	r3, r2
	mov	r5, r0
	beq	.L4
	ldr	r3, .L25+16
	ldr	r8, [r3]
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r2, .L25+20
	mov	r3, r8
	ldr	r1, [r2]
	mov	r0, r4
	mov	r2, r7
	bl	VOP_ACCESS
	subs	r8, r0, #0
	bne	.L1
	ldr	r3, .L25+24
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L5
	ldr	r3, .L25+28
	ldr	r3, [r3]
	tst	r6, r3
	bne	.L23
.L5:
	mov	r1, r7
	ldr	r0, [r5, #12]
	bl	groupmember
	cmp	r0, #0
	bne	.L7
	ldr	r3, .L25+32
	ldr	r3, [r3]
	tst	r6, r3
	bne	.L24
.L7:
	ldr	r3, .L25+36
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	ldr	r1, .L25+40
	eor	r6, r6, r2
	ldr	r1, [r1]
	and	r6, r6, r3
	ldr	r3, [r5, #8]
	eor	r6, r6, r2
	orr	r3, r3, r1
	mov	r0, r4
	ldr	r1, .L25+44
	str	r6, [r5, #4]
	str	r3, [r5, #8]
	bl	ASSERT_VOP_ELOCKED
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	ldr	r3, .L25+48
	ldr	r8, [r3]
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	ldr	r3, .L25+52
	mov	r0, r7
	ldr	r1, [r3]
	bl	priv_check_cred
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L25+56
	ldr	r8, [r3]
	b	.L1
.L24:
	ldr	r3, .L25+60
	mov	r0, r7
	ldr	r1, [r3]
	bl	priv_check_cred
	cmp	r0, #0
	beq	.L7
	mov	r8, r0
	b	.L1
.L26:
	.align	2
.L25:
	.word	.LC0
	.word	MNT_RDONLY
	.word	APPEND
	.word	IMMUTABLE
	.word	EPERM
	.word	VADMIN
	.word	VDIR
	.word	S_ISTXT
	.word	S_ISGID
	.word	ALLPERMS
	.word	TMPFS_NODE_CHANGED
	.word	.LC1
	.word	EROFS
	.word	PRIV_VFS_STICKYFILE
	.word	EFTYPE
	.word	PRIV_VFS_SETGID
	.size	tmpfs_chmod, .-tmpfs_chmod
	.comm	VDIR,4,4
	.comm	VADMIN,4,4
	.comm	TMPFS_NODE_CHANGED,4,4
	.comm	S_ISTXT,4,4
	.comm	S_ISGID,4,4
	.comm	PRIV_VFS_STICKYFILE,4,4
	.comm	PRIV_VFS_SETGID,4,4
	.comm	MNT_RDONLY,4,4
	.comm	IMMUTABLE,4,4
	.comm	EROFS,4,4
	.comm	EPERM,4,4
	.comm	EFTYPE,4,4
	.comm	APPEND,4,4
	.comm	ALLPERMS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
