	.file	"extr_inode.c_ufs_truncate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ENTER: ino %lu, i_size: %llu, old_i_size: %llu\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"EXIT: err %d\n"
	.text
	.p2align 4
	.type	ufs_truncate, @function
ufs_truncate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	i_size_read@PLT
	mov	esi, DWORD PTR 16[rbp]
	lea	rdi, .LC0[rip]
	mov	rdx, r13
	mov	rcx, rax
	xor	eax, eax
	call	UFSD@PLT
	mov	edi, DWORD PTR 12[rbp]
	call	S_ISREG@PLT
	test	rax, rax
	jne	.L2
	mov	edi, DWORD PTR 12[rbp]
	call	S_ISDIR@PLT
	test	rax, rax
	je	.L9
.L2:
	mov	rdi, rbp
	call	IS_APPEND@PLT
	test	rax, rax
	je	.L4
.L5:
	mov	r12d, DWORD PTR EPERM[rip]
	neg	r12d
.L1:
	mov	eax, r12d
	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, rbp
	call	IS_IMMUTABLE@PLT
	test	rax, rax
	jne	.L5
	mov	rsi, r13
	mov	rdi, rbp
	call	ufs_alloc_lastblock@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L10
.L6:
	mov	esi, r12d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	UFSD@PLT
	mov	eax, r12d
	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
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rbp]
	call	S_ISLNK@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rdi, rbp
	call	IS_APPEND@PLT
	test	rax, rax
	jne	.L5
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edx, DWORD PTR ufs_getfrag_block[rip]
	mov	edi, DWORD PTR 8[rbp]
	mov	rsi, r13
	call	block_truncate_page@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	truncate_setsize@PLT
	mov	rdi, rbp
	call	ufs_truncate_blocks@PLT
	mov	rdi, rbp
	call	current_time@PLT
	mov	rdi, rbp
	mov	DWORD PTR 0[rbp], eax
	mov	DWORD PTR 4[rbp], eax
	call	mark_inode_dirty@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	ufs_truncate, .-ufs_truncate
	.comm	ufs_getfrag_block,4,4
	.comm	EPERM,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_inode.c_ufs_truncate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ENTER: ino %lu, i_size: %llu, old_i_size: %llu\012\000"
	.align	2
.LC1:
	.ascii	"EXIT: err %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ufs_truncate, %function
ufs_truncate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r8, r9, lr}
	sub	sp, sp, #8
	mov	r6, r1
	mov	r4, r0
	ldr	r5, [r0, #16]
	bl	i_size_read
	mov	r8, r0
	asr	r9, r0, #31
	mov	r1, r5
	mov	r2, r6
	asr	r3, r6, #31
	stm	sp, {r8-r9}
	ldr	r0, .L12
	bl	UFSD
	ldr	r0, [r4, #12]
	bl	S_ISREG
	cmp	r0, #0
	bne	.L2
	ldr	r0, [r4, #12]
	bl	S_ISDIR
	cmp	r0, #0
	beq	.L9
.L2:
	mov	r0, r4
	bl	IS_APPEND
	cmp	r0, #0
	beq	.L4
.L5:
	ldr	r3, .L12+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r8, r9, pc}
.L4:
	mov	r0, r4
	bl	IS_IMMUTABLE
	cmp	r0, #0
	bne	.L5
	mov	r1, r6
	mov	r0, r4
	bl	ufs_alloc_lastblock
	subs	r5, r0, #0
	beq	.L10
.L6:
	mov	r1, r5
	ldr	r0, .L12+8
	bl	UFSD
.L11:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r8, r9, pc}
.L9:
	ldr	r0, [r4, #12]
	bl	S_ISLNK
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L12+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L10:
	ldr	r3, .L12+16
	mov	r1, r6
	ldr	r2, [r3]
	ldr	r0, [r4, #8]
	bl	block_truncate_page
	mov	r1, r6
	mov	r0, r4
	bl	truncate_setsize
	mov	r0, r4
	bl	ufs_truncate_blocks
	mov	r0, r4
	bl	current_time
	mov	r3, r0
	mov	r0, r4
	str	r3, [r4]
	str	r3, [r4, #4]
	bl	mark_inode_dirty
	mov	r1, r5
	ldr	r0, .L12+8
	bl	UFSD
	b	.L11
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	EPERM
	.word	.LC1
	.word	EINVAL
	.word	ufs_getfrag_block
	.size	ufs_truncate, .-ufs_truncate
	.comm	ufs_getfrag_block,4,4
	.comm	EPERM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
