	.file	"extr_mtdconcat.c_concat_dev_erase.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	concat_dev_erase, @function
concat_dev_erase:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR current[rip]
	mov	edi, DWORD PTR wait[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r13, 4[rsp]
	call	DECLARE_WAITQUEUE@PLT
	mov	rdi, r13
	call	init_waitqueue_head@PLT
	mov	QWORD PTR 24[rbx], rbp
	mov	rsi, rbx
	mov	rdi, rbp
	mov	eax, DWORD PTR concat_erase_callback[rip]
	mov	QWORD PTR [rbx], r13
	mov	DWORD PTR 16[rbx], eax
	call	[QWORD PTR 0[rbp]]
	mov	r12d, eax
	test	eax, eax
	je	.L7
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR TASK_UNINTERRUPTIBLE[rip]
	call	set_current_state@PLT
	lea	rsi, wait[rip]
	mov	rdi, r13
	call	add_wait_queue@PLT
	mov	rax, QWORD PTR 8[rbx]
	cmp	rax, QWORD PTR MTD_ERASE_DONE[rip]
	je	.L3
	cmp	rax, QWORD PTR MTD_ERASE_FAILED[rip]
	jne	.L9
.L3:
	lea	rsi, wait[rip]
	mov	rdi, r13
	call	remove_wait_queue@PLT
	mov	edi, DWORD PTR TASK_RUNNING[rip]
	call	set_current_state@PLT
	mov	rax, QWORD PTR MTD_ERASE_FAILED[rip]
	cmp	QWORD PTR 8[rbx], rax
	jne	.L1
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	xor	eax, eax
	call	schedule@PLT
	jmp	.L3
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	concat_dev_erase, .-concat_dev_erase
	.comm	wait,4,4
	.comm	current,4,4
	.comm	concat_erase_callback,4,4
	.comm	TASK_UNINTERRUPTIBLE,4,4
	.comm	TASK_RUNNING,4,4
	.comm	MTD_ERASE_FAILED,8,8
	.comm	MTD_ERASE_DONE,8,8
	.comm	EIO,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_mtdconcat.c_concat_dev_erase.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	concat_dev_erase, %function
concat_dev_erase:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r4, r1
	ldr	r3, .L12
	ldr	r6, .L12+4
	ldr	r1, [r3]
	ldr	r3, .L12+8
	sub	sp, sp, #8
	ldr	r0, [r6]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	DECLARE_WAITQUEUE
	mov	r0, sp
	bl	init_waitqueue_head
	ldr	r3, .L12+12
	mov	r0, r5
	ldr	r2, [r3]
	str	r5, [r4, #12]
	ldr	r3, [r5]
	mov	r1, r4
	str	r2, [r4, #8]
	str	sp, [r4]
	blx	r3
	subs	r5, r0, #0
	beq	.L9
.L1:
	ldr	r3, .L12+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L12+16
	ldr	r0, [r3]
	bl	set_current_state
	mov	r1, r6
	mov	r0, sp
	bl	add_wait_queue
	ldr	r2, .L12+20
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	ldr	r6, .L12+24
	cmp	r3, r2
	beq	.L3
	ldr	r2, [r6]
	cmp	r3, r2
	bne	.L11
.L3:
	ldr	r1, .L12+4
	mov	r0, sp
	bl	remove_wait_queue
	ldr	r3, .L12+28
	ldr	r0, [r3]
	bl	set_current_state
	ldr	r3, [r6]
	ldr	r2, [r4, #4]
	cmp	r2, r3
	ldreq	r3, .L12+32
	ldreq	r0, [r3]
	rsbeq	r5, r0, #0
	b	.L1
.L11:
	bl	schedule
	b	.L3
.L10:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	current
	.word	wait
	.word	.LC0
	.word	concat_erase_callback
	.word	TASK_UNINTERRUPTIBLE
	.word	MTD_ERASE_DONE
	.word	MTD_ERASE_FAILED
	.word	TASK_RUNNING
	.word	EIO
	.size	concat_dev_erase, .-concat_dev_erase
	.comm	wait,4,4
	.comm	current,4,4
	.comm	concat_erase_callback,4,4
	.comm	TASK_UNINTERRUPTIBLE,4,4
	.comm	TASK_RUNNING,4,4
	.comm	MTD_ERASE_FAILED,4,4
	.comm	MTD_ERASE_DONE,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
