	.file	"extr_atmel.c_store_bss_info.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	store_bss_info, @function
store_bss_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	movsx	rax, DWORD PTR [rdi]
	mov	r14, QWORD PTR 8[rsi]
	test	DWORD PTR WLAN_CAPABILITY_ESS[rip], edx
	cmove	r14, QWORD PTR [rsi]
	mov	DWORD PTR 20[rsp], ecx
	mov	QWORD PTR 24[rsp], r8
	mov	QWORD PTR 8[rsp], r9
	test	eax, eax
	jle	.L3
	xor	r12d, r12d
	mov	r13d, -1
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 8[r15]
	mov	rdx, QWORD PTR ETH_ALEN[rip]
	mov	rdi, r14
	mov	esi, DWORD PTR 48[rax+r12]
	call	memcmp@PLT
	test	rax, rax
	movsx	rax, DWORD PTR [r15]
	cmove	r13d, ebx
	add	ebx, 1
	add	r12, 56
	cmp	eax, ebx
	jg	.L5
	cmp	r13d, -1
	je	.L3
	movsx	r8, r13d
	mov	rax, QWORD PTR 8[r15]
	mov	rcx, QWORD PTR 8[rsp]
	lea	rbx, 0[0+r8*8]
	sub	rbx, r8
	sal	rbx, 3
	add	rax, rbx
	cmp	QWORD PTR [rax], rcx
	jge	.L10
	mov	QWORD PTR [rax], rcx
.L10:
	mov	edx, DWORD PTR 112[rsp]
	test	edx, edx
	jne	.L1
.L9:
	mov	rcx, QWORD PTR 24[rsp]
	mov	edx, DWORD PTR WLAN_CAPABILITY_PRIVACY[rip]
	mov	edi, DWORD PTR 32[rax]
	mov	rsi, QWORD PTR 104[rsp]
	mov	QWORD PTR 40[rax], rcx
	mov	ecx, DWORD PTR 20[rsp]
	and	edx, ebp
	mov	DWORD PTR 12[rax], edx
	mov	rdx, QWORD PTR 96[rsp]
	mov	DWORD PTR 8[rax], ecx
	call	memcpy@PLT
	mov	rax, QWORD PTR 96[rsp]
	add	rbx, QWORD PTR 8[r15]
	mov	QWORD PTR 24[rbx], rax
	test	DWORD PTR WLAN_CAPABILITY_IBSS[rip], ebp
	je	.L12
	mov	eax, DWORD PTR IW_MODE_ADHOC[rip]
	mov	DWORD PTR 20[rbx], eax
.L13:
	mov	eax, DWORD PTR SHORT_PREAMBLE[rip]
	test	DWORD PTR WLAN_CAPABILITY_SHORT_PREAMBLE[rip], ebp
	cmove	eax, DWORD PTR LONG_PREAMBLE[rip]
	mov	DWORD PTR 16[rbx], eax
.L1:
	add	rsp, 40
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	test	DWORD PTR WLAN_CAPABILITY_ESS[rip], ebp
	je	.L13
	mov	eax, DWORD PTR IW_MODE_INFRA[rip]
	mov	DWORD PTR 20[rbx], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	DWORD PTR MAX_BSS_ENTRIES[rip], eax
	je	.L1
	lea	rbx, 0[0+rax*8]
	lea	edx, 1[rax]
	mov	rsi, r14
	sub	rbx, rax
	mov	rax, QWORD PTR 8[r15]
	mov	DWORD PTR [r15], edx
	sal	rbx, 3
	mov	rdx, QWORD PTR ETH_ALEN[rip]
	mov	edi, DWORD PTR 48[rax+rbx]
	call	memcpy@PLT
	mov	rax, QWORD PTR 8[r15]
	mov	rcx, QWORD PTR 8[rsp]
	add	rax, rbx
	mov	QWORD PTR [rax], rcx
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	store_bss_info, .-store_bss_info
	.comm	WLAN_CAPABILITY_SHORT_PREAMBLE,4,4
	.comm	WLAN_CAPABILITY_PRIVACY,4,4
	.comm	WLAN_CAPABILITY_IBSS,4,4
	.comm	WLAN_CAPABILITY_ESS,4,4
	.comm	SHORT_PREAMBLE,4,4
	.comm	MAX_BSS_ENTRIES,4,4
	.comm	LONG_PREAMBLE,4,4
	.comm	IW_MODE_INFRA,4,4
	.comm	IW_MODE_ADHOC,4,4
	.comm	ETH_ALEN,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_atmel.c_store_bss_info.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	store_bss_info, %function
