	.file	"243552.c"
	.intel_syntax noprefix
	.text
	.type	__dlist_add, @function
__dlist_add:
.LFB0:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	__dlist_add, .-__dlist_add
	.type	dlist_add, @function
dlist_add:
.LFB1:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	__dlist_add
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dlist_add, .-dlist_add
	.type	dlist_add_tail, @function
dlist_add_tail:
.LFB2:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	__dlist_add
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	dlist_add_tail, .-dlist_add_tail
	.type	dlist_del, @function
dlist_del:
.LFB3:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	dlist_del, .-dlist_del
	.type	dlist_init, @function
dlist_init:
.LFB4:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	dlist_init, .-dlist_init
	.type	dlist_empty, @function
dlist_empty:
.LFB6:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -8[rbp], rax
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	dlist_empty, .-dlist_empty
	.local	inited
	.comm	inited,4,4
	.type	event_open, @function
event_open:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 80
	call	aos_malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 80
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	aos_mutex_new@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 40
	mov	rdi, rax
	call	dlist_init
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 64
	mov	rdi, rax
	call	dlist_init
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	event_open, .-event_open
	.type	event_close, @function
event_close:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	aos_mutex_free@PLT
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	dlist_del
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	aos_free@PLT
.L11:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 40
	mov	rdi, rax
	call	dlist_empty
	test	eax, eax
	je	.L12
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	dlist_del
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	aos_free@PLT
.L13:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 64
	mov	rdi, rax
	call	dlist_empty
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	aos_free@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	event_close, .-event_close
	.type	_event_write, @function
