	.file	"extr_truncate.c_ufs_trunc_tindirect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ENTER: ino %lu\n"
.LC1:
	.string	"EXIT: ino %lu\n"
	.text
	.p2align 4
	.type	ufs_trunc_tindirect, @function
ufs_trunc_tindirect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR 8[rdi]
	mov	rdi, r14
	call	UFS_SB@PLT
	mov	rdi, rbx
	mov	rbp, QWORD PTR [rax]
	call	UFS_I@PLT
	mov	esi, DWORD PTR [rbx]
	lea	rdi, .LC0[rip]
	mov	r12, rax
	call	UFSD@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	rcx, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR UFS_NDADDR[rip]
	mov	rax, QWORD PTR DIRECT_BLOCK[rip]
	lea	rdx, [rsi+rdi]
	add	rdx, rcx
	cmp	rdx, rax
	jge	.L2
	sub	rax, rdi
	mov	r15, rax
	sub	r15, rsi
	sub	r15, rcx
	mov	rcx, QWORD PTR 16[rbp]
	sar	r15, cl
.L2:
	mov	edx, DWORD PTR UFS_TIND_BLOCK[rip]
	mov	rsi, r12
	mov	rdi, rbp
	xor	r12d, r12d
	call	ufs_get_direct_data_ptr@PLT
	mov	rdi, r14
	mov	rsi, rax
	mov	QWORD PTR [rsp], rax
	call	ufs_data_ptr_to_cpu@PLT
	test	rax, rax
	jne	.L30
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L30:
	.cfi_restore_state
	mov	edx, DWORD PTR 28[rbp]
	mov	rsi, rax
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], rax
	call	ubh_bread@PLT
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, r14
	mov	r13, rax
	call	ufs_data_ptr_to_cpu@PLT
	mov	rcx, QWORD PTR 8[rsp]
	cmp	rax, rcx
	jne	.L31
	test	r13, r13
	jne	.L28
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, r15
	mov	rsi, r13
	mov	rdi, rbp
	add	r15, 1
	call	ubh_get_data_ptr@PLT
	mov	rcx, QWORD PTR 16[rbp]
	mov	rsi, QWORD PTR UFS_NDADDR[rip]
	mov	rdi, rbx
	mov	rdx, rax
	mov	rax, r15
	add	rsi, QWORD PTR 0[rbp]
	sal	rax, cl
	add	rsi, rax
	call	ufs_trunc_dindirect@PLT
	mov	rdi, r13
	or	r12d, eax
	call	ubh_mark_buffer_dirty@PLT
.L28:
	mov	rax, QWORD PTR 0[rbp]
	cmp	r15, rax
	jl	.L6
	test	rax, rax
	jle	.L11
	xor	r15d, r15d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L32:
	add	r15, 1
	cmp	QWORD PTR 0[rbp], r15
	jle	.L11
.L10:
	mov	rsi, r13
	mov	rdi, rbp
	mov	rdx, r15
	call	ubh_get_data_ptr@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	ufs_is_data_ptr_zero@PLT
	test	eax, eax
	jne	.L32
	cmp	QWORD PTR 0[rbp], r15
	jle	.L11
	mov	rdi, rbx
	call	IS_SYNC@PLT
	test	rax, rax
	je	.L12
	mov	rdi, r13
	call	ubh_buffer_dirty@PLT
	test	rax, rax
	jne	.L33
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r13
	call	ubh_brelse@PLT
	mov	esi, DWORD PTR [rbx]
	lea	rdi, .LC1[rip]
	call	UFSD@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, r13
	mov	r12d, 1
	call	ubh_brelse@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r15, QWORD PTR [rsp]
	mov	rdi, r14
	mov	rsi, r15
	call	ufs_data_ptr_to_cpu@PLT
	mov	rsi, r15
	mov	rdi, rbp
	mov	r14, rax
	call	ufs_data_ptr_clear@PLT
	mov	edx, DWORD PTR 24[rbp]
	mov	rsi, r14
	mov	rdi, rbx
	call	ufs_free_blocks@PLT
	mov	rdi, rbx
	call	mark_inode_dirty@PLT
	mov	rdi, r13
	xor	r13d, r13d
	call	ubh_bforget@PLT
	mov	rdi, rbx
	call	IS_SYNC@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, rbp
	call	ufs_data_ptr_clear@PLT
	jmp	.L1
.L33:
	mov	rdi, r13
	call	ubh_sync_block@PLT
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	ufs_trunc_tindirect, .-ufs_trunc_tindirect
	.comm	UFS_TIND_BLOCK,4,4
	.comm	UFS_NDADDR,8,8
	.comm	DIRECT_BLOCK,8,8
	.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_truncate.c_ufs_trunc_tindirect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ENTER: ino %lu\012\000"
	.align	2
