	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_scan_stop              ## -- Begin function iwl_mvm_scan_stop
	.p2align	4, 0x90
_iwl_mvm_scan_stop:                     ## @iwl_mvm_scan_stop
	.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
	testl	%esi, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_iwl_mvm_is_radio_killed
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_iwl_mvm_scan_stop_wait
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_IWL_MVM_SCAN_STOPPING_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %eax
	shll	%cl, %eax
	orl	%eax, (%r12)
	xorl	%r14d, %r14d
LBB0_5:
	movl	%ebx, %eax
	notl	%eax
	andl	%eax, (%r12)
	movq	_IWL_MVM_SCAN_REGULAR@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_8
## %bb.6:
	leaq	12(%r12), %rdi
	callq	_cancel_delayed_work
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.7:
	movl	$1, -40(%rbp)
	movl	8(%r12), %edi
	leaq	-40(%rbp), %rsi
	callq	_ieee80211_scan_completed
	jmp	LBB0_10
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_8:
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.9:
	movl	8(%r12), %edi
	callq	_ieee80211_sched_scan_stopped
	movq	_SCHED_SCAN_PASS_ALL_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
LBB0_10:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_MVM_SCAN_STOPPING_SHIFT,4,2 ## @IWL_MVM_SCAN_STOPPING_SHIFT
	.comm	_IWL_MVM_SCAN_REGULAR,4,2       ## @IWL_MVM_SCAN_REGULAR
	.comm	_SCHED_SCAN_PASS_ALL_DISABLED,4,2 ## @SCHED_SCAN_PASS_ALL_DISABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_scan_stop              ; -- Begin function iwl_mvm_scan_stop
	.p2align	2
_iwl_mvm_scan_stop:                     ; @iwl_mvm_scan_stop
	.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	w8, [x0]
	tst	w8, w1
	b.eq	LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_iwl_mvm_is_radio_killed
	cbz	x0, LBB0_4
; %bb.2:
	mov	w19, #0
	b	LBB0_6
LBB0_3:
	mov	w19, #0
	b	LBB0_11
LBB0_4:
	mov	x0, x20
	mov	x1, x22
	bl	_iwl_mvm_scan_stop_wait
	mov	x19, x0
	cbnz	w0, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _IWL_MVM_SCAN_STOPPING_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_MVM_SCAN_STOPPING_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w22, w8
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_6:
	ldr	w8, [x20]
	bic	w8, w8, w22
	str	w8, [x20]
Lloh3:
	adrp	x8, _IWL_MVM_SCAN_REGULAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_MVM_SCAN_REGULAR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_9
; %bb.7:
	add	x0, x20, #12
	bl	_cancel_delayed_work
	cbz	w21, LBB0_11
; %bb.8:
	mov	w8, #1
	str	w8, [sp, #8]
	ldr	w0, [x20, #8]
	add	x1, sp, #8
	bl	_ieee80211_scan_completed
	b	LBB0_11
LBB0_9:
	cbz	w21, LBB0_11
; %bb.10:
	ldr	w0, [x20, #8]
	bl	_ieee80211_sched_scan_stopped
Lloh6:
	adrp	x8, _SCHED_SCAN_PASS_ALL_DISABLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCHED_SCAN_PASS_ALL_DISABLED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #4]
LBB0_11:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MVM_SCAN_STOPPING_SHIFT,4,2 ; @IWL_MVM_SCAN_STOPPING_SHIFT
	.comm	_IWL_MVM_SCAN_REGULAR,4,2       ; @IWL_MVM_SCAN_REGULAR
	.comm	_SCHED_SCAN_PASS_ALL_DISABLED,4,2 ; @SCHED_SCAN_PASS_ALL_DISABLED
.subsections_via_symbols
