	.file	"extr_cfg80211.c_ath6kl_set_probed_ssids.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ath6kl_set_probed_ssids, @function
ath6kl_set_probed_ssids:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rdx
	push	r14
	push	r13
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	push	rbx
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 72
	mov	QWORD PTR -88[rbp], rsi
	mov	QWORD PTR -80[rbp], r8
	mov	rcx, rsp
	mov	DWORD PTR -100[rbp], r9d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PROBED_SSIDS[rip]
	mov	rdx, rax
	lea	rax, [rax+rax*2]
	lea	rax, 15[0+rax*8]
	mov	rsi, rax
	and	rax, -4096
	sub	rcx, rax
	and	rsi, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L50:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L50
.L3:
	and	esi, 4095
	sub	rsp, rsi
	test	rsi, rsi
	jne	.L51
.L4:
	lea	edx, [rdx+rdx*2]
	mov	rdi, rsp
	xor	esi, esi
	sal	edx, 3
	mov	QWORD PTR -96[rbp], rdi
	call	memset@PLT
	mov	ecx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR MAX_PROBED_SSIDS[rip]
	cmp	ebx, ecx
	mov	edx, ecx
	cmovge	edx, ebx
	cmp	eax, edx
	jge	.L52
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L53
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L52:
	.cfi_restore_state
	test	ebx, ebx
	jle	.L54
	mov	ecx, DWORD PTR -100[rbp]
	lea	eax, -1[rbx]
	mov	r14, QWORD PTR -96[rbp]
	test	ecx, ecx
	sete	BYTE PTR -72[rbp]
	sal	rax, 4
	lea	r12, 16[r15+rax]
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdx, QWORD PTR [r15]
	mov	esi, DWORD PTR 8[r15]
	mov	rdi, QWORD PTR 8[r14]
	call	memcpy@PLT
	mov	rax, QWORD PTR [r15]
	mov	rdx, QWORD PTR 8[r13]
	test	rax, rax
	mov	QWORD PTR [r14], rax
	mov	eax, DWORD PTR SPECIFIC_SSID_FLAG[rip]
	cmove	eax, DWORD PTR ANY_SSID_FLAG[rip]
	cmp	QWORD PTR [rdx], 0
	mov	DWORD PTR 16[r14], eax
	je	.L11
	cmp	BYTE PTR -72[rbp], 0
	je	.L11
	or	eax, DWORD PTR MATCH_SSID_FLAG[rip]
	mov	DWORD PTR 16[r14], eax
.L11:
	add	r15, 16
	add	r14, 24
	cmp	r15, r12
	jne	.L12
	mov	eax, DWORD PTR -100[rbp]
	mov	r12d, ebx
	test	eax, eax
	jle	.L16
.L14:
	mov	r15, QWORD PTR -80[rbp]
	mov	DWORD PTR -80[rbp], 0
	.p2align 4,,10
	.p2align 3
.L17:
	mov	r9, QWORD PTR -96[rbp]
	xor	r14d, r14d
	test	ebx, ebx
	jg	.L20
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L18:
	add	r14d, 1
	add	r9, 24
	cmp	ebx, r14d
	je	.L23
.L20:
	mov	rdx, QWORD PTR [r15]
	cmp	rdx, QWORD PTR [r9]
	jne	.L18
	mov	rdi, QWORD PTR 8[r9]
	mov	esi, DWORD PTR 8[r15]
	mov	QWORD PTR -72[rbp], r9
	call	memcmp@PLT
	mov	r9, QWORD PTR -72[rbp]
	test	eax, eax
	jne	.L18
	mov	rcx, QWORD PTR -96[rbp]
	movsx	r10, r14d
	lea	rax, [r10+r10*2]
	lea	rdx, [rcx+rax*8]
	mov	eax, DWORD PTR 16[rdx]
	or	eax, DWORD PTR MATCH_SSID_FLAG[rip]
	mov	DWORD PTR 16[rdx], eax
.L19:
	add	DWORD PTR -80[rbp], 1
	add	r15, 16
	mov	eax, DWORD PTR -80[rbp]
	cmp	DWORD PTR -100[rbp], eax
	jg	.L17
	test	r12d, r12d
	jle	.L48