.LC1:
	.ascii	"EXIT: ino %lu\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ufs_trunc_tindirect, %function
ufs_trunc_tindirect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, [r0, #4]
	mov	r8, r0
	mov	r0, r10
	bl	UFS_SB
	mov	r3, r0
	mov	r0, r8
	ldr	r4, [r3]
	bl	UFS_I
	mov	r6, r0
	ldr	fp, .L32
	ldr	r1, [r8]
	ldr	r0, .L32+4
	bl	UFSD
	ldr	r5, [fp]
	ldr	r0, [r4]
	ldr	r3, .L32+8
	ldr	r1, [r4, #4]
	add	r2, r0, r5
	ldr	r3, [r3]
	add	r2, r2, r1
	cmp	r2, r3
	sublt	r5, r3, r5
	sublt	r5, r5, r0
	ldrlt	r3, [r4, #8]
	sublt	r5, r5, r1
	asrlt	r5, r5, r3
	ldr	r3, .L32+12
	mov	r1, r6
	ldr	r2, [r3]
	mov	r0, r4
	movge	r5, #0
	bl	ufs_get_direct_data_ptr
	mov	r9, r0
	mov	r0, r10
	mov	r1, r9
	bl	ufs_data_ptr_to_cpu
	subs	r6, r0, #0
	bne	.L28
.L1:
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L28:
	mov	r1, r6
	ldr	r2, [r4, #16]
	mov	r0, r10
	bl	ubh_bread
	mov	r1, r9
	mov	r7, r0
	mov	r0, r10
	bl	ufs_data_ptr_to_cpu
	cmp	r0, r6
	bne	.L29
	cmp	r7, #0
	beq	.L5
	ldr	r3, [r4]
	mov	r6, #0
	cmp	r5, r3
	bge	.L7
.L6:
	mov	r2, r5
	mov	r1, r7
	mov	r0, r4
	bl	ubh_get_data_ptr
	ldr	r3, [r4]
	mov	r2, r0
	ldr	r0, [fp]
	ldr	r1, [r4, #8]
	add	r3, r3, r0
	add	r5, r5, #1
	add	r1, r3, r5, lsl r1
	mov	r0, r8
	bl	ufs_trunc_dindirect
	mov	r3, r0
	mov	r0, r7
	orr	r6, r6, r3
	bl	ubh_mark_buffer_dirty
	ldr	r3, [r4]
	cmp	r5, r3
	blt	.L6
.L7:
	cmp	r3, #0
	ble	.L11
	mov	r5, #0
	b	.L10
.L30:
	add	r5, r5, #1
	cmp	r3, r5
	ble	.L11
.L10:
	mov	r2, r5
	mov	r1, r7
	mov	r0, r4
	bl	ubh_get_data_ptr
	mov	r1, r0
	mov	r0, r4
	bl	ufs_is_data_ptr_zero
	cmp	r0, #0
	ldr	r3, [r4]
	bne	.L30
	cmp	r3, r5
	ble	.L11
	mov	r0, r8
	bl	IS_SYNC
	cmp	r0, #0
	beq	.L12
	mov	r0, r7
	bl	ubh_buffer_dirty
	cmp	r0, #0
	bne	.L31
.L12:
	mov	r0, r7
	bl	ubh_brelse
	ldr	r1, [r8]
	ldr	r0, .L32+16
	bl	UFSD
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	mov	r6, #1
	mov	r0, r7
	bl	ubh_brelse
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	mov	r1, r9
	mov	r0, r10
	bl	ufs_data_ptr_to_cpu
	mov	r5, r0
	mov	r1, r9
	mov	r0, r4
	bl	ufs_data_ptr_clear
	mov	r1, r5
	ldr	r2, [r4, #12]
	mov	r0, r8
	bl	ufs_free_blocks
	mov	r0, r8
	bl	mark_inode_dirty
	mov	r0, r7
	bl	ubh_bforget
	mov	r0, r8
	bl	IS_SYNC
	mov	r7, #0
	b	.L12
.L5:
	mov	r1, r9
	mov	r0, r4
	bl	ufs_data_ptr_clear
	mov	r6, r7
	b	.L1
.L31:
	mov	r0, r7
	bl	ubh_sync_block
	b	.L12
.L33:
	.align	2
.L32:
	.word	UFS_NDADDR
	.word	.LC0
	.word	DIRECT_BLOCK
	.word	UFS_TIND_BLOCK
	.word	.LC1
	.size	ufs_trunc_tindirect, .-ufs_trunc_tindirect
	.comm	UFS_TIND_BLOCK,4,4
	.comm	UFS_NDADDR,4,4
	.comm	DIRECT_BLOCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
