	.file	"extr_mpt_cam.c_mpt_recovery_thread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"idle"
	.text
	.p2align 4
	.type	mpt_recovery_thread, @function
mpt_recovery_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	lea	rbx, 16[rbp]
	call	MPT_LOCK@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbx
	call	TAILQ_EMPTY@PLT
	test	rax, rax
	je	.L2
	cmp	QWORD PTR 0[rbp], 0
	je	.L10
.L3:
	mov	QWORD PTR 8[rbp], 0
	lea	rdi, 8[rbp]
	call	wakeup@PLT
	mov	rdi, rbp
	call	MPT_UNLOCK@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	edi, edi
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	kproc_exit@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edx, DWORD PTR PUSER[rip]
	xor	r8d, r8d
	mov	rcx, r12
	mov	rsi, rbp
	mov	rdi, rbp
	call	mpt_sleep@PLT
.L2:
	cmp	QWORD PTR 0[rbp], 0
	jne	.L3
	mov	rdi, rbp
	call	mpt_recover_commands@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	mpt_recovery_thread, .-mpt_recovery_thread
	.comm	PUSER,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_mpt_cam.c_mpt_recovery_thread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"idle\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpt_recovery_thread, %function
mpt_recovery_thread:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	sub	sp, sp, #12
	bl	MPT_LOCK
	ldr	r7, .L11
	ldr	r6, .L11+4
	add	r5, r4, #8
.L4:
	mov	r0, r5
	bl	TAILQ_EMPTY
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L10
.L3:
	mov	r5, #0
	mov	r0, r4
	str	r5, [r0, #4]!
	bl	wakeup
	mov	r0, r4
	bl	MPT_UNLOCK
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	kproc_exit
.L10:
	str	r3, [sp]
	mov	r1, r4
	mov	r3, r6
	mov	r0, r4
	ldr	r2, [r7]
	bl	mpt_sleep
.L2:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L3
	mov	r0, r4
	bl	mpt_recover_commands
	b	.L4
.L12:
	.align	2
.L11:
	.word	PUSER
	.word	.LC0
	.size	mpt_recovery_thread, .-mpt_recovery_thread
	.comm	PUSER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
