	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_sta_alloc_queue
_iwl_mvm_sta_alloc_queue:               ## @iwl_mvm_sta_alloc_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_iwl_mvm_sta_from_mac80211
	movq	%rax, %r15
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, -96(%rbp)
	movl	$0, -92(%rbp)
	movl	32(%rax), %ebx
	movl	%ebx, -88(%rbp)
	movq	_IWL_FRAME_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_iwl_mvm_mac_ac_to_tx_fifo
	movl	%eax, -80(%rbp)
	movl	36(%r15), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_iwl_mvm_get_wd_timeout
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	16(%r12), %rdi
	callq	_lockdep_assert_held
	movq	%r12, %rdi
	callq	_iwl_mvm_has_new_tx_api
	testq	%rax, %rax
	je	LBB0_1
## %bb.33:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_mvm_sta_alloc_queue_tvqm   ## TAILCALL
LBB0_1:
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %r14
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	(%r15), %r13
	movq	24(%r15), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movslq	%ebx, %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	leaq	(%rcx,%rcx,2), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movl	(%rax,%rcx,4), %edi
	callq	_IEEE80211_SEQ_TO_SN
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movq	_IWL_MAX_TID_COUNT@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	movq	%r15, %r14
	movq	%r12, %rbx
	jne	LBB0_5
## %bb.2:
	movl	32(%r14), %esi
	movq	_IWL_MVM_DQA_MIN_MGMT_QUEUE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_IWL_MVM_DQA_MAX_MGMT_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_iwl_mvm_find_free_queue
	movl	%eax, %r15d
	cmpl	(%r12), %eax
	jl	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
LBB0_4:
	testl	%r15d, %r15d
	jns	LBB0_10
LBB0_5:
	movq	8(%r14), %r15
	movq	_IEEE80211_INVAL_HW_QUEUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_8
## %bb.6:
	movq	8(%rbx), %rax
	movq	%r15, %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rcx
	movq	_IWL_MVM_QUEUE_RESERVED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.7:
	movslq	%r15d, %r12
	movq	%r12, %rcx
	shlq	$4, %rcx
	movl	$1, 8(%rax,%rcx)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
	testl	%r12d, %r12d
	jns	LBB0_10
LBB0_8:
	movl	32(%r14), %esi
	movq	_IWL_MVM_DQA_MIN_DATA_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IWL_MVM_DQA_MAX_DATA_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_iwl_mvm_find_free_queue
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_9
LBB0_10:
	testl	%r15d, %r15d
	jle	LBB0_11
LBB0_14:
	movq	_IWL_MVM_QUEUE_READY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movl	%r15d, %edx
	shlq	$4, %rdx
	movq	%rax, (%rcx,%rdx)
	xorl	%edi, %edi
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_15
LBB0_9:
	movl	32(%r14), %esi
	movq	%rbx, %rdi
	callq	_iwl_mvm_inactivity_check
	movl	%eax, %r15d
	testl	%r15d, %r15d
	jg	LBB0_14
LBB0_11:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_iwl_mvm_get_shared_queue
	movl	%eax, %r15d
	testl	%eax, %eax
	setg	%al
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	jle	LBB0_13
## %bb.12:
	movq	_IWL_MVM_QUEUE_SHARED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movl	%r15d, %edx
	shlq	$4, %rdx
	movq	%rax, (%rcx,%rdx)
LBB0_13:
	xorl	%edi, %edi
	testl	%r15d, %r15d
	setle	%dil
LBB0_15:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	callq	_IWL_ERR
	movl	%r15d, %r12d
	jmp	LBB0_32
LBB0_17:
	movq	_IWL_MVM_DQA_MIN_DATA_QUEUE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	setge	%al
	movq	_IWL_MVM_DQA_BSS_CLIENT_QUEUE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	movl	%eax, -92(%rbp)
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %rdx
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	testb	%r13b, %r13b
	cmovneq	%rax, %rdx
	movl	32(%r14), %r8d
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
	testb	%r13b, %r13b
	je	LBB0_34
## %bb.18:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_iwl_mvm_get_queue_agg_tids
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	%rax, %r12
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_iwl_mvm_invalidate_sta_queue
LBB0_20:
	leaq	-96(%rbp), %r8
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_iwl_mvm_enable_txq
	movl	%eax, %r12d
	movl	(%rbx), %edi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_iwl_trans_txq_set_shared_mode
	jmp	LBB0_21
