	.file	"extr_subr_gtaskqueue.c_gtaskqueue_drain_tq_queue.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"gtq_qdrain"
	.text
	.p2align 4
	.type	gtaskqueue_drain_tq_queue, @function
gtaskqueue_drain_tq_queue:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	STAILQ_EMPTY@PLT
	test	rax, rax
	je	.L13
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rbp, 4[rsp]
	mov	ecx, DWORD PTR gtaskqueue_task_nop_fn[rip]
	mov	edx, DWORD PTR USHRT_MAX[rip]
	xor	esi, esi
	mov	r8, rbp
	mov	rdi, rbp
	call	GTASK_INIT@PLT
	mov	edx, DWORD PTR ta_link[rip]
	mov	rsi, rbp
	mov	rdi, rbx
	call	STAILQ_INSERT_TAIL@PLT
	mov	eax, DWORD PTR TASK_ENQUEUED[rip]
	or	DWORD PTR 4[rsp], eax
	test	eax, eax
	je	.L1
	lea	r12, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, rbx
	call	TQ_SLEEP@PLT
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR TASK_ENQUEUED[rip], eax
	jne	.L4
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gtaskqueue_drain_tq_queue, .-gtaskqueue_drain_tq_queue
	.comm	ta_link,4,4
	.comm	gtaskqueue_task_nop_fn,4,4
	.comm	USHRT_MAX,4,4
	.comm	TASK_ENQUEUED,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_drain_tq_queue.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"gtq_qdrain\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gtaskqueue_drain_tq_queue, %function
gtaskqueue_drain_tq_queue:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L15
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r0
	bl	STAILQ_EMPTY
	subs	r1, r0, #0
	beq	.L13
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	ldr	r3, .L15+4
	ldr	r2, .L15+8
	add	r5, sp, #8
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r0, r5
	str	r5, [sp]
	bl	GTASK_INIT
	ldr	r3, .L15+12
	ldr	r6, .L15+16
	ldr	r2, [r3]
	mov	r1, r5
	mov	r0, r4
	bl	STAILQ_INSERT_TAIL
	ldr	r2, [r6]
	ldr	r3, [sp, #8]
	cmp	r2, #0
	orr	r3, r3, r2
	str	r3, [sp, #8]
	beq	.L1
	ldr	r7, .L15+20
.L4:
	mov	r1, r5
	mov	r2, r7
	mov	r0, r4
	bl	TQ_SLEEP
	ldr	r1, [sp, #8]
	ldr	r3, [r6]
	tst	r1, r3
	bne	.L4
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	gtaskqueue_task_nop_fn
	.word	USHRT_MAX
	.word	ta_link
	.word	TASK_ENQUEUED
	.word	.LC0
	.size	gtaskqueue_drain_tq_queue, .-gtaskqueue_drain_tq_queue
	.comm	ta_link,4,4
	.comm	gtaskqueue_task_nop_fn,4,4
	.comm	USHRT_MAX,4,4
	.comm	TASK_ENQUEUED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
