	.file	"extr_ets_alt_task.c_ets_loop_iter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ets_loop_iter
	.type	ets_loop_iter, @function
ets_loop_iter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	cmp	QWORD PTR ets_loop_iter_disable[rip], 0
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	je	.L13
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.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
	xor	eax, eax
	call	system_time_update@PLT
	mov	rbx, QWORD PTR emu_tasks[rip]
	mov	rbp, rbx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	xor	eax, eax
	call	ets_intr_lock@PLT
	mov	edx, DWORD PTR [rbx]
	mov	eax, DWORD PTR 4[rbx]
	cmp	edx, eax
	je	.L5
	mov	edx, DWORD PTR [rbx]
	mov	eax, DWORD PTR 4[rbx]
	cmp	eax, -1
	jne	.L6
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 4[rbx], eax
.L6:
	mov	eax, DWORD PTR [rbx]
	add	eax, 1
	mov	DWORD PTR [rbx], eax
	mov	ecx, DWORD PTR 8[rbx]
	cmp	eax, ecx
	jne	.L7
	mov	DWORD PTR [rbx], 0
.L7:
	mov	rcx, QWORD PTR 24[rbx]
	mov	rsi, QWORD PTR 16[rbx]
	movsx	rax, edx
	mov	r12d, 1
	mov	ebp, DWORD PTR pend_flag_noise_check[rip-24]
	lea	rdi, [rsi+rax*4]
	call	rcx
	cmp	QWORD PTR ets_loop_dont_feed_sw_wdt[rip], 0
	je	.L5
	mov	DWORD PTR pend_flag_noise_check[rip-24], ebp
.L5:
	xor	eax, eax
	add	rbx, 32
	call	ets_intr_unlock@PLT
	mov	rbp, QWORD PTR emu_tasks[rip]
.L3:
	mov	rdi, rbp
	call	MP_ARRAY_SIZE@PLT
	sal	rax, 5
	add	rbp, rax
	cmp	rbx, rbp
	jnb	.L14
	cmp	QWORD PTR ets_loop_dont_feed_sw_wdt[rip], 0
	jne	.L4
	xor	eax, eax
	call	system_soft_wdt_feed@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	test	r12d, r12d
	jne	.L1
	mov	edi, DWORD PTR idle_arg[rip]
	call	idle_cb@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ets_loop_iter, .-ets_loop_iter
	.comm	idle_arg,4,4
	.comm	ets_loop_iter_disable,8,8
	.comm	ets_loop_dont_feed_sw_wdt,8,8
	.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_loop_iter.c"
	.text
	.align	2
	.global	ets_loop_iter
	.syntax unified
	.arm
	.fpu softvfp
	.type	ets_loop_iter, %function
ets_loop_iter:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L15
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, [r3]
	cmp	r7, #0
	movne	r7, #0
	beq	.L13
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	ldr	r8, .L15+4
	bl	system_time_update
	ldr	r4, [r8]
	ldr	r6, .L15+8
	mov	r5, r4
	ldr	r9, .L15+12
	b	.L3
.L4:
	bl	ets_intr_lock
	ldr	r2, [r4]
	ldr	r3, [r4, #4]
	cmp	r2, r3
	beq	.L5
	ldr	r0, [r4]
	ldr	r3, [r4, #4]
	mov	r7, #1
	cmn	r3, #1
	ldreq	r3, [r4]
	streq	r3, [r4, #4]
	ldr	r3, [r4]
	add	r3, r3, #1
	str	r3, [r4]
	ldr	r2, [r4, #8]
	cmp	r3, r2
	moveq	r3, #0
	streq	r3, [r4]
	ldr	r3, [r4, #16]
	ldr	r2, [r4, #12]
	ldr	r5, [r9, #-24]
	add	r0, r2, r0, lsl #2
	blx	r3
	ldr	r3, [r6]
	cmp	r3, #0
	strne	r5, [r9, #-24]
.L5:
	bl	ets_intr_unlock
	ldr	r5, [r8]
	add	r4, r4, #20
.L3:
	mov	r0, r5
	bl	MP_ARRAY_SIZE
	add	r0, r0, r0, lsl #2
	add	r5, r5, r0, lsl #2
	cmp	r4, r5
	bcs	.L14
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L4
	bl	system_soft_wdt_feed
	b	.L4
.L14:
	cmp	r7, #0
	bne	.L1
	ldr	r3, .L15+16
	ldr	r0, [r3]
	bl	idle_cb
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	.align	2
.L15:
	.word	ets_loop_iter_disable
	.word	emu_tasks
	.word	ets_loop_dont_feed_sw_wdt
	.word	pend_flag_noise_check
	.word	idle_arg
	.size	ets_loop_iter, .-ets_loop_iter
	.comm	idle_arg,4,4
	.comm	ets_loop_iter_disable,4,4
	.comm	ets_loop_dont_feed_sw_wdt,4,4
	.comm	emu_tasks,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
