	.file	"extr_dir.c_fat_zeroed_cluster.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fat_zeroed_cluster, @function
fat_zeroed_cluster:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r14, QWORD PTR [rdi]
	mov	DWORD PTR 24[rsp], r8d
	mov	rdi, r14
	call	MSDOS_SB@PLT
	mov	rdx, QWORD PTR [rax]
	lea	rax, [rdx+rbp]
	mov	QWORD PTR 8[rsp], rax
	movsx	rax, r13d
	add	rbp, rax
	cmp	rdx, rax
	jle	.L2
	lea	rcx, 8[r12]
	mov	QWORD PTR 16[rsp], rcx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L19:
	mov	r13d, ebx
	cmp	QWORD PTR 8[rsp], rbp
	jle	.L2
.L28:
	movsx	rax, r13d
.L11:
	mov	rdi, r14
	mov	rsi, rbp
	lea	rbx, [r12+rax*8]
	call	sb_getblk@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdi, rax
	test	rax, rax
	je	.L27
	call	lock_buffer@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR [r14]
	xor	esi, esi
	add	rbp, 1
	mov	edi, DWORD PTR [rax]
	call	memset@PLT
	mov	rdi, QWORD PTR [rbx]
	call	set_buffer_uptodate@PLT
	mov	rdi, QWORD PTR [rbx]
	call	unlock_buffer@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, r15
	lea	ebx, 1[r13]
	call	mark_buffer_dirty_inode@PLT
	cmp	ebx, DWORD PTR 24[rsp]
	jne	.L19
	mov	rdi, r15
	call	IS_DIRSYNC@PLT
	test	rax, rax
	jne	.L6
.L9:
	test	ebx, ebx
	jle	.L8
	mov	rax, QWORD PTR 16[rsp]
	mov	r13d, r13d
	mov	rbx, r12
	lea	r13, [rax+r13*8]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR [rbx]
	add	rbx, 8
	call	brelse@PLT
	cmp	rbx, r13
	jne	.L10
.L8:
	xor	r13d, r13d
	cmp	QWORD PTR 8[rsp], rbp
	jg	.L28
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, r15
	call	IS_DIRSYNC@PLT
	test	rax, rax
	jne	.L12
.L15:
	test	r13d, r13d
	jle	.L14
	lea	eax, -1[r13]
	lea	rbx, 8[r12+rax*8]
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, QWORD PTR [r12]
	add	r12, 8
	call	brelse@PLT
	cmp	r12, rbx
	jne	.L16
.L14:
	mov	DWORD PTR 28[rsp], 0
.L1:
	mov	eax, DWORD PTR 28[rsp]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR 24[rsp]
	mov	rdi, r12
	call	fat_sync_bhs@PLT
	mov	DWORD PTR 28[rsp], eax
	test	eax, eax
	je	.L9
	mov	r13d, DWORD PTR 24[rsp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	mov	DWORD PTR 28[rsp], eax
.L4:
	test	r13d, r13d
	jle	.L1
	lea	eax, -1[r13]
	lea	rbp, 8[r12+rax*8]
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, QWORD PTR [r12]
	add	r12, 8
	call	bforget@PLT
	cmp	rbp, r12
	jne	.L18
	jmp	.L1
.L12:
	mov	esi, r13d
	mov	rdi, r12
	call	fat_sync_bhs@PLT
	mov	DWORD PTR 28[rsp], eax
	test	eax, eax
	je	.L15
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	fat_zeroed_cluster, .-fat_zeroed_cluster
	.comm	ENOMEM,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_dir.c_fat_zeroed_cluster.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fat_zeroed_cluster, %function
fat_zeroed_cluster:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r8, [r0]
	sub	sp, sp, #12
	mov	r9, r0
	mov	r0, r8
	mov	r10, r1
	mov	r4, r2
	mov	r5, r3
	ldr	fp, [sp, #48]
	bl	MSDOS_SB
	ldr	r3, [r0]
	add	r6, r10, r4
	cmp	r3, r4
	add	r10, r3, r10
	bgt	.L11
	b	.L2
.L5:
	cmp	r10, r6
	ble	.L2
.L11:
	mov	r1, r6
	mov	r0, r8
	bl	sb_getblk
	cmp	r0, #0
	str	r0, [r5, r4, lsl #2]
	add	r7, r5, r4, lsl #2
	beq	.L25
	bl	lock_buffer
	ldr	r3, [r5, r4, lsl #2]
	mov	r1, #0
	ldr	r2, [r8]
	ldr	r0, [r3]
	bl	memset
	ldr	r0, [r5, r4, lsl #2]
	bl	set_buffer_uptodate
	ldr	r0, [r5, r4, lsl #2]
	bl	unlock_buffer
	ldr	r0, [r5, r4, lsl #2]
	mov	r1, r9
	add	r4, r4, #1
	bl	mark_buffer_dirty_inode
	cmp	r4, fp
	add	r6, r6, #1
	bne	.L5
	mov	r0, r9
	bl	IS_DIRSYNC
	cmp	r0, #0
	bne	.L6
.L9:
	cmp	r4, #0
	subgt	r4, r5, #4
	ble	.L8
.L10:
	ldr	r0, [r4, #4]!
	bl	brelse
	cmp	r4, r7
	bne	.L10
.L8:
	cmp	r10, r6
	mov	r4, #0
	bgt	.L11
.L2:
	mov	r0, r9
	bl	IS_DIRSYNC
	cmp	r0, #0
	bne	.L12
.L15:
	cmp	r4, #0
	subgt	r5, r5, #4
	addgt	r4, r5, r4, lsl #2
	ble	.L14
.L16:
	ldr	r0, [r5, #4]!
	bl	brelse
	cmp	r5, r4
	bne	.L16
.L14:
	mov	r3, #0
	str	r3, [sp, #4]
.L1:
	ldr	r0, [sp, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r1, r4
	mov	r0, r5
	bl	fat_sync_bhs
	subs	r3, r0, #0
	str	r3, [sp, #4]
	beq	.L9
.L4:
	cmp	r4, #0
	ble	.L1
.L26:
	sub	r5, r5, #4
	add	r4, r5, r4, lsl #2
.L18:
	ldr	r0, [r5, #4]!
	bl	bforget
	cmp	r4, r5
	bne	.L18
	ldr	r0, [sp, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	ldr	r3, .L27
	cmp	r4, #0
	ldr	r0, [r3]
	rsb	r3, r0, #0
	str	r3, [sp, #4]
	bgt	.L26
	b	.L1
.L12:
	mov	r1, r4
	mov	r0, r5
	bl	fat_sync_bhs
	subs	r3, r0, #0
	str	r3, [sp, #4]
	beq	.L15
	b	.L4
.L28:
	.align	2
.L27:
	.word	ENOMEM
	.size	fat_zeroed_cluster, .-fat_zeroed_cluster
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
