	.file	"218412.c"
	.intel_syntax noprefix
	.text
	.globl	wifi_debug_cmd
	.type	wifi_debug_cmd, @function
wifi_debug_cmd:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	mov	edi, 0
	call	hal_wifi_start_debug_mode@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	wifi_debug_cmd, .-wifi_debug_cmd
	.type	hex, @function
hex:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 47
	jle	.L3
	cmp	BYTE PTR -4[rbp], 57
	jg	.L3
	movzx	eax, BYTE PTR -4[rbp]
	sub	eax, 48
	jmp	.L4
.L3:
	cmp	BYTE PTR -4[rbp], 96
	jle	.L5
	cmp	BYTE PTR -4[rbp], 122
	jg	.L5
	movzx	eax, BYTE PTR -4[rbp]
	sub	eax, 87
	jmp	.L4
.L5:
	cmp	BYTE PTR -4[rbp], 64
	jle	.L6
	cmp	BYTE PTR -4[rbp], 90
	jg	.L6
	movzx	eax, BYTE PTR -4[rbp]
	sub	eax, 55
	jmp	.L4
.L6:
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	hex, .-hex
	.type	hexstr2bin, @function
hexstr2bin:
.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, 40
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, eax
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	hex
	mov	edx, DWORD PTR -4[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rcx
	sal	eax, 4
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -4[rbp]
	add	eax, eax
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	hex
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rsi
	or	edx, ecx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -4[rbp], 1
.L8:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jge	.L11
	mov	eax, DWORD PTR -4[rbp]
	add	eax, eax
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L10
.L11:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	hexstr2bin, .-hexstr2bin
	.section	.rodata
	.align 8
.LC0:
	.string	"MAC address: %02x-%02x-%02x-%02x-%02x-%02x\r\n"
	.align 8
.LC1:
	.string	"Set MAC address: %02x-%02x-%02x-%02x-%02x-%02x\r\n"
.LC2:
	.string	"invalid cmd\r\n"
	.text
	.globl	mac_cmd
	.type	mac_cmd, @function
mac_cmd:
.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, 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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -32[rbp], 1
	jne	.L13
	lea	rax, -14[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	hal_wifi_get_mac_addr@PLT
	movzx	eax, BYTE PTR -9[rbp]
	movzx	esi, al
	movzx	eax, BYTE PTR -10[rbp]
	movzx	r8d, al
	movzx	eax, BYTE PTR -11[rbp]
	movzx	edi, al
	movzx	eax, BYTE PTR -12[rbp]
	movzx	ecx, al
	movzx	eax, BYTE PTR -13[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -14[rbp]
	movzx	eax, al
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	aos_cli_printf@PLT
	add	rsp, 16
	jmp	.L17
.L13:
	cmp	DWORD PTR -32[rbp], 2
	jne	.L15
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -14[rbp]
	mov	edx, 6
	mov	rsi, rcx
	mov	rdi, rax
	call	hexstr2bin
	lea	rax, -14[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	hal_wifi_set_mac_addr@PLT
	movzx	eax, BYTE PTR -9[rbp]
	movzx	esi, al
	movzx	eax, BYTE PTR -10[rbp]
	movzx	r8d, al
	movzx	eax, BYTE PTR -11[rbp]
	movzx	edi, al
	movzx	eax, BYTE PTR -12[rbp]
	movzx	ecx, al
	movzx	eax, BYTE PTR -13[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -14[rbp]
	movzx	eax, al
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	aos_cli_printf@PLT
	add	rsp, 16
	jmp	.L17
.L15:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	aos_cli_printf@PLT
.L17:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	mac_cmd, .-mac_cmd
	.globl	wifi_cli_cmd
	.section	.rodata
.LC3:
	.string	"wifi_debug"
.LC4:
	.string	"wifi debug mode"
.LC5:
	.string	"mac"
.LC6:
	.string	"get/set mac"
	.section	.data.rel.local,"aw"
	.align 32
	.type	wifi_cli_cmd, @object
	.size	wifi_cli_cmd, 48
wifi_cli_cmd:
	.quad	.LC3
	.quad	.LC4
	.quad	wifi_debug_cmd
	.quad	.LC5
	.quad	.LC6
	.quad	mac_cmd
	.text
	.globl	hal_wifi_cli_init
	.type	hal_wifi_cli_init, @function
hal_wifi_cli_init:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 2
	lea	rdi, wifi_cli_cmd[rip]
	call	aos_cli_register_commands@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	hal_wifi_cli_init, .-hal_wifi_cli_init
	.globl	cli_service_init
	.type	cli_service_init, @function
cli_service_init:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 16[rax]
	test	al, al
	je	.L22
	call	aos_cli_init@PLT
	call	dumpsys_cli_init@PLT
	call	hal_wifi_cli_init
	nop
.L22:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	cli_service_init, .-cli_service_init
	.globl	aos_kernel_init
	.type	aos_kernel_init, @function
aos_kernel_init:
.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
	call	vfs_init@PLT
	call	vfs_device_init@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	cli_service_init
	call	aos_loop_init@PLT
	call	trace_start@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rsi, rdx
	mov	edi, eax
	call	application_start@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	aos_kernel_init, .-aos_kernel_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	"218412.c"
	.text
	.align	2
	.global	wifi_debug_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	wifi_debug_cmd, %function
wifi_debug_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	r0, #0
	bl	hal_wifi_start_debug_mode
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	wifi_debug_cmd, .-wifi_debug_cmd
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hex, %function
hex:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L3
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L3
	ldrb	r3, [fp, #-5]
	sub	r3, r3, #48
	and	r3, r3, #255
	b	.L4
.L3:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L5
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L5
	ldrb	r3, [fp, #-5]
	sub	r3, r3, #87
	and	r3, r3, #255
	b	.L4
.L5:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L6
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L6
	ldrb	r3, [fp, #-5]
	sub	r3, r3, #55
	and	r3, r3, #255
	b	.L4
.L6:
	mov	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	hex, .-hex
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hexstr2bin, %function
hexstr2bin:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L8
.L10:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	hex
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	lsl	r2, r1, #4
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	hex
	mov	r3, r0
	mov	r0, r3
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	orr	r2, r0, r2
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L11
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L10
.L11:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	hexstr2bin, .-hexstr2bin
	.section	.rodata
	.align	2
.LC0:
	.ascii	"MAC address: %02x-%02x-%02x-%02x-%02x-%02x\015\012\000"
	.align	2
.LC1:
	.ascii	"Set MAC address: %02x-%02x-%02x-%02x-%02x-%02x\015\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"invalid cmd\015\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mac_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	mac_cmd, %function
mac_cmd:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L13
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #0
	bl	hal_wifi_get_mac_addr
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	mov	r0, r3
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	mov	ip, r3
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	mov	lr, r3
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	ldrb	r2, [fp, #-12]	@ zero_extendqisi2
	ldrb	r1, [fp, #-11]	@ zero_extendqisi2
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L18+4
	bl	aos_cli_printf
	b	.L17
.L13:
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bne	.L15
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r1, fp, #16
	mov	r2, #6
	mov	r0, r3
	bl	hexstr2bin
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #0
	bl	hal_wifi_set_mac_addr
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	mov	r0, r3
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	mov	ip, r3
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	mov	lr, r3
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	ldrb	r2, [fp, #-12]	@ zero_extendqisi2
	ldrb	r1, [fp, #-11]	@ zero_extendqisi2
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L18+8
	bl	aos_cli_printf
	b	.L17
.L15:
	ldr	r0, .L18+12
	bl	aos_cli_printf
.L17:
	nop
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	mac_cmd, .-mac_cmd
	.global	wifi_cli_cmd
	.section	.rodata
	.align	2
.LC4:
	.ascii	"wifi_debug\000"
	.align	2
.LC5:
	.ascii	"wifi debug mode\000"
	.align	2
.LC6:
	.ascii	"mac\000"
	.align	2
.LC7:
	.ascii	"get/set mac\000"
	.data
	.align	2
	.type	wifi_cli_cmd, %object
	.size	wifi_cli_cmd, 24
wifi_cli_cmd:
	.word	.LC4
	.word	.LC5
	.word	wifi_debug_cmd
	.word	.LC6
	.word	.LC7
	.word	mac_cmd
	.text
	.align	2
	.global	hal_wifi_cli_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	hal_wifi_cli_init, %function
hal_wifi_cli_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r1, #2
	ldr	r0, .L21
	bl	aos_cli_register_commands
	nop
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	wifi_cli_cmd
	.size	hal_wifi_cli_init, .-hal_wifi_cli_init
	.align	2
	.global	cli_service_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	cli_service_init, %function
cli_service_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L26
	bl	aos_cli_init
	bl	dumpsys_cli_init
	bl	hal_wifi_cli_init
	nop
.L26:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	cli_service_init, .-cli_service_init
	.align	2
	.global	aos_kernel_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	aos_kernel_init, %function
aos_kernel_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	bl	vfs_init
	bl	vfs_device_init
	ldr	r0, [fp, #-8]
	bl	cli_service_init
	bl	aos_loop_init
	bl	trace_start
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r1, r3
	mov	r0, r2
	bl	application_start
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	aos_kernel_init, .-aos_kernel_init
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
