	.file	"extr_scan.c_wlcore_scan_sched_scan_ssid_list.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cmd sched scan ssid list"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"cmd sched scan ssid list failed"
	.text
	.p2align 4
	.globl	wlcore_scan_sched_scan_ssid_list
	.type	wlcore_scan_sched_scan_ssid_list, @function
wlcore_scan_sched_scan_ssid_list:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	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	rbp, rsi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r13, QWORD PTR 16[rdx]
	mov	rbx, QWORD PTR 8[rdx]
	mov	QWORD PTR 8[rsp], rdi
	mov	edi, DWORD PTR DEBUG_CMD[rip]
	or	edi, DWORD PTR DEBUG_SCAN[rip]
	call	wl1271_debug@PLT
	mov	eax, DWORD PTR [r15]
	test	eax, eax
	jle	.L2
	sub	eax, 1
	xor	edx, edx
	sal	rax, 4
	lea	rsi, 16[r13+rax]
	mov	rax, r13
	.p2align 4,,10
	.p2align 3
.L4:
	xor	ecx, ecx
	cmp	QWORD PTR [rax], 0
	setg	cl
	add	rax, 16
	add	edx, ecx
	cmp	rsi, rax
	jne	.L4
	test	edx, edx
	jne	.L5
.L2:
	mov	eax, DWORD PTR 4[r15]
	test	eax, eax
	je	.L6
	cmp	eax, 1
	je	.L55
.L7:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 24
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L26
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 16[r12], eax
	mov	eax, DWORD PTR SCAN_SSID_FILTER_DISABLED[rip]
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR 4[r15]
	test	eax, eax
	jle	.L13
	mov	rax, QWORD PTR [r12]
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdx, QWORD PTR [rbx]
	lea	rsi, [rax+rax*2]
	mov	rax, QWORD PTR 8[r12]
	mov	rcx, QWORD PTR SCAN_SSID_TYPE_HIDDEN[rip]
	test	rdx, rdx
	cmove	rcx, QWORD PTR SCAN_SSID_TYPE_PUBLIC[rip]
	lea	rax, [rax+rsi*8]
	mov	esi, DWORD PTR 8[rbx]
	mov	QWORD PTR [rax], rdx
	mov	edi, DWORD PTR 16[rax]
	add	ebp, 1
	add	rbx, 16
	mov	QWORD PTR 8[rax], rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR [r12]
	add	rax, 1
	mov	QWORD PTR [r12], rax
	cmp	DWORD PTR 4[r15], ebp
	jg	.L12
.L13:
	mov	rdi, QWORD PTR 8[rsp]
	xor	r8d, r8d
	mov	ecx, 24
	mov	rdx, r12
	mov	esi, DWORD PTR CMD_CONNECTION_SCAN_SSID_CFG[rip]
	call	wl1271_cmd_send@PLT
	mov	ebx, eax
	test	eax, eax
	js	.L56
.L20:
	mov	rdi, r12
	call	kfree@PLT
.L9:
	test	ebx, ebx
	cmovns	ebx, DWORD PTR 4[rsp]
	mov	DWORD PTR 4[rsp], ebx
.L1:
	mov	eax, DWORD PTR 4[rsp]
	add	rsp, 24
	.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