_event_write:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	eax, ecx
	mov	BYTE PTR -56[rbp], al
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, -1
	mov	rdi, rax
	call	aos_mutex_lock@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 56[rax]
	test	eax, eax
	jle	.L17
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -52[rbp], eax
	jne	.L17
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	dlist_del
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 56[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 56[rax], edx
	jmp	.L18
.L17:
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 24
	mov	edi, eax
	call	aos_malloc@PLT
	mov	QWORD PTR -16[rbp], rax
.L18:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L19
	mov	DWORD PTR -20[rbp], -1
	jmp	.L20
.L19:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 32[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 32[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, 20[rax]
	mov	edx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	cmp	BYTE PTR -56[rbp], 0
	je	.L21
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	dlist_add
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	dlist_add_tail
.L22:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L24
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	movzx	edx, WORD PTR 6[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	or	edx, 1
	mov	WORD PTR 6[rax], dx
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	jmp	.L20
.L24:
	nop
.L20:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	aos_mutex_unlock@PLT
	mov	eax, DWORD PTR -20[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	_event_write, .-_event_write
	.type	event_write, @function
event_write:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	edx, DWORD PTR -20[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, 0
	mov	rdi, rax
	call	_event_write
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	event_write, .-event_write
	.type	event_ioctl, @function
event_ioctl:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	eax, DWORD PTR -28[rbp]
	sar	eax, 4
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	and	DWORD PTR -28[rbp], 15
	cmp	DWORD PTR -28[rbp], 1
	je	.L28
	cmp	DWORD PTR -28[rbp], 2
	je	.L29
	jmp	.L32
.L28:
	mov	edx, DWORD PTR -12[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, 0
	mov	rdi, rax
	call	_event_write
	jmp	.L31
.L29:
	mov	edx, DWORD PTR -12[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, 1
	mov	rdi, rax
	call	_event_write
	jmp	.L31
.L32:
	mov	eax, -1
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	event_ioctl, .-event_ioctl
	.type	event_read, @function
event_read:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 32[rax]
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L34
	mov	eax, 0
	jmp	.L35
.L34:
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, -1
	mov	rdi, rax
	call	aos_mutex_lock@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	dlist_del
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -52[rbp], eax
	cmovbe	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 20[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 56[rax]
	cmp	eax, 3
	jg	.L36
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 64[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	dlist_add
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 56[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 56[rax], edx
	jmp	.L37
.L36:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	aos_free@PLT
.L37:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 32[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 32[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	aos_mutex_unlock@PLT
	mov	eax, DWORD PTR -20[rbp]
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	event_read, .-event_read
	.type	event_poll, @function
event_poll:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	BYTE PTR -28[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, -1
	mov	rdi, rax
	call	aos_mutex_lock@PLT
	movzx	eax, BYTE PTR -28[rbp]
	xor	eax, 1
	test	al, al
	je	.L39
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], 0
	jmp	.L40
.L39:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 32[rax]
	test	eax, eax
	je	.L42
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	movzx	edx, WORD PTR 6[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	or	edx, 1
	mov	WORD PTR 6[rax], dx
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	jmp	.L40
.L42:
	nop
.L40:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	aos_mutex_unlock@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	event_poll, .-event_poll
	.section	.data.rel.ro.local,"aw"
	.align 32
	.type	event_fops, @object
	.size	event_fops, 48
event_fops:
	.quad	event_open
	.quad	event_close
	.quad	event_read
	.quad	event_write
	.quad	event_ioctl
	.quad	event_poll
	.section	.rodata
.LC0:
	.string	"/dev/event"
	.text
	.globl	vfs_device_init
	.type	vfs_device_init, @function
vfs_device_init:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	eax, DWORD PTR inited[rip]
	cmp	eax, 1
	jne	.L44
	mov	eax, 0
	jmp	.L45
.L44:
	mov	edx, 0
	lea	rsi, event_fops[rip]
	lea	rdi, .LC0[rip]
	call	aos_register_driver@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L46
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L45
.L46:
	mov	DWORD PTR inited[rip], 1
	mov	eax, 0
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	vfs_device_init, .-vfs_device_init
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"243552.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__dlist_add, %function
__dlist_add:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	__dlist_add, .-__dlist_add
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dlist_add, %function
dlist_add:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	__dlist_add
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	dlist_add, .-dlist_add
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dlist_add_tail, %function
dlist_add_tail:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	__dlist_add
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	dlist_add_tail, .-dlist_add_tail
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dlist_del, %function
dlist_del:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	dlist_del, .-dlist_del
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dlist_init, %function
dlist_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	dlist_init, .-dlist_init
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dlist_empty, %function
dlist_empty:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	dlist_empty, .-dlist_empty
	.local	inited
	.comm	inited,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	event_open, %function
event_open:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r0, #40
	bl	aos_malloc
	str	r0, [fp, #-8]
	mov	r2, #40
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	aos_mutex_new
	ldr	r3, [fp, #-8]
	add	r3, r3, #20
	mov	r0, r3
	bl	dlist_init
	ldr	r3, [fp, #-8]
	add	r3, r3, #32
	mov	r0, r3
	bl	dlist_init
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	event_open, .-event_open
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	event_close, %function
event_close:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	aos_mutex_free
	b	.L11
.L12:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	dlist_del
	ldr	r0, [fp, #-8]
	bl	aos_free
.L11:
	ldr	r3, [fp, #-16]
	add	r3, r3, #20
	mov	r0, r3
	bl	dlist_empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	b	.L13
.L14:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	dlist_del
	ldr	r0, [fp, #-12]
	bl	aos_free
.L13:
	ldr	r3, [fp, #-16]
	add	r3, r3, #32
	mov	r0, r3
	bl	dlist_empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r0, [fp, #-16]
	bl	aos_free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	event_close, .-event_close
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_event_write, %function
_event_write:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	strb	r3, [fp, #-33]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mvn	r1, #0
	mov	r0, r3
	bl	aos_mutex_lock
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #36]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	ble	.L17
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L17
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	dlist_del
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #28]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #28]
	b	.L18
.L17:
	ldr	r3, [fp, #-32]
	add	r3, r3, #12
	mov	r0, r3
	bl	aos_malloc
	str	r0, [fp, #-12]
.L18:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L19
	mvn	r3, #0
	str	r3, [fp, #-16]
	b	.L20
.L19:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #12
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	memcpy
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L21
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #20
	mov	r1, r3
	mov	r0, r2
	bl	dlist_add
	b	.L22
.L21:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #20
	mov	r1, r3
	mov	r0, r2
	bl	dlist_add_tail
.L22:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldrsh	r2, [r3, #6]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	orr	r2, r2, #1
	lsl	r2, r2, #16
	asr	r2, r2, #16
	strh	r2, [r3, #6]	@ movhi
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	ldr	r0, [r2, #8]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2, #12]
	mov	r1, r2
	blx	r3
	b	.L20
.L24:
	nop
.L20:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	aos_mutex_unlock
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_event_write, .-_event_write
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	event_write, %function
event_write:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	mov	r3, #0
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	_event_write
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	event_write, .-event_write
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	event_ioctl, %function
event_ioctl:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	asr	r3, r3, #4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	and	r3, r3, #15
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	beq	.L28
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	beq	.L29
	b	.L32
.L28:
	ldr	r2, [fp, #-12]
	mov	r3, #0
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	_event_write
	mov	r3, r0
	b	.L31
.L29:
	ldr	r2, [fp, #-12]
	mov	r3, #1
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	_event_write
	mov	r3, r0
	b	.L31
.L32:
	mvn	r3, #0
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	event_ioctl, .-event_ioctl
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	event_read, %function
event_read:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L34
	mov	r3, #0
	b	.L35
.L34:
	ldr	r3, [fp, #-16]
	mvn	r1, #0
	mov	r0, r3
	bl	aos_mutex_lock
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	dlist_del
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	movcc	r3, r2
	movcs	r3, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #12
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	memcpy
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	cmp	r3, #3
	bgt	.L36
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #32
	mov	r1, r3
	mov	r0, r2
	bl	dlist_add
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #28]
	b	.L37
.L36:
	ldr	r0, [fp, #-8]
	bl	aos_free
.L37:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	aos_mutex_unlock
	ldr	r3, [fp, #-12]
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	event_read, .-event_read
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	event_poll, %function
event_poll:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, r1
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mvn	r1, #0
	mov	r0, r3
	bl	aos_mutex_lock
	ldrb	r3, [fp, #-17]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	b	.L40
.L39:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #4]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldrsh	r2, [r3, #6]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	orr	r2, r2, #1
	lsl	r2, r2, #16
	asr	r2, r2, #16
	strh	r2, [r3, #6]	@ movhi
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #4]
	ldr	r0, [fp, #-28]
	blx	r3
	b	.L40
.L42:
	nop
.L40:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	aos_mutex_unlock
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	event_poll, .-event_poll
	.section	.rodata
	.align	2
	.type	event_fops, %object
	.size	event_fops, 24
event_fops:
	.word	event_open
	.word	event_close
	.word	event_read
	.word	event_write
	.word	event_ioctl
	.word	event_poll
	.align	2
.LC0:
	.ascii	"/dev/event\000"
	.text
	.align	2
	.global	vfs_device_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	vfs_device_init, %function
vfs_device_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L47
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L44
	mov	r3, #0
	b	.L45
.L44:
	mov	r2, #0
	ldr	r1, .L47+4
	ldr	r0, .L47+8
	bl	aos_register_driver
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-8]
	b	.L45
.L46:
	ldr	r3, .L47
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #0
.L45:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	inited
	.word	event_fops
	.word	.LC0
	.size	vfs_device_init, .-vfs_device_init
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
