	.file	"extr_ops_inode.c_setattr_chown.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	setattr_chown, @function
setattr_chown:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	GFS2_I@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	GFS2_SB@PLT
	mov	rcx, QWORD PTR 0[rbp]
	mov	r15, QWORD PTR [r12]
	mov	r14, rax
	mov	rax, QWORD PTR 8[rbp]
	mov	rbx, QWORD PTR 8[r12]
	mov	QWORD PTR 16[rsp], rcx
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR 16[r12]
	test	DWORD PTR ATTR_UID[rip], eax
	je	.L14
	cmp	rcx, r15
	jne	.L2
.L14:
	mov	rdx, QWORD PTR NO_QUOTA_CHANGE[rip]
	mov	QWORD PTR 16[rsp], rdx
	mov	r15, rdx
.L2:
	test	DWORD PTR ATTR_GID[rip], eax
	je	.L15
	cmp	QWORD PTR 8[rsp], rbx
	jne	.L4
.L15:
	mov	rax, QWORD PTR NO_QUOTA_CHANGE[rip]
	mov	QWORD PTR 8[rsp], rax
	mov	rbx, rax
.L4:
	mov	rdi, r14
	call	gfs2_rindex_update@PLT
	mov	r8d, eax
	test	eax, eax
	je	.L29
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L29:
	.cfi_restore_state
	mov	rdx, rbx
	mov	rsi, r15
	mov	rdi, r13
	call	gfs2_quota_lock@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR NO_QUOTA_CHANGE[rip]
	cmp	rax, QWORD PTR 16[rsp]
	jne	.L7
	cmp	rax, QWORD PTR 8[rsp]
	je	.L10
.L7:
	mov	rdx, rbx
	mov	rsi, r15
	mov	rdi, r13
	call	gfs2_quota_check@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L8
.L10:
	mov	eax, DWORD PTR RES_QUOTA[rip]
	xor	edx, edx
	mov	rdi, r14
	lea	esi, [rax+rax]
	movsx	rsi, esi
	add	rsi, QWORD PTR RES_DINODE[rip]
	call	gfs2_trans_begin@PLT
	mov	r8d, eax
	test	eax, eax
	je	.L31
.L8:
	mov	rdi, r13
	mov	DWORD PTR 8[rsp], r8d
	call	gfs2_quota_unlock@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	lea	rsi, 32[rsp]
	mov	rdi, r13
	call	gfs2_meta_inode_buffer@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L11
	mov	rsi, r12
	mov	rdi, rbp
	call	inode_setattr@PLT
	mov	rdi, r14
	test	eax, eax
	mov	DWORD PTR 28[rsp], eax
	sete	sil
	movzx	esi, sil
	call	gfs2_assert_warn@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	rsi, QWORD PTR 32[rsp]
	call	gfs2_trans_add_meta@PLT
	mov	rax, QWORD PTR 32[rsp]
	mov	rdi, r13
	mov	esi, DWORD PTR [rax]
	call	gfs2_dinode_out@PLT
	mov	rdi, QWORD PTR 32[rsp]
	call	brelse@PLT
	mov	rax, QWORD PTR NO_QUOTA_CHANGE[rip]
	cmp	rax, QWORD PTR 8[rsp]
	mov	r8d, DWORD PTR 28[rsp]
	jne	.L16
	cmp	rax, QWORD PTR 16[rsp]
	je	.L11
.L16:
	mov	rdi, r13
	mov	DWORD PTR 28[rsp], r8d
	call	gfs2_get_inode_blocks@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR 16[rsp]
	mov	rdi, r13
	mov	esi, eax
	mov	ebp, eax
	neg	esi
	call	gfs2_quota_change@PLT
	mov	rcx, rbx
	mov	rdx, r15
	mov	esi, ebp
	mov	rdi, r13
	call	gfs2_quota_change@PLT
	mov	r8d, DWORD PTR 28[rsp]
