	.file	"extr_ets_alt_task.c_ets_post.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ets_post: task %d queue full\n"
	.text
	.p2align 4
	.globl	ets_post
	.type	ets_post, @function
ets_post:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edx
	call	ets_intr_lock@PLT
	mov	edi, r12d
	call	prio2id@PLT
	cdqe
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR emu_tasks[rip]
	lea	rax, [rax+rdx*8]
	movsx	rdx, DWORD PTR [rax]
	mov	rsi, QWORD PTR 16[rax]
	cmp	edx, -1
	je	.L8
	lea	ecx, 1[rdx]
	lea	rdx, [rsi+rdx*8]
	mov	DWORD PTR [rax], ecx
	mov	DWORD PTR 4[rdx], ebp
	mov	DWORD PTR [rdx], ebx
	cmp	ecx, DWORD PTR 4[rax]
	jne	.L4
	mov	DWORD PTR [rax], 0
	xor	ecx, ecx
.L4:
	cmp	DWORD PTR 8[rax], ecx
	jne	.L5
	mov	DWORD PTR [rax], -1
.L5:
	xor	eax, eax
	call	ets_intr_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	call	printf@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ets_post, .-ets_post
	.comm	emu_tasks,8,8
	.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_ets_alt_task.c_ets_post.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ets_post: task %d queue full\012\000"
	.text
	.align	2
	.global	ets_post
	.syntax unified
	.arm
	.fpu softvfp
	.type	ets_post, %function
ets_post:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r6, r1
	mov	r5, r2
	bl	ets_intr_lock
	mov	r0, r4
	bl	prio2id
	ldr	r3, .L9
	ldr	ip, [r3]
	ldr	r3, [ip, r0, lsl #4]
	add	r1, ip, r0, lsl #4
	cmn	r3, #1
	ldr	lr, [r1, #12]
	beq	.L8
	ldr	r4, [r1, #4]
	add	r2, r3, #1
	cmp	r2, r4
	add	r4, lr, r3, lsl #3
	str	r2, [ip, r0, lsl #4]
	str	r6, [r4, #4]
	str	r5, [lr, r3, lsl #3]
	moveq	r3, #0
	moveq	r2, r3
	streq	r3, [ip, r0, lsl #4]
	ldr	r3, [r1, #8]
	cmp	r3, r2
	mvneq	r3, #0
	streq	r3, [ip, r0, lsl #4]
	bl	ets_intr_unlock
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	mov	r1, r4
	ldr	r0, .L9+4
	bl	printf
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	emu_tasks
	.word	.LC0
	.size	ets_post, .-ets_post
	.comm	emu_tasks,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
