	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_mac_flush
_iwl_mvm_mac_flush:                     ## @iwl_mvm_mac_flush
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	callq	_IWL_MAC80211_GET_MVM
	movq	%rax, %r15
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.1:
	movq	%rax, %r13
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.2:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	leaq	16(%r13), %rdi
	callq	_flush_work
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %r13
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r12
	jge	LBB0_17
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%r12,4), %ebx
	movq	%r13, %rdi
	callq	_lockdep_is_held
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_rcu_dereference_protected
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	jne	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rbx
	movq	%r14, %rdi
	callq	_iwl_mvm_sta_from_mac80211
	movq	%rax, %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, 8(%r13)
	jne	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	cmpq	%rax, %r12
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, (%r14)
	sete	%al
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movzbl	%al, %edi
	callq	_WARN_ON
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_iwl_mvm_flush_sta
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_IWL_ERR
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	orl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_iwl_mvm_has_new_tx_api
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_iwl_mvm_wait_sta_queues_empty
	jmp	LBB0_15
LBB0_20:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_mvm_flush_no_vif           ## TAILCALL
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_17:
	movq	%r13, %rdi
	callq	_mutex_unlock
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	callq	_iwl_mvm_has_new_tx_api
	testq	%rax, %rax
	je	LBB0_21
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	(%r15), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_trans_wait_tx_queues_empty ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"flush request fail\n"

	.no_dead_strip	_iwl_mvm_mac_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_mac_flush
_iwl_mvm_mac_flush:                     ; @iwl_mvm_mac_flush
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	bl	_IWL_MAC80211_GET_MVM
	mov	x19, x0
	cbz	x21, LBB0_14
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.2:
	add	x0, x19, #16
	bl	_flush_work
	add	x22, x19, #4
	mov	x0, x22
	bl	_mutex_lock
	mov	x0, x21
	bl	_iwl_mvm_vif_from_mac80211
	mov	x24, x0
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.3:
	mov	x28, #0
	mov	w23, #0
Lloh3:
	adrp	x25, l_.str@PAGE
Lloh4:
	add	x25, x25, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x28, x28, #1
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	x28, w0, sxtw
	b.ge	LBB0_16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w26, [x8, x28, lsl #2]
	mov	x0, x22
	bl	_lockdep_is_held
	mov	x1, x0
	mov	x0, x26
	bl	_rcu_dereference_protected
	mov	x27, x0
	bl	_IS_ERR_OR_NULL
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x27
	bl	_iwl_mvm_sta_from_mac80211
	ldr	x8, [x0, #8]
	cmp	x8, x21
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x0
	ldr	w8, [x24]
	cmp	x28, x8
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #0
	bl	_WARN_ON
	cbz	w20, LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x26
	mov	w2, #0
	mov	w3, #0
	bl	_iwl_mvm_flush_sta
	cbz	x0, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_IWL_ERR
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	w20, LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26]
	orr	w23, w8, w23
	mov	x0, x19
	bl	_iwl_mvm_has_new_tx_api
	cbz	x0, LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x26
	bl	_iwl_mvm_wait_sta_queues_empty
	b	LBB0_4
LBB0_14:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_iwl_mvm_flush_no_vif
LBB0_15:
	mov	w23, #0
LBB0_16:
	mov	x0, x22
	bl	_mutex_unlock
	cbnz	w20, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_iwl_mvm_has_new_tx_api
	cbz	x0, LBB0_19
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	ldr	w0, [x19]
	mov	x1, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_iwl_trans_wait_tx_queues_empty
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"flush request fail\n"

	.no_dead_strip	_iwl_mvm_mac_flush
.subsections_via_symbols
