	.file	"extr_kern_testfrwk.c_kfrwk_task.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kfrwk_task, @function
kfrwk_task:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	esi, esi
	mov	edx, 4
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	lea	r13, 12[r12]
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r14, 4[rsp]
	mov	rdi, r14
	call	memset@PLT
	xor	eax, eax
	call	KTFRWK_LOCK@PLT
	mov	rdi, r13
	call	TAILQ_FIRST@PLT
	test	rax, rax
	je	.L2
	sub	QWORD PTR 8[rax], 1
	mov	rbp, rax
	lea	rsi, 8[rax]
	mov	rdi, r14
	sub	DWORD PTR [r12], 1
	mov	edx, 4
	call	memcpy@PLT
	cmp	QWORD PTR 8[rbp], 0
	jne	.L3
	mov	edx, DWORD PTR next[rip]
	mov	rsi, rbp
	mov	rdi, r13
	call	TAILQ_REMOVE@PLT
	mov	rax, QWORD PTR 0[rbp]
	test	rax, rax
	je	.L20
	mov	r13, QWORD PTR [rax]
	xor	eax, eax
	call	KTFRWK_UNLOCK@PLT
	mov	esi, DWORD PTR M_KTFRWK[rip]
	mov	rdi, rbp
	call	free@PLT
.L8:
	test	r13, r13
	je	.L7
	mov	rdi, r14
	call	r13
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR 8[r12]
	lea	rsi, 4[r12]
	call	taskqueue_enqueue@PLT
	mov	rax, QWORD PTR 0[rbp]
	test	rax, rax
	jne	.L6
.L2:
	xor	eax, eax
	call	KTFRWK_UNLOCK@PLT
.L7:
	mov	esi, 1
	mov	rdi, r12
	call	atomic_add_int@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	r13, QWORD PTR [rax]
	xor	eax, eax
	call	KTFRWK_UNLOCK@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L20:
	xor	eax, eax
	call	KTFRWK_UNLOCK@PLT
	mov	esi, DWORD PTR M_KTFRWK[rip]
	mov	rdi, rbp
	call	free@PLT
	jmp	.L7
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kfrwk_task, .-kfrwk_task
	.comm	next,4,4
	.comm	M_KTFRWK,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_kern_testfrwk.c_kfrwk_task.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kfrwk_task, %function
kfrwk_task:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, .L22
	sub	sp, sp, #12
	add	r7, r0, #12
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	mov	r4, r0
	str	r3, [sp]
	bl	KTFRWK_LOCK
	mov	r0, r7
	bl	TAILQ_FIRST
	subs	r5, r0, #0
	beq	.L2
	mov	r1, r5
	ldr	r6, [r5, #4]
	ldr	r3, [r4]
	sub	r6, r6, #1
	sub	r3, r3, #1
	str	r6, [r1, #4]!
	mov	r2, #4
	mov	r0, sp
	str	r3, [r4]
	bl	memcpy
	cmp	r6, #0
	bne	.L3
	ldr	r3, .L22+4
	mov	r0, r7
	ldr	r2, [r3]
	mov	r1, r5
	bl	TAILQ_REMOVE
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L20
	ldr	r6, [r3]
	bl	KTFRWK_UNLOCK
	ldr	r3, .L22+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	free
.L8:
	cmp	r6, #0
	beq	.L7
	mov	r0, sp
	blx	r6
	b	.L7
.L3:
	ldr	r0, [r4, #8]
	add	r1, r4, #4
	bl	taskqueue_enqueue
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L6
.L2:
	bl	KTFRWK_UNLOCK
.L7:
	mov	r0, r4
	mov	r1, #1
	bl	atomic_add_int
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	ldr	r6, [r3]
	bl	KTFRWK_UNLOCK
	b	.L8
.L20:
	bl	KTFRWK_UNLOCK
	ldr	r3, .L22+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	free
	b	.L7
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	next
	.word	M_KTFRWK
	.size	kfrwk_task, .-kfrwk_task
	.comm	next,4,4
	.comm	M_KTFRWK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
