	.file	"extr_balloc.c_ufs_clear_frags.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ufs_clear_frags, @function
ufs_clear_frags:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, edx
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	test	ecx, ecx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, [rdx+rsi]
	setne	r14b
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	rsi, r13
	jge	.L1
	mov	r12, rdi
	mov	rbx, rsi
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR [r12]
	mov	rsi, rbx
	call	sb_getblk@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	lock_buffer@PLT
	mov	rax, QWORD PTR [r12]
	mov	edi, DWORD PTR 0[rbp]
	xor	esi, esi
	mov	edx, DWORD PTR [rax]
	call	memset@PLT
	mov	rdi, rbp
	call	set_buffer_uptodate@PLT
	mov	rdi, rbp
	call	mark_buffer_dirty@PLT
	mov	rdi, rbp
	call	unlock_buffer@PLT
	mov	rdi, r12
	call	IS_SYNC@PLT
	test	rax, rax
	jne	.L7
	test	r14b, r14b
	je	.L3
.L7:
	mov	rdi, rbp
	call	sync_dirty_buffer@PLT
.L3:
	mov	rdi, rbp
	add	rbx, 1
	call	brelse@PLT
	cmp	r13, rbx
	jne	.L5
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ufs_clear_frags, .-ufs_clear_frags
	.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_balloc.c_ufs_clear_frags.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ufs_clear_frags, %function
ufs_clear_frags:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	add	r7, r1, r2
	cmp	r1, r7
	popge	{r4, r5, r6, r7, r8, pc}
	mov	r5, r1
	mov	r6, r0
	mov	r8, r3
.L4:
	mov	r1, r5
	ldr	r0, [r6]
	bl	sb_getblk
	mov	r4, r0
	bl	lock_buffer
	ldr	r1, [r6]
	ldr	r0, [r4]
	ldr	r2, [r1]
	mov	r1, #0
	bl	memset
	mov	r0, r4
	bl	set_buffer_uptodate
	mov	r0, r4
	bl	mark_buffer_dirty
	mov	r0, r4
	bl	unlock_buffer
	mov	r0, r6
	bl	IS_SYNC
	orrs	r3, r0, r8
	add	r5, r5, #1
	beq	.L3
	mov	r0, r4
	bl	sync_dirty_buffer
.L3:
	mov	r0, r4
	bl	brelse
	cmp	r7, r5
	bne	.L4
	pop	{r4, r5, r6, r7, r8, pc}
	.size	ufs_clear_frags, .-ufs_clear_frags
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