LBB0_34:
	leaq	-96(%rbp), %r8
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_iwl_mvm_enable_txq
	movl	%eax, %r12d
LBB0_21:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_spin_lock_bh
	movq	24(%r14), %rax
	testl	%r12d, %r12d
	je	LBB0_23
## %bb.22:
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	addl	$16, (%rax,%rcx,4)
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	incl	%edx
	movq	_IEEE80211_SCTL_SEQ@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
LBB0_23:
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	shlq	$2, %rcx
	leaq	(%rcx,%rcx,2), %r12
	movl	%r15d, 4(%rax,%r12)
	movl	%r15d, %edi
	callq	_BIT
	orq	%rax, (%r14)
	movq	24(%r14), %rax
	movl	8(%rax,%r12), %r13d
	movslq	%r15d, %rax
	cmpq	%rax, 8(%r14)
	jne	LBB0_25
## %bb.24:
	movq	%r14, %rcx
	movq	_IEEE80211_INVAL_HW_QUEUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
LBB0_25:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_spin_unlock_bh
	cmpb	$0, -56(%rbp)                   ## 1-byte Folded Reload
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_26
## %bb.30:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %r14
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_iwl_mvm_txq_from_tid
                                        ## kill: def $eax killed $eax def $rax
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	$0
	callq	_iwl_mvm_redirect_queue
	addq	$16, %rsp
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_29
## %bb.31:
	xorl	%r12d, %r12d
	jmp	LBB0_32
LBB0_26:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	_STA_MODIFY_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_iwl_mvm_sta_send_to_fw
	movq	%rbx, %r14
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_27
LBB0_29:
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	callq	_iwl_mvm_disable_txq
	movl	%r13d, %r12d
LBB0_32:
	movl	%r12d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	_IWL_AGG_ON@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	jne	LBB0_32
## %bb.28:
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_iwl_mvm_sta_tx_agg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_29
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_FRAME_LIMIT,4,2            ## @IWL_FRAME_LIMIT
	.comm	_IWL_MAX_TID_COUNT,4,2          ## @IWL_MAX_TID_COUNT
	.comm	_IWL_MVM_DQA_MIN_MGMT_QUEUE,4,2 ## @IWL_MVM_DQA_MIN_MGMT_QUEUE
	.comm	_IWL_MVM_DQA_MAX_MGMT_QUEUE,4,2 ## @IWL_MVM_DQA_MAX_MGMT_QUEUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found free MGMT queue #%d\n"

	.comm	_IEEE80211_INVAL_HW_QUEUE,8,3   ## @IEEE80211_INVAL_HW_QUEUE
	.comm	_IWL_MVM_QUEUE_RESERVED,8,3     ## @IWL_MVM_QUEUE_RESERVED
L_.str.1:                               ## @.str.1
	.asciz	"Using reserved queue #%d\n"

	.comm	_IWL_MVM_DQA_MIN_DATA_QUEUE,4,2 ## @IWL_MVM_DQA_MIN_DATA_QUEUE
	.comm	_IWL_MVM_DQA_MAX_DATA_QUEUE,4,2 ## @IWL_MVM_DQA_MAX_DATA_QUEUE
	.comm	_IWL_MVM_QUEUE_SHARED,8,3       ## @IWL_MVM_QUEUE_SHARED
	.comm	_IWL_MVM_QUEUE_READY,8,3        ## @IWL_MVM_QUEUE_READY
L_.str.2:                               ## @.str.2
	.asciz	"No available queues for tid %d on sta_id %d\n"

	.comm	_IWL_MVM_DQA_BSS_CLIENT_QUEUE,4,2 ## @IWL_MVM_DQA_BSS_CLIENT_QUEUE
L_.str.3:                               ## @.str.3
	.asciz	"Allocating %squeue #%d to sta %d on tid %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"shared "

L_.str.5:                               ## @.str.5
	.space	1

L_.str.6:                               ## @.str.6
	.asciz	"Disabling aggs on queue %d\n"

	.comm	_IEEE80211_SCTL_SEQ,4,2         ## @IEEE80211_SCTL_SEQ
	.comm	_STA_MODIFY_QUEUES,4,2          ## @STA_MODIFY_QUEUES
	.comm	_IWL_AGG_ON,4,2                 ## @IWL_AGG_ON
	.no_dead_strip	_iwl_mvm_sta_alloc_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_sta_alloc_queue
