	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_free_inactive_queue
_iwl_mvm_free_inactive_queue:           ## @iwl_mvm_free_inactive_queue
	.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
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %rbx
	addq	$8, %rdi
	callq	_lockdep_assert_held
	movq	%rbx, %rdi
	callq	_iwl_mvm_has_new_tx_api
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movslq	%r14d, %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %r13
	movq	8(%rax,%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_iwl_mvm_sta_from_staid_protected
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_iwl_mvm_remove_sta_queue_marking
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	callq	_iwl_mvm_invalidate_sta_queue
LBB0_5:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	callq	_iwl_mvm_disable_txq
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_IWL_ERR
	movl	%r12d, %r15d
	jmp	LBB0_9
LBB0_7:
	cmpq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_9
## %bb.8:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_iwl_mvm_invalidate_sta_queue
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to free inactive queue %d (ret=%d)\n"

	.no_dead_strip	_iwl_mvm_free_inactive_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_free_inactive_queue
_iwl_mvm_free_inactive_queue:           ; @iwl_mvm_free_inactive_queue
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	add	x0, x0, #8
	bl	_lockdep_assert_held
	mov	x0, x20
	bl	_iwl_mvm_has_new_tx_api
	bl	_WARN_ON
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	add	x8, x8, w19, sxtw #4
	ldp	x23, x24, [x8]
	mov	x0, x20
	mov	x1, x23
	bl	_iwl_mvm_sta_from_staid_protected
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_iwl_mvm_remove_sta_queue_marking
	cbz	x0, LBB0_6
; %bb.5:
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_iwl_mvm_invalidate_sta_queue
LBB0_6:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x3, x24
	mov	w4, #0
	bl	_iwl_mvm_disable_txq
	cbz	w0, LBB0_8
; %bb.7:
	mov	x22, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x22
	bl	_IWL_ERR
	b	LBB0_3
LBB0_8:
	cmp	x23, x21
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	mov	w3, #1
	bl	_iwl_mvm_invalidate_sta_queue
LBB0_10:
	mov	w22, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to free inactive queue %d (ret=%d)\n"

	.no_dead_strip	_iwl_mvm_free_inactive_queue
.subsections_via_symbols
