	.file	"extr_block2mtd.c__block2mtd_erase.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_block2mtd_erase, @function
_block2mtd_erase:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR [rdi]
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	rax, QWORD PTR [rax]
	shr	rdx, cl
	shr	rsi, cl
	mov	r13, QWORD PTR [rax]
	test	edx, edx
	je	.L2
	mov	ebp, esi
	lea	r12d, [rdx+rsi]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, ebp
	mov	rdi, r13
	call	page_read@PLT
	mov	r14, rax
	test	rax, rax
	je	.L14
	mov	rdi, rax
	call	IS_ERR@PLT
	mov	rdi, r14
	test	rax, rax
	jne	.L15
	call	page_address@PLT
	movsx	rdx, DWORD PTR PAGE_SIZE[rip]
	mov	rdi, r14
	lea	rbx, [rax+rdx*8]
	call	page_address@PLT
	cmp	rbx, rax
	ja	.L8
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	add	rax, 8
	cmp	rbx, rax
	jbe	.L6
.L8:
	cmp	QWORD PTR [rax], -1
	je	.L7
	mov	rdi, r14
	call	lock_page@PLT
	mov	r15d, DWORD PTR PAGE_SIZE[rip]
	mov	rdi, r14
	call	page_address@PLT
	mov	esi, 255
	mov	rdi, rax
	mov	edx, r15d
	call	memset@PLT
	mov	rdi, r14
	call	set_page_dirty@PLT
	mov	rdi, r14
	call	unlock_page@PLT
.L6:
	mov	rdi, r14
	add	ebp, 1
	call	page_cache_release@PLT
	cmp	r12d, ebp
	jne	.L9
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L14:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
.L15:
	.cfi_restore_state
	add	rsp, 8
	.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
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	_block2mtd_erase, .-_block2mtd_erase
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,8,8
	.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_block2mtd.c__block2mtd_erase.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_block2mtd_erase, %function
_block2mtd_erase:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L22
	ldr	r0, [r0]
	ldr	r3, [r3]
	ldr	r0, [r0]
	lsrs	r2, r2, r3
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, [r0]
	lsr	r4, r1, r3
	beq	.L2
	ldr	r6, .L22+4
	add	r5, r4, r2
.L9:
	mov	r1, r4
	mov	r0, r7
	bl	page_read
	subs	r8, r0, #0
	beq	.L18
	bl	IS_ERR
	cmp	r0, #0
	mov	r0, r8
	bne	.L19
	bl	page_address
	mov	r9, r0
	ldr	r3, [r6]
	mov	r0, r8
	add	r9, r9, r3, lsl #2
	bl	page_address
	b	.L16
.L21:
	ldr	r3, [r0], #4
	cmn	r3, #1
	bne	.L20
.L16:
	cmp	r9, r0
	bhi	.L21
.L6:
	mov	r0, r8
	add	r4, r4, #1
	bl	page_cache_release
	cmp	r5, r4
	bne	.L9
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	mov	r0, r8
	bl	lock_page
	mov	r0, r8
	bl	page_address
	mov	r1, #255
	ldr	r2, [r6]
	bl	memset
	mov	r0, r8
	bl	set_page_dirty
	mov	r0, r8
	bl	unlock_page
	b	.L6
.L18:
	ldr	r3, .L22+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	PTR_ERR
.L23:
	.align	2
.L22:
	.word	PAGE_SHIFT
	.word	PAGE_SIZE
	.word	ENOMEM
	.size	_block2mtd_erase, .-_block2mtd_erase
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
