	.file	"extr_inode.c_nilfs_setattr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nilfs_setattr
	.type	nilfs_setattr, @function
nilfs_setattr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	d_inode@PLT
	mov	rdi, r12
	mov	rsi, rbx
	mov	rbp, QWORD PTR [rax]
	mov	r13, rax
	call	setattr_prepare@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L16
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L16:
	.cfi_restore_state
	xor	edx, edx
	mov	rdi, rbp
	lea	rsi, 4[rsp]
	call	nilfs_transaction_begin@PLT
	mov	edi, eax
	mov	r12d, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L1
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR ATTR_SIZE[rip], eax
	jne	.L18
.L4:
	mov	rsi, rbx
	mov	rdi, r13
	call	setattr_copy@PLT
	mov	rdi, r13
	call	mark_inode_dirty@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR ATTR_MODE[rip], eax
	je	.L6
	mov	rdi, r13
	call	nilfs_acl_chmod@PLT
	mov	edi, eax
	mov	r12d, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L19
.L6:
	mov	rdi, rbp
	call	nilfs_transaction_commit@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r12, QWORD PTR 8[rbx]
	mov	rdi, r13
	call	i_size_read@PLT
	cmp	r12, rax
	je	.L4
	mov	rdi, r13
	call	inode_dio_wait@PLT
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, r13
	call	truncate_setsize@PLT
	mov	rdi, r13
	call	nilfs_truncate@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, rbp
	call	nilfs_transaction_abort@PLT
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nilfs_setattr, .-nilfs_setattr
	.comm	ATTR_SIZE,4,4
	.comm	ATTR_MODE,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_inode.c_nilfs_setattr.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	nilfs_setattr
	.syntax unified
	.arm
	.fpu softvfp
	.type	nilfs_setattr, %function
nilfs_setattr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L20
	sub	sp, sp, #12
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	d_inode
	mov	r6, r0
	mov	r1, r5
	mov	r0, r4
	ldr	r7, [r6]
	bl	setattr_prepare
	subs	r4, r0, #0
	beq	.L16
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	mov	r2, r4
	mov	r1, sp
	mov	r0, r7
	bl	nilfs_transaction_begin
	mov	r4, r0
	bl	unlikely
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L20+4
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L18
.L4:
	mov	r1, r5
	mov	r0, r6
	bl	setattr_copy
	mov	r0, r6
	bl	mark_inode_dirty
	ldr	r3, .L20+8
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L6
	mov	r0, r6
	bl	nilfs_acl_chmod
	mov	r4, r0
	bl	unlikely
	cmp	r0, #0
	bne	.L19
.L6:
	mov	r0, r7
	bl	nilfs_transaction_commit
	mov	r4, r0
	b	.L1
.L18:
	mov	r0, r6
	ldr	r4, [r5, #4]
	bl	i_size_read
	cmp	r4, r0
	beq	.L4
	mov	r0, r6
	bl	inode_dio_wait
	mov	r0, r6
	ldr	r1, [r5, #4]
	bl	truncate_setsize
	mov	r0, r6
	bl	nilfs_truncate
	b	.L4
.L19:
	mov	r0, r7
	bl	nilfs_transaction_abort
	b	.L1
.L17:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	ATTR_SIZE
	.word	ATTR_MODE
	.size	nilfs_setattr, .-nilfs_setattr
	.comm	ATTR_SIZE,4,4
	.comm	ATTR_MODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
