	.file	"extr_event.c_event_queue_insert_active.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	event_queue_insert_active, @function
event_queue_insert_active:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	EVENT_BASE_ASSERT_LOCKED@PLT
	mov	esi, DWORD PTR 0[rbp]
	test	DWORD PTR EVLIST_ACTIVE[rip], esi
	je	.L5
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rbx
	call	INCR_EVENT_COUNT@PLT
	mov	eax, DWORD PTR EVLIST_ACTIVE[rip]
	or	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR 20[rbx]
	lea	esi, 1[rax]
	mov	DWORD PTR 16[rbx], esi
	call	MAX_EVENT_COUNT@PLT
	mov	rax, QWORD PTR [rbx]
	xor	edi, edi
	cmp	QWORD PTR 8[rbp], rax
	setb	dil
	call	EVUTIL_ASSERT@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR 8[rbx]
	mov	rsi, rbp
	lea	rdi, [rax+rdx*4]
	mov	edx, DWORD PTR evcb_active_next[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	TAILQ_INSERT_TAIL@PLT
	.cfi_endproc
.LFE0:
	.size	event_queue_insert_active, .-event_queue_insert_active
	.comm	evcb_active_next,4,4
	.comm	EVLIST_ACTIVE,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_event.c_event_queue_insert_active.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	event_queue_insert_active, %function
event_queue_insert_active:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r6, .L5
	mov	r5, r0
	bl	EVENT_BASE_ASSERT_LOCKED
	ldr	r1, [r4]
	ldr	r3, [r6]
	tst	r1, r3
	popne	{r4, r5, r6, pc}
	mov	r0, r5
	bl	INCR_EVENT_COUNT
	ldr	r2, [r6]
	ldr	r3, [r4]
	ldr	r1, [r5, #8]
	orr	r3, r3, r2
	add	r1, r1, #1
	str	r3, [r4]
	ldr	r0, [r5, #12]
	str	r1, [r5, #8]
	bl	MAX_EVENT_COUNT
	ldr	r0, [r4, #4]
	ldr	r3, [r5]
	cmp	r0, r3
	movcs	r0, #0
	movcc	r0, #1
	bl	EVUTIL_ASSERT
	ldr	r2, [r5, #4]
	ldr	r0, [r4, #4]
	ldr	r3, .L5+4
	mov	r1, r4
	pop	{r4, r5, r6, lr}
	add	r0, r2, r0, lsl #2
	ldr	r2, [r3]
	b	TAILQ_INSERT_TAIL
.L6:
	.align	2
.L5:
	.word	EVLIST_ACTIVE
	.word	evcb_active_next
	.size	event_queue_insert_active, .-event_queue_insert_active
	.comm	evcb_active_next,4,4
	.comm	EVLIST_ACTIVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
