	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___iwl_mvm_mac_stop             ## -- Begin function __iwl_mvm_mac_stop
	.p2align	4, 0x90
___iwl_mvm_mac_stop:                    ## @__iwl_mvm_mac_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	addq	$40, %rdi
	callq	_lockdep_assert_held
	leaq	36(%r14), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	32(%r14), %rdi
	callq	_flush_work
	movq	%r14, %rdi
	callq	_iwl_mvm_stop_device
	movq	%r14, %rdi
	callq	_iwl_mvm_async_handlers_purge
	movq	%r14, %rdi
	callq	_iwl_mvm_del_aux_sta
	movq	_IWL_MVM_STATUS_IN_HW_RESTART@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%r14), %rbx
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_IWL_MVM_STATUS_HW_RESTART_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movl	24(%r14), %edi
	movq	_iwl_mvm_cleanup_iterator@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_ieee80211_iterate_interfaces
LBB0_3:
	movq	16(%r14), %rdi
	movq	_IWL_UCODE_TLV_CAPA_UMAC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	cmpl	$0, (%r14)
	jle	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_WARN_ONCE
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_MVM_STATUS_IN_HW_RESTART,4,2 ## @IWL_MVM_STATUS_IN_HW_RESTART
	.comm	_IWL_MVM_STATUS_HW_RESTART_REQUESTED,4,2 ## @IWL_MVM_STATUS_HW_RESTART_REQUESTED
	.comm	_iwl_mvm_cleanup_iterator,4,2   ## @iwl_mvm_cleanup_iterator
	.comm	_IWL_UCODE_TLV_CAPA_UMAC_SCAN,4,2 ## @IWL_UCODE_TLV_CAPA_UMAC_SCAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UMAC scan UID %d status was not cleaned\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___iwl_mvm_mac_stop             ; -- Begin function __iwl_mvm_mac_stop
	.p2align	2
___iwl_mvm_mac_stop:                    ; @__iwl_mvm_mac_stop
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	add	x0, x0, #40
	bl	_lockdep_assert_held
	add	x0, x19, #36
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, x19, #32
	bl	_flush_work
	mov	x0, x19
	bl	_iwl_mvm_stop_device
	mov	x0, x19
	bl	_iwl_mvm_async_handlers_purge
	mov	x0, x19
	bl	_iwl_mvm_del_aux_sta
Lloh0:
	adrp	x8, _IWL_MVM_STATUS_IN_HW_RESTART@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_MVM_STATUS_IN_HW_RESTART@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #28
	mov	x1, x20
	bl	_test_and_clear_bit
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IWL_MVM_STATUS_HW_RESTART_REQUESTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_MVM_STATUS_HW_RESTART_REQUESTED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_3
LBB0_2:
	ldr	w0, [x19, #24]
Lloh6:
	adrp	x8, _iwl_mvm_cleanup_iterator@GOTPAGE
Lloh7:
	ldr	x8, [x8, _iwl_mvm_cleanup_iterator@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x19
	bl	_ieee80211_iterate_interfaces
LBB0_3:
	ldr	x0, [x19, #16]
Lloh9:
	adrp	x8, _IWL_UCODE_TLV_CAPA_UMAC_SCAN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_UMAC_SCAN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_fw_has_capa
	cbz	x0, LBB0_9
; %bb.4:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x20, #0
Lloh12:
	adrp	x21, l_.str@PAGE
Lloh13:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.ge	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x20, lsl #3]
	mov	x1, x21
	mov	x2, x20
	bl	_WARN_ONCE
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #8]
	str	xzr, [x8, x20, lsl #3]
	b	LBB0_6
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MVM_STATUS_IN_HW_RESTART,4,2 ; @IWL_MVM_STATUS_IN_HW_RESTART
	.comm	_IWL_MVM_STATUS_HW_RESTART_REQUESTED,4,2 ; @IWL_MVM_STATUS_HW_RESTART_REQUESTED
	.comm	_iwl_mvm_cleanup_iterator,4,2   ; @iwl_mvm_cleanup_iterator
	.comm	_IWL_UCODE_TLV_CAPA_UMAC_SCAN,4,2 ; @IWL_UCODE_TLV_CAPA_UMAC_SCAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UMAC scan UID %d status was not cleaned\n"

.subsections_via_symbols
