	.file	"165766740.c"
	.intel_syntax noprefix
	.text
	.local	cli
	.comm	cli,8,8
	.local	cliexit
	.comm	cliexit,4,4
	.globl	esc_tag
	.bss
	.align 32
	.type	esc_tag, @object
	.size	esc_tag, 64
esc_tag:
	.zero	64
	.local	esc_tag_len
	.comm	esc_tag_len,1,1
	.text
	.type	lookup_command, @function
lookup_command:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L8:
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L3
	add	DWORD PTR -8[rbp], 1
	jmp	.L2
.L3:
	cmp	DWORD PTR -28[rbp], 0
	je	.L4
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR cli[rip]
	mov	ecx, DWORD PTR -8[rbp]
	movsx	rcx, ecx
	mov	rax, QWORD PTR 8[rax+rcx*8]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	jmp	.L6
.L4:
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	jmp	.L6
.L5:
	add	DWORD PTR -8[rbp], 1
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 63
	jg	.L7
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR 520[rax]
	mov	eax, DWORD PTR -4[rbp]
	cmp	edx, eax
	ja	.L8
.L7:
	mov	eax, 0
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	lookup_command, .-lookup_command
	.section	.rodata
.LC0:
	.string	"\r\n"
	.text
	.type	proc_onecmd, @function
