	.file	"extr_mtdblock.c_write_cached_data.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"mtdblock: writing cached data for \"%s\" at 0x%lx, size 0x%x\n"
	.text
	.p2align 4
	.type	write_cached_data, @function
write_cached_data:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rsi, QWORD PTR STATE_DIRTY[rip]
	xor	eax, eax
	cmp	QWORD PTR [rdi], rsi
	je	.L9
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR 24[rdi]
	mov	ecx, DWORD PTR 16[rdi]
	mov	r8d, DWORD PTR 12[rdi]
	mov	edi, DWORD PTR MTD_DEBUG_LEVEL2[rip]
	mov	edx, DWORD PTR 0[rbp]
	call	DEBUG@PLT
	mov	ecx, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR 12[rbx]
	mov	rdi, rbp
	mov	esi, DWORD PTR 16[rbx]
	call	erase_write@PLT
	test	eax, eax
	jne	.L1
	mov	rdx, QWORD PTR STATE_EMPTY[rip]
	mov	QWORD PTR [rbx], rdx
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	write_cached_data, .-write_cached_data
	.comm	STATE_EMPTY,8,8
	.comm	STATE_DIRTY,8,8
	.comm	MTD_DEBUG_LEVEL2,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_mtdblock.c_write_cached_data.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mtdblock: writing cached data for \"%s\" at 0x%lx, "
	.ascii	"size 0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_cached_data, %function
write_cached_data:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L10
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L9
	mov	r0, #0
	bx	lr
.L9:
	push	{r4, r5, lr}
	mov	r4, r0
	ldr	r5, [r0, #16]
	ldr	r3, [r0, #8]
	ldr	r1, .L10+4
	sub	sp, sp, #12
	ldr	r2, [r5]
	ldr	r0, [r1]
	str	r3, [sp]
	ldr	r3, [r4, #12]
	ldr	r1, .L10+8
	bl	DEBUG
	mov	r0, r5
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	bl	erase_write
	cmp	r0, #0
	ldreq	r3, .L10+12
	ldreq	r3, [r3]
	streq	r3, [r4]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L11:
	.align	2
.L10:
	.word	STATE_DIRTY
	.word	MTD_DEBUG_LEVEL2
	.word	.LC0
	.word	STATE_EMPTY
	.size	write_cached_data, .-write_cached_data
	.comm	STATE_EMPTY,4,4
	.comm	STATE_DIRTY,4,4
	.comm	MTD_DEBUG_LEVEL2,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
