	.file	"961453.c"
	.intel_syntax noprefix
	.text
	.type	aos_cli_register_commands, @function
aos_cli_register_commands:
.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	aos_cli_register_commands, .-aos_cli_register_commands
	.type	aos_get_log_level, @function
aos_get_log_level:
.LFB22:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR aos_log_level[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	aos_get_log_level, .-aos_get_log_level
	.globl	aos_log_level
	.data
	.align 4
	.type	aos_log_level, @object
	.size	aos_log_level, 4
aos_log_level:
	.long	31
	.globl	log_mutex
	.bss
	.align 8
	.type	log_mutex, @object
	.size	log_mutex, 8
log_mutex:
	.zero	8
	.text
	.weak	csp_printf
	.type	csp_printf, @function
csp_printf:
.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, 240
	mov	QWORD PTR -232[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	.L6
	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
.L6:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	esi, -1
	lea	rdi, log_mutex[rip]
	call	aos_mutex_lock@PLT
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], 0
	jne	.L7
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	vprintf@PLT
	mov	DWORD PTR -212[rbp], eax
	mov	rax, QWORD PTR _impure_ptr[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	fflush@PLT
.L7:
	lea	rdi, log_mutex[rip]
	call	aos_mutex_unlock@PLT
	mov	eax, DWORD PTR -212[rbp]
	mov	rcx, QWORD PTR -184[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	csp_printf, .-csp_printf
	.globl	aos_set_log_level
	.type	aos_set_log_level, @function
aos_set_log_level:
.LFB24:
	.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 -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	cmp	DWORD PTR -20[rbp], 5
	ja	.L20
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L13[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L13[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L13:
	.long	.L21-.L13
	.long	.L17-.L13
	.long	.L16-.L13
	.long	.L15-.L13
	.long	.L14-.L13
	.long	.L12-.L13
	.text
.L12:
	or	DWORD PTR -4[rbp], 16
.L14:
	or	DWORD PTR -4[rbp], 8
.L15:
	or	DWORD PTR -4[rbp], 4
.L16:
	or	DWORD PTR -4[rbp], 2
.L17:
	or	DWORD PTR -4[rbp], 1
	jmp	.L19
.L20:
	nop
	jmp	.L19
.L21:
	nop
.L19:
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR aos_log_level[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	aos_set_log_level, .-aos_set_log_level
	.section	.rodata
.LC0:
	.string	"fatal"
.LC1:
	.string	"error"
.LC2:
	.string	"warn"
.LC3:
	.string	"info"
.LC4:
	.string	"debug"
.LC5:
	.string	"log level : %02x\r\n"
.LC6:
	.string	"set log level success\r\n"
.LC7:
	.string	"set log level fail\r\n"
	.text
	.type	log_cmd, @function
log_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, 112
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	DWORD PTR -96[rbp], edx
	mov	QWORD PTR -104[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	lea	rax, .LC0[rip]
	mov	QWORD PTR -56[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -24[rbp], rax
	cmp	DWORD PTR -96[rbp], 1
	jg	.L23
	call	aos_get_log_level
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	csp_printf
	jmp	.L22
.L23:
	mov	DWORD PTR -68[rbp], 0
	jmp	.L25
.L27:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	rax, QWORD PTR -64[rbp+rax*8]
	mov	rdi, rax
	call	strlen@PLT
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	rax, QWORD PTR -64[rbp+rax*8]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L26
	add	DWORD PTR -68[rbp], 1
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	aos_set_log_level
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	csp_printf
	jmp	.L22
.L25:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, 5
	jbe	.L27
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	csp_printf
.L22:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	log_cmd, .-log_cmd
	.globl	log_cli_cmd
	.section	.rodata
.LC8:
	.string	"loglevel"
.LC9:
	.string	"set log level"
	.section	.data.rel.local,"aw"
	.align 16
	.type	log_cli_cmd, @object
	.size	log_cli_cmd, 24
log_cli_cmd:
	.quad	.LC8
	.quad	.LC9
	.quad	log_cmd
	.text
	.globl	log_cli_init
	.type	log_cli_init, @function
log_cli_init:
.LFB26:
	.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 aos_log_level[rip], 31
	mov	esi, 1
	lea	rdi, log_cli_cmd[rip]
	call	aos_cli_register_commands
	lea	rdi, log_mutex[rip]
	call	aos_mutex_new@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	log_cli_init, .-log_cli_init
	.globl	log_no_cli_init
	.type	log_no_cli_init, @function
log_no_cli_init:
.LFB27:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, log_mutex[rip]
	call	aos_mutex_new@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	log_no_cli_init, .-log_no_cli_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	"961453.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aos_cli_register_commands, %function
aos_cli_register_commands:
	@ 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]
	str	r1, [fp, #-12]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	aos_cli_register_commands, .-aos_cli_register_commands
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aos_get_log_level, %function
aos_get_log_level:
	@ 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, .L5
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	aos_log_level
	.size	aos_get_log_level, .-aos_get_log_level
	.global	aos_log_level
	.data
	.align	2
	.type	aos_log_level, %object
	.size	aos_log_level, 4
aos_log_level:
	.word	31
	.comm	log_mutex,4,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.weak	csp_printf
	.syntax unified
	.arm
	.fpu softvfp
	.type	csp_printf, %function
csp_printf:
	@ args = 4, pretend = 16, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, [fp, #4]
	str	r3, [fp, #-24]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r1, #0
	ldr	r0, .L11+4
	bl	aos_mutex_lock
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L8
	add	r3, fp, #8
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	vprintf
	str	r0, [fp, #-12]
	ldr	r3, .L11+8
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	fflush
.L8:
	ldr	r0, .L11+4
	bl	aos_mutex_unlock
	ldr	r3, [fp, #-12]
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	log_mutex
	.word	_impure_ptr
	.size	csp_printf, .-csp_printf
	.align	2
	.global	aos_set_log_level
	.syntax unified
	.arm
	.fpu softvfp
	.type	aos_set_log_level, %function
aos_set_log_level:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L23
.L16:
	.word	.L23
	.word	.L20
	.word	.L19
	.word	.L18
	.word	.L17
	.word	.L15
.L15:
	ldr	r3, [fp, #-8]
	orr	r3, r3, #16
	str	r3, [fp, #-8]
.L17:
	ldr	r3, [fp, #-8]
	orr	r3, r3, #8
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-8]
	orr	r3, r3, #4
	str	r3, [fp, #-8]
.L19:
	ldr	r3, [fp, #-8]
	orr	r3, r3, #2
	str	r3, [fp, #-8]
.L20:
	ldr	r3, [fp, #-8]
	orr	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L22
.L23:
	nop
.L22:
	ldr	r2, .L24
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L25:
	.align	2
.L24:
	.word	aos_log_level
	.size	aos_set_log_level, .-aos_set_log_level
	.section	.rodata
	.align	2
.LC1:
	.ascii	"fatal\000"
	.align	2
.LC2:
	.ascii	"error\000"
	.align	2
.LC3:
	.ascii	"warn\000"
	.align	2
.LC4:
	.ascii	"info\000"
	.align	2
.LC5:
	.ascii	"debug\000"
	.align	2
.LC6:
	.ascii	"log level : %02x\015\012\000"
	.align	2
.LC7:
	.ascii	"set log level success\015\012\000"
	.align	2
.LC8:
	.ascii	"set log level fail\015\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	log_cmd, %function
log_cmd:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r3, .L34
	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]
	ldr	r3, .L34+4
	str	r3, [fp, #-36]
	ldr	r3, .L34+8
	str	r3, [fp, #-32]
	ldr	r3, .L34+12
	str	r3, [fp, #-28]
	ldr	r3, .L34+16
	str	r3, [fp, #-24]
	ldr	r3, .L34+20
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	bgt	.L27
	bl	aos_get_log_level
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L34+24
	bl	csp_printf
	b	.L26
.L27:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L29
.L31:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r4, [r3, #-28]
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r5, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-28]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L29
.L30:
	ldr	r3, [fp, #-44]
	mov	r0, r3
	bl	aos_set_log_level
	ldr	r0, .L34+28
	bl	csp_printf
	b	.L26
.L29:
	ldr	r3, [fp, #-44]
	cmp	r3, #5
	bls	.L31
	ldr	r0, .L34+32
	bl	csp_printf
.L26:
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC9
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	log_cmd, .-log_cmd
	.global	log_cli_cmd
	.section	.rodata
	.align	2
.LC10:
	.ascii	"loglevel\000"
	.align	2
.LC11:
	.ascii	"set log level\000"
	.data
	.align	2
	.type	log_cli_cmd, %object
	.size	log_cli_cmd, 12
log_cli_cmd:
	.word	.LC10
	.word	.LC11
	.word	log_cmd
	.text
	.align	2
	.global	log_cli_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	log_cli_init, %function
log_cli_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L37
	mov	r2, #31
	str	r2, [r3]
	mov	r1, #1
	ldr	r0, .L37+4
	bl	aos_cli_register_commands
	ldr	r0, .L37+8
	bl	aos_mutex_new
	nop
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	aos_log_level
	.word	log_cli_cmd
	.word	log_mutex
	.size	log_cli_init, .-log_cli_init
	.align	2
	.global	log_no_cli_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	log_no_cli_init, %function
log_no_cli_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L40
	bl	aos_mutex_new
	nop
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	log_mutex
	.size	log_no_cli_init, .-log_no_cli_init
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