proc_onecmd:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -20[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	cmp	DWORD PTR -36[rbp], 0
	jg	.L10
	mov	eax, 0
	jmp	.L11
.L10:
	mov	rax, QWORD PTR cli[rip]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L12
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	csp_printf@PLT
	mov	rax, QWORD PTR _impure_ptr[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	fflush@PLT
.L12:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 46
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, rdx
	jmp	.L14
.L13:
	mov	eax, 0
.L14:
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	lookup_command
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L15
	mov	eax, 1
	jmp	.L11
.L15:
	mov	rax, QWORD PTR cli[rip]
	add	rax, 784
	mov	edx, 2048
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	r8, QWORD PTR 16[rax]
	mov	rax, QWORD PTR cli[rip]
	lea	rdi, 784[rax]
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rcx, rdx
	mov	edx, eax
	mov	esi, 2048
	call	r8
	mov	rax, QWORD PTR cli[rip]
	add	rax, 784
	mov	rdi, rax
	call	cli_putstr
	mov	eax, 0
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	proc_onecmd, .-proc_onecmd
	.type	handle_input, @function
handle_input:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	lea	rax, -32[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	mov	edx, 768
	mov	esi, 0
	lea	rdi, argvall.0[rip]
	call	memset@PLT
	lea	rax, -32[rbp]
	mov	edx, 24
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -56[rbp]
	mov	edx, 4
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L37:
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 59
	je	.L17
	cmp	eax, 59
	jg	.L18
	cmp	eax, 34
	je	.L19
	cmp	eax, 34
	jg	.L18
	test	eax, eax
	je	.L20
	cmp	eax, 32
	je	.L21
	jmp	.L18
.L20:
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 2
	test	al, al
	je	.L22
	mov	eax, 2
	jmp	.L42
.L22:
	movzx	eax, BYTE PTR -56[rbp]
	or	eax, 4
	mov	BYTE PTR -56[rbp], al
	jmp	.L24
.L19:
	cmp	DWORD PTR -48[rbp], 0
	jle	.L25
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 92
	jne	.L25
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 1
	test	al, al
	je	.L25
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	strlen@PLT
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -48[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rsi, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	sub	DWORD PTR -48[rbp], 1
	jmp	.L24
.L25:
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 2
	test	al, al
	jne	.L26
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 1
	test	al, al
	jne	.L44
.L26:
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 2
	test	al, al
	je	.L27
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 1
	test	al, al
	jne	.L27
	mov	eax, 2
	jmp	.L42
.L27:
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 2
	test	al, al
	jne	.L28
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 1
	test	al, al
	jne	.L28
	movzx	eax, BYTE PTR -56[rbp]
	or	eax, 1
	mov	BYTE PTR -56[rbp], al
	movzx	eax, BYTE PTR -56[rbp]
	or	eax, 2
	mov	BYTE PTR -56[rbp], al
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 1
	mov	rdx, QWORD PTR -72[rbp]
	add	rcx, rdx
	movsx	rdx, eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, argvall.0[rip]
	mov	QWORD PTR [rdx+rax], rcx
	jmp	.L45
.L28:
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 2
	test	al, al
	je	.L45
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 1
	test	al, al
	je	.L45
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, -2
	mov	BYTE PTR -56[rbp], al
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, -3
	mov	BYTE PTR -56[rbp], al
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L45
.L21:
	cmp	DWORD PTR -48[rbp], 0
	jle	.L30
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 92
	jne	.L30
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 1
	test	al, al
	je	.L30
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	strlen@PLT
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -48[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rsi, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	sub	DWORD PTR -48[rbp], 1
	jmp	.L24
.L30:
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 2
	test	al, al
	jne	.L46
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 1
	test	al, al
	je	.L46
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, -2
	mov	BYTE PTR -56[rbp], al
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L46
.L17:
	cmp	DWORD PTR -48[rbp], 0
	jle	.L32
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 92
	jne	.L32
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 1
	test	al, al
	je	.L32
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	strlen@PLT
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -48[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rsi, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	sub	DWORD PTR -48[rbp], 1
	jmp	.L24
.L32:
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 2
	test	al, al
	je	.L33
	mov	eax, 2
	jmp	.L42
.L33:
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 2
	test	al, al
	jne	.L47
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 1
	test	al, al
	je	.L47
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, -2
	mov	BYTE PTR -56[rbp], al
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L47
	add	DWORD PTR -52[rbp], 1
	cmp	DWORD PTR -52[rbp], 5
	jg	.L47
	lea	rdx, -32[rbp]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	jmp	.L47
.L18:
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 1
	test	al, al
	jne	.L48
	movzx	eax, BYTE PTR -56[rbp]
	or	eax, 1
	mov	BYTE PTR -56[rbp], al
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -48[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 1
	mov	rdx, QWORD PTR -72[rbp]
	add	rcx, rdx
	movsx	rdx, eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, argvall.0[rip]
	mov	QWORD PTR [rdx+rax], rcx
	jmp	.L48
.L44:
	nop
	jmp	.L24
.L45:
	nop
	jmp	.L24
.L46:
	nop
	jmp	.L24
.L47:
	nop
	jmp	.L24
.L48:
	nop
.L24:
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 4
	test	al, al
	jne	.L36
	add	DWORD PTR -48[rbp], 1
	cmp	DWORD PTR -48[rbp], 255
	jg	.L36
	cmp	DWORD PTR -52[rbp], 5
	jg	.L36
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 15
	jle	.L37
.L36:
	movzx	eax, BYTE PTR -56[rbp]
	and	eax, 2
	test	al, al
	je	.L38
	mov	eax, 2
	jmp	.L42
.L38:
	mov	DWORD PTR -48[rbp], 0
	jmp	.L39
.L41:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 7
	mov	rdx, rax
	lea	rax, argvall.0[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	mov	eax, DWORD PTR -32[rbp+rax*4]
	mov	rsi, rdx
	mov	edi, eax
	call	proc_onecmd
	or	DWORD PTR -44[rbp], eax
	add	DWORD PTR -48[rbp], 1
.L39:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jg	.L40
	cmp	DWORD PTR -48[rbp], 5
	jle	.L41
.L40:
	mov	eax, DWORD PTR -44[rbp]
.L42:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	handle_input, .-handle_input
	.section	.rodata
.LC1:
	.string	"%s %s "
.LC2:
	.string	"%s "
.LC3:
	.string	"# "
.LC4:
	.string	"%s%s"
	.text
	.type	tab_complete, @function
tab_complete:
.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	aos_cli_printf
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L50
.L56:
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L51
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR cli[rip]
	mov	ecx, DWORD PTR -20[rbp]
	movsx	rcx, ecx
	mov	rax, QWORD PTR 8[rax+rcx*8]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L52
	add	DWORD PTR -12[rbp], 1
	cmp	DWORD PTR -12[rbp], 1
	jne	.L53
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L52
.L53:
	cmp	DWORD PTR -12[rbp], 2
	jne	.L54
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	aos_cli_printf
	jmp	.L52
.L54:
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	aos_cli_printf
.L52:
	add	DWORD PTR -16[rbp], 1
.L51:
	add	DWORD PTR -20[rbp], 1
.L50:
	cmp	DWORD PTR -20[rbp], 63
	jg	.L55
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR 520[rax]
	mov	eax, DWORD PTR -16[rbp]
	cmp	edx, eax
	ja	.L56
.L55:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L57
	cmp	QWORD PTR -8[rbp], 0
	je	.L57
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rdx]
	sub	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	add	eax, edx
	cmp	eax, 255
	ja	.L57
	mov	eax, DWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rdx]
	mov	ecx, edx
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, [rcx+rdx]
	mov	rdx, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rdx]
	mov	ecx, edx
	mov	rdx, QWORD PTR -40[rbp]
	add	rcx, rdx
	mov	edx, eax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -48[rbp]
	mov	DWORD PTR [rdx], ecx
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L57:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, rax
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	aos_cli_printf
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	tab_complete, .-tab_complete
	.section	.rodata
.LC5:
	.string	"inbuf_null\r\n"
.LC6:
	.string	"\033%c"
.LC7:
	.string	"\033%c%c"
.LC8:
	.string	"\r\n# %s"
	.align 8
.LC9:
	.string	"Error: esc_tag buffer overflow\r\n"
.LC10:
	.string	"%s"
.LC11:
	.string	"%c %c"
.LC12:
	.string	"%c"
	.align 8
.LC13:
	.string	"Error: input buffer overflow\r\n"
	.text
	.type	get_input, @function
get_input:
.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 -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], -1
	mov	DWORD PTR -28[rbp], -1
	cmp	QWORD PTR -56[rbp], 0
	jne	.L59
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	aos_cli_printf
	mov	eax, 0
	jmp	.L83
.L59:
	mov	rax, QWORD PTR cli[rip]
	mov	eax, DWORD PTR 2836[rax]
	lea	edx, 4[rax]
	mov	rsi, QWORD PTR cli[rip]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR 2832[rsi], eax
	jmp	.L61
.L82:
	movzx	eax, BYTE PTR -37[rbp]
	cmp	al, 10
	je	.L62
	movzx	eax, BYTE PTR -37[rbp]
	cmp	al, 13
	jne	.L63
.L62:
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, 1
	jmp	.L83
.L63:
	movzx	eax, BYTE PTR -37[rbp]
	cmp	al, 27
	jne	.L64
	mov	DWORD PTR -36[rbp], 1
	mov	DWORD PTR -32[rbp], -1
	mov	DWORD PTR -28[rbp], -1
	jmp	.L61
.L64:
	cmp	DWORD PTR -36[rbp], 0
	je	.L65
	cmp	DWORD PTR -32[rbp], 0
	jns	.L66
	movzx	eax, BYTE PTR -37[rbp]
	movsx	eax, al
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 91
	je	.L61
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 27
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR cli[rip]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L68
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	csp_printf@PLT
	mov	rax, QWORD PTR _impure_ptr[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	fflush@PLT
.L68:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L61
.L66:
	cmp	DWORD PTR -28[rbp], 0
	jns	.L69
	movzx	eax, BYTE PTR -37[rbp]
	movsx	eax, al
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 116
	jne	.L69
	mov	BYTE PTR esc_tag[rip], 27
	mov	eax, DWORD PTR -32[rbp]
	mov	BYTE PTR esc_tag[rip+1], al
	mov	BYTE PTR esc_tag_len[rip], 2
.L69:
	cmp	DWORD PTR -28[rbp], 65
	je	.L70
	cmp	DWORD PTR -28[rbp], 66
	je	.L70
	cmp	DWORD PTR -28[rbp], 116
	je	.L70
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 27
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -28[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR cli[rip]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L71
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	csp_printf@PLT
	mov	rax, QWORD PTR _impure_ptr[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	fflush@PLT
.L71:
	mov	BYTE PTR esc_tag[rip], 0
	mov	BYTE PTR esc_tag_len[rip], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L61
.L70:
	cmp	DWORD PTR -28[rbp], 65
	jne	.L72
	mov	rdx, QWORD PTR cli[rip]
	mov	rax, QWORD PTR cli[rip]
	mov	eax, DWORD PTR 2832[rax]
	cdqe
	sal	rax, 8
	add	rax, 2832
	add	rax, rdx
	add	rax, 8
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR cli[rip]
	mov	eax, DWORD PTR 2832[rax]
	lea	edx, 4[rax]
	mov	rsi, QWORD PTR cli[rip]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR 2832[rsi], eax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	csp_printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	DWORD PTR [rdx], eax
	mov	BYTE PTR esc_tag[rip], 0
	mov	BYTE PTR esc_tag_len[rip], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L61
.L72:
	cmp	DWORD PTR -28[rbp], 66
	jne	.L73
	mov	rdx, QWORD PTR cli[rip]
	mov	rax, QWORD PTR cli[rip]
	mov	eax, DWORD PTR 2832[rax]
	cdqe
	sal	rax, 8
	add	rax, 2832
	add	rax, rdx
	add	rax, 8
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR cli[rip]
	mov	eax, DWORD PTR 2832[rax]
	lea	edx, 1[rax]
	mov	rsi, QWORD PTR cli[rip]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR 2832[rsi], eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	csp_printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	DWORD PTR [rdx], eax
	mov	BYTE PTR esc_tag[rip], 0
	mov	BYTE PTR esc_tag_len[rip], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L61
.L73:
	movzx	eax, BYTE PTR esc_tag_len[rip]
	cmp	al, 63
	jbe	.L74
	mov	BYTE PTR esc_tag[rip], 0
	mov	BYTE PTR esc_tag_len[rip], 0
	mov	DWORD PTR -36[rbp], 0
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	csp_printf@PLT
	mov	rax, QWORD PTR _impure_ptr[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L61
.L74:
	movzx	eax, BYTE PTR esc_tag_len[rip]
	lea	edx, 1[rax]
	mov	BYTE PTR esc_tag_len[rip], dl
	movzx	eax, al
	movzx	edx, BYTE PTR -37[rbp]
	cdqe
	lea	rcx, esc_tag[rip]
	mov	BYTE PTR [rax+rcx], dl
	movzx	eax, BYTE PTR -37[rbp]
	cmp	al, 109
	jne	.L61
	movzx	eax, BYTE PTR esc_tag_len[rip]
	lea	edx, 1[rax]
	mov	BYTE PTR esc_tag_len[rip], dl
	movzx	eax, al
	cdqe
	lea	rdx, esc_tag[rip]
	mov	BYTE PTR [rax+rdx], 0
	mov	rax, QWORD PTR cli[rip]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L76
	lea	rsi, esc_tag[rip]
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	csp_printf@PLT
	mov	rax, QWORD PTR _impure_ptr[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	fflush@PLT
.L76:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L61
.L65:
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -37[rbp]
	mov	BYTE PTR [rdx], al
	movzx	eax, BYTE PTR -37[rbp]
	cmp	al, 8
	je	.L77
	movzx	eax, BYTE PTR -37[rbp]
	cmp	al, 127
	jne	.L78
.L77:
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L61
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR cli[rip]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L61
	mov	edx, 8
	mov	esi, 8
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	csp_printf@PLT
	mov	rax, QWORD PTR _impure_ptr[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L61
.L78:
	movzx	eax, BYTE PTR -37[rbp]
	cmp	al, 9
	jne	.L80
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	tab_complete
	jmp	.L61
.L80:
	mov	rax, QWORD PTR cli[rip]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L81
	movzx	eax, BYTE PTR -37[rbp]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	csp_printf@PLT
	mov	rax, QWORD PTR _impure_ptr[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	fflush@PLT
.L81:
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 255
	jbe	.L61
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	aos_cli_printf
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	aos_cli_printf
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, 0
	jmp	.L83
.L61:
	lea	rax, -37[rbp]
	mov	rdi, rax
	call	cli_getchar
	cmp	eax, 1
	je	.L82
	mov	eax, 0
.L83:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L84
	call	__stack_chk_fail@PLT
.L84:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	get_input, .-get_input
	.section	.rodata
.LC14:
	.string	"command '%s' not found\r\n"
	.text
	.type	print_bad_command, @function
print_bad_command:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L87
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	aos_cli_printf
.L87:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	print_bad_command, .-print_bad_command
	.section	.rodata
.LC15:
	.string	"syntax error\r\n"
.LC16:
	.string	"CLI exited\r\n"
	.text
	.type	cli_main, @function
cli_main:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	jmp	.L89
.L93:
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR cli[rip]
	lea	rdx, 524[rax]
	mov	rax, QWORD PTR cli[rip]
	add	rax, 528
	mov	rsi, rdx
	mov	rdi, rax
	call	get_input
	test	eax, eax
	je	.L89
	mov	rax, QWORD PTR cli[rip]
	add	rax, 528
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR cli[rip]
	add	rax, 528
	mov	rdi, rax
	call	strlen@PLT
	test	eax, eax
	je	.L90
	mov	rax, QWORD PTR cli[rip]
	lea	rcx, 528[rax]
	mov	rdx, QWORD PTR cli[rip]
	mov	rax, QWORD PTR cli[rip]
	mov	eax, DWORD PTR 2836[rax]
	cdqe
	sal	rax, 8
	add	rax, 2832
	add	rax, rdx
	add	rax, 8
	mov	edx, 256
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR cli[rip]
	mov	eax, DWORD PTR 2836[rax]
	lea	edx, 1[rax]
	mov	rsi, QWORD PTR cli[rip]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR 2836[rsi], eax
.L90:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	handle_input
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 1
	jne	.L91
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	print_bad_command
	jmp	.L92
.L91:
	cmp	DWORD PTR -12[rbp], 2
	jne	.L92
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	aos_cli_printf
.L92:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	aos_cli_printf
	mov	BYTE PTR esc_tag[rip], 0
	mov	BYTE PTR esc_tag_len[rip], 0
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	aos_cli_printf
.L89:
	mov	eax, DWORD PTR cliexit[rip]
	test	eax, eax
	je	.L93
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	aos_cli_printf
	mov	rax, QWORD PTR cli[rip]
	mov	rdi, rax
	call	aos_free@PLT
	mov	QWORD PTR cli[rip], 0
	mov	edi, 0
	call	aos_task_exit@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	cli_main, .-cli_main
	.section	.rodata
.LC17:
	.string	"help"
.LC18:
	.string	"echo"
.LC19:
	.string	"exit"
.LC20:
	.string	"CLI exit"
.LC21:
	.string	"devname"
.LC22:
	.string	"print device name"
.LC23:
	.string	"sysver"
.LC24:
	.string	"reboot"
.LC25:
	.string	"reboot system"
.LC26:
	.string	"time"
.LC27:
	.string	"system time"
.LC28:
	.string	"ota"
.LC29:
	.string	"system ota"
	.section	.data.rel.ro.local,"aw"
	.align 32
	.type	built_ins, @object
	.size	built_ins, 192
built_ins:
	.quad	.LC17
	.quad	0
	.quad	help_cmd
	.quad	.LC18
	.quad	0
	.quad	echo_cmd
	.quad	.LC19
	.quad	.LC20
	.quad	exit_cmd
	.quad	.LC21
	.quad	.LC22
	.quad	devname_cmd
	.quad	.LC23
	.quad	0
	.quad	version_cmd
	.quad	.LC24
	.quad	.LC25
	.quad	reboot_cmd
	.quad	.LC26
	.quad	.LC27
	.quad	uptime_cmd
	.quad	.LC28
	.quad	.LC29
	.quad	ota_cmd
	.section	.rodata
.LC30:
	.string	"====Build-in Commands====\r\n"
	.align 8
.LC31:
	.string	"====Support six cmds once, seperate by ; ====\r\n"
.LC32:
	.string	""
.LC33:
	.string	"%s: %s\r\n"
.LC34:
	.string	"====User Commands====\r\n"
	.text
	.type	help_cmd, @function
help_cmd:
.LFB24:
	.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	DWORD PTR -32[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	mov	QWORD PTR -8[rbp], 8
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	aos_cli_printf
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	aos_cli_printf
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L95
.L100:
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L96
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L97
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	rax, QWORD PTR 8[rax]
	jmp	.L98
.L97:
	lea	rax, .LC32[rip]
.L98:
	mov	rdx, QWORD PTR cli[rip]
	mov	ecx, DWORD PTR -16[rbp]
	movsx	rcx, ecx
	mov	rdx, QWORD PTR 8[rdx+rcx*8]
	mov	rcx, QWORD PTR [rdx]
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	aos_cli_printf
	add	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	jne	.L96
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	aos_cli_printf
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	aos_cli_printf
.L96:
	add	DWORD PTR -16[rbp], 1
.L95:
	cmp	DWORD PTR -16[rbp], 63
	jg	.L101
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR 520[rax]
	mov	eax, DWORD PTR -12[rbp]
	cmp	edx, eax
	ja	.L100
.L101:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	help_cmd, .-help_cmd
	.section	.rodata
.LC35:
	.string	"kernel version :%d\r\n"
	.text
	.type	version_cmd, @function
version_cmd:
.LFB25:
	.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	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	call	krhino_version_get@PLT
	mov	rsi, rax
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	aos_cli_printf
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	version_cmd, .-version_cmd
	.section	.rodata
.LC36:
	.string	"Disabled"
.LC37:
	.string	"Enabled"
	.align 8
.LC38:
	.string	"Usage: echo on/off. Echo is currently %s\r\n"
.LC39:
	.string	"on"
.LC40:
	.string	"Enable echo\r\n"
.LC41:
	.string	"off"
.LC42:
	.string	"Disable echo\r\n"
	.text
	.type	echo_cmd, @function
echo_cmd:
.LFB26:
	.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	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	cmp	DWORD PTR -16[rbp], 1
	jne	.L104
	mov	rax, QWORD PTR cli[rip]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L105
	lea	rax, .LC36[rip]
	jmp	.L106
.L105:
	lea	rax, .LC37[rip]
.L106:
	mov	rsi, rax
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	aos_cli_printf
	jmp	.L103
.L104:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L108
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	aos_cli_printf
	mov	rax, QWORD PTR cli[rip]
	mov	DWORD PTR 4[rax], 0
	jmp	.L103
.L108:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L103
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	aos_cli_printf
	mov	rax, QWORD PTR cli[rip]
	mov	DWORD PTR 4[rax], 1
.L103:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	echo_cmd, .-echo_cmd
	.type	exit_cmd, @function
exit_cmd:
.LFB27:
	.cfi_startproc
	endbr64
	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	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	mov	DWORD PTR cliexit[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	exit_cmd, .-exit_cmd
	.section	.rodata
.LC43:
	.string	"pca10056"
.LC44:
	.string	"device name: %s\r\n"
	.text
	.type	devname_cmd, @function
devname_cmd:
.LFB28:
	.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	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	lea	rsi, .LC43[rip]
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	aos_cli_printf
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	devname_cmd, .-devname_cmd
	.section	.rodata
.LC45:
	.string	"reboot\r\n"
	.text
	.type	reboot_cmd, @function
reboot_cmd:
.LFB29:
	.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	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	aos_cli_printf
	call	hal_reboot@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	reboot_cmd, .-reboot_cmd
	.section	.rodata
.LC46:
	.string	"UP time %ld ms\r\n"
	.text
	.type	uptime_cmd, @function
uptime_cmd:
.LFB30:
	.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	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	call	aos_now_ms@PLT
	mov	rsi, rax
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	aos_cli_printf
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE30:
	.size	uptime_cmd, .-uptime_cmd
	.globl	tftp_ota_thread
	.type	tftp_ota_thread, @function
tftp_ota_thread:
.LFB31:
	.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	QWORD PTR -8[rbp], rdi
	mov	edi, 0
	call	aos_task_exit@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE31:
	.size	tftp_ota_thread, .-tftp_ota_thread
	.section	.rodata
.LC47:
	.string	"LOCAL OTA"
	.text
	.type	ota_cmd, @function
ota_cmd:
.LFB32:
	.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	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	mov	ecx, 4096
	mov	edx, 0
	lea	rsi, tftp_ota_thread[rip]
	lea	rdi, .LC47[rip]
	call	aos_task_new@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE32:
	.size	ota_cmd, .-ota_cmd
	.globl	aos_cli_register_command
	.type	aos_cli_register_command, @function
aos_cli_register_command:
.LFB33:
	.cfi_startproc
	endbr64
	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 cli[rip]
	test	rax, rax
	jne	.L117
	mov	eax, 1
	jmp	.L118
.L117:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L119
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L120
.L119:
	mov	eax, -22
	jmp	.L118
.L120:
	mov	rax, QWORD PTR cli[rip]
	mov	eax, DWORD PTR 520[rax]
	cmp	eax, 63
	ja	.L121
	mov	DWORD PTR -4[rbp], 0
	jmp	.L122
.L124:
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	cmp	QWORD PTR -24[rbp], rax
	jne	.L123
	mov	eax, 0
	jmp	.L118
.L123:
	add	DWORD PTR -4[rbp], 1
.L122:
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR 520[rax]
	mov	eax, DWORD PTR -4[rbp]
	cmp	edx, eax
	ja	.L124
	mov	rdx, QWORD PTR cli[rip]
	mov	rax, QWORD PTR cli[rip]
	mov	ecx, DWORD PTR 520[rax]
	lea	esi, 1[rcx]
	mov	DWORD PTR 520[rax], esi
	mov	ecx, ecx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rdx+rcx*8], rax
	mov	eax, 0
	jmp	.L118
.L121:
	mov	eax, -12
.L118:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE33:
	.size	aos_cli_register_command, .-aos_cli_register_command
	.globl	aos_cli_unregister_command
	.type	aos_cli_unregister_command, @function
aos_cli_unregister_command:
.LFB34:
	.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	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L126
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L127
.L126:
	mov	eax, -22
	jmp	.L128
.L127:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L129
.L132:
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	cmp	QWORD PTR -24[rbp], rax
	jne	.L130
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR 520[rax]
	sub	edx, 1
	mov	DWORD PTR 520[rax], edx
	mov	rax, QWORD PTR cli[rip]
	mov	eax, DWORD PTR 520[rax]
	mov	edx, DWORD PTR -8[rbp]
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L131
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	edx, 0[0+rax*8]
	mov	rcx, QWORD PTR cli[rip]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	cdqe
	sal	rax, 3
	add	rax, rcx
	lea	rcx, 8[rax]
	mov	rsi, QWORD PTR cli[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	add	rax, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
.L131:
	mov	rax, QWORD PTR cli[rip]
	mov	rdx, QWORD PTR cli[rip]
	mov	edx, DWORD PTR 520[rdx]
	mov	edx, edx
	mov	QWORD PTR 8[rax+rdx*8], 0
	mov	eax, 0
	jmp	.L128
.L130:
	add	DWORD PTR -8[rbp], 1
.L129:
	mov	rax, QWORD PTR cli[rip]
	mov	edx, DWORD PTR 520[rax]
	mov	eax, DWORD PTR -8[rbp]
	cmp	edx, eax
	ja	.L132
	mov	eax, -12
.L128:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE34:
	.size	aos_cli_unregister_command, .-aos_cli_unregister_command
	.globl	aos_cli_register_commands
	.type	aos_cli_register_commands, @function
aos_cli_register_commands:
.LFB35:
	.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	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR cli[rip]
	test	rax, rax
	jne	.L134
	mov	eax, 1
	jmp	.L135
.L134:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L136
.L138:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 24[rax]
	mov	QWORD PTR -24[rbp], rdx
	mov	rdi, rax
	call	aos_cli_register_command
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L137
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L135
.L137:
	add	DWORD PTR -8[rbp], 1
.L136:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L138
	mov	eax, 0
.L135:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE35:
	.size	aos_cli_register_commands, .-aos_cli_register_commands
	.globl	aos_cli_unregister_commands
	.type	aos_cli_unregister_commands, @function
aos_cli_unregister_commands:
.LFB36:
	.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L140
.L143:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 24[rax]
	mov	QWORD PTR -24[rbp], rdx
	mov	rdi, rax
	call	aos_cli_unregister_command
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L141
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L142
.L141:
	add	DWORD PTR -8[rbp], 1
.L140:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L143
	mov	eax, 0
.L142:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE36:
	.size	aos_cli_unregister_commands, .-aos_cli_unregister_commands
	.globl	aos_cli_stop
	.type	aos_cli_stop, @function
aos_cli_stop:
.LFB37:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR cliexit[rip], 1
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE37:
	.size	aos_cli_stop, .-aos_cli_stop
	.section	.rodata
.LC48:
	.string	"cli"
	.align 8
.LC49:
	.string	"Error: Failed to create cli thread: %d\r\n"
	.text
	.globl	aos_cli_init
	.type	aos_cli_init, @function
aos_cli_init:
.LFB38:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 4120
	call	aos_malloc@PLT
	mov	QWORD PTR cli[rip], rax
	mov	rax, QWORD PTR cli[rip]
	test	rax, rax
	jne	.L147
	mov	eax, -12
	jmp	.L153
.L147:
	mov	rax, QWORD PTR cli[rip]
	mov	edx, 4120
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	esi, 8
	lea	rdi, built_ins[rip]
	call	aos_cli_register_commands
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L155
	lea	rax, -16[rbp]
	mov	r9d, 33
	mov	r8d, 2048
	mov	ecx, 0
	lea	rdx, cli_main[rip]
	lea	rsi, .LC48[rip]
	mov	rdi, rax
	call	aos_task_new_ext@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L151
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC49[rip]
	mov	eax, 0
	call	aos_cli_printf
	jmp	.L150
.L151:
	mov	rax, QWORD PTR cli[rip]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR cli[rip]
	mov	DWORD PTR 4[rax], 0
	call	log_cli_init@PLT
	mov	eax, 0
	jmp	.L153
.L155:
	nop
.L150:
	mov	rax, QWORD PTR cli[rip]
	test	rax, rax
	je	.L152
	mov	rax, QWORD PTR cli[rip]
	mov	rdi, rax
	call	aos_free@PLT
	mov	QWORD PTR cli[rip], 0
.L152:
	mov	eax, DWORD PTR -20[rbp]
.L153:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L154
	call	__stack_chk_fail@PLT
.L154:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE38:
	.size	aos_cli_init, .-aos_cli_init
	.globl	aos_cli_get_tag
	.type	aos_cli_get_tag, @function
aos_cli_get_tag:
.LFB39:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rax, esc_tag[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE39:
	.size	aos_cli_get_tag, .-aos_cli_get_tag
	.globl	aos_cli_printf
	.type	aos_cli_printf, @function
aos_cli_printf:
.LFB40:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 512
	mov	QWORD PTR -504[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L159
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L159:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	lea	rax, -448[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -488[rbp], 0
	movzx	eax, BYTE PTR esc_tag_len[rip]
	test	al, al
	je	.L160
	lea	rax, -448[rbp]
	lea	rsi, esc_tag[rip]
	mov	rdi, rax
	call	strcpy@PLT
	lea	rdi, esc_tag[rip]
	call	strlen@PLT
	mov	DWORD PTR -488[rbp], eax
.L160:
	mov	eax, DWORD PTR -488[rbp]
	cdqe
	lea	rdx, -448[rbp]
	add	rax, rdx
	mov	QWORD PTR -480[rbp], rax
	mov	DWORD PTR -472[rbp], 8
	mov	DWORD PTR -468[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -464[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -456[rbp], rax
	mov	eax, 256
	sub	eax, DWORD PTR -488[rbp]
	mov	esi, eax
	lea	rcx, -472[rbp]
	mov	rdx, QWORD PTR -504[rbp]
	mov	rax, QWORD PTR -480[rbp]
	mov	rdi, rax
	call	vsnprintf@PLT
	mov	DWORD PTR -484[rbp], eax
	cmp	DWORD PTR -484[rbp], 0
	jg	.L161
	mov	eax, 0
	jmp	.L163
.L161:
	lea	rax, -448[rbp]
	mov	rdi, rax
	call	cli_putstr
	mov	eax, 0
.L163:
	mov	rcx, QWORD PTR -184[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L164
	call	__stack_chk_fail@PLT
.L164:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE40:
	.size	aos_cli_printf, .-aos_cli_printf
	.globl	cli_putstr
	.type	cli_putstr, @function
cli_putstr:
.LFB41:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -64[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	BYTE PTR -64[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L166
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	rsi, QWORD PTR -72[rbp]
	lea	rax, -64[rbp]
	mov	ecx, 4294967295
	mov	rdi, rax
	call	hal_uart_send@PLT
.L166:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L168
	call	__stack_chk_fail@PLT
.L168:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE41:
	.size	cli_putstr, .-cli_putstr
	.globl	cli_getchar
	.type	cli_getchar, @function
cli_getchar:
.LFB42:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -76[rbp], -1
	mov	QWORD PTR -72[rbp], 0
	lea	rax, -64[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	BYTE PTR -64[rbp], 0
	lea	rdx, -72[rbp]
	mov	rsi, QWORD PTR -88[rbp]
	lea	rax, -64[rbp]
	mov	r8d, 4294967295
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	hal_uart_recv_II@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	jne	.L170
	mov	rax, QWORD PTR -72[rbp]
	cmp	rax, 1
	jne	.L170
	mov	eax, 1
	jmp	.L172
.L170:
	mov	eax, 0
.L172:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L173
	call	__stack_chk_fail@PLT
.L173:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE42:
	.size	cli_getchar, .-cli_getchar
	.local	argvall.0
	.comm	argvall.0,768,32
	.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	"165766740.c"
	.text
	.local	cli
	.comm	cli,4,4
	.local	cliexit
	.comm	cliexit,4,4
	.global	esc_tag
	.bss
	.align	2
	.type	esc_tag, %object
	.size	esc_tag, 64
esc_tag:
	.space	64
	.local	esc_tag_len
	.comm	esc_tag_len,1,1
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lookup_command, %function
lookup_command:
	@ 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	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L8:
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L2
.L3:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	b	.L6
.L4:
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	b	.L6
.L5:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #63
	bgt	.L7
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r2, [r3, #264]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L8
.L7:
	mov	r3, #0
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	cli
	.size	lookup_command, .-lookup_command
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\015\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	proc_onecmd, %function
proc_onecmd:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bgt	.L12
	mov	r3, #0
	b	.L13
.L12:
	ldr	r3, .L18
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L18+4
	bl	csp_printf
	ldr	r3, .L18+8
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	fflush
.L14:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r1, #46
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	sub	r3, r2, r3
	b	.L16
.L15:
	mov	r3, #0
.L16:
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	lookup_command
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L17
	mov	r3, #1
	b	.L13
.L17:
	ldr	r3, .L18
	ldr	r3, [r3]
	add	r3, r3, #528
	mov	r2, #2048
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-20]
	ldr	r4, [r3, #8]
	ldr	r3, .L18
	ldr	r3, [r3]
	add	r0, r3, #528
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mov	r1, #2048
	blx	r4
	ldr	r3, .L18
	ldr	r3, [r3]
	add	r3, r3, #528
	mov	r0, r3
	bl	cli_putstr
	mov	r3, #0
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	cli
	.word	.LC0
	.word	_impure_ptr
	.size	proc_onecmd, .-proc_onecmd
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_input, %function
handle_input:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	str	r0, [fp, #-64]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #40
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	mov	r3, #0
	str	r3, [fp, #-56]
	sub	r3, fp, #40
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r2, #384
	mov	r1, #0
	ldr	r0, .L53+4
	bl	memset
	sub	r3, fp, #40
	mov	r2, #24
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #60
	mov	r2, #4
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L41:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #59
	beq	.L21
	cmp	r3, #59
	bgt	.L22
	cmp	r3, #34
	beq	.L23
	cmp	r3, #34
	bgt	.L22
	cmp	r3, #0
	beq	.L24
	cmp	r3, #32
	beq	.L25
	b	.L22
.L24:
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L26
	mov	r3, #2
	b	.L46
.L26:
	ldrb	r3, [fp, #-60]
	orr	r3, r3, #4
	strb	r3, [fp, #-60]
	b	.L28
.L23:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	ble	.L29
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #92
	bne	.L29
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	ldr	r2, [fp, #-64]
	add	r4, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-64]
	add	r5, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	memcpy
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L28
.L29:
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L30
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L48
.L30:
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L31
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L31
	mov	r3, #2
	b	.L46
.L31:
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L32
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L32
	ldrb	r3, [fp, #-60]
	orr	r3, r3, #1
	strb	r3, [fp, #-60]
	ldrb	r3, [fp, #-60]
	orr	r3, r3, #2
	strb	r3, [fp, #-60]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-52]
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r1, [fp, #-64]
	add	r2, r1, r2
	ldr	r0, .L53+4
	ldr	r1, [fp, #-56]
	lsl	r1, r1, #4
	add	r3, r1, r3
	str	r2, [r0, r3, lsl #2]
	b	.L49
.L32:
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L49
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L49
	ldrb	r3, [fp, #-60]
	bic	r3, r3, #1
	strb	r3, [fp, #-60]
	ldrb	r3, [fp, #-60]
	bic	r3, r3, #2
	strb	r3, [fp, #-60]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L49
.L25:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	ble	.L34
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #92
	bne	.L34
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	ldr	r2, [fp, #-64]
	add	r4, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-64]
	add	r5, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	memcpy
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L28
.L34:
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L50
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L50
	ldrb	r3, [fp, #-60]
	bic	r3, r3, #1
	strb	r3, [fp, #-60]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L50
.L21:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	ble	.L36
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #92
	bne	.L36
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	ldr	r2, [fp, #-64]
	add	r4, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-64]
	add	r5, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	memcpy
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L28
.L36:
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L37
	mov	r3, #2
	b	.L46
.L37:
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L51
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L51
	ldrb	r3, [fp, #-60]
	bic	r3, r3, #1
	strb	r3, [fp, #-60]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #5
	bgt	.L51
	sub	r2, fp, #40
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-52]
	b	.L51
.L22:
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L52
	ldrb	r3, [fp, #-60]
	orr	r3, r3, #1
	strb	r3, [fp, #-60]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-52]
	str	r2, [r3]
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r1, [fp, #-64]
	add	r2, r1, r2
	ldr	r0, .L53+4
	ldr	r1, [fp, #-56]
	lsl	r1, r1, #4
	add	r3, r1, r3
	str	r2, [r0, r3, lsl #2]
	b	.L52
.L48:
	nop
	b	.L28
.L49:
	nop
	b	.L28
.L50:
	nop
	b	.L28
.L51:
	nop
	b	.L28
.L52:
	nop
.L28:
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #4
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L40
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #255
	bgt	.L40
	ldr	r3, [fp, #-56]
	cmp	r3, #5
	bgt	.L40
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	cmp	r3, #15
	ble	.L41
.L40:
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L42
	mov	r3, #2
	b	.L46
.L42:
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L43
.L45:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-28]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #6
	ldr	r1, .L53+4
	add	r3, r3, r1
	mov	r1, r3
	mov	r0, r2
	bl	proc_onecmd
	mov	r2, r0
	ldr	r3, [fp, #-44]
	orr	r3, r3, r2
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L43:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	bgt	.L44
	ldr	r3, [fp, #-48]
	cmp	r3, #5
	ble	.L45
.L44:
	ldr	r3, [fp, #-44]
.L46:
	ldr	r2, .L53
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC1
	.word	argvall.7980
	.size	handle_input, .-handle_input
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%s %s \000"
	.align	2
.LC3:
	.ascii	"%s \000"
	.align	2
.LC4:
	.ascii	"# \000"
	.align	2
.LC5:
	.ascii	"%s%s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tab_complete, %function
tab_complete:
	@ 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]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, .L64
	bl	aos_cli_printf
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L56
.L62:
	ldr	r3, .L64+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L57
	ldr	r3, .L64+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-24]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L58
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L59
	ldr	r3, .L64+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L58
.L59:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bne	.L60
	ldr	r3, .L64+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L64+8
	bl	aos_cli_printf
	b	.L58
.L60:
	ldr	r3, .L64+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L64+12
	bl	aos_cli_printf
.L58:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L57:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L56:
	ldr	r3, [fp, #-20]
	cmp	r3, #63
	bgt	.L61
	ldr	r3, .L64+4
	ldr	r3, [r3]
	ldr	r2, [r3, #264]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bhi	.L62
.L61:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L63
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L63
	ldr	r0, [fp, #-8]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	cmp	r3, #255
	bhi	.L63
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	add	r0, r2, r3
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r2, [fp, #-28]
	str	r1, [r2]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L63:
	ldr	r2, [fp, #-24]
	ldr	r1, .L64+16
	ldr	r0, .L64+20
	bl	aos_cli_printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	.LC0
	.word	cli
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	tab_complete, .-tab_complete
	.section	.rodata
	.align	2
.LC6:
	.ascii	"inbuf_null\015\012\000"
	.align	2
.LC7:
	.ascii	"\033%c\000"
	.align	2
.LC8:
	.ascii	"\033%c%c\000"
	.align	2
.LC9:
	.ascii	"\015\012# %s\000"
	.align	2
.LC10:
	.ascii	"Error: esc_tag buffer overflow\015\012\000"
	.align	2
.LC11:
	.ascii	"%s\000"
	.align	2
.LC12:
	.ascii	"%c %c\000"
	.align	2
.LC13:
	.ascii	"%c\000"
	.align	2
.LC14:
	.ascii	"Error: input buffer overflow\015\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_input, %function
get_input:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L93
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	mvn	r3, #0
	str	r3, [fp, #-24]
	mvn	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L67
	ldr	r0, .L93+4
	bl	aos_cli_printf
	mov	r3, #0
	b	.L91
.L67:
	ldr	r3, .L93+8
	ldr	r3, [r3]
	ldr	r3, [r3, #2580]
	add	r1, r3, #4
	ldr	r3, .L93+8
	ldr	r0, [r3]
	ldr	r3, .L93+12
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	str	r2, [r0, #2576]
	b	.L69
.L90:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L70
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L71
.L70:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #1
	b	.L91
.L71:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #27
	bne	.L72
	mov	r3, #1
	str	r3, [fp, #-28]
	mvn	r3, #0
	str	r3, [fp, #-24]
	mvn	r3, #0
	str	r3, [fp, #-20]
	b	.L69
.L72:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L73
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L74
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #91
	beq	.L69
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #27
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r3, .L93+8
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L76
	ldr	r1, [fp, #-24]
	ldr	r0, .L93+16
	bl	csp_printf
	ldr	r3, .L93+20
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	fflush
.L76:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L69
.L74:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L77
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #116
	bne	.L77
	ldr	r3, .L93+24
	mov	r2, #27
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	and	r2, r3, #255
	ldr	r3, .L93+24
	strb	r2, [r3, #1]
	ldr	r3, .L93+28
	mov	r2, #2
	strb	r2, [r3]
.L77:
	ldr	r3, [fp, #-20]
	cmp	r3, #65
	beq	.L78
	ldr	r3, [fp, #-20]
	cmp	r3, #66
	beq	.L78
	ldr	r3, [fp, #-20]
	cmp	r3, #116
	beq	.L78
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #27
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r3, .L93+8
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L79
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, .L93+32
	bl	csp_printf
	ldr	r3, .L93+20
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	fflush
.L79:
	ldr	r3, .L93+24
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L93+28
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L69
.L78:
	ldr	r3, [fp, #-20]
	cmp	r3, #65
	bne	.L80
	ldr	r3, .L93+8
	ldr	r2, [r3]
	ldr	r3, .L93+8
	ldr	r3, [r3]
	ldr	r3, [r3, #2576]
	lsl	r3, r3, #8
	add	r3, r3, #2576
	add	r3, r3, #8
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, .L93+8
	ldr	r3, [r3]
	ldr	r3, [r3, #2576]
	add	r1, r3, #4
	ldr	r3, .L93+8
	ldr	r0, [r3]
	ldr	r3, .L93+12
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	str	r2, [r0, #2576]
	mov	r2, #256
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-40]
	bl	strncpy
	ldr	r1, [fp, #-40]
	ldr	r0, .L93+36
	bl	csp_printf
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r3, .L93+24
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L93+28
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L69
.L80:
	ldr	r3, [fp, #-20]
	cmp	r3, #66
	bne	.L81
	ldr	r3, .L93+8
	ldr	r2, [r3]
	ldr	r3, .L93+8
	ldr	r3, [r3]
	ldr	r3, [r3, #2576]
	lsl	r3, r3, #8
	add	r3, r3, #2576
	add	r3, r3, #8
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, .L93+8
	ldr	r3, [r3]
	ldr	r3, [r3, #2576]
	add	r1, r3, #1
	ldr	r3, .L93+8
	ldr	r0, [r3]
	ldr	r3, .L93+12
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	str	r2, [r0, #2576]
	mov	r2, #256
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-40]
	bl	strncpy
	ldr	r1, [fp, #-40]
	ldr	r0, .L93+36
	bl	csp_printf
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r3, .L93+24
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L93+28
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L69
.L81:
	ldr	r3, .L93+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #63
	bls	.L82
	ldr	r3, .L93+24
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L93+28
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r0, .L93+40
	bl	csp_printf
	ldr	r3, .L93+20
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	fflush
	b	.L69
.L82:
	ldr	r3, .L93+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r2, r3, #1
	and	r1, r2, #255
	ldr	r2, .L93+28
	strb	r1, [r2]
	mov	r2, r3
	ldrb	r1, [fp, #-29]	@ zero_extendqisi2
	ldr	r3, .L93+24
	strb	r1, [r3, r2]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #109
	bne	.L69
	ldr	r3, .L93+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r2, r3, #1
	and	r1, r2, #255
	ldr	r2, .L93+28
	strb	r1, [r2]
	mov	r2, r3
	ldr	r3, .L93+24
	mov	r1, #0
	strb	r1, [r3, r2]
	ldr	r3, .L93+8
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L84
	ldr	r1, .L93+24
	ldr	r0, .L93+44
	bl	csp_printf
	ldr	r3, .L93+20
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	fflush
.L84:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L69
.L73:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	strb	r2, [r3]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #8
	beq	.L85
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #127
	bne	.L86
.L85:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L69
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r3, .L93+8
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L69
	mov	r2, #8
	mov	r1, #8
	ldr	r0, .L93+48
	bl	csp_printf
	ldr	r3, .L93+20
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	fflush
	b	.L69
.L86:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #9
	bne	.L88
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	tab_complete
	b	.L69
.L88:
	ldr	r3, .L93+8
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L89
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L93+52
	bl	csp_printf
	ldr	r3, .L93+20
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	fflush
.L89:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	cmp	r3, #255
	bls	.L69
	ldr	r0, .L93+56
	bl	aos_cli_printf
	ldr	r0, .L93+60
	bl	aos_cli_printf
	ldr	r3, [fp, #-44]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	b	.L91
.L69:
	sub	r3, fp, #29
	mov	r0, r3
	bl	cli_getchar
	mov	r3, r0
	cmp	r3, #1
	beq	.L90
	mov	r3, #0
.L91:
	ldr	r2, .L93
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L92
	bl	__stack_chk_fail
.L92:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L94:
	.align	2
.L93:
	.word	.LC15
	.word	.LC6
	.word	cli
	.word	1717986919
	.word	.LC7
	.word	_impure_ptr
	.word	esc_tag
	.word	esc_tag_len
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC4
	.size	get_input, .-get_input
	.section	.rodata
	.align	2
.LC16:
	.ascii	"command '%s' not found\015\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_bad_command, %function
print_bad_command:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L97
	ldr	r1, [fp, #-8]
	ldr	r0, .L98
	bl	aos_cli_printf
.L97:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L99:
	.align	2
.L98:
	.word	.LC16
	.size	print_bad_command, .-print_bad_command
	.section	.rodata
	.align	2
.LC17:
	.ascii	"syntax error\015\012\000"
	.align	2
.LC18:
	.ascii	"CLI exited\015\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cli_main, %function
cli_main:
	@ 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]
	b	.L101
.L105:
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L106
	ldr	r3, [r3]
	add	r2, r3, #272
	ldr	r3, .L106
	ldr	r3, [r3]
	add	r3, r3, #268
	mov	r1, r3
	mov	r0, r2
	bl	get_input
	mov	r3, r0
	cmp	r3, #0
	beq	.L101
	ldr	r3, .L106
	ldr	r3, [r3]
	add	r3, r3, #272
	str	r3, [fp, #-12]
	ldr	r3, .L106
	ldr	r3, [r3]
	add	r3, r3, #272
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L102
	ldr	r3, .L106
	ldr	r2, [r3]
	ldr	r3, .L106
	ldr	r3, [r3]
	ldr	r3, [r3, #2580]
	lsl	r3, r3, #8
	add	r3, r3, #2576
	add	r3, r3, #8
	add	r0, r2, r3
	ldr	r3, .L106
	ldr	r3, [r3]
	add	r3, r3, #272
	mov	r2, #256
	mov	r1, r3
	bl	strncpy
	ldr	r3, .L106
	ldr	r3, [r3]
	ldr	r3, [r3, #2580]
	add	r1, r3, #1
	ldr	r3, .L106
	ldr	r0, [r3]
	ldr	r3, .L106+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	str	r2, [r0, #2580]
.L102:
	ldr	r0, [fp, #-12]
	bl	handle_input
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L103
	ldr	r0, [fp, #-12]
	bl	print_bad_command
	b	.L104
.L103:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L104
	ldr	r0, .L106+8
	bl	aos_cli_printf
.L104:
	ldr	r0, .L106+12
	bl	aos_cli_printf
	ldr	r3, .L106+16
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L106+20
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, .L106+24
	bl	aos_cli_printf
.L101:
	ldr	r3, .L106+28
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L105
	ldr	r0, .L106+32
	bl	aos_cli_printf
	ldr	r3, .L106
	ldr	r3, [r3]
	mov	r0, r3
	bl	aos_free
	ldr	r3, .L106
	mov	r2, #0
	str	r2, [r3]
	mov	r0, #0
	bl	aos_task_exit
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L107:
	.align	2
.L106:
	.word	cli
	.word	1717986919
	.word	.LC17
	.word	.LC0
	.word	esc_tag
	.word	esc_tag_len
	.word	.LC4
	.word	cliexit
	.word	.LC18
	.size	cli_main, .-cli_main
	.section	.rodata
	.align	2
.LC19:
	.ascii	"help\000"
	.align	2
.LC20:
	.ascii	"echo\000"
	.align	2
.LC21:
	.ascii	"exit\000"
	.align	2
.LC22:
	.ascii	"CLI exit\000"
	.align	2
.LC23:
	.ascii	"devname\000"
	.align	2
.LC24:
	.ascii	"print device name\000"
	.align	2
.LC25:
	.ascii	"sysver\000"
	.align	2
.LC26:
	.ascii	"reboot\000"
	.align	2
.LC27:
	.ascii	"reboot system\000"
	.align	2
.LC28:
	.ascii	"time\000"
	.align	2
.LC29:
	.ascii	"system time\000"
	.align	2
.LC30:
	.ascii	"ota\000"
	.align	2
.LC31:
	.ascii	"system ota\000"
	.align	2
	.type	built_ins, %object
	.size	built_ins, 96
built_ins:
	.word	.LC19
	.word	0
	.word	help_cmd
	.word	.LC20
	.word	0
	.word	echo_cmd
	.word	.LC21
	.word	.LC22
	.word	exit_cmd
	.word	.LC23
	.word	.LC24
	.word	devname_cmd
	.word	.LC25
	.word	0
	.word	version_cmd
	.word	.LC26
	.word	.LC27
	.word	reboot_cmd
	.word	.LC28
	.word	.LC29
	.word	uptime_cmd
	.word	.LC30
	.word	.LC31
	.word	ota_cmd
	.align	2
.LC32:
	.ascii	"====Build-in Commands====\015\012\000"
	.align	2
.LC33:
	.ascii	"====Support six cmds once, seperate by ; ====\015\012"
	.ascii	"\000"
	.align	2
.LC34:
	.ascii	"\000"
	.align	2
.LC35:
	.ascii	"%s: %s\015\012\000"
	.align	2
.LC36:
	.ascii	"====User Commands====\015\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	help_cmd, %function
help_cmd:
	@ 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]
	str	r3, [fp, #-36]
	mov	r3, #8
	str	r3, [fp, #-8]
	ldr	r0, .L116
	bl	aos_cli_printf
	ldr	r0, .L116+4
	bl	aos_cli_printf
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L109
.L114:
	ldr	r3, .L116+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L110
	ldr	r3, .L116+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r1, [r3]
	ldr	r3, .L116+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L111
	ldr	r3, .L116+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3, #4]
	b	.L112
.L111:
	ldr	r3, .L116+12
.L112:
	mov	r2, r3
	ldr	r0, .L116+16
	bl	aos_cli_printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L110
	ldr	r0, .L116+20
	bl	aos_cli_printf
	ldr	r0, .L116+24
	bl	aos_cli_printf
.L110:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L109:
	ldr	r3, [fp, #-16]
	cmp	r3, #63
	bgt	.L115
	ldr	r3, .L116+8
	ldr	r3, [r3]
	ldr	r2, [r3, #264]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bhi	.L114
.L115:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L117:
	.align	2
.L116:
	.word	.LC32
	.word	.LC33
	.word	cli
	.word	.LC34
	.word	.LC35
	.word	.LC0
	.word	.LC36
	.size	help_cmd, .-help_cmd
	.section	.rodata
	.align	2
.LC37:
	.ascii	"kernel version :%d\015\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	version_cmd, %function
version_cmd:
	@ 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]
	str	r3, [fp, #-20]
	bl	krhino_version_get
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L119
	bl	aos_cli_printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L120:
	.align	2
.L119:
	.word	.LC37
	.size	version_cmd, .-version_cmd
	.section	.rodata
	.align	2
.LC38:
	.ascii	"Disabled\000"
	.align	2
.LC39:
	.ascii	"Enabled\000"
	.align	2
.LC40:
	.ascii	"Usage: echo on/off. Echo is currently %s\015\012\000"
	.align	2
.LC41:
	.ascii	"on\000"
	.align	2
.LC42:
	.ascii	"Enable echo\015\012\000"
	.align	2
.LC43:
	.ascii	"off\000"
	.align	2
.LC44:
	.ascii	"Disable echo\015\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	echo_cmd, %function
echo_cmd:
	@ 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]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L122
	ldr	r3, .L127
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L123
	ldr	r3, .L127+4
	b	.L124
.L123:
	ldr	r3, .L127+8
.L124:
	mov	r1, r3
	ldr	r0, .L127+12
	bl	aos_cli_printf
	b	.L121
.L122:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L127+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L126
	ldr	r0, .L127+20
	bl	aos_cli_printf
	ldr	r3, .L127
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	b	.L121
.L126:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L127+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L121
	ldr	r0, .L127+28
	bl	aos_cli_printf
	ldr	r3, .L127
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3, #4]
.L121:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L128:
	.align	2
.L127:
	.word	cli
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.size	echo_cmd, .-echo_cmd
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	exit_cmd, %function
exit_cmd:
	@ 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]
	str	r3, [fp, #-20]
	ldr	r3, .L131
	mov	r2, #1
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L132:
	.align	2
.L131:
	.word	cliexit
	.size	exit_cmd, .-exit_cmd
	.section	.rodata
	.align	2
.LC45:
	.ascii	"pca10056\000"
	.align	2
.LC46:
	.ascii	"device name: %s\015\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	devname_cmd, %function
devname_cmd:
	@ 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]
	str	r3, [fp, #-20]
	ldr	r1, .L134
	ldr	r0, .L134+4
	bl	aos_cli_printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L135:
	.align	2
.L134:
	.word	.LC45
	.word	.LC46
	.size	devname_cmd, .-devname_cmd
	.section	.rodata
	.align	2
.LC47:
	.ascii	"reboot\015\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	reboot_cmd, %function
reboot_cmd:
	@ 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]
	str	r3, [fp, #-20]
	ldr	r0, .L137
	bl	aos_cli_printf
	bl	hal_reboot
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L138:
	.align	2
.L137:
	.word	.LC47
	.size	reboot_cmd, .-reboot_cmd
	.section	.rodata
	.align	2
.LC48:
	.ascii	"UP time %ld ms\015\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uptime_cmd, %function
uptime_cmd:
	@ 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]
	str	r3, [fp, #-20]
	bl	aos_now_ms
	mov	r2, r0
	mov	r3, r1
	mov	r3, r2
	mov	r1, r3
	ldr	r0, .L140
	bl	aos_cli_printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L141:
	.align	2
.L140:
	.word	.LC48
	.size	uptime_cmd, .-uptime_cmd
	.align	2
	.global	tftp_ota_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	tftp_ota_thread, %function
tftp_ota_thread:
	@ 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]
	mov	r0, #0
	bl	aos_task_exit
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	tftp_ota_thread, .-tftp_ota_thread
	.section	.rodata
	.align	2
.LC49:
	.ascii	"LOCAL OTA\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ota_cmd, %function
ota_cmd:
	@ 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]
	str	r3, [fp, #-20]
	mov	r3, #4096
	mov	r2, #0
	ldr	r1, .L144
	ldr	r0, .L144+4
	bl	aos_task_new
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L145:
	.align	2
.L144:
	.word	tftp_ota_thread
	.word	.LC49
	.size	ota_cmd, .-ota_cmd
	.align	2
	.global	aos_cli_register_command
	.syntax unified
	.arm
	.fpu softvfp
	.type	aos_cli_register_command, %function
aos_cli_register_command:
	@ 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, .L155
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L147
	mov	r3, #1
	b	.L148
.L147:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L149
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L150
.L149:
	mvn	r3, #21
	b	.L148
.L150:
	ldr	r3, .L155
	ldr	r3, [r3]
	ldr	r3, [r3, #264]
	cmp	r3, #63
	bhi	.L151
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L152
.L154:
	ldr	r3, .L155
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L153
	mov	r3, #0
	b	.L148
.L153:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L152:
	ldr	r3, .L155
	ldr	r3, [r3]
	ldr	r2, [r3, #264]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L154
	ldr	r3, .L155
	ldr	r1, [r3]
	ldr	r3, .L155
	ldr	r2, [r3]
	ldr	r3, [r2, #264]
	add	r0, r3, #1
	str	r0, [r2, #264]
	add	r3, r3, #2
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	mov	r3, #0
	b	.L148
.L151:
	mvn	r3, #11
.L148:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L156:
	.align	2
.L155:
	.word	cli
	.size	aos_cli_register_command, .-aos_cli_register_command
	.align	2
	.global	aos_cli_unregister_command
	.syntax unified
	.arm
	.fpu softvfp
	.type	aos_cli_unregister_command, %function
aos_cli_unregister_command:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L158
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L159
.L158:
	mvn	r3, #21
	b	.L160
.L159:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L161
.L164:
	ldr	r3, .L165
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L162
	ldr	r3, .L165
	ldr	r3, [r3]
	ldr	r2, [r3, #264]
	sub	r2, r2, #1
	str	r2, [r3, #264]
	ldr	r3, .L165
	ldr	r3, [r3]
	ldr	r2, [r3, #264]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L163
	ldr	r3, .L165
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, .L165
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r1, r2, r3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	mov	r2, r3
	bl	memmove
.L163:
	ldr	r3, .L165
	ldr	r3, [r3]
	ldr	r2, .L165
	ldr	r2, [r2]
	ldr	r2, [r2, #264]
	add	r2, r2, #2
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	mov	r3, #0
	b	.L160
.L162:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L161:
	ldr	r3, .L165
	ldr	r3, [r3]
	ldr	r2, [r3, #264]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bhi	.L164
	mvn	r3, #11
.L160:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L166:
	.align	2
.L165:
	.word	cli
	.size	aos_cli_unregister_command, .-aos_cli_unregister_command
	.align	2
	.global	aos_cli_register_commands
	.syntax unified
	.arm
	.fpu softvfp
	.type	aos_cli_register_commands, %function
aos_cli_register_commands:
	@ 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]
	ldr	r3, .L173
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L168
	mov	r3, #1
	b	.L169
.L168:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L170
.L172:
	ldr	r3, [fp, #-16]
	add	r2, r3, #12
	str	r2, [fp, #-16]
	mov	r0, r3
	bl	aos_cli_register_command
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L171
	ldr	r3, [fp, #-8]
	b	.L169
.L171:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L170:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L172
	mov	r3, #0
.L169:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L174:
	.align	2
.L173:
	.word	cli
	.size	aos_cli_register_commands, .-aos_cli_register_commands
	.align	2
	.global	aos_cli_unregister_commands
	.syntax unified
	.arm
	.fpu softvfp
	.type	aos_cli_unregister_commands, %function
aos_cli_unregister_commands:
	@ 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	r3, #0
	str	r3, [fp, #-12]
	b	.L176
.L179:
	ldr	r3, [fp, #-16]
	add	r2, r3, #12
	str	r2, [fp, #-16]
	mov	r0, r3
	bl	aos_cli_unregister_command
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L177
	ldr	r3, [fp, #-8]
	b	.L178
.L177:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L176:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L179
	mov	r3, #0
.L178:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	aos_cli_unregister_commands, .-aos_cli_unregister_commands
	.align	2
	.global	aos_cli_stop
	.syntax unified
	.arm
	.fpu softvfp
	.type	aos_cli_stop, %function
aos_cli_stop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L182
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L183:
	.align	2
.L182:
	.word	cliexit
	.size	aos_cli_stop, .-aos_cli_stop
	.section	.rodata
	.align	2
.LC50:
	.ascii	"cli\000"
	.align	2
.LC51:
	.ascii	"Error: Failed to create cli thread: %d\015\012\000"
	.align	2
.LC52:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	aos_cli_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	aos_cli_init, %function
aos_cli_init:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L194
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L194+4
	bl	aos_malloc
	mov	r3, r0
	ldr	r2, .L194+8
	str	r3, [r2]
	ldr	r3, .L194+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L185
	mvn	r3, #11
	b	.L191
.L185:
	ldr	r3, .L194+8
	ldr	r3, [r3]
	ldr	r2, .L194+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r1, #8
	ldr	r0, .L194+12
	bl	aos_cli_register_commands
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L193
	sub	r0, fp, #16
	mov	r3, #33
	str	r3, [sp, #4]
	mov	r3, #2048
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L194+16
	ldr	r1, .L194+20
	bl	aos_task_new_ext
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L189
	ldr	r1, [fp, #-12]
	ldr	r0, .L194+24
	bl	aos_cli_printf
	b	.L188
.L189:
	ldr	r3, .L194+8
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L194+8
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	bl	log_cli_init
	mov	r3, #0
	b	.L191
.L193:
	nop
.L188:
	ldr	r3, .L194+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L190
	ldr	r3, .L194+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	aos_free
	ldr	r3, .L194+8
	mov	r2, #0
	str	r2, [r3]
.L190:
	ldr	r3, [fp, #-12]
.L191:
	ldr	r2, .L194
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L192
	bl	__stack_chk_fail
.L192:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L195:
	.align	2
.L194:
	.word	.LC52
	.word	3864
	.word	cli
	.word	built_ins
	.word	cli_main
	.word	.LC50
	.word	.LC51
	.size	aos_cli_init, .-aos_cli_init
	.align	2
	.global	aos_cli_get_tag
	.syntax unified
	.arm
	.fpu softvfp
	.type	aos_cli_get_tag, %function
aos_cli_get_tag:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L198
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L199:
	.align	2
.L198:
	.word	esc_tag
	.size	aos_cli_get_tag, .-aos_cli_get_tag
	.section	.rodata
	.align	2
.LC53:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	aos_cli_printf
	.syntax unified
	.arm
	.fpu softvfp
	.type	aos_cli_printf, %function
aos_cli_printf:
	@ args = 4, pretend = 16, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	ldr	r3, [fp, #4]
	str	r3, [fp, #-288]
	ldr	r3, .L206
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-276]
	ldr	r3, .L206+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L201
	sub	r3, fp, #264
	ldr	r1, .L206+8
	mov	r0, r3
	bl	strcpy
	ldr	r0, .L206+8
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-276]
.L201:
	ldr	r3, [fp, #-276]
	sub	r2, fp, #264
	add	r3, r2, r3
	str	r3, [fp, #-272]
	add	r3, fp, #8
	str	r3, [fp, #-280]
	ldr	r3, [fp, #-276]
	rsb	r3, r3, #256
	mov	r1, r3
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-288]
	ldr	r0, [fp, #-272]
	bl	vsnprintf
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bgt	.L202
	mov	r3, #0
	b	.L204
.L202:
	sub	r3, fp, #264
	mov	r0, r3
	bl	cli_putstr
	mov	r3, #0
.L204:
	ldr	r2, .L206
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L205
	bl	__stack_chk_fail
.L205:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L207:
	.align	2
.L206:
	.word	.LC53
	.word	esc_tag_len
	.word	esc_tag
	.size	aos_cli_printf, .-aos_cli_printf
	.section	.rodata
	.align	2
.LC54:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cli_putstr
	.syntax unified
	.arm
	.fpu softvfp
	.type	cli_putstr, %function
cli_putstr:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldr	r3, .L212
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	strb	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L209
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r2, r0
	sub	r0, fp, #40
	mvn	r3, #0
	ldr	r1, [fp, #-48]
	bl	hal_uart_send
.L209:
	mov	r3, #0
	ldr	r2, .L212
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L211
	bl	__stack_chk_fail
.L211:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L213:
	.align	2
.L212:
	.word	.LC54
	.size	cli_putstr, .-cli_putstr
	.section	.rodata
	.align	2
.LC55:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cli_getchar
	.syntax unified
	.arm
	.fpu softvfp
	.type	cli_getchar, %function
cli_getchar:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	ldr	r3, .L219
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-48]
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	strb	r3, [fp, #-40]
	sub	r3, fp, #48
	sub	r0, fp, #40
	mvn	r2, #0
	str	r2, [sp]
	mov	r2, #1
	ldr	r1, [fp, #-56]
	bl	hal_uart_recv_II
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L215
	ldr	r3, [fp, #-48]
	cmp	r3, #1
	bne	.L215
	mov	r3, #1
	b	.L217
.L215:
	mov	r3, #0
.L217:
	ldr	r2, .L219
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L218
	bl	__stack_chk_fail
.L218:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L220:
	.align	2
.L219:
	.word	.LC55
	.size	cli_getchar, .-cli_getchar
	.local	argvall.7980
	.comm	argvall.7980,384,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
