	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsi_mac80211_cancel_hw_scan
_rsi_mac80211_cancel_hw_scan:           ## @rsi_mac80211_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	movq	8(%r12), %rbx
	movq	_INFO_ZONE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_rsi_dbg
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.1:
	movq	_RSI_STOP_BGSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rsi_send_bgscan_params
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	$0, (%rbx)
LBB0_3:
	movl	$0, -40(%rbp)
	movl	(%r12), %edi
	leaq	-40(%rbp), %rsi
	callq	_ieee80211_scan_completed
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_rsi_dbg
LBB0_4:
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INFO_ZONE,4,2                  ## @INFO_ZONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"***** Hardware scan stop *****\n"

	.comm	_RSI_STOP_BGSCAN,4,2            ## @RSI_STOP_BGSCAN
L_.str.1:                               ## @.str.1
	.asciz	"Back ground scan cancelled\n"

	.no_dead_strip	_rsi_mac80211_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 rsi_mac80211_cancel_hw_scan
_rsi_mac80211_cancel_hw_scan:           ; @rsi_mac80211_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	x22, [x0]
	ldr	x19, [x22, #8]
Lloh0:
	adrp	x21, _INFO_ZONE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _INFO_ZONE@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_rsi_dbg
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.1:
Lloh4:
	adrp	x8, _RSI_STOP_BGSCAN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RSI_STOP_BGSCAN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rsi_send_bgscan_params
	cbnz	w0, LBB0_3
; %bb.2:
	str	wzr, [x19]
LBB0_3:
	str	wzr, [sp, #8]
	ldr	w0, [x22]
	add	x1, sp, #8
	bl	_ieee80211_scan_completed
	ldr	w0, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_rsi_dbg
LBB0_4:
	str	xzr, [x19, #8]
	mov	x0, x20
	bl	_mutex_unlock
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_INFO_ZONE,4,2                  ; @INFO_ZONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"***** Hardware scan stop *****\n"

	.comm	_RSI_STOP_BGSCAN,4,2            ; @RSI_STOP_BGSCAN
l_.str.1:                               ; @.str.1
	.asciz	"Back ground scan cancelled\n"

	.no_dead_strip	_rsi_mac80211_cancel_hw_scan
.subsections_via_symbols
