	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_swscan_check_scan
_ieee80211_swscan_check_scan:           ## @ieee80211_swscan_check_scan
	.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
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %r15d
	movq	%rsi, %r14
	movq	8(%rsi), %r12
	movq	16(%r12), %r13
	movq	%r12, %rdi
	callq	_IEEE80211_LOCK_ASSERT
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%r13)
	je	LBB0_1
## %bb.3:
	movq	_IEEE80211_SCAN_NOSSID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	movl	%ebx, %r13d
	je	LBB0_5
## %bb.4:
	movq	%r14, %rbx
	jmp	LBB0_6
LBB0_1:
	movl	%ebx, %r13d
	movq	%r14, %rbx
	jmp	LBB0_2
LBB0_5:
	movq	%r14, %rbx
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, %r14
	callq	_ieee80211_scan_copy_ssid
	orl	(%r14), %r13d
LBB0_6:
	movq	_IEEE80211_F_SCAN@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, (%r12)
	jne	LBB0_2
## %bb.7:
	movq	_IEEE80211_SCAN_FLUSH@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_8
LBB0_2:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	movl	-68(%rbp), %r9d                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_swscan_start_scan_locked ## TAILCALL
LBB0_8:
	movq	_ticks@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	addq	8(%r12), %rsi
	callq	_ieee80211_time_before
	testq	%rax, %rax
	je	LBB0_2
## %bb.9:
	movq	_ISCAN_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_SCAN_PRIVATE
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	orl	%ecx, (%rax)
	movl	(%r14), %eax
	orl	%eax, (%r12)
	movzbl	%r13b, %eax
	movl	%eax, (%r15)
	movq	8(%r15), %rax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
	movl	(%r14), %ecx
	notl	%ecx
	andl	%ecx, (%r12)
	movl	%eax, %r14d
	movq	_ISCAN_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	notl	%r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_SCAN_PRIVATE
	andl	%r15d, (%rax)
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.10:
	movq	%rbx, %rdi
	callq	_ieee80211_notify_scan_done
	movl	$1, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_SCAN_NOSSID,4,2      ## @IEEE80211_SCAN_NOSSID
	.comm	_IEEE80211_F_SCAN,4,2           ## @IEEE80211_F_SCAN
	.comm	_IEEE80211_SCAN_FLUSH,4,2       ## @IEEE80211_SCAN_FLUSH
	.comm	_ticks,4,2                      ## @ticks
	.comm	_ISCAN_DISCARD,4,2              ## @ISCAN_DISCARD
	.no_dead_strip	_ieee80211_swscan_check_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_swscan_check_scan
_ieee80211_swscan_check_scan:           ; @ieee80211_swscan_check_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x25, x2
	mov	x24, x1
	mov	x26, x0
	ldr	x28, [x1, #8]
	ldr	x27, [x28, #16]
	mov	x0, x28
	bl	_IEEE80211_LOCK_ASSERT
	ldr	x8, [x27, #8]
	cbz	x8, LBB0_5
; %bb.1:
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
Lloh0:
	adrp	x21, _IEEE80211_SCAN_NOSSID@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IEEE80211_SCAN_NOSSID@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w25
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x24
	mov	x1, x27
	mov	x2, x20
	mov	x3, x19
	bl	_ieee80211_scan_copy_ssid
	ldr	w8, [x21]
	orr	w25, w8, w25
LBB0_3:
	ldr	w21, [sp, #12]                  ; 4-byte Folded Reload
	ldr	w8, [x28]
Lloh2:
	adrp	x9, _IEEE80211_F_SCAN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IEEE80211_F_SCAN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _IEEE80211_SCAN_FLUSH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_SCAN_FLUSH@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_6
LBB0_5:
	mov	x0, x26
	mov	x1, x24
	mov	x2, x25
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ieee80211_swscan_start_scan_locked
LBB0_6:
Lloh8:
	adrp	x8, _ticks@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ticks@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x8, [x28, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_ieee80211_time_before
	cbz	x0, LBB0_5
; %bb.7:
Lloh11:
	adrp	x8, _ISCAN_DISCARD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ISCAN_DISCARD@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	mov	x0, x27
	bl	_SCAN_PRIVATE
	ldr	w8, [x0]
	orr	w8, w8, w21
	str	w8, [x0]
Lloh14:
	adrp	x21, _IEEE80211_F_SCAN@GOTPAGE
Lloh15:
	ldr	x21, [x21, _IEEE80211_F_SCAN@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [x28]
	orr	w8, w9, w8
	str	w8, [x28]
	and	w8, w25, #0xff
	str	w8, [x27]
	ldr	x8, [x27, #8]
	ldr	x8, [x8]
	mov	x0, x27
	mov	x1, x24
	blr	x8
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	ldr	w8, [x21]
	ldr	w9, [x28]
	bic	w8, w9, w8
	str	w8, [x28]
Lloh16:
	adrp	x8, _ISCAN_DISCARD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ISCAN_DISCARD@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	mov	x0, x27
	bl	_SCAN_PRIVATE
	ldr	w8, [x0]
	bic	w8, w8, w21
	str	w8, [x0]
	ldp	w8, w21, [sp, #8]               ; 8-byte Folded Reload
	cbz	w8, LBB0_5
; %bb.8:
	mov	x0, x24
	bl	_ieee80211_notify_scan_done
	mov	w0, #1
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_SCAN_NOSSID,4,2      ; @IEEE80211_SCAN_NOSSID
	.comm	_IEEE80211_F_SCAN,4,2           ; @IEEE80211_F_SCAN
	.comm	_IEEE80211_SCAN_FLUSH,4,2       ; @IEEE80211_SCAN_FLUSH
	.comm	_ticks,4,2                      ; @ticks
	.comm	_ISCAN_DISCARD,4,2              ; @ISCAN_DISCARD
	.no_dead_strip	_ieee80211_swscan_check_scan
.subsections_via_symbols
