	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scan_done
_scan_done:                             ## @scan_done
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_SCAN_PRIVATE
	movq	%rax, %r15
	movq	24(%rbx), %r12
	movq	32(%rbx), %r14
	movq	%r14, %rdi
	callq	_IEEE80211_LOCK_ASSERT
	movq	_IEEE80211_F_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%r14)
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.1:
	movq	_IEEE80211_FEXT_SCAN_OFFLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	*8(%r12)
LBB0_3:
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jl	LBB0_5
## %bb.4:
	movq	_IEEE80211_FEXT_BGSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
LBB0_5:
	movq	_ISCAN_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	jne	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_ieee80211_notify_scan_done
LBB0_7:
	movq	_ISCAN_PAUSE@GOTPCREL(%rip), %rax
	movq	_ISCAN_ABORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%r15)
	movq	$0, 8(%r15)
	movq	_IEEE80211_SCAN_ONCE@GOTPCREL(%rip), %rax
	movq	_IEEE80211_SCAN_PICK1ST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, 16(%rbx)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IEEE80211_UNLOCK               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_F_SCAN,4,2           ## @IEEE80211_F_SCAN
	.comm	_IEEE80211_FEXT_SCAN_OFFLOAD,4,2 ## @IEEE80211_FEXT_SCAN_OFFLOAD
	.comm	_IEEE80211_FEXT_BGSCAN,4,2      ## @IEEE80211_FEXT_BGSCAN
	.comm	_ISCAN_INTERRUPT,4,2            ## @ISCAN_INTERRUPT
	.comm	_ISCAN_PAUSE,4,2                ## @ISCAN_PAUSE
	.comm	_ISCAN_ABORT,4,2                ## @ISCAN_ABORT
	.comm	_IEEE80211_SCAN_ONCE,4,2        ## @IEEE80211_SCAN_ONCE
	.comm	_IEEE80211_SCAN_PICK1ST,4,2     ## @IEEE80211_SCAN_PICK1ST
	.no_dead_strip	_scan_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scan_done
_scan_done:                             ; @scan_done
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x1
	mov	x19, x0
	bl	_SCAN_PRIVATE
	mov	x21, x0
	ldp	x22, x20, [x19, #24]
	mov	x0, x20
	bl	_IEEE80211_LOCK_ASSERT
Lloh0:
	adrp	x8, _IEEE80211_F_SCAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_F_SCAN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	bic	w8, w9, w8
	str	w8, [x20, #4]
	cbz	w23, LBB0_7
; %bb.1:
	ldr	w8, [x22]
Lloh3:
	adrp	x9, _IEEE80211_FEXT_SCAN_OFFLOAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_FEXT_SCAN_OFFLOAD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x22, #8]
	mov	x0, x22
	mov	w1, #0
	blr	x8
LBB0_3:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.lt	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _IEEE80211_FEXT_BGSCAN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_FEXT_BGSCAN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
LBB0_5:
	ldr	w8, [x21]
Lloh9:
	adrp	x9, _ISCAN_INTERRUPT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ISCAN_INTERRUPT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_ieee80211_notify_scan_done
LBB0_7:
Lloh12:
	adrp	x8, _ISCAN_PAUSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ISCAN_PAUSE@GOTPAGEOFF]
Lloh14:
	adrp	x9, _ISCAN_ABORT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ISCAN_ABORT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
	str	xzr, [x21, #8]
Lloh18:
	adrp	x8, _IEEE80211_SCAN_ONCE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IEEE80211_SCAN_ONCE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _IEEE80211_SCAN_PICK1ST@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IEEE80211_SCAN_PICK1ST@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #16]
	bic	w8, w9, w8
	str	w8, [x19, #16]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_IEEE80211_UNLOCK
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_F_SCAN,4,2           ; @IEEE80211_F_SCAN
	.comm	_IEEE80211_FEXT_SCAN_OFFLOAD,4,2 ; @IEEE80211_FEXT_SCAN_OFFLOAD
	.comm	_IEEE80211_FEXT_BGSCAN,4,2      ; @IEEE80211_FEXT_BGSCAN
	.comm	_ISCAN_INTERRUPT,4,2            ; @ISCAN_INTERRUPT
	.comm	_ISCAN_PAUSE,4,2                ; @ISCAN_PAUSE
	.comm	_ISCAN_ABORT,4,2                ; @ISCAN_ABORT
	.comm	_IEEE80211_SCAN_ONCE,4,2        ; @IEEE80211_SCAN_ONCE
	.comm	_IEEE80211_SCAN_PICK1ST,4,2     ; @IEEE80211_SCAN_PICK1ST
	.no_dead_strip	_scan_done
.subsections_via_symbols