.L55:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[r15]
	cmp	QWORD PTR [rax], 0
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR SCAN_SSID_FILTER_ANY[rip]
	mov	DWORD PTR 4[rsp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 24
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L26
	mov	eax, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR [r15]
	xor	ebx, ebx
	mov	DWORD PTR 16[r12], eax
	mov	eax, DWORD PTR SCAN_SSID_FILTER_LIST[rip]
	mov	DWORD PTR 4[rsp], eax
	test	edx, edx
	jle	.L25
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdx, QWORD PTR 0[r13]
	test	rdx, rdx
	je	.L14
	mov	rax, QWORD PTR [r12]
	mov	esi, DWORD PTR 8[r13]
	lea	rcx, [rax+rax*2]
	mov	rax, QWORD PTR 8[r12]
	lea	rax, [rax+rcx*8]
	mov	rcx, QWORD PTR SCAN_SSID_TYPE_PUBLIC[rip]
	mov	QWORD PTR [rax], rdx
	mov	edi, DWORD PTR 16[rax]
	mov	QWORD PTR 8[rax], rcx
	call	memcpy@PLT
	add	QWORD PTR [r12], 1
.L14:
	add	ebx, 1
	add	r13, 16
	cmp	DWORD PTR [r15], ebx
	jg	.L15
.L25:
	cmp	DWORD PTR 4[r15], 1
	jle	.L16
	mov	rax, QWORD PTR 8[r15]
.L17:
	xor	r13d, r13d
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L18:
	add	r13, 1
	cmp	DWORD PTR 4[r15], r13d
	jle	.L13
	mov	rax, QWORD PTR 8[r15]
.L24:
	mov	r14, r13
	sal	r14, 4
	mov	rdx, QWORD PTR [rax+r14]
	test	rdx, rdx
	je	.L18
	cmp	QWORD PTR [r12], 0
	je	.L23
	xor	ebx, ebx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rax, QWORD PTR [r12]
	add	rbx, 1
	cmp	rax, rbx
	jbe	.L22
	mov	rax, QWORD PTR 8[r15]
	mov	rdx, QWORD PTR [rax+r14]
.L19:
	mov	rcx, QWORD PTR 8[r12]
	lea	rbp, [rbx+rbx*2]
	sal	rbp, 3
	add	rcx, rbp
	cmp	QWORD PTR [rcx], rdx
	jne	.L21
	mov	esi, DWORD PTR 16[rcx]
	mov	edi, DWORD PTR 8[rax+r14]
	call	memcmp@PLT
	test	eax, eax
	jne	.L21
	mov	rax, QWORD PTR 8[r12]
	mov	rdx, QWORD PTR SCAN_SSID_TYPE_HIDDEN[rip]
	mov	QWORD PTR 8[rax+rbp], rdx
	mov	rax, QWORD PTR [r12]
	.p2align 4,,10
	.p2align 3
.L22:
	cmp	rbx, rax
	jne	.L18
.L23:
	mov	ebx, DWORD PTR EINVAL[rip]
	neg	ebx
	jmp	.L20
.L16:
	jne	.L13
	mov	rax, QWORD PTR 8[r15]
	cmp	QWORD PTR [rax], 0
	jg	.L17
	jmp	.L13
.L26:
	mov	ebx, DWORD PTR ENOMEM[rip]
	neg	ebx
	jmp	.L9
.L56:
	lea	rdi, .LC1[rip]
	call	wl1271_error@PLT
	jmp	.L20
	.cfi_endproc
.LFE0:
	.size	wlcore_scan_sched_scan_ssid_list, .-wlcore_scan_sched_scan_ssid_list
	.comm	SCAN_SSID_TYPE_PUBLIC,8,8
	.comm	SCAN_SSID_TYPE_HIDDEN,8,8
	.comm	SCAN_SSID_FILTER_LIST,4,4
	.comm	SCAN_SSID_FILTER_DISABLED,4,4
	.comm	SCAN_SSID_FILTER_ANY,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DEBUG_SCAN,4,4
	.comm	DEBUG_CMD,4,4
	.comm	CMD_CONNECTION_SCAN_SSID_CFG,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_scan.c_wlcore_scan_sched_scan_ssid_list.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cmd sched scan ssid list\000"
	.align	2
.LC1:
	.ascii	"cmd sched scan ssid list failed\000"
	.text
	.align	2
	.global	wlcore_scan_sched_scan_ssid_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	wlcore_scan_sched_scan_ssid_list, %function
wlcore_scan_sched_scan_ssid_list:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r2
	ldr	r3, .L59
	ldr	r2, .L59+4
	ldr	r3, [r3]
	mov	r9, r0
	ldr	r0, [r2]
	mov	r5, r1
	sub	sp, sp, #12
	ldr	r1, .L59+8
	orr	r0, r0, r3
	ldr	r8, [r7, #12]
	ldr	r4, [r7, #8]
	bl	wl1271_debug
	ldr	r0, [r7]
	cmp	r0, #0
	ble	.L2
	mov	r1, #0
	mov	r3, r1
.L4:
	ldr	r2, [r8, r3, lsl #3]
	add	r3, r3, #1
	cmp	r2, #0
	addgt	r1, r1, #1
	cmp	r3, r0
	bne	.L4
	cmp	r1, #0
	bne	.L5
.L2:
	ldr	r3, [r7, #4]
	cmp	r3, #0
	beq	.L6
	cmp	r3, #1
	beq	.L56
.L7:
	ldr	r3, .L59+12
	mov	r0, #12
	ldr	r1, [r3]
	bl	kzalloc
	subs	r6, r0, #0
	beq	.L27
	ldr	r3, [r7, #4]
	ldr	r2, [r5]
	cmp	r3, #0
	ldr	r3, .L59+16
	str	r2, [r6, #8]
	ldr	r10, [r3]
	ble	.L13
	mov	r8, #0
	ldr	r1, [r6]
	ldr	fp, .L59+20
	add	r5, r4, #4
.L12:
	ldr	r2, [r4, r8, lsl #3]
	ldr	ip, [r6, #4]
	cmp	r2, #0
	ldrne	r3, .L59+24
	ldreq	r0, [fp]
	ldrne	r0, [r3]
	add	r1, r1, r1, lsl #1
	add	lr, ip, r1, lsl #2
	str	r0, [lr, #4]
	ldr	r0, [lr, #8]
	str	r2, [ip, r1, lsl #2]
	ldr	r1, [r5, r8, lsl #3]
	bl	memcpy
	ldr	r2, [r7, #4]
	ldr	r1, [r6]
	add	r8, r8, #1
	add	r1, r1, #1
	cmp	r2, r8
	str	r1, [r6]
	bgt	.L12
.L13:
	mov	r2, #0
	ldr	r3, .L59+28
	str	r2, [sp]
	ldr	r1, [r3]
	mov	r0, r9
	mov	r3, #12
	mov	r2, r6
	bl	wl1271_cmd_send
	subs	r4, r0, #0
	blt	.L57
.L20:
	mov	r0, r6
	bl	kfree
.L9:
	cmp	r4, #0
	movlt	r10, r4
	mov	r0, r10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L56:
	ldr	r3, [r7, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
.L6:
	ldr	r3, .L59+32
	ldr	r10, [r3]
	mov	r0, r10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r3, .L59+12
	mov	r0, #12
	ldr	r1, [r3]
	bl	kzalloc
	subs	r6, r0, #0
	beq	.L27
	ldr	r1, [r7]
	ldr	r2, [r5]
	ldr	r3, .L59+36
	cmp	r1, #0
	ldr	r10, [r3]
	str	r2, [r6, #8]
	ble	.L26
	mov	r4, #0
	ldr	r5, .L59+20
	add	r8, r8, #4
.L15:
	ldr	r2, [r8, #-4]
	add	r4, r4, #1
	cmp	r2, #0
	beq	.L14
	ldr	r3, [r6]
	ldr	r1, [r6, #4]
	add	r3, r3, r3, lsl #1
	ldr	ip, [r5]
	add	r0, r1, r3, lsl #2
	str	ip, [r0, #4]
	ldr	r0, [r0, #8]
	str	r2, [r1, r3, lsl #2]
	ldr	r1, [r8]
	bl	memcpy
	ldr	r3, [r6]
	ldr	r1, [r7]
	add	r3, r3, #1
	str	r3, [r6]
.L14:
	cmp	r1, r4
	add	r8, r8, #8
	bgt	.L15
.L26:
	ldr	r1, [r7, #4]
	cmp	r1, #1
	ble	.L16
	ldr	r0, [r7, #8]
.L17:
	mov	fp, #0
	b	.L24
.L18:
	add	fp, fp, #1
	cmp	r1, fp
	ble	.L13
	ldr	r0, [r7, #8]
.L24:
	ldr	r2, [r0, fp, lsl #3]
	lsl	r8, fp, #3
	cmp	r2, #0
	beq	.L18
	ldr	ip, [r6]
	cmp	ip, #0
	beq	.L23
	mov	r4, #0
	b	.L19
.L21:
	add	r4, r4, #1
	cmp	ip, r4
	mov	r2, ip
	bls	.L22
.L58:
	ldr	r0, [r7, #8]
	ldr	r2, [r0, r8]
.L19:
	ldr	r1, [r6, #4]
	add	r5, r4, r4, lsl #1
	ldr	lr, [r1, r5, lsl #2]
	add	r1, r1, r5, lsl #2
	cmp	lr, r2
	lsl	r5, r5, #2
	bne	.L21
	add	r0, r0, r8
	ldr	r0, [r0, #4]
	ldr	r1, [r1, #8]
	bl	memcmp
	cmp	r0, #0
	beq	.L51
	ldr	ip, [r6]
	add	r4, r4, #1
	cmp	ip, r4
	mov	r2, ip
	bhi	.L58
.L22:
	cmp	r4, r2
	beq	.L23
	ldr	r1, [r7, #4]
	b	.L18
.L16:
	bne	.L13
	ldr	r0, [r7, #8]
	ldr	r3, [r0]
	cmp	r3, #0
	bgt	.L17
	b	.L13
.L51:
	ldr	r3, .L59+24
	ldr	r2, [r6, #4]
	ldr	r1, [r3]
	add	r5, r2, r5
	str	r1, [r5, #4]
	ldr	r2, [r6]
	b	.L22
.L27:
	ldr	r3, .L59+40
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L9
.L57:
	ldr	r0, .L59+44
	bl	wl1271_error
	b	.L20
.L23:
	ldr	r3, .L59+48
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L20
.L60:
	.align	2
.L59:
	.word	DEBUG_SCAN
	.word	DEBUG_CMD
	.word	.LC0
	.word	GFP_KERNEL
	.word	SCAN_SSID_FILTER_DISABLED
	.word	SCAN_SSID_TYPE_PUBLIC
	.word	SCAN_SSID_TYPE_HIDDEN
	.word	CMD_CONNECTION_SCAN_SSID_CFG
	.word	SCAN_SSID_FILTER_ANY
	.word	SCAN_SSID_FILTER_LIST
	.word	ENOMEM
	.word	.LC1
	.word	EINVAL
	.size	wlcore_scan_sched_scan_ssid_list, .-wlcore_scan_sched_scan_ssid_list
	.comm	SCAN_SSID_TYPE_PUBLIC,4,4
	.comm	SCAN_SSID_TYPE_HIDDEN,4,4
	.comm	SCAN_SSID_FILTER_LIST,4,4
	.comm	SCAN_SSID_FILTER_DISABLED,4,4
	.comm	SCAN_SSID_FILTER_ANY,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DEBUG_SCAN,4,4
	.comm	DEBUG_CMD,4,4
	.comm	CMD_CONNECTION_SCAN_SSID_CFG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
