	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_scan_cancel          ## -- Begin function ieee80211_scan_cancel
	.p2align	4, 0x90
_ieee80211_scan_cancel:                 ## @ieee80211_scan_cancel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_mutex_lock
	cmpl	$0, 28(%rbx)
	je	LBB0_5
## %bb.1:
	movq	_SCAN_HW_SCANNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	movl	12(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_lockdep_is_held
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_rcu_dereference_protected
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_drv_cancel_hw_scan
	jmp	LBB0_5
LBB0_4:
	leaq	8(%rbx), %rdi
	callq	_cancel_delayed_work
	leaq	4(%rbx), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	___ieee80211_scan_completed
LBB0_5:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCAN_HW_SCANNING,4,2           ## @SCAN_HW_SCANNING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_scan_cancel          ; -- Begin function ieee80211_scan_cancel
	.p2align	2
_ieee80211_scan_cancel:                 ; @ieee80211_scan_cancel
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_mutex_lock
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _SCAN_HW_SCANNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCAN_HW_SCANNING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w20, [x19, #12]
	mov	x0, x19
	bl	_lockdep_is_held
	mov	x1, x0
	mov	x0, x20
	bl	_rcu_dereference_protected
	mov	x1, x0
	mov	x0, x19
	bl	_drv_cancel_hw_scan
	b	LBB0_5
LBB0_4:
	add	x0, x19, #8
	bl	_cancel_delayed_work
	add	x0, x19, #4
	mov	w1, #1
	mov	w2, #0
	bl	___ieee80211_scan_completed
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SCAN_HW_SCANNING,4,2           ; @SCAN_HW_SCANNING
.subsections_via_symbols
