	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_get_scan_results ## -- Begin function wpa_supplicant_get_scan_results
	.p2align	4, 0x90
_wpa_supplicant_get_scan_results:       ## @wpa_supplicant_get_scan_results
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_wpa_drv_get_scan_results2
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	addq	$8, %rbx
	cmpq	$0, 8(%r13)
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_os_get_reltime
LBB0_4:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_filter_scan_res
	cmpq	$0, (%r13)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_5
## %bb.6:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%r12,8), %r15
	movq	%r15, %rdi
	callq	_scan_snr
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_scan_est_throughput
	incq	%r12
	movq	(%r13), %rsi
	cmpq	%rsi, %r12
	jb	LBB0_7
	jmp	LBB0_8
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_wpa_dbg
	jmp	LBB0_16
LBB0_5:
	xorl	%esi, %esi
LBB0_8:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	movq	_wpa_scan_result_compar@GOTPCREL(%rip), %rcx
	movl	$8, %edx
	callq	_qsort
LBB0_10:
	movq	%r13, %rdi
	callq	_dump_scan_res
	cmpq	$0, (%r14)
	je	LBB0_12
## %bb.11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_wpa_dbg
	movq	$0, (%r14)
	jmp	LBB0_16
LBB0_12:
	movq	%rbx, %r12
	movq	%r14, %rdi
	callq	_wpa_bss_update_start
	cmpq	$0, (%r13)
	je	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_wpa_bss_update_scan_res
	incq	%rbx
	cmpq	(%r13), %rbx
	jb	LBB0_14
LBB0_15:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_wpa_bss_update_end
LBB0_16:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get scan results"

L_.str.1:                               ## @.str.1
	.asciz	"Do not update BSS table based on pending post-FLUSH scan results"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_get_scan_results ; -- Begin function wpa_supplicant_get_scan_results
	.p2align	2
_wpa_supplicant_get_scan_results:       ; @wpa_supplicant_get_scan_results
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_wpa_drv_get_scan_results2
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	mov	x23, x19
	ldr	x8, [x23, #8]!
	cbnz	x8, LBB0_3
; %bb.2:
	mov	x0, x23
	bl	_os_get_reltime
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_filter_scan_res
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.4:
	mov	x25, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x24, [x8, x25, lsl #3]
	mov	x0, x24
	bl	_scan_snr
	mov	x0, x20
	mov	x1, x24
	bl	_scan_est_throughput
	add	x25, x25, #1
	ldr	x1, [x19]
	cmp	x25, x1
	b.lo	LBB0_5
; %bb.6:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_8
LBB0_7:
Lloh0:
	adrp	x3, _wpa_scan_result_compar@GOTPAGE
Lloh1:
	ldr	x3, [x3, _wpa_scan_result_compar@GOTPAGEOFF]
	mov	w2, #8
	bl	_qsort
LBB0_8:
	mov	x0, x19
	bl	_dump_scan_res
	ldr	x8, [x20]
	cbz	x8, LBB0_12
; %bb.9:
Lloh2:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_wpa_dbg
	str	xzr, [x20]
	b	LBB0_16
LBB0_10:
Lloh7:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_wpa_dbg
	b	LBB0_16
LBB0_11:
	mov	x1, #0
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_7
	b	LBB0_8
LBB0_12:
	mov	x0, x20
	bl	_wpa_bss_update_start
	ldr	x8, [x19]
	cbz	x8, LBB0_15
; %bb.13:
	mov	x24, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x1, [x8, x24, lsl #3]
	mov	x0, x20
	mov	x2, x23
	bl	_wpa_bss_update_scan_res
	add	x24, x24, #1
	ldr	x8, [x19]
	cmp	x24, x8
	b.lo	LBB0_14
LBB0_15:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_wpa_bss_update_end
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get scan results"

l_.str.1:                               ; @.str.1
	.asciz	"Do not update BSS table based on pending post-FLUSH scan results"

.subsections_via_symbols
