	.file	"extr_event.c_se_reset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"SE_RESET"
	.text
	.p2align 4
	.type	se_reset, @function
se_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	edi, DWORD PTR 24[rdi]
	call	ASSERT@PLT
	mov	edi, DWORD PTR D_EVENT_WAIT[rip]
	lea	rsi, .LC0[rip]
	call	dmsg@PLT
	lea	rdi, 20[rbx]
	call	FD_ZERO@PLT
	lea	rdi, 16[rbx]
	call	FD_ZERO@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	js	.L2
	mov	rdx, QWORD PTR 8[rbx]
	movsx	rcx, eax
	lea	rax, 8[rdx]
	lea	rcx, [rax+rcx*8]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	add	rax, 8
.L3:
	mov	QWORD PTR [rdx], 0
	mov	rdx, rax
	cmp	rax, rcx
	jne	.L7
.L2:
	mov	DWORD PTR [rbx], -1
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	se_reset, .-se_reset
	.comm	D_EVENT_WAIT,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_se_reset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SE_RESET\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	se_reset, %function
se_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, [r0, #16]
	bl	ASSERT
	ldr	r3, .L7
	ldr	r1, .L7+4
	ldr	r0, [r3]
	bl	dmsg
	add	r0, r4, #12
	bl	FD_ZERO
	add	r0, r4, #8
	bl	FD_ZERO
	ldr	r2, [r4]
	cmp	r2, #0
	blt	.L2
	mov	r1, #0
	ldr	r3, [r4, #4]
	add	r2, r3, r2, lsl #2
	sub	r3, r3, #4
.L3:
	str	r1, [r3, #4]!
	cmp	r3, r2
	bne	.L3
.L2:
	mvn	r3, #0
	str	r3, [r4]
	pop	{r4, pc}
.L8:
	.align	2
.L7:
	.word	D_EVENT_WAIT
	.word	.LC0
	.size	se_reset, .-se_reset
	.comm	D_EVENT_WAIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
