	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_flush_no_vif
_iwl_mvm_flush_no_vif:                  ## @iwl_mvm_flush_no_vif
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_iwl_mvm_has_new_tx_api
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_iwl_mvm_sta_from_mac80211
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_iwl_mvm_wait_sta_queues_empty
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %r12d
	movq	%r15, %rdi
	callq	_lockdep_is_held
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_rcu_dereference_protected
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$255, %edx
	xorl	%ecx, %ecx
	callq	_iwl_mvm_flush_sta_tids
	jmp	LBB0_10
LBB0_1:
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_iwl_mvm_flushable_queues
	andl	%eax, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_iwl_mvm_flush_tx_path
LBB0_11:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_3:
	movl	16(%r15), %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_trans_wait_tx_queues_empty ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_iwl_mvm_flush_no_vif
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_flush_no_vif
_iwl_mvm_flush_no_vif:                  ; @iwl_mvm_flush_no_vif
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_iwl_mvm_has_new_tx_api
	cbz	w0, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_mutex_lock
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x21, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_iwl_mvm_sta_from_mac80211
	mov	x1, x0
	mov	x0, x19
	bl	_iwl_mvm_wait_sta_queues_empty
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w22, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_lockdep_is_held
	mov	x1, x0
	mov	x0, x22
	bl	_rcu_dereference_protected
	mov	x22, x0
	bl	_IS_ERR_OR_NULL
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w20, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #255
	mov	w3, #0
	bl	_iwl_mvm_flush_sta_tids
	b	LBB0_4
LBB0_8:
	cbz	w20, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_iwl_mvm_flushable_queues
	and	w1, w0, w21
	mov	x0, x19
	mov	w2, #0
	bl	_iwl_mvm_flush_tx_path
LBB0_10:
	mov	x0, x19
	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
	b	_mutex_unlock
LBB0_11:
	ldr	w0, [x19, #16]
	mov	x1, x21
	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
	b	_iwl_trans_wait_tx_queues_empty
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_iwl_mvm_flush_no_vif
.subsections_via_symbols
