	.file	"extr_ext2_vnops.c_ext2_chown.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ext2_chown, @function
ext2_chown:
.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	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	VTOI@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR VNOVAL[rip]
	cmp	rax, rbp
	jne	.L2
	mov	rbp, QWORD PTR [rbx]
.L2:
	cmp	rax, r12
	jne	.L3
	mov	r12, QWORD PTR 8[rbx]
.L3:
	mov	esi, DWORD PTR VADMIN[rip]
	mov	rcx, r13
	mov	rdx, r14
	mov	rdi, r15
	call	VOP_ACCESS@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR [rbx], rbp
	jne	.L8
	cmp	QWORD PTR 8[rbx], r12
	jne	.L25
	mov	eax, DWORD PTR IN_CHANGE[rip]
	or	DWORD PTR 20[rbx], eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L25:
	.cfi_restore_state
	mov	rsi, r14
	mov	rdi, r12
	call	groupmember@PLT
	test	eax, eax
	jne	.L6
.L8:
	mov	esi, DWORD PTR PRIV_VFS_CHOWN[rip]
	mov	rdi, r14
	call	priv_check_cred@PLT
	test	eax, eax
	jne	.L26
.L6:
	mov	eax, DWORD PTR IN_CHANGE[rip]
	mov	rcx, QWORD PTR 8[rbx]
	mov	QWORD PTR 8[rbx], r12
	or	DWORD PTR 20[rbx], eax
	mov	rdx, QWORD PTR [rbx]
	mov	eax, DWORD PTR ISUID[rip]
	or	eax, DWORD PTR ISGID[rip]
	mov	QWORD PTR [rbx], rbp
	test	DWORD PTR 16[rbx], eax
	je	.L1
	cmp	rbp, rdx
	jne	.L13
	cmp	r12, rcx
	je	.L1
.L13:
	mov	esi, DWORD PTR PRIV_VFS_RETAINSUGID[rip]
	mov	rdi, r14
	call	priv_check_cred@PLT
	test	eax, eax
	je	.L1
	mov	eax, DWORD PTR ISUID[rip]
	or	eax, DWORD PTR ISGID[rip]
	not	eax
	and	DWORD PTR 16[rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	r13d, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ext2_chown, .-ext2_chown
	.comm	VNOVAL,8,8
	.comm	VADMIN,4,4
	.comm	PRIV_VFS_RETAINSUGID,4,4
	.comm	PRIV_VFS_CHOWN,4,4
	.comm	ISUID,4,4
	.comm	ISGID,4,4
	.comm	IN_CHANGE,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_ext2_vnops.c_ext2_chown.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ext2_chown, %function
ext2_chown:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	mov	r6, r2
	mov	r8, r3
	mov	r7, r0
	bl	VTOI
	ldr	r3, .L25
	mov	r4, r0
	ldr	r3, [r3]
	mov	r2, r8
	cmp	r3, r5
	ldreq	r5, [r0]
	cmp	r3, r6
	ldr	r3, .L25+4
	ldreq	r6, [r0, #4]
	ldr	r1, [r3]
	mov	r0, r7
	ldr	r3, [sp, #32]
	bl	VOP_ACCESS
	subs	r7, r0, #0
	bne	.L1
	ldr	r3, [r4]
	cmp	r3, r5
	bne	.L8
	ldr	r3, [r4, #4]
	cmp	r3, r6
	bne	.L23
	ldr	r2, .L25+8
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4, #12]
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L23:
	mov	r1, r8
	mov	r0, r6
	bl	groupmember
	cmp	r0, #0
	bne	.L6
.L8:
	ldr	r3, .L25+12
	mov	r0, r8
	ldr	r1, [r3]
	bl	priv_check_cred
	cmp	r0, #0
	bne	.L24
.L6:
	ldr	r10, .L25+16
	ldr	r9, .L25+20
	ldr	r2, [r10]
	ldr	r3, [r9]
	ldr	r1, .L25+8
	orr	r2, r2, r3
	ldr	r1, [r1]
	ldr	r3, [r4, #12]
	ldr	r0, [r4, #8]
	orr	r3, r3, r1
	tst	r2, r0
	str	r3, [r4, #12]
	ldm	r4, {r2, r3}
	stm	r4, {r5, r6}
	beq	.L1
	cmp	r6, r3
	cmpeq	r5, r2
	beq	.L1
	ldr	r3, .L25+24
	mov	r0, r8
	ldr	r1, [r3]
	bl	priv_check_cred
	cmp	r0, #0
	beq	.L1
	ldr	r2, [r10]
	ldr	r1, [r9]
	ldr	r3, [r4, #8]
	orr	r2, r2, r1
	bic	r3, r3, r2
	str	r3, [r4, #8]
	b	.L1
.L24:
	mov	r7, r0
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L26:
	.align	2
.L25:
	.word	VNOVAL
	.word	VADMIN
	.word	IN_CHANGE
	.word	PRIV_VFS_CHOWN
	.word	ISUID
	.word	ISGID
	.word	PRIV_VFS_RETAINSUGID
	.size	ext2_chown, .-ext2_chown
	.comm	VNOVAL,4,4
	.comm	VADMIN,4,4
	.comm	PRIV_VFS_RETAINSUGID,4,4
	.comm	PRIV_VFS_CHOWN,4,4
	.comm	ISUID,4,4
	.comm	ISGID,4,4
	.comm	IN_CHANGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
