	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcn36xx_cancel_hw_scan
_wcn36xx_cancel_hw_scan:                ## @wcn36xx_cancel_hw_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	$1, (%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	12(%rbx), %edi
	movq	_SCAN_OFFLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get_feat_caps
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wcn36xx_smd_stop_hw_scan       ## TAILCALL
LBB0_1:
	movl	$1, -24(%rbp)
	leaq	8(%rbx), %rdi
	callq	_cancel_work_sync
	movl	4(%rbx), %edi
	leaq	-24(%rbp), %rsi
	callq	_ieee80211_scan_completed
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCAN_OFFLOAD,4,2               ## @SCAN_OFFLOAD
	.no_dead_strip	_wcn36xx_cancel_hw_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wcn36xx_cancel_hw_scan
_wcn36xx_cancel_hw_scan:                ; @wcn36xx_cancel_hw_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x19, [x0]
	add	x20, x19, #16
	mov	x0, x20
	bl	_mutex_lock
	mov	w21, #1
	str	w21, [x19]
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w0, [x19, #12]
Lloh0:
	adrp	x8, _SCAN_OFFLOAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCAN_OFFLOAD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_get_feat_caps
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	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
	add	sp, sp, #64
	b	_wcn36xx_smd_stop_hw_scan
LBB0_2:
	str	w21, [sp, #8]
	add	x0, x19, #8
	bl	_cancel_work_sync
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	bl	_ieee80211_scan_completed
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SCAN_OFFLOAD,4,2               ; @SCAN_OFFLOAD
	.no_dead_strip	_wcn36xx_cancel_hw_scan
.subsections_via_symbols
