	.file	"extr_subr_gtaskqueue.c_gtaskqueue_cancel_locked.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gtaskqueue_cancel_locked, @function
gtaskqueue_cancel_locked:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR [rsi]
	mov	eax, DWORD PTR TASK_ENQUEUED[rip]
	test	edx, eax
	jne	.L10
.L2:
	not	eax
	and	eax, edx
	mov	DWORD PTR [rsi], eax
	call	task_is_running@PLT
	test	rax, rax
	mov	eax, 0
	cmovne	eax, DWORD PTR EBUSY[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	ecx, DWORD PTR ta_link[rip]
	mov	rdx, rsi
	mov	QWORD PTR 8[rsp], rsi
	mov	QWORD PTR [rsp], rdi
	call	STAILQ_REMOVE@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR TASK_ENQUEUED[rip]
	mov	rdi, QWORD PTR [rsp]
	mov	edx, DWORD PTR [rsi]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	gtaskqueue_cancel_locked, .-gtaskqueue_cancel_locked
	.comm	ta_link,4,4
	.comm	TASK_ENQUEUED,4,4
	.comm	EBUSY,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_subr_gtaskqueue.c_gtaskqueue_cancel_locked.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gtaskqueue_cancel_locked, %function
gtaskqueue_cancel_locked:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L13
	ldr	r3, [r1]
	ldr	r2, [r6]
	mov	r4, r1
	tst	r3, r2
	mov	r5, r0
	bne	.L12
.L2:
	bic	r3, r3, r2
	str	r3, [r4]
	mov	r1, r4
	mov	r0, r5
	bl	task_is_running
	cmp	r0, #0
	ldrne	r3, .L13+4
	ldrne	r0, [r3]
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L13+8
	mov	r2, r1
	ldr	r3, [r3]
	bl	STAILQ_REMOVE
	ldr	r2, [r6]
	ldr	r3, [r4]
	b	.L2
.L14:
	.align	2
.L13:
	.word	TASK_ENQUEUED
	.word	EBUSY
	.word	ta_link
	.size	gtaskqueue_cancel_locked, .-gtaskqueue_cancel_locked
	.comm	ta_link,4,4
	.comm	TASK_ENQUEUED,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
