	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wnm_fetch_scan_results
_wnm_fetch_scan_results:                ## @wnm_fetch_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdx
	callq	_wpa_dbg
	movq	%rbx, %rdi
	callq	_wpa_drv_get_scan_results2
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	addq	$8, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%r13)
	jne	LBB0_5
## %bb.4:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_os_get_reltime
LBB0_5:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_filter_scan_res
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rsi
	cmpq	%rax, %rsi
	jae	LBB0_22
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	16(%rbx), %rcx
	leaq	(%rsi,%rsi,2), %rdx
	cmpq	$0, 16(%rcx,%rdx,8)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_21
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, (%r13)
	je	LBB0_21
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rdx,8), %r15
	addq	$8, %r15
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%rbx, %rdi
	callq	_scan_snr
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_scan_est_throughput
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_wpa_bss_update_scan_res
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=2
	incq	%r14
	cmpq	(%r13), %r14
	jae	LBB0_20
LBB0_12:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r13), %rax
	movq	(%rax,%r14,8), %rbx
	movl	(%r15), %edi
	movq	(%rbx), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_os_memcmp
	testq	%rax, %rax
	jne	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	_WNM_SCAN_RESULT_AGE@GOTPCREL(%rip), %rax
	imull	$1000, (%rax), %eax             ## imm = 0x3E8
	cmpl	%eax, 8(%rbx)
	jg	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r12
	movq	_WLAN_EID_SSID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpa_scan_get_ie
	testq	%r12, %r12
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	(%r12), %rdx
	cmpq	8(%rax), %rdx
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	8(%r12), %edi
	addq	$16, %rax
	movq	%rax, %rsi
	callq	_os_memcmp
	testq	%rax, %rax
	jne	LBB0_19
	jmp	LBB0_18
LBB0_22:
	movq	%r13, %rdi
	callq	_wpa_scan_results_free
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_23
## %bb.24:
	movq	_WNM_SCAN_RESULT_AGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_compare_scan_neighbor_results
	testq	%rax, %rax
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	je	LBB0_25
## %bb.26:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_wnm_bss_tm_connect
	movl	$1, %r14d
	jmp	LBB0_27
LBB0_1:
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_2
LBB0_6:
	movq	%r13, %rdi
	callq	_wpa_scan_results_free
LBB0_23:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_2:
	movq	%rbx, %rdi
	callq	_wpa_dbg
	xorl	%r14d, %r14d
LBB0_27:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	(%rcx), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	callq	_wpa_dbg
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WNM: Fetch current scan results from the driver for checking transition candidates"

L_.str.1:                               ## @.str.1
	.asciz	"WNM: Failed to get scan results"

	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.comm	_WNM_SCAN_RESULT_AGE,4,2        ## @WNM_SCAN_RESULT_AGE
	.comm	_WLAN_EID_SSID,4,2              ## @WLAN_EID_SSID
L_.str.2:                               ## @.str.2
	.asciz	"WNM: No transition candidate matches existing scan results"

L_.str.3:                               ## @.str.3
	.asciz	"WNM: Comparison of scan results against transition candidates did not find matches"

	.no_dead_strip	_wnm_fetch_scan_results
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wnm_fetch_scan_results
_wnm_fetch_scan_results:                ; @wnm_fetch_scan_results
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x22, [x0, #24]
Lloh0:
	adrp	x20, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_wpa_dbg
	mov	x0, x19
	bl	_wpa_drv_get_scan_results2
	cbz	x0, LBB0_22
; %bb.1:
	mov	x21, x0
	mov	x9, x0
	ldr	x8, [x9, #8]!
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_os_get_reltime
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	bl	_filter_scan_res
	ldr	x8, [x19]
	cbz	x8, LBB0_23
; %bb.4:
	stp	x22, xzr, [sp, #8]              ; 16-byte Folded Spill
	mov	x26, #0
Lloh4:
	adrp	x27, _ETH_ALEN@GOTPAGE
Lloh5:
	ldr	x27, [x27, _ETH_ALEN@GOTPAGEOFF]
	mov	w11, #24
Lloh6:
	adrp	x25, _WNM_SCAN_RESULT_AGE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _WNM_SCAN_RESULT_AGE@GOTPAGEOFF]
	mov	w20, #1000
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19]
	mov	w11, #24
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x26, x26, #1
	cmp	x26, x8
	b.hs	LBB0_19
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x9, [x19, #16]
	madd	x10, x26, x11, x9
	ldr	x10, [x10, #16]
	cbz	x10, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mul	x10, x26, x11
	ldr	x10, [x9, x10]
	cbz	x10, LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x21]
	cbz	x10, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, #0
	madd	x8, x26, x11, x9
	add	x22, x8, #8
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x23
	bl	_scan_snr
	mov	x0, x19
	mov	x1, x23
	bl	_scan_est_throughput
	mov	x0, x19
	mov	x1, x23
	ldr	x2, [sp, #24]                   ; 8-byte Folded Reload
	bl	_wpa_bss_update_scan_res
	mov	w8, #1
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x24, x24, #1
	ldr	x8, [x21]
	cmp	x24, x8
	b.hs	LBB0_5
LBB0_13:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #16]
	ldr	x23, [x8, x24, lsl #3]
	ldr	w0, [x22]
	ldr	x1, [x23]
	ldr	x2, [x27]
	bl	_os_memcmp
	cbnz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [x23, #8]
	ldr	w9, [x25]
	mul	w9, w9, w20
	cmp	w8, w9
	b.gt	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x28, [x19, #8]
Lloh8:
	adrp	x8, _WLAN_EID_SSID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WLAN_EID_SSID@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_wpa_scan_get_ie
	cbz	x28, LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	cbz	x0, LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x2, [x28]
	ldr	x8, [x0, #8]
	cmp	x2, x8
	b.ne	LBB0_12
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [x28, #8]
	add	x1, x0, #16
	mov	x0, x8
	bl	_os_memcmp
	cbnz	x0, LBB0_12
	b	LBB0_11
LBB0_19:
	mov	x0, x21
	bl	_wpa_scan_results_free
Lloh11:
	adrp	x20, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x20, [x20, _MSG_DEBUG@GOTPAGEOFF]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_24
; %bb.20:
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, #0
	bl	_compare_scan_neighbor_results
	cbz	x0, LBB0_25
; %bb.21:
	mov	x1, x0
	mov	x0, x19
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	w3, #0
	bl	_wnm_bss_tm_connect
	mov	w0, #1
	b	LBB0_27
LBB0_22:
	ldr	w1, [x20]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_26
LBB0_23:
	mov	x0, x21
	bl	_wpa_scan_results_free
LBB0_24:
	ldr	w1, [x20]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_26
LBB0_25:
	ldr	w1, [x20]
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_26:
	mov	x0, x19
	bl	_wpa_dbg
	mov	w0, #0
LBB0_27:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WNM: Fetch current scan results from the driver for checking transition candidates"

l_.str.1:                               ; @.str.1
	.asciz	"WNM: Failed to get scan results"

	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.comm	_WNM_SCAN_RESULT_AGE,4,2        ; @WNM_SCAN_RESULT_AGE
	.comm	_WLAN_EID_SSID,4,2              ; @WLAN_EID_SSID
l_.str.2:                               ; @.str.2
	.asciz	"WNM: No transition candidate matches existing scan results"

l_.str.3:                               ; @.str.3
	.asciz	"WNM: Comparison of scan results against transition candidates did not find matches"

	.no_dead_strip	_wnm_fetch_scan_results
.subsections_via_symbols
