	.file	"extr_mg_lwip_ev_mgr.c_mg_lwip_post_signal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mg_lwip_post_signal
	.type	mg_lwip_post_signal, @function
mg_lwip_post_signal:
.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
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 8[rsi]
	mov	rbx, rsi
	mov	r12, QWORD PTR [rax]
	xor	eax, eax
	call	mgos_lock@PLT
	mov	esi, DWORD PTR MG_SIG_QUEUE_LEN[rip]
	mov	ecx, DWORD PTR [r12]
	cmp	ecx, esi
	jge	.L4
	mov	eax, DWORD PTR 4[r12]
	mov	edi, DWORD PTR [rbx]
	add	eax, ecx
	add	ecx, 1
	cdq
	idiv	esi
	movsx	rdx, edx
	sal	rdx, 4
	add	rdx, QWORD PTR 8[r12]
	mov	DWORD PTR [rdx], ebp
	mov	QWORD PTR 8[rdx], rbx
	mov	DWORD PTR [r12], ecx
	call	mg_lwip_mgr_schedule_poll@PLT
.L4:
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	mgos_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	mg_lwip_post_signal, .-mg_lwip_post_signal
	.comm	MG_SIG_QUEUE_LEN,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_mg_lwip_ev_mgr.c_mg_lwip_post_signal.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.global	mg_lwip_post_signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	mg_lwip_post_signal, %function
mg_lwip_post_signal:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #4]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r3]
	mov	r4, r1
	mov	r7, r0
	bl	mgos_lock
	ldr	r3, .L6
	ldr	r5, [r6]
	ldr	r1, [r3]
	cmp	r5, r1
	bge	.L4
	ldr	r0, [r6, #4]
	add	r0, r5, r0
	bl	__aeabi_idivmod
	ldr	r3, [r6, #8]
	add	r5, r5, #1
	add	r2, r3, r1, lsl #3
	ldr	r0, [r4]
	str	r7, [r3, r1, lsl #3]
	str	r4, [r2, #4]
	str	r5, [r6]
	bl	mg_lwip_mgr_schedule_poll
.L4:
	pop	{r4, r5, r6, r7, r8, lr}
	b	mgos_unlock
.L7:
	.align	2
.L6:
	.word	MG_SIG_QUEUE_LEN
	.size	mg_lwip_post_signal, .-mg_lwip_post_signal
	.comm	MG_SIG_QUEUE_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
