	.file	"extr_task.c_task_clear_return_wait.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	task_clear_return_wait
	.type	task_clear_return_wait, @function
task_clear_return_wait:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	task_lock@PLT
	mov	eax, DWORD PTR TF_LRETURNWAIT[rip]
	not	eax
	and	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 0[rbp], eax
	test	DWORD PTR TF_LRETURNWAITER[rip], eax
	jne	.L8
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	task_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	call	task_get_return_wait_event@PLT
	mov	edi, eax
	call	thread_wakeup@PLT
	mov	eax, DWORD PTR TF_LRETURNWAITER[rip]
	mov	rdi, rbp
	not	eax
	and	DWORD PTR 0[rbp], eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	task_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	task_clear_return_wait, .-task_clear_return_wait
	.comm	TF_LRETURNWAITER,4,4
	.comm	TF_LRETURNWAIT,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_task.c_task_clear_return_wait.c"
	.text
	.align	2
	.global	task_clear_return_wait
	.syntax unified
	.arm
	.fpu softvfp
	.type	task_clear_return_wait, %function
task_clear_return_wait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	task_lock
	ldr	r2, .L9
	ldr	r3, [r4]
	ldr	r2, [r2]
	ldr	r5, .L9+4
	bic	r3, r3, r2
	str	r3, [r4]
	ldr	r2, [r5]
	tst	r3, r2
	bne	.L8
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	task_unlock
.L8:
	mov	r0, r4
	bl	task_get_return_wait_event
	bl	thread_wakeup
	ldr	r2, [r5]
	ldr	r3, [r4]
	mov	r0, r4
	bic	r3, r3, r2
	str	r3, [r4]
	pop	{r4, r5, r6, lr}
	b	task_unlock
.L10:
	.align	2
.L9:
	.word	TF_LRETURNWAIT
	.word	TF_LRETURNWAITER
	.size	task_clear_return_wait, .-task_clear_return_wait
	.comm	TF_LRETURNWAITER,4,4
	.comm	TF_LRETURNWAIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
