	.file	"extr_scan.c_wpa_supplicant_get_scan_results.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to get scan results"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Do not update BSS table based on pending post-FLUSH scan results"
	.text
	.p2align 4
	.globl	wpa_supplicant_get_scan_results
	.type	wpa_supplicant_get_scan_results, @function
wpa_supplicant_get_scan_results:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	wpa_drv_get_scan_results2@PLT
	mov	r12, rax
	test	rax, rax
	je	.L23
	cmp	QWORD PTR 8[rax], 0
	je	.L24
.L4:
	mov	rsi, r12
	mov	rdi, r13
	call	filter_scan_res@PLT
	mov	rsi, QWORD PTR [r12]
	test	rsi, rsi
	je	.L5
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 16[r12]
	mov	rbp, QWORD PTR [rax+rbx*8]
	add	rbx, 1
	mov	rdi, rbp
	call	scan_snr@PLT
	mov	rsi, rbp
	mov	rdi, r13
	call	scan_est_throughput@PLT
	mov	rsi, QWORD PTR [r12]
	cmp	rsi, rbx
	ja	.L6
.L5:
	mov	rdi, QWORD PTR 16[r12]
	test	rdi, rdi
	je	.L7
	mov	rcx, QWORD PTR wpa_scan_result_compar@GOTPCREL[rip]
	mov	edx, 8
	call	qsort@PLT
.L7:
	mov	rdi, r12
	call	dump_scan_res@PLT
	cmp	QWORD PTR 0[r13], 0
	jne	.L25
	mov	rdi, r13
	xor	ebx, ebx
	lea	rbp, 8[r12]
	call	wpa_bss_update_start@PLT
	cmp	QWORD PTR [r12], 0
	je	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 16[r12]
	mov	rdx, rbp
	mov	rdi, r13
	mov	rsi, QWORD PTR [rax+rbx*8]
	add	rbx, 1
	call	wpa_bss_update_scan_res@PLT
	cmp	QWORD PTR [r12], rbx
	ja	.L10
.L11:
	mov	edx, r15d
	mov	rsi, r14
	mov	rdi, r13
	call	wpa_bss_update_end@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L25:
	.cfi_restore_state
	mov	esi, DWORD PTR MSG_DEBUG[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, r13
	call	wpa_dbg@PLT
	mov	QWORD PTR 0[r13], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rdi, 8[rax]
	call	os_get_reltime@PLT
	jmp	.L4
.L23:
	mov	esi, DWORD PTR MSG_DEBUG[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r13
	call	wpa_dbg@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	wpa_supplicant_get_scan_results, .-wpa_supplicant_get_scan_results
	.comm	MSG_DEBUG,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_wpa_supplicant_get_scan_results.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to get scan results\000"
	.align	2
.LC1:
	.ascii	"Do not update BSS table based on pending post-FLUSH"
	.ascii	" scan results\000"
	.text
	.align	2
	.global	wpa_supplicant_get_scan_results
	.syntax unified
	.arm
	.fpu softvfp
	.type	wpa_supplicant_get_scan_results, %function
wpa_supplicant_get_scan_results:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r1
	mov	r9, r2
	mov	r7, r0
	bl	wpa_drv_get_scan_results2
	subs	r4, r0, #0
	beq	.L22
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L23
.L4:
	mov	r1, r4
	mov	r0, r7
	bl	filter_scan_res
	ldr	r1, [r4]
	cmp	r1, #0
	beq	.L5
	mov	r5, #0
.L6:
	ldr	r3, [r4, #8]
	ldr	r6, [r3, r5, lsl #2]
	add	r5, r5, #1
	mov	r0, r6
	bl	scan_snr
	mov	r1, r6
	mov	r0, r7
	bl	scan_est_throughput
	ldr	r1, [r4]
	cmp	r1, r5
	bhi	.L6
.L5:
	ldr	r0, [r4, #8]
	cmp	r0, #0
	beq	.L7
	mov	r2, #4
	ldr	r3, .L25
	bl	qsort
.L7:
	mov	r0, r4
	bl	dump_scan_res
	ldr	r5, [r7]
	cmp	r5, #0
	bne	.L24
	mov	r0, r7
	bl	wpa_bss_update_start
	ldr	r3, [r4]
	cmp	r3, #0
	addne	r6, r4, #4
	beq	.L11
.L10:
	ldr	r3, [r4, #8]
	mov	r2, r6
	ldr	r1, [r3, r5, lsl #2]
	mov	r0, r7
	bl	wpa_bss_update_scan_res
	ldr	r3, [r4]
	add	r5, r5, #1
	cmp	r3, r5
	bhi	.L10
.L11:
	mov	r2, r9
	mov	r1, r8
	mov	r0, r7
	bl	wpa_bss_update_end
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L24:
	ldr	r3, .L25+4
	mov	r0, r7
	ldr	r1, [r3]
	ldr	r2, .L25+8
	bl	wpa_dbg
	mov	r3, #0
	mov	r0, r4
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L23:
	add	r0, r4, #4
	bl	os_get_reltime
	b	.L4
.L22:
	ldr	r3, .L25+4
	mov	r0, r7
	ldr	r1, [r3]
	ldr	r2, .L25+12
	bl	wpa_dbg
	b	.L1
.L26:
	.align	2
.L25:
	.word	wpa_scan_result_compar
	.word	MSG_DEBUG
	.word	.LC1
	.word	.LC0
	.size	wpa_supplicant_get_scan_results, .-wpa_supplicant_get_scan_results
	.comm	MSG_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