store_bss_info:
	@ args = 20, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	mov	r8, r2
	ldr	r10, .L23
	ldr	r0, [r1]
	ldr	ip, [r10]
	ldr	r2, [r6]
	tst	r8, ip
	ldr	fp, [r1, #4]
	moveq	fp, r0
	cmp	r2, #0
	mov	r9, r3
	ble	.L3
	mvn	r5, #0
	mov	r4, #0
	ldr	r7, .L23+4
.L5:
	ldr	r3, [r6, #4]
	add	r2, r4, r4, lsl #3
	add	r3, r3, r2, lsl #2
	mov	r0, fp
	ldr	r2, [r7]
	ldr	r1, [r3, #32]
	bl	memcmp
	ldr	r2, [r6]
	cmp	r0, #0
	moveq	r5, r4
	add	r4, r4, #1
	cmp	r2, r4
	bgt	.L5
	cmn	r5, #1
	beq	.L3
	ldr	r3, [r6, #4]
	add	r5, r5, r5, lsl #3
	lsl	r4, r5, #2
	ldr	r2, [r3, r4]
	ldr	r1, [sp, #44]
	add	r5, r3, r5, lsl #2
	cmp	r2, r1
	movlt	r2, r1
	strlt	r2, [r3, r4]
	ldr	r3, [sp, #56]
	cmp	r3, #0
	popne	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r3, .L23+8
	ldr	r2, [sp, #40]
	ldr	r3, [r3]
	str	r2, [r5, #28]
	and	r3, r3, r8
	ldr	r2, [sp, #48]
	str	r3, [r5, #8]
	ldr	r0, [r5, #24]
	ldr	r1, [sp, #52]
	str	r9, [r5, #4]
	bl	memcpy
	ldr	r3, .L23+12
	ldr	r2, [r6, #4]
	ldr	r3, [r3]
	add	r4, r2, r4
	tst	r8, r3
	ldr	r3, [sp, #48]
	str	r3, [r4, #20]
	bne	.L22
	ldr	r3, [r10]
	tst	r8, r3
	ldrne	r3, .L23+16
	ldrne	r3, [r3]
	strne	r3, [r4, #16]
.L13:
	ldr	r3, .L23+20
	ldr	r3, [r3]
	tst	r8, r3
	ldrne	r3, .L23+24
	ldreq	r3, .L23+28
	ldr	r3, [r3]
	str	r3, [r4, #12]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	ldr	r3, .L23+32
	ldr	r3, [r3]
	str	r3, [r4, #16]
	b	.L13
.L3:
	ldr	r1, .L23+36
	ldr	r1, [r1]
	cmp	r1, r2
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r0, [r6, #4]
	add	r4, r2, r2, lsl #3
	ldr	ip, .L23+4
	add	r0, r0, r4, lsl #2
	add	r2, r2, #1
	ldr	r0, [r0, #32]
	mov	r1, fp
	str	r2, [r6]
	ldr	r2, [ip]
	bl	memcpy
	ldr	r5, [r6, #4]
	ldr	r3, [sp, #44]
	lsl	r4, r4, #2
	str	r3, [r5, r4]
	add	r5, r5, r4
	b	.L9
.L24:
	.align	2
.L23:
	.word	WLAN_CAPABILITY_ESS
	.word	ETH_ALEN
	.word	WLAN_CAPABILITY_PRIVACY
	.word	WLAN_CAPABILITY_IBSS
	.word	IW_MODE_INFRA
	.word	WLAN_CAPABILITY_SHORT_PREAMBLE
	.word	SHORT_PREAMBLE
	.word	LONG_PREAMBLE
	.word	IW_MODE_ADHOC
	.word	MAX_BSS_ENTRIES
	.size	store_bss_info, .-store_bss_info
	.comm	WLAN_CAPABILITY_SHORT_PREAMBLE,4,4
	.comm	WLAN_CAPABILITY_PRIVACY,4,4
	.comm	WLAN_CAPABILITY_IBSS,4,4
	.comm	WLAN_CAPABILITY_ESS,4,4
	.comm	SHORT_PREAMBLE,4,4
	.comm	MAX_BSS_ENTRIES,4,4
	.comm	LONG_PREAMBLE,4,4
	.comm	IW_MODE_INFRA,4,4
	.comm	IW_MODE_ADHOC,4,4
	.comm	ETH_ALEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
