	.file	"extr_cfunc.c_zfBssInfoRefresh.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zfBssInfoRefresh
	.type	zfBssInfoRefresh, @function
zfBssInfoRefresh:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	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, 8
	.cfi_def_cfa_offset 64
	call	zmw_get_wlan_dev@PLT
	mov	rax, QWORD PTR wd[rip]
	mov	r12, QWORD PTR 8[rax]
	mov	r14, QWORD PTR 16[rax]
	test	r12, r12
	jle	.L1
	xor	r13d, r13d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	not	eax
	and	eax, edx
	mov	DWORD PTR 0[rbp], eax
.L4:
	add	r13, 1
	cmp	r12, r13
	je	.L1
.L2:
	mov	rbp, r14
	mov	r14, QWORD PTR 8[r14]
	cmp	r15d, 1
	je	.L11
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, DWORD PTR ZM_BSS_INFO_VALID_BIT[rip]
	test	edx, eax
	jne	.L13
	mov	rax, QWORD PTR wd[rip]
	mov	esi, DWORD PTR [rax]
	mov	eax, 20000
	sub	esi, DWORD PTR 4[rbp]
	cdq
	idiv	DWORD PTR ZM_MS_PER_TICK[rip]
	cmp	esi, eax
	jle	.L4
.L11:
	mov	rsi, rbp
	mov	rdi, rbx
	add	r13, 1
	call	zfBssInfoRemoveFromList@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	zfBssInfoFree@PLT
	cmp	r12, r13
	jne	.L2
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	zfBssInfoRefresh, .-zfBssInfoRefresh
	.comm	wd,8,8
	.comm	ZM_MS_PER_TICK,4,4
	.comm	ZM_BSS_INFO_VALID_BIT,4,4
	.comm	ZM_BSS_CACHE_TIME_IN_MS,4,4
	.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_cfunc.c_zfBssInfoRefresh.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.global	zfBssInfoRefresh
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfBssInfoRefresh, %function
zfBssInfoRefresh:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, .L12
	sub	sp, sp, #12
	mov	r7, r1
	mov	r9, r0
	bl	zmw_get_wlan_dev
	ldr	r3, [r10]
	ldr	r8, [r3, #4]
	ldr	r5, [r3, #8]
	cmp	r8, #0
	ble	.L1
	mov	r6, #0
	ldr	fp, .L12+4
	b	.L2
.L3:
	ldr	r3, [r4]
	ldr	r2, [fp]
	tst	r3, r2
	bic	r3, r3, r2
	strne	r3, [r4]
	bne	.L4
	ldr	r3, [r10]
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	ldr	r1, .L12+8
	sub	r3, r3, r2
	ldr	r1, [r1]
	ldr	r0, .L12+12
	str	r3, [sp, #4]
	bl	__aeabi_idiv
	ldr	r3, [sp, #4]
	cmp	r3, r0
	bgt	.L10
.L4:
	add	r6, r6, #1
	cmp	r8, r6
	beq	.L1
.L2:
	cmp	r7, #1
	mov	r4, r5
	ldr	r5, [r5, #8]
	bne	.L3
.L10:
	mov	r1, r4
	mov	r0, r9
	bl	zfBssInfoRemoveFromList
	add	r6, r6, #1
	mov	r1, r4
	mov	r0, r9
	bl	zfBssInfoFree
	cmp	r8, r6
	bne	.L2
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	wd
	.word	ZM_BSS_INFO_VALID_BIT
	.word	ZM_MS_PER_TICK
	.word	20000
	.size	zfBssInfoRefresh, .-zfBssInfoRefresh
	.comm	wd,4,4
	.comm	ZM_MS_PER_TICK,4,4
	.comm	ZM_BSS_INFO_VALID_BIT,4,4
	.comm	ZM_BSS_CACHE_TIME_IN_MS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