.L16:
	mov	rbx, QWORD PTR -96[rbp]
	xor	r14d, r14d
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rax, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR 16[rbx]
	mov	edx, r14d
	add	r14d, 1
	mov	r9, QWORD PTR 8[rbx]
	mov	r8, QWORD PTR [rbx]
	add	rbx, 24
	mov	esi, DWORD PTR [rax]
	mov	edi, DWORD PTR 0[r13]
	call	ath6kl_wmi_probedssid_cmd@PLT
	cmp	r12d, r14d
	jg	.L24
.L48:
	mov	eax, DWORD PTR MAX_PROBED_SSIDS[rip]
.L15:
	cmp	eax, r12d
	jle	.L26
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rax, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR DISABLE_SSID_FLAG[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	edi, DWORD PTR 0[r13]
	mov	edx, r12d
	add	r12d, 1
	mov	esi, DWORD PTR [rax]
	call	ath6kl_wmi_probedssid_cmd@PLT
	cmp	DWORD PTR MAX_PROBED_SSIDS[rip], r12d
	jg	.L25
.L26:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	cmp	DWORD PTR MAX_PROBED_SSIDS[rip], r12d
	jle	.L19
	mov	rcx, QWORD PTR -96[rbp]
	movsx	rax, r12d
	mov	rdx, QWORD PTR [r15]
	add	r12d, 1
	lea	rax, [rax+rax*2]
	mov	esi, DWORD PTR 8[r15]
	lea	r14, [rcx+rax*8]
	mov	QWORD PTR [r14], rdx
	mov	rdi, QWORD PTR 8[r14]
	call	memcpy@PLT
	mov	eax, DWORD PTR 16[r14]
	or	eax, DWORD PTR MATCH_SSID_FLAG[rip]
	mov	DWORD PTR 16[r14], eax
	jmp	.L19
.L51:
	or	QWORD PTR -8[rsp+rsi], 0
	jmp	.L4
.L54:
	mov	edx, DWORD PTR -100[rbp]
	xor	r12d, r12d
	test	edx, edx
	jg	.L14
	jmp	.L15
.L53:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ath6kl_set_probed_ssids, .-ath6kl_set_probed_ssids
	.comm	SPECIFIC_SSID_FLAG,4,4
	.comm	MAX_PROBED_SSIDS,4,4
	.comm	MATCH_SSID_FLAG,4,4
	.comm	EINVAL,4,4
	.comm	DISABLE_SSID_FLAG,4,4
	.comm	ANY_SSID_FLAG,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_cfg80211.c_ath6kl_set_probed_ssids.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath6kl_set_probed_ssids, %function
ath6kl_set_probed_ssids:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #36
	mov	ip, r1
	mov	r10, r3
	ldr	r3, .L42
	mov	r5, r2
	ldr	r4, [r3]
	mov	r8, r0
	add	r2, r4, r4, lsl #1
	lsl	r2, r2, #2
	add	r0, r2, #7
	bic	r0, r0, #7
	sub	sp, sp, r0
	add	r3, sp, #8
	str	r3, [fp, #-48]
	mov	r0, r3
	ldr	r3, .L42+4
	str	ip, [fp, #-52]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r3, [fp, #4]
	mov	r1, #0
	str	r3, [fp, #-56]
	bl	memset
	ldr	r3, [fp, #8]
	cmp	r10, r3
	movge	r2, r10
	movlt	r2, r3
	cmp	r4, r2
	bge	.L39
	ldr	r3, .L42+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L42+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L40
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L39:
	cmp	r10, #0
	ble	.L41
	ldr	r3, [fp, #8]
	mov	r6, #0
	clz	r7, r3
	ldr	r4, [fp, #-48]
	lsr	r7, r7, #5
	add	r9, r5, #4
.L9:
	ldr	r2, [r5, r6, lsl #3]
	ldr	r1, [r9, r6, lsl #3]
	ldr	r0, [r4, #4]
	bl	memcpy
	ldr	r3, [r5, r6, lsl #3]
	add	r6, r6, #1
	cmp	r3, #0
	str	r3, [r4]
	ldrne	r3, .L42+12
	ldreq	r3, .L42+16
	add	r4, r4, #12
	ldr	r2, [r3]
	ldr	r3, [r8, #4]
	str	r2, [r4, #-4]
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r3, r7
	moveq	r3, #0
	cmp	r3, #0
	ldrne	r3, .L42+20
	ldrne	r3, [r3]
	orrne	r2, r3, r2
	strne	r2, [r4, #-4]
	cmp	r10, r6
	bne	.L9
	ldr	r3, [fp, #8]
	cmp	r3, #0
	ble	.L13
.L11:
	mov	r9, #0
	ldr	r3, [fp, #-56]
	str	r8, [fp, #-56]
	ldr	r8, [fp, #-48]
	add	r7, r3, #4
.L14:
	cmp	r10, #0
	movgt	r4, #0
	addgt	r5, r8, #4
	bgt	.L17
	b	.L20
.L15:
	add	r4, r4, #1
	cmp	r10, r4
	add	r5, r5, #12
	beq	.L20
.L17:
	ldr	r2, [r7, #-4]
	ldr	r3, [r5, #-4]
	cmp	r2, r3
	bne	.L15
	ldr	r1, [r7]
	ldr	r0, [r5]
	bl	memcmp
	cmp	r0, #0
	bne	.L15
	ldr	r3, .L42+20
	add	r4, r4, r4, lsl #1
	add	r4, r8, r4, lsl #2
	ldr	r2, [r4, #8]
	ldr	r1, [r3]
	orr	r2, r2, r1
	str	r2, [r4, #8]
.L16:
	ldr	r3, [fp, #8]
	add	r9, r9, #1
	cmp	r3, r9
	add	r7, r7, #8
	bgt	.L14
	cmp	r6, #0
	ldr	r8, [fp, #-56]
	ble	.L37
.L13:
	mov	r4, #0
	ldr	r5, [fp, #-48]
	ldr	r7, [fp, #-52]
.L21:
	ldmib	r5, {r2, r3}
	str	r2, [sp, #4]
	ldr	r2, [r5], #12
	str	r2, [sp]
	ldr	r1, [r7]
	mov	r2, r4
	ldr	r0, [r8]
	add	r4, r4, #1
	bl	ath6kl_wmi_probedssid_cmd
	cmp	r6, r4
	bgt	.L21
.L37:
	ldr	r3, .L42
	ldr	r4, [r3]
.L12:
	cmp	r6, r4
	bge	.L23
	mov	r4, #0
	ldr	r5, .L42+24
	ldr	r7, [fp, #-52]
.L22:
	str	r4, [sp, #4]
	str	r4, [sp]
	mov	r2, r6
	ldr	r3, [r5]
	ldr	r1, [r7]
	ldr	r0, [r8]
	bl	ath6kl_wmi_probedssid_cmd
	ldr	r3, .L42
	add	r6, r6, #1
	ldr	r3, [r3]
	cmp	r3, r6
	bgt	.L22
.L23:
	mov	r0, #0
	b	.L1
.L20:
	ldr	r3, .L42
	ldr	r2, [r3]
	cmp	r2, r6
	ble	.L16
	ldr	r2, [r7, #-4]
	add	r4, r6, r6, lsl #1
	str	r2, [r8, r4, lsl #2]
	add	r4, r8, r4, lsl #2
	ldr	r1, [r7]
	ldr	r0, [r4, #4]
	bl	memcpy
	ldr	r3, .L42+20
	ldr	r2, [r4, #8]
	ldr	r1, [r3]
	add	r6, r6, #1
	orr	r2, r2, r1
	str	r2, [r4, #8]
	b	.L16
.L41:
	ldr	r3, [fp, #8]
	mov	r6, #0
	cmp	r3, #0
	bgt	.L11
	b	.L12
.L40:
	bl	__stack_chk_fail
.L43:
	.align	2
.L42:
	.word	MAX_PROBED_SSIDS
	.word	.LC0
	.word	EINVAL
	.word	SPECIFIC_SSID_FLAG
	.word	ANY_SSID_FLAG
	.word	MATCH_SSID_FLAG
	.word	DISABLE_SSID_FLAG
	.size	ath6kl_set_probed_ssids, .-ath6kl_set_probed_ssids
	.comm	SPECIFIC_SSID_FLAG,4,4
	.comm	MAX_PROBED_SSIDS,4,4
	.comm	MATCH_SSID_FLAG,4,4
	.comm	EINVAL,4,4
	.comm	DISABLE_SSID_FLAG,4,4
	.comm	ANY_SSID_FLAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
