	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cancel_scan
_cancel_scan:                           ## @cancel_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	8(%r15), %rdi
	movq	%rdi, %r13
	callq	_SCAN_PRIVATE
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_IEEE80211_LOCK
	testl	%r14d, %r14d
	jne	LBB0_1
## %bb.2:
	movq	_ISCAN_CANCEL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ISCAN_PAUSE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movq	_IEEE80211_F_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	je	LBB0_8
## %bb.4:
	testl	%r14d, %r14d
	je	LBB0_5
LBB0_6:
	testl	%edx, (%r12)
	jne	LBB0_8
## %bb.7:
	testl	%r14d, %r14d
	movq	_IEEE80211_MSG_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r8
	cmoveq	%rax, %r8
	movq	_IEEE80211_SCAN_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r13), %eax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %r9
	cmoveq	%rax, %r9
	movl	%edx, %r12d
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_IEEE80211_DPRINTF
	movq	_IEEE80211_SCAN_NOPICK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r13)
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_scan_signal_locked
	jmp	LBB0_9
LBB0_5:
	cmpq	%rbx, 8(%r13)
	je	LBB0_6
LBB0_8:
	movq	_IEEE80211_MSG_SCAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%r8d, %r8d
	testl	%eax, %eax
	setne	%r8b
	cmpq	%rbx, 8(%r13)
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.7(%rip), %r9
	cmoveq	%rax, %r9
	xorl	%eax, %eax
	andl	(%r12), %edx
	setne	%al
	movl	%eax, (%rsp)
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rdi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_IEEE80211_DPRINTF
LBB0_9:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IEEE80211_UNLOCK               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ISCAN_PAUSE,4,2                ## @ISCAN_PAUSE
	.comm	_ISCAN_CANCEL,4,2               ## @ISCAN_CANCEL
	.comm	_IEEE80211_F_SCAN,4,2           ## @IEEE80211_F_SCAN
	.comm	_IEEE80211_MSG_SCAN,4,2         ## @IEEE80211_MSG_SCAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s %s scan\n"

L_.str.1:                               ## @.str.1
	.asciz	"pause"

L_.str.2:                               ## @.str.2
	.asciz	"cancel"

	.comm	_IEEE80211_SCAN_ACTIVE,4,2      ## @IEEE80211_SCAN_ACTIVE
L_.str.3:                               ## @.str.3
	.asciz	"active"

L_.str.4:                               ## @.str.4
	.asciz	"passive"

	.comm	_IEEE80211_SCAN_NOPICK,4,2      ## @IEEE80211_SCAN_NOPICK
L_.str.5:                               ## @.str.5
	.asciz	"%s: called; F_SCAN=%d, vap=%s, signal=%d\n"

L_.str.6:                               ## @.str.6
	.asciz	"match"

L_.str.7:                               ## @.str.7
	.asciz	"nomatch"

	.no_dead_strip	_cancel_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cancel_scan
_cancel_scan:                           ; @cancel_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x2
	mov	x24, x1
	mov	x21, x0
	ldr	x19, [x0]
	ldr	x22, [x19, #8]
	mov	x0, x22
	bl	_SCAN_PRIVATE
	mov	x25, x0
	mov	x0, x19
	bl	_IEEE80211_LOCK
Lloh0:
	adrp	x8, _ISCAN_PAUSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISCAN_PAUSE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ISCAN_CANCEL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ISCAN_CANCEL@GOTPAGEOFF]
	cmp	w24, #0
	csel	x8, x9, x8, eq
	ldr	w23, [x8]
	ldr	w8, [x19]
Lloh4:
	adrp	x9, _IEEE80211_F_SCAN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IEEE80211_F_SCAN@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	ands	w8, w9, w8
	b.eq	LBB0_5
; %bb.1:
	cbz	w24, LBB0_4
LBB0_2:
	ldr	w9, [x25]
	tst	w9, w23
	b.ne	LBB0_5
; %bb.3:
Lloh7:
	adrp	x8, _IEEE80211_MSG_SCAN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IEEE80211_MSG_SCAN@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, l_.str.1@PAGE
Lloh11:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh12:
	adrp	x9, l_.str.2@PAGE
Lloh13:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w24, #0
	csel	x8, x9, x8, eq
	ldr	w9, [x22]
Lloh14:
	adrp	x10, _IEEE80211_SCAN_ACTIVE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IEEE80211_SCAN_ACTIVE@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, l_.str.3@PAGE
Lloh18:
	add	x11, x11, l_.str.3@PAGEOFF
Lloh19:
	adrp	x12, l_.str.4@PAGE
Lloh20:
	add	x12, x12, l_.str.4@PAGEOFF
	tst	w10, w9
	csel	x9, x12, x11, eq
	stp	x8, x9, [sp]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x20
	bl	_IEEE80211_DPRINTF
Lloh23:
	adrp	x8, _IEEE80211_SCAN_NOPICK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IEEE80211_SCAN_NOPICK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x22]
	bic	w8, w9, w8
	str	w8, [x22]
	mov	x0, x22
	mov	x1, x23
	bl	_scan_signal_locked
	b	LBB0_6
LBB0_4:
	ldr	x9, [x22, #8]
	cmp	x9, x21
	b.eq	LBB0_2
LBB0_5:
Lloh26:
	adrp	x9, _IEEE80211_MSG_SCAN@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IEEE80211_MSG_SCAN@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x9]
	cmp	w8, #0
	cset	w8, ne
Lloh29:
	adrp	x9, l_.str.7@PAGE
Lloh30:
	add	x9, x9, l_.str.7@PAGEOFF
Lloh31:
	adrp	x10, l_.str.6@PAGE
Lloh32:
	add	x10, x10, l_.str.6@PAGEOFF
	ldr	x11, [x22, #8]
	cmp	x11, x21
	csel	x9, x10, x9, eq
	ldr	w10, [x25]
	tst	w10, w23
	cset	w10, ne
	stp	x8, x9, [sp]
	str	x10, [sp, #16]
Lloh33:
	adrp	x2, l_.str.5@PAGE
Lloh34:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	x3, x20
	bl	_IEEE80211_DPRINTF
LBB0_6:
	mov	x0, 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
	add	sp, sp, #112
	b	_IEEE80211_UNLOCK
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ISCAN_PAUSE,4,2                ; @ISCAN_PAUSE
	.comm	_ISCAN_CANCEL,4,2               ; @ISCAN_CANCEL
	.comm	_IEEE80211_F_SCAN,4,2           ; @IEEE80211_F_SCAN
	.comm	_IEEE80211_MSG_SCAN,4,2         ; @IEEE80211_MSG_SCAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s %s scan\n"

l_.str.1:                               ; @.str.1
	.asciz	"pause"

l_.str.2:                               ; @.str.2
	.asciz	"cancel"

	.comm	_IEEE80211_SCAN_ACTIVE,4,2      ; @IEEE80211_SCAN_ACTIVE
l_.str.3:                               ; @.str.3
	.asciz	"active"

l_.str.4:                               ; @.str.4
	.asciz	"passive"

	.comm	_IEEE80211_SCAN_NOPICK,4,2      ; @IEEE80211_SCAN_NOPICK
l_.str.5:                               ; @.str.5
	.asciz	"%s: called; F_SCAN=%d, vap=%s, signal=%d\n"

l_.str.6:                               ; @.str.6
	.asciz	"match"

l_.str.7:                               ; @.str.7
	.asciz	"nomatch"

	.no_dead_strip	_cancel_scan
.subsections_via_symbols
