	.file	"extr_scan.c_lbs_scan_create_channel_list.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lbs_scan_create_channel_list, @function
lbs_scan_create_channel_list:
.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
	xor	r12d, r12d
	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
	lea	rax, 16[rbx]
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rbp, QWORD PTR CMD_SCAN_TYPE_ACTIVE[rip]
	mov	rdi, QWORD PTR 32[rdi]
	mov	QWORD PTR 24[rsp], rsi
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 16[rsp], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rax, QWORD PTR LBS_CONNECTED[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L3
	cmp	rax, QWORD PTR 8[rbx]
	je	.L3
	add	r8, QWORD PTR 40[rbx]
	mov	ecx, DWORD PTR 24[r8]
	mov	r13, r8
	test	ecx, ecx
	jne	.L18
.L4:
	mov	rdi, QWORD PTR 32[rbx]
.L6:
	add	QWORD PTR 8[rsp], 1
.L2:
	call	ARRAY_SIZE@PLT
	cmp	eax, DWORD PTR 8[rsp]
	jle	.L19
	mov	r8, QWORD PTR 8[rsp]
	sal	r8, 5
	cmp	QWORD PTR 24[rbx], 0
	jne	.L20
.L3:
	mov	rdi, QWORD PTR 32[rbx]
	lea	r13, [rdi+r8]
	mov	edx, DWORD PTR 24[r13]
	test	edx, edx
	je	.L6
.L5:
	mov	eax, DWORD PTR 0[r13]
	test	eax, eax
	jle	.L4
	mov	rcx, QWORD PTR 24[rsp]
	movsx	rax, r12d
	xor	r15d, r15d
	lea	rax, [rax+rax*2]
	lea	r14, [rcx+rax*8]
	lea	eax, 1[r12]
	mov	DWORD PTR 4[rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L24:
	cmp	rax, QWORD PTR BAND_G[rip]
	je	.L9
	cmp	QWORD PTR CMD_SCAN_TYPE_PASSIVE[rip], rbp
	je	.L21
.L11:
	mov	edi, DWORD PTR MRVDRV_ACTIVE_SCAN_CHAN_TIME[rip]
	call	cpu_to_le16@PLT
	mov	DWORD PTR 4[r14], 0
	mov	QWORD PTR 8[r14], rax
.L12:
	mov	eax, DWORD PTR [r12]
	add	r14, 24
	mov	DWORD PTR -24[r14], eax
	mov	eax, DWORD PTR 4[rsp]
	add	eax, r15d
	add	r15, 1
	cmp	DWORD PTR 0[r13], r15d
	jle	.L22
.L13:
	mov	rax, QWORD PTR 16[r13]
	cmp	QWORD PTR 24[rbx], 0
	lea	r12, [rax+r15*4]
	jne	.L23
.L8:
	mov	rax, QWORD PTR 8[r13]
	cmp	rax, QWORD PTR BAND_B[rip]
	jne	.L24
.L9:
	mov	eax, DWORD PTR CMD_SCAN_RADIO_TYPE_BG[rip]
	cmp	QWORD PTR CMD_SCAN_TYPE_PASSIVE[rip], rbp
	mov	DWORD PTR 16[r14], eax
	jne	.L11
.L21:
	mov	edi, DWORD PTR MRVDRV_PASSIVE_SCAN_CHAN_TIME[rip]
	call	cpu_to_le16@PLT
	mov	DWORD PTR 4[r14], 1
	mov	QWORD PTR 8[r14], rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rsi, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR [r12]
	call	lbs_get_scan_type_11d@PLT
	mov	rbp, rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, QWORD PTR 32[rbx]
	mov	r12d, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L18:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rsp]
	mov	edx, 4
	xor	esi, esi
	call	memset@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	lbs_scan_create_channel_list, .-lbs_scan_create_channel_list
	.comm	MRVDRV_PASSIVE_SCAN_CHAN_TIME,4,4
	.comm	MRVDRV_ACTIVE_SCAN_CHAN_TIME,4,4
	.comm	LBS_CONNECTED,8,8
	.comm	CMD_SCAN_TYPE_PASSIVE,8,8
	.comm	CMD_SCAN_TYPE_ACTIVE,8,8
	.comm	CMD_SCAN_RADIO_TYPE_BG,4,4
	.comm	BAND_G,8,8
	.comm	BAND_B,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_scan.c_lbs_scan_create_channel_list.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lbs_scan_create_channel_list, %function
lbs_scan_create_channel_list:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, #0
	ldr	r3, .L34
	sub	sp, sp, #28
	ldr	r3, [r3]
	mov	r10, r0
	mov	r6, r3
	ldr	r0, [r0, #16]
	ldr	r9, .L34+4
	str	r1, [sp, #20]
	str	r5, [sp, #4]
	b	.L2
.L29:
	ldr	r3, .L34+8
	ldr	r0, [r10]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L3
	ldr	r0, [r10, #4]
	cmp	r3, r0
	beq	.L3
	ldr	r3, [r10, #20]
	add	r7, r3, r2
	ldr	r3, [r7, #12]
	cmp	r3, #0
	bne	.L27
.L4:
	ldr	r0, [r10, #16]
.L6:
	ldr	r3, [sp, #4]
	add	r3, r3, #1
	str	r3, [sp, #4]
.L2:
	bl	ARRAY_SIZE
	ldr	r3, [sp, #4]
	cmp	r0, r3
	ble	.L28
	ldr	r1, [r10, #12]
	ldr	r3, [sp, #4]
	cmp	r1, #0
	lsl	r2, r3, #4
	bne	.L29
.L3:
	ldr	r0, [r10, #16]
	add	r7, r0, r2
	ldr	r3, [r7, #12]
	cmp	r3, #0
	beq	.L6
.L5:
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L4
	ldr	r2, [sp, #20]
	add	r3, r10, #8
	add	fp, r2, r5, lsl #4
	str	r10, [sp, #12]
	mov	r4, #0
	mov	r10, fp
	ldr	r8, .L34+12
	mov	fp, r7
	str	r5, [sp, #8]
	mov	r7, r6
	str	r3, [sp, #16]
	b	.L8
.L33:
	ldr	ip, [r8]
	cmp	r1, ip
	beq	.L10
	cmp	r0, r7
	beq	.L30
.L12:
	ldr	r3, .L34+16
	ldr	r0, [r3]
	bl	cpu_to_le16
	mov	r3, #0
	str	r0, [r10, #8]
	str	r3, [r10, #4]
.L13:
	ldr	r1, [r5, r6]
	add	r4, r4, #1
	str	r1, [r10], #16
	ldr	r1, [fp]
	ldr	r3, [sp, #8]
	cmp	r1, r4
	add	r5, r4, r3
	ble	.L31
	ldr	r3, [sp, #12]
	ldr	r1, [r3, #12]
.L8:
	cmp	r1, #0
	ldr	r5, [fp, #8]
	lsl	r6, r4, #2
	bne	.L32
.L9:
	ldr	r1, [fp, #4]
	ldr	ip, [r9]
	ldr	r3, .L34+20
	cmp	r1, ip
	ldr	r0, [r3]
	bne	.L33
.L10:
	ldr	r3, .L34+24
	cmp	r0, r7
	ldr	r1, [r3]
	str	r1, [r10, #12]
	bne	.L12
.L30:
	ldr	r3, .L34+28
	ldr	r0, [r3]
	bl	cpu_to_le16
	mov	r1, #1
	str	r0, [r10, #8]
	str	r1, [r10, #4]
	b	.L13
.L32:
	ldr	r1, [sp, #16]
	ldr	r0, [r5, r4, lsl #2]
	bl	lbs_get_scan_type_11d
	mov	r7, r0
	b	.L9
.L31:
	ldr	r10, [sp, #12]
	mov	r6, r7
	ldr	r0, [r10, #16]
	b	.L6
.L28:
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	mov	r0, #0
	strb	r0, [r10, #8]
	strb	r0, [r10, #9]
	strb	r0, [r10, #10]
	strb	r0, [r10, #11]
	b	.L5
.L35:
	.align	2
.L34:
	.word	CMD_SCAN_TYPE_ACTIVE
	.word	BAND_B
	.word	LBS_CONNECTED
	.word	BAND_G
	.word	MRVDRV_ACTIVE_SCAN_CHAN_TIME
	.word	CMD_SCAN_TYPE_PASSIVE
	.word	CMD_SCAN_RADIO_TYPE_BG
	.word	MRVDRV_PASSIVE_SCAN_CHAN_TIME
	.size	lbs_scan_create_channel_list, .-lbs_scan_create_channel_list
	.comm	MRVDRV_PASSIVE_SCAN_CHAN_TIME,4,4
	.comm	MRVDRV_ACTIVE_SCAN_CHAN_TIME,4,4
	.comm	LBS_CONNECTED,4,4
	.comm	CMD_SCAN_TYPE_PASSIVE,4,4
	.comm	CMD_SCAN_TYPE_ACTIVE,4,4
	.comm	CMD_SCAN_RADIO_TYPE_BG,4,4
	.comm	BAND_G,4,4
	.comm	BAND_B,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
