	.file	"extr_wifi.c_wifi_station_get_ap_info4lua.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"qty"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"\n\t# of APs stored in flash:%d\n"
	.section	.rodata.str1.1
.LC2:
	.string	"bssid:"
.LC3:
	.string	"password:"
.LC4:
	.string	"ssid:"
.LC5:
	.string	"index:"
.LC6:
	.string	" %-6s %-32s %-64s %-17s\n"
.LC7:
	.string	"ssid"
.LC8:
	.string	"pwd"
.LC9:
	.string	"bssid"
	.text
	.p2align 4
	.type	wifi_station_get_ap_info4lua, @function
wifi_station_get_ap_info4lua:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 200
	.cfi_def_cfa_offset 256
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 184[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	mov	rdi, r12
	call	wifi_station_get_ap_info@PLT
	mov	rdi, rbx
	mov	r14d, eax
	call	lua_newtable@PLT
	mov	esi, r14d
	mov	rdi, rbx
	call	lua_pushnumber@PLT
	lea	rdx, .LC0[rip]
	mov	esi, -2
	mov	rdi, rbx
	call	lua_setfield@PLT
	mov	esi, r14d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	WIFI_DBG@PLT
	xor	eax, eax
	lea	r8, .LC2[rip]
	lea	rcx, .LC3[rip]
	lea	rdx, .LC4[rip]
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	call	WIFI_DBG@PLT
	test	r14d, r14d
	jle	.L2
	xor	r13d, r13d
	lea	rbp, 175[rsp]
	lea	r15, .LC7[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	r13d, 1
	mov	rdi, rbx
	add	r12, 32
	mov	esi, r13d
	call	lua_pushnumber@PLT
	mov	esi, -2
	mov	rdi, rbx
	call	lua_insert@PLT
	mov	esi, -3
	mov	rdi, rbx
	call	lua_settable@PLT
	cmp	r13d, r14d
	je	.L2
.L5:
	mov	rdi, rbx
	call	lua_newtable@PLT
	xor	esi, esi
	mov	edx, 9
	mov	rdi, rbp
	call	memset@PLT
	mov	rsi, QWORD PTR [r12]
	mov	edx, 8
	mov	rdi, rbp
	call	memcpy@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	lua_pushstring@PLT
	mov	rdx, r15
	mov	esi, -2
	mov	rdi, rbx
	call	lua_setfield@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	edx, 9
	call	memset@PLT
	mov	rdi, QWORD PTR 8[r12]
	call	strlen@PLT
	test	eax, eax
	jle	.L3
	mov	rsi, QWORD PTR 8[r12]
	mov	edx, 8
	mov	rdi, rbp
	call	memcpy@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	lua_pushstring@PLT
	lea	rdx, .LC8[rip]
	mov	esi, -2
	mov	rdi, rbx
	call	lua_setfield@PLT
.L3:
	xor	esi, esi
	mov	edx, 9
	mov	rdi, rbp
	call	memset@PLT
	cmp	QWORD PTR 24[r12], 0
	je	.L4
	mov	edi, DWORD PTR 16[r12]
	call	MAC2STR@PLT
	mov	rsi, QWORD PTR MACSTR[rip]
	mov	rdi, rbp
	mov	rdx, rax
	xor	eax, eax
	call	sprintf@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	lua_pushstring@PLT
	lea	rdx, .LC9[rip]
	mov	esi, -2
	mov	rdi, rbx
	call	lua_setfield@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 184[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 200
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wifi_station_get_ap_info4lua, .-wifi_station_get_ap_info4lua
	.comm	MACSTR,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_wifi.c_wifi_station_get_ap_info4lua.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"qty\000"
	.align	2
.LC1:
	.ascii	"\012\011# of APs stored in flash:%d\012\000"
	.align	2
.LC2:
	.ascii	"password:\000"
	.align	2
.LC3:
	.ascii	"ssid:\000"
	.align	2
.LC4:
	.ascii	"index:\000"
	.align	2
.LC5:
	.ascii	" %-6s %-32s %-64s %-17s\012\000"
	.align	2
.LC6:
	.ascii	"bssid:\000"
	.align	2
.LC7:
	.ascii	"ssid\000"
	.align	2
.LC8:
	.ascii	"pwd\000"
	.align	2
.LC9:
	.ascii	"bssid\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wifi_station_get_ap_info4lua, %function
wifi_station_get_ap_info4lua:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L18
	sub	sp, sp, #116
	mov	r4, r0
	add	r0, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #108]
	mov	r3,#0
	bl	wifi_station_get_ap_info
	mov	r8, r0
	mov	r0, r4
	bl	lua_newtable
	mov	r1, r8
	mov	r0, r4
	bl	lua_pushnumber
	ldr	r2, .L18+4
	mvn	r1, #1
	mov	r0, r4
	bl	lua_setfield
	mov	r1, r8
	ldr	r0, .L18+8
	bl	WIFI_DBG
	ldr	r2, .L18+12
	ldr	r3, .L18+16
	str	r2, [sp]
	ldr	r1, .L18+20
	ldr	r2, .L18+24
	ldr	r0, .L18+28
	bl	WIFI_DBG
	cmp	r8, #0
	ble	.L2
	mov	r7, #0
	ldr	r9, .L18+32
	mov	r5, r7
	ldr	fp, .L18+36
	add	r6, sp, #20
	b	.L5
.L3:
	ldr	r3, [r6, #12]
	str	r5, [sp, #100]
	cmp	r3, #0
	strb	r5, [sp, #104]
	bne	.L16
.L4:
	add	r7, r7, #1
	mov	r1, r7
	mov	r0, r4
	bl	lua_pushnumber
	mvn	r1, #1
	mov	r0, r4
	bl	lua_insert
	mvn	r1, #2
	mov	r0, r4
	bl	lua_settable
	cmp	r7, r8
	add	r6, r6, #16
	beq	.L2
.L5:
	mov	r0, r4
	bl	lua_newtable
	mov	r2, #4
	ldr	r1, [r6]
	add	r0, sp, #100
	str	r5, [sp, #100]
	strb	r5, [sp, #104]
	bl	memcpy
	add	r1, sp, #100
	mov	r0, r4
	bl	lua_pushstring
	mov	r2, r9
	mvn	r1, #1
	mov	r0, r4
	bl	lua_setfield
	ldr	r10, [r6, #4]
	str	r5, [sp, #100]
	mov	r0, r10
	strb	r5, [sp, #104]
	bl	strlen
	cmp	r0, #0
	beq	.L3
	mov	r1, r10
	mov	r2, #4
	add	r0, sp, #100
	bl	memcpy
	add	r1, sp, #100
	mov	r0, r4
	bl	lua_pushstring
	mov	r2, fp
	mvn	r1, #1
	mov	r0, r4
	bl	lua_setfield
	b	.L3
.L16:
	ldr	r3, .L18+40
	ldr	r0, [r6, #8]
	ldr	r1, [r3]
	str	r1, [sp, #12]
	bl	MAC2STR
	ldr	r1, [sp, #12]
	mov	r2, r0
	add	r0, sp, #100
	bl	sprintf
	add	r1, sp, #100
	mov	r0, r4
	bl	lua_pushstring
	mvn	r1, #1
	mov	r0, r4
	ldr	r2, .L18+44
	bl	lua_setfield
	b	.L4
.L2:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #108]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, #1
	add	sp, sp, #116
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC6
	.word	.LC2
	.word	.LC4
	.word	.LC3
	.word	.LC5
	.word	.LC7
	.word	.LC8
	.word	MACSTR
	.word	.LC9
	.size	wifi_station_get_ap_info4lua, .-wifi_station_get_ap_info4lua
	.comm	MACSTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