_iwl_mvm_sta_alloc_queue:               ; @iwl_mvm_sta_alloc_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_iwl_mvm_sta_from_mac80211
	mov	x23, x0
	stp	w19, wzr, [sp, #40]
	ldr	w28, [x0, #32]
Lloh0:
	adrp	x8, _IWL_FRAME_LIMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_FRAME_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w28, w8, [sp, #48]
	mov	x0, x20
	mov	x1, x22
	bl	_iwl_mvm_mac_ac_to_tx_fifo
	str	w0, [sp, #56]
	ldr	w1, [x23, #36]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_iwl_mvm_get_wd_timeout
	mov	x24, x0
	add	x0, x20, #16
	bl	_lockdep_assert_held
	mov	x0, x20
	bl	_iwl_mvm_has_new_tx_api
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_iwl_mvm_sta_alloc_queue_tvqm
LBB0_2:
	str	w24, [sp, #32]                  ; 4-byte Folded Spill
	add	x27, x23, #16
	mov	x0, x27
	bl	_spin_lock_bh
	ldr	x26, [x23]
	ldr	x8, [x23, #24]
	mov	w9, #12
	smull	x9, w19, w9
	ldr	w0, [x8, x9]
	bl	_IEEE80211_SEQ_TO_SN
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	mov	x0, x27
	bl	_spin_unlock_bh
Lloh3:
	adrp	x8, _IWL_MAX_TID_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_MAX_TID_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_6
; %bb.3:
	ldr	w1, [x23, #32]
Lloh6:
	adrp	x24, _IWL_MVM_DQA_MIN_MGMT_QUEUE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IWL_MVM_DQA_MIN_MGMT_QUEUE@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh8:
	adrp	x8, _IWL_MVM_DQA_MAX_MGMT_QUEUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IWL_MVM_DQA_MAX_MGMT_QUEUE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_iwl_mvm_find_free_queue
	mov	x25, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.lt	LBB0_5
; %bb.4:
	mov	x8, x25
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_IWL_DEBUG_TX_QUEUES
LBB0_5:
	tbz	w25, #31, LBB0_10
LBB0_6:
	ldr	x25, [x23, #8]
Lloh13:
	adrp	x8, _IEEE80211_INVAL_HW_QUEUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IEEE80211_INVAL_HW_QUEUE@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x25, x8
	b.eq	LBB0_9
; %bb.7:
	ldr	x8, [x20, #8]
	lsl	x9, x25, #4
	ldr	x9, [x8, x9]
Lloh16:
	adrp	x10, _IWL_MVM_QUEUE_RESERVED@GOTPAGE
Lloh17:
	ldr	x10, [x10, _IWL_MVM_QUEUE_RESERVED@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.8:
	lsl	x9, x25, #32
	add	x8, x8, x9, asr #28
	mov	w9, #1
	str	w9, [x8, #8]
	str	x25, [sp]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_IWL_DEBUG_TX_QUEUES
	tbz	w25, #31, LBB0_10
LBB0_9:
	ldr	w1, [x23, #32]
Lloh21:
	adrp	x8, _IWL_MVM_DQA_MIN_DATA_QUEUE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IWL_MVM_DQA_MIN_DATA_QUEUE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _IWL_MVM_DQA_MAX_DATA_QUEUE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IWL_MVM_DQA_MAX_DATA_QUEUE@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_iwl_mvm_find_free_queue
	mov	x25, x0
	tbnz	w0, #31, LBB0_13
LBB0_10:
	cmp	w25, #0
	b.le	LBB0_14
LBB0_11:
	mov	w0, #0
	mov	w24, #0
Lloh27:
	adrp	x8, _IWL_MVM_QUEUE_READY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IWL_MVM_QUEUE_READY@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	mov	w10, w25
	lsl	x10, x10, #4
	str	x8, [x9, x10]
	bl	_WARN_ON
	cbz	x0, LBB0_17
LBB0_12:
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x28
	bl	_IWL_ERR
	b	LBB0_33
LBB0_13:
	ldr	w1, [x23, #32]
	mov	x0, x20
	bl	_iwl_mvm_inactivity_check
	mov	x25, x0
	cmp	w25, #0
	b.gt	LBB0_11
LBB0_14:
	mov	x0, x20
	mov	x1, x26
	mov	x2, x22
	bl	_iwl_mvm_get_shared_queue
	mov	x25, x0
	cmp	w0, #0
	cset	w24, gt
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.15:
Lloh32:
	adrp	x8, _IWL_MVM_QUEUE_SHARED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IWL_MVM_QUEUE_SHARED@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	mov	w10, w25
	lsl	x10, x10, #4
	str	x8, [x9, x10]
LBB0_16:
	cmp	w25, #1
	cset	w0, lt
	bl	_WARN_ON
	cbnz	x0, LBB0_12
LBB0_17:
Lloh35:
	adrp	x8, _IWL_MVM_DQA_MIN_DATA_QUEUE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IWL_MVM_DQA_MIN_DATA_QUEUE@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmp	w25, w8
Lloh38:
	adrp	x8, _IWL_MVM_DQA_BSS_CLIENT_QUEUE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IWL_MVM_DQA_BSS_CLIENT_QUEUE@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	ccmp	w25, w8, #4, lt
	cset	w8, eq
	str	w8, [sp, #44]
Lloh41:
	adrp	x8, l_.str.5@PAGE
Lloh42:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh43:
	adrp	x9, l_.str.4@PAGE
Lloh44:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w24, #0
	csel	x8, x9, x8, ne
	mov	x9, x19
	ldr	w10, [x23, #32]
	stp	x10, x9, [sp, #16]
	mov	x9, x25
	stp	x8, x9, [sp]
Lloh45:
	adrp	x1, l_.str.3@PAGE
Lloh46:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_IWL_DEBUG_TX_QUEUES
	cbz	w24, LBB0_21
; %bb.18:
	mov	x0, x20
	mov	x1, x25
	bl	_iwl_mvm_get_queue_agg_tids
	cbz	x0, LBB0_20
; %bb.19:
	mov	x26, x0
	mov	x8, x25
	str	x8, [sp]
Lloh47:
	adrp	x1, l_.str.6@PAGE
Lloh48:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_IWL_DEBUG_TX_QUEUES
	mov	x0, x20
	mov	x1, x25
	mov	x2, x26
	mov	w3, #0
	bl	_iwl_mvm_invalidate_sta_queue
LBB0_20:
	add	x4, sp, #40
	mov	x0, x20
	mov	x1, x21
	mov	x2, x25
	ldp	w5, w3, [sp, #32]               ; 8-byte Folded Reload
	bl	_iwl_mvm_enable_txq
	mov	x26, x0
	ldr	w0, [x20]
	mov	x1, x25
	mov	w2, #1
	bl	_iwl_trans_txq_set_shared_mode
	b	LBB0_22
LBB0_21:
	add	x4, sp, #40
	mov	x0, x20
	mov	x1, x21
	mov	x2, x25
	ldp	w5, w3, [sp, #32]               ; 8-byte Folded Reload
	bl	_iwl_mvm_enable_txq
	mov	x26, x0
LBB0_22:
	sxtw	x28, w19
	mov	x0, x27
	bl	_spin_lock_bh
	ldr	x8, [x23, #24]
	cbz	w26, LBB0_24
; %bb.23:
	mov	w9, #12
	mul	x9, x28, x9
	ldr	w10, [x8, x9]
	add	w10, w10, #16
	str	w10, [x8, x9]
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	add	w9, w9, #1
Lloh49:
	adrp	x10, _IEEE80211_SCTL_SEQ@GOTPAGE
Lloh50:
	ldr	x10, [x10, _IEEE80211_SCTL_SEQ@GOTPAGEOFF]
Lloh51:
	ldr	w10, [x10]
	and	w9, w10, w9
	str	w9, [sp, #36]                   ; 4-byte Folded Spill
LBB0_24:
	add	x9, x28, x28, lsl #1
	lsl	x26, x9, #2
	add	x8, x8, x26
	str	w25, [x8, #4]
	mov	x0, x25
	bl	_BIT
	ldp	x8, x9, [x23]
	orr	x8, x8, x0
	str	x8, [x23]
	ldr	x8, [x23, #24]
	add	x8, x8, x26
	ldr	w26, [x8, #8]
	cmp	x9, w25, sxtw
	b.ne	LBB0_26
; %bb.25:
Lloh52:
	adrp	x8, _IEEE80211_INVAL_HW_QUEUE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _IEEE80211_INVAL_HW_QUEUE@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
	str	x8, [x23, #8]
LBB0_26:
	mov	x0, x27
	bl	_spin_unlock_bh
	tbz	w24, #0, LBB0_28
; %bb.27:
	mov	x0, x21
	mov	x1, x19
	bl	_iwl_mvm_txq_from_tid
	mov	x7, x0
	mov	x0, x20
	mov	x1, x25
	mov	x2, x19
	mov	x3, x22
	ldp	w5, w4, [sp, #32]               ; 8-byte Folded Reload
	mov	w6, #0
	bl	_iwl_mvm_redirect_queue
	mov	x22, x0
	cbnz	w0, LBB0_29
	b	LBB0_32
LBB0_28:
Lloh55:
	adrp	x8, _STA_MODIFY_QUEUES@GOTPAGE
Lloh56:
	ldr	x8, [x8, _STA_MODIFY_QUEUES@GOTPAGEOFF]
Lloh57:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_iwl_mvm_sta_send_to_fw
	mov	x22, x0
	cbz	w0, LBB0_30
LBB0_29:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x25
	mov	x3, x19
	mov	w4, #0
	bl	_iwl_mvm_disable_txq
	mov	x25, x22
	b	LBB0_33
LBB0_30:
Lloh58:
	adrp	x8, _IWL_AGG_ON@GOTPAGE
Lloh59:
	ldr	x8, [x8, _IWL_AGG_ON@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	cmp	w26, w8
	b.ne	LBB0_32
; %bb.31:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x25
	mov	w4, #1
	bl	_iwl_mvm_sta_tx_agg
	mov	x22, x0
	cbnz	w0, LBB0_29
LBB0_32:
	mov	w25, #0
LBB0_33:
	mov	x0, x25
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_FRAME_LIMIT,4,2            ; @IWL_FRAME_LIMIT
	.comm	_IWL_MAX_TID_COUNT,4,2          ; @IWL_MAX_TID_COUNT
	.comm	_IWL_MVM_DQA_MIN_MGMT_QUEUE,4,2 ; @IWL_MVM_DQA_MIN_MGMT_QUEUE
	.comm	_IWL_MVM_DQA_MAX_MGMT_QUEUE,4,2 ; @IWL_MVM_DQA_MAX_MGMT_QUEUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found free MGMT queue #%d\n"

	.comm	_IEEE80211_INVAL_HW_QUEUE,8,3   ; @IEEE80211_INVAL_HW_QUEUE
	.comm	_IWL_MVM_QUEUE_RESERVED,8,3     ; @IWL_MVM_QUEUE_RESERVED
l_.str.1:                               ; @.str.1
	.asciz	"Using reserved queue #%d\n"

	.comm	_IWL_MVM_DQA_MIN_DATA_QUEUE,4,2 ; @IWL_MVM_DQA_MIN_DATA_QUEUE
	.comm	_IWL_MVM_DQA_MAX_DATA_QUEUE,4,2 ; @IWL_MVM_DQA_MAX_DATA_QUEUE
	.comm	_IWL_MVM_QUEUE_SHARED,8,3       ; @IWL_MVM_QUEUE_SHARED
	.comm	_IWL_MVM_QUEUE_READY,8,3        ; @IWL_MVM_QUEUE_READY
l_.str.2:                               ; @.str.2
	.asciz	"No available queues for tid %d on sta_id %d\n"

	.comm	_IWL_MVM_DQA_BSS_CLIENT_QUEUE,4,2 ; @IWL_MVM_DQA_BSS_CLIENT_QUEUE
l_.str.3:                               ; @.str.3
	.asciz	"Allocating %squeue #%d to sta %d on tid %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"shared "

l_.str.5:                               ; @.str.5
	.space	1

l_.str.6:                               ; @.str.6
	.asciz	"Disabling aggs on queue %d\n"

	.comm	_IEEE80211_SCTL_SEQ,4,2         ; @IEEE80211_SCTL_SEQ
	.comm	_STA_MODIFY_QUEUES,4,2          ; @STA_MODIFY_QUEUES
	.comm	_IWL_AGG_ON,4,2                 ; @IWL_AGG_ON
	.no_dead_strip	_iwl_mvm_sta_alloc_queue
.subsections_via_symbols
