	.file	"extr_tmpfs_subr.c_tmpfs_truncate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tmpfs_truncate
	.type	tmpfs_truncate, @function
tmpfs_truncate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	VP_TO_TMPFS_NODE@PLT
	test	r12, r12
	js	.L9
	mov	rbx, rax
	cmp	QWORD PTR [rax], r12
	je	.L6
	mov	edi, DWORD PTR 0[rbp]
	call	VFS_TO_TMPFS@PLT
	cmp	QWORD PTR [rax], r12
	jge	.L4
	mov	r12d, DWORD PTR EFBIG[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	r12d, r12d
.L3:
	mov	rdi, rbp
	call	tmpfs_update@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR FALSE[rip]
	mov	rsi, r12
	mov	rdi, rbp
	call	tmpfs_reg_resize@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR TMPFS_NODE_CHANGED[rip]
	or	eax, DWORD PTR TMPFS_NODE_MODIFIED[rip]
	or	DWORD PTR 8[rbx], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	tmpfs_truncate, .-tmpfs_truncate
	.comm	TMPFS_NODE_MODIFIED,4,4
	.comm	TMPFS_NODE_CHANGED,4,4
	.comm	FALSE,4,4
	.comm	EINVAL,4,4
	.comm	EFBIG,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_truncate.c"
	.text
	.align	2
	.global	tmpfs_truncate
	.syntax unified
	.arm
	.fpu softvfp
	.type	tmpfs_truncate, %function
tmpfs_truncate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	bl	VP_TO_TMPFS_NODE
	cmp	r4, #0
	blt	.L9
	ldr	r3, [r0]
	mov	r6, r0
	cmp	r3, r4
	beq	.L6
	ldr	r0, [r5]
	bl	VFS_TO_TMPFS
	ldr	r3, [r0]
	cmp	r3, r4
	bge	.L4
	ldr	r3, .L10
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L6:
	mov	r4, #0
.L3:
	mov	r0, r5
	bl	tmpfs_update
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L10+4
	ldr	r4, [r3]
	b	.L3
.L4:
	ldr	r3, .L10+8
	mov	r1, r4
	mov	r0, r5
	ldr	r2, [r3]
	bl	tmpfs_reg_resize
	subs	r4, r0, #0
	bne	.L3
	ldr	r3, .L10+12
	ldr	r2, .L10+16
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r6, #4]
	orr	r2, r2, r1
	orr	r3, r3, r2
	str	r3, [r6, #4]
	b	.L3
.L11:
	.align	2
.L10:
	.word	EFBIG
	.word	EINVAL
	.word	FALSE
	.word	TMPFS_NODE_MODIFIED
	.word	TMPFS_NODE_CHANGED
	.size	tmpfs_truncate, .-tmpfs_truncate
	.comm	TMPFS_NODE_MODIFIED,4,4
	.comm	TMPFS_NODE_CHANGED,4,4
	.comm	FALSE,4,4
	.comm	EINVAL,4,4
	.comm	EFBIG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
