	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_scan_stop_wait
_iwl_mvm_scan_stop_wait:                ## @iwl_mvm_scan_stop_wait
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_lockdep_assert_held
	leaq	_iwl_mvm_scan_stop_wait.scan_done_notif(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_iwl_init_notification_wait
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_IWL_DEBUG_SCAN
	movq	8(%rbx), %rdi
	movq	_IWL_UCODE_TLV_CAPA_UMAC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%r14d, %esi
	callq	_iwl_mvm_umac_scan_abort
	jmp	LBB0_3
LBB0_2:
	callq	_iwl_mvm_lmac_scan_abort
LBB0_3:
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_IWL_DEBUG_SCAN
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_iwl_remove_notification
	jmp	LBB0_6
LBB0_5:
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_iwl_wait_notification
	movl	%eax, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @iwl_mvm_scan_stop_wait.scan_done_notif
_iwl_mvm_scan_stop_wait.scan_done_notif:
	.long	129                             ## 0x81
	.long	128                             ## 0x80

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Preparing to stop scan, type %x\n"

	.comm	_IWL_UCODE_TLV_CAPA_UMAC_SCAN,4,2 ## @IWL_UCODE_TLV_CAPA_UMAC_SCAN
L_.str.1:                               ## @.str.1
	.asciz	"couldn't stop scan type %d\n"

	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_iwl_mvm_scan_stop_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_scan_stop_wait
_iwl_mvm_scan_stop_wait:                ; @iwl_mvm_scan_stop_wait
	.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
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #16
	bl	_lockdep_assert_held
Lloh0:
	adrp	x21, _iwl_mvm_scan_stop_wait.scan_done_notif@PAGE
Lloh1:
	add	x21, x21, _iwl_mvm_scan_stop_wait.scan_done_notif@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x21
	mov	x4, #0
	mov	x5, #0
	bl	_iwl_init_notification_wait
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_IWL_DEBUG_SCAN
	ldr	x0, [x19, #8]
Lloh4:
	adrp	x8, _IWL_UCODE_TLV_CAPA_UMAC_SCAN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_UMAC_SCAN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_fw_has_capa
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_umac_scan_abort
	mov	x21, x0
	cbz	w0, LBB0_4
LBB0_2:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_IWL_DEBUG_SCAN
	add	x1, sp, #8
	mov	x0, x19
	bl	_iwl_remove_notification
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_iwl_mvm_lmac_scan_abort
	mov	x21, x0
	cbnz	w0, LBB0_2
LBB0_4:
Lloh9:
	adrp	x8, _HZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_iwl_wait_notification
	mov	x21, x0
LBB0_5:
	mov	x0, x21
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @iwl_mvm_scan_stop_wait.scan_done_notif
_iwl_mvm_scan_stop_wait.scan_done_notif:
	.long	129                             ; 0x81
	.long	128                             ; 0x80

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Preparing to stop scan, type %x\n"

	.comm	_IWL_UCODE_TLV_CAPA_UMAC_SCAN,4,2 ; @IWL_UCODE_TLV_CAPA_UMAC_SCAN
l_.str.1:                               ; @.str.1
	.asciz	"couldn't stop scan type %d\n"

	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_iwl_mvm_scan_stop_wait
.subsections_via_symbols