.L11:
	mov	rdi, r14
	mov	DWORD PTR 8[rsp], r8d
	call	gfs2_trans_end@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L8
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	setattr_chown, .-setattr_chown
	.comm	RES_QUOTA,4,4
	.comm	RES_DINODE,8,8
	.comm	NO_QUOTA_CHANGE,8,8
	.comm	ATTR_UID,4,4
	.comm	ATTR_GID,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_ops_inode.c_setattr_chown.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setattr_chown, %function
setattr_chown:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L26
	sub	sp, sp, #20
	mov	r6, r1
	mov	r5, r0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	GFS2_I
	mov	r7, r0
	mov	r0, r5
	bl	GFS2_SB
	ldr	r2, .L26+4
	ldr	r3, [r6, #8]
	ldr	r2, [r2]
	ldr	r9, [r5]
	ldr	r10, [r6]
	and	r2, r2, r3
	cmp	r2, #0
	cmpne	r9, r10
	ldreq	r2, .L26+8
	ldr	r8, [r5, #4]
	ldreq	r9, [r2]
	ldr	r2, .L26+12
	ldr	fp, [r6, #4]
	ldr	r2, [r2]
	moveq	r10, r9
	and	r3, r3, r2
	cmp	r3, #0
	cmpne	r8, fp
	ldreq	r3, .L26+8
	str	r0, [sp, #4]
	ldreq	r8, [r3]
	ldr	r0, [sp, #4]
	moveq	fp, r8
	bl	gfs2_rindex_update
	subs	r4, r0, #0
	beq	.L23
.L1:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	mov	r2, fp
	mov	r1, r10
	mov	r0, r7
	bl	gfs2_quota_lock
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L26+8
	ldr	r3, [r3]
	cmp	r3, r8
	cmpeq	r3, r9
	beq	.L8
	mov	r2, fp
	mov	r1, r10
	mov	r0, r7
	bl	gfs2_quota_check
	subs	r4, r0, #0
	bne	.L6
.L8:
	ldr	r2, .L26+16
	ldr	r3, .L26+20
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r0, [sp, #4]
	add	r1, r3, r1, lsl #1
	bl	gfs2_trans_begin
	subs	r4, r0, #0
	beq	.L25
.L6:
	mov	r0, r7
	bl	gfs2_quota_unlock
	b	.L1
.L25:
	mov	r0, r7
	add	r1, sp, #8
	bl	gfs2_meta_inode_buffer
	subs	r4, r0, #0
	bne	.L9
	mov	r1, r6
	mov	r0, r5
	bl	inode_setattr
	clz	r1, r0
	mov	r4, r0
	lsr	r1, r1, #5
	ldr	r0, [sp, #4]
	bl	gfs2_assert_warn
	ldr	r1, [sp, #8]
	ldr	r0, [r7, #4]
	bl	gfs2_trans_add_meta
	ldr	r3, [sp, #8]
	mov	r0, r7
	ldr	r1, [r3]
	bl	gfs2_dinode_out
	ldr	r0, [sp, #8]
	bl	brelse
	ldr	r3, .L26+8
	ldr	r3, [r3]
	cmp	r3, r9
	cmpeq	r3, r8
	beq	.L9
	mov	r0, r7
	bl	gfs2_get_inode_blocks
	mov	r5, r0
	rsb	r1, r0, #0
	mov	r3, r8
	mov	r2, r9
	mov	r0, r7
	bl	gfs2_quota_change
	mov	r3, fp
	mov	r2, r10
	mov	r1, r5
	mov	r0, r7
	bl	gfs2_quota_change
.L9:
	ldr	r0, [sp, #4]
	bl	gfs2_trans_end
	mov	r0, r7
	bl	gfs2_quota_unlock
	b	.L1
.L24:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC0
	.word	ATTR_UID
	.word	NO_QUOTA_CHANGE
	.word	ATTR_GID
	.word	RES_QUOTA
	.word	RES_DINODE
	.size	setattr_chown, .-setattr_chown
	.comm	RES_QUOTA,4,4
	.comm	RES_DINODE,4,4
	.comm	NO_QUOTA_CHANGE,4,4
	.comm	ATTR_UID,4,4
	.comm	ATTR_GID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
