	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_realloc_queues_after_restart
_iwl_mvm_realloc_queues_after_restart:  ## @iwl_mvm_realloc_queues_after_restart
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_iwl_mvm_sta_from_mac80211
	movq	%rax, %rbx
	movl	24(%rax), %esi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_iwl_mvm_get_wd_timeout
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	$0, -88(%rbp)
	movl	$0, -80(%rbp)
	movq	_IWL_FRAME_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -72(%rbp)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	_IEEE80211_INVAL_HW_QUEUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_IWL_MVM_QUEUE_RESERVED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	movl	%ecx, (%rdx,%rax,4)
LBB0_2:
	movq	_IWL_MAX_TID_COUNT@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	js	LBB0_11
## %bb.3:
	movl	$8, %r15d
	movq	_IWL_MVM_INVALID_QUEUE@GOTPCREL(%rip), %rsi
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, -8(%rbx,%r15)
	movq	$0, (%rbx,%r15)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_IWL_MAX_TID_COUNT@GOTPCREL(%rip), %rdx
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%r13), %rax
	movslq	(%rdx), %rcx
	addq	$16, %r15
	cmpq	%rcx, %r13
	movq	%rax, %r13
	jge	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rbx
	movslq	-8(%rbx,%r15), %r14
	cmpl	(%rsi), %r14d
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_tid_to_mac80211_ac@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_iwl_mvm_has_new_tx_api
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	8(%r14), %edx
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
	movl	8(%r14), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_iwl_mvm_tvqm_enable_txq
	testl	%eax, %eax
	movq	_IWL_MVM_INVALID_QUEUE@GOTPCREL(%rip), %rsi
	jns	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rsi), %eax
	jmp	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx,%r15), %rdi
	callq	_IEEE80211_SEQ_TO_SN
	movl	%eax, %ebx
	movl	%r13d, -88(%rbp)
	movq	%r12, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_iwl_mvm_mac_ac_to_tx_fifo
	movl	%eax, -80(%rbp)
	movq	_IWL_MVM_DQA_MIN_DATA_QUEUE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	setge	%al
	movq	_IWL_MVM_DQA_BSS_CLIENT_QUEUE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	movl	%eax, -84(%rbp)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
	movq	%r12, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%ebx, %ecx
	leaq	-88(%rbp), %r8
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_iwl_mvm_enable_txq
	movq	_IWL_MVM_QUEUE_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%r14,4)
	movq	_IWL_MAX_TID_COUNT@GOTPCREL(%rip), %rdx
	movq	_IWL_MVM_INVALID_QUEUE@GOTPCREL(%rip), %rsi
	jmp	LBB0_10
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_FRAME_LIMIT,4,2            ## @IWL_FRAME_LIMIT
	.comm	_IEEE80211_INVAL_HW_QUEUE,8,3   ## @IEEE80211_INVAL_HW_QUEUE
	.comm	_IWL_MVM_QUEUE_RESERVED,4,2     ## @IWL_MVM_QUEUE_RESERVED
	.comm	_IWL_MAX_TID_COUNT,4,2          ## @IWL_MAX_TID_COUNT
	.comm	_IWL_MVM_INVALID_QUEUE,4,2      ## @IWL_MVM_INVALID_QUEUE
	.comm	_tid_to_mac80211_ac,8,3         ## @tid_to_mac80211_ac
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Re-mapping sta %d tid %d\n"

	.comm	_IWL_MVM_DQA_MIN_DATA_QUEUE,4,2 ## @IWL_MVM_DQA_MIN_DATA_QUEUE
	.comm	_IWL_MVM_DQA_BSS_CLIENT_QUEUE,4,2 ## @IWL_MVM_DQA_BSS_CLIENT_QUEUE
L_.str.1:                               ## @.str.1
	.asciz	"Re-mapping sta %d tid %d to queue %d\n"

	.comm	_IWL_MVM_QUEUE_READY,4,2        ## @IWL_MVM_QUEUE_READY
	.no_dead_strip	_iwl_mvm_realloc_queues_after_restart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_realloc_queues_after_restart
_iwl_mvm_realloc_queues_after_restart:  ; @iwl_mvm_realloc_queues_after_restart
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x0
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	mov	x0, x1
	bl	_iwl_mvm_sta_from_mac80211
	mov	x21, x0
	ldr	w1, [x0, #24]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_iwl_mvm_get_wd_timeout
	mov	x22, x0
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, _IWL_FRAME_LIMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_FRAME_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #32]
	ldr	w8, [x21, #8]
	str	w8, [sp, #40]
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _IEEE80211_INVAL_HW_QUEUE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_INVAL_HW_QUEUE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _IWL_MVM_QUEUE_RESERVED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IWL_MVM_QUEUE_RESERVED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	x10, [x20]
	str	w9, [x10, x8, lsl #2]
LBB0_2:
Lloh9:
	adrp	x24, _IWL_MAX_TID_COUNT@GOTPAGE
Lloh10:
	ldr	x24, [x24, _IWL_MAX_TID_COUNT@GOTPAGEOFF]
	ldr	w8, [x24]
	tbnz	w8, #31, LBB0_9
; %bb.3:
	mov	x25, #0
	mov	x23, #0
Lloh11:
	adrp	x19, _IWL_MVM_INVALID_QUEUE@GOTPAGE
Lloh12:
	ldr	x19, [x19, _IWL_MVM_INVALID_QUEUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x28, x25
	ldr	x0, [x8, #8]
	bl	_IEEE80211_SEQ_TO_SN
	mov	x28, x0
	str	w23, [sp, #24]
	mov	x0, x20
	mov	x1, x27
	bl	_iwl_mvm_mac_ac_to_tx_fifo
Lloh13:
	adrp	x8, _IWL_MVM_DQA_MIN_DATA_QUEUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IWL_MVM_DQA_MIN_DATA_QUEUE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w26, w8
Lloh16:
	adrp	x8, _IWL_MVM_DQA_BSS_CLIENT_QUEUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IWL_MVM_DQA_BSS_CLIENT_QUEUE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ccmp	w26, w8, #4, lt
	cset	w8, eq
	stp	w8, w0, [sp, #28]
	ldr	w2, [x21, #8]
	str	x26, [sp]
	mov	x0, x20
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x23
	bl	_IWL_DEBUG_TX_QUEUES
	add	x4, sp, #24
	mov	x0, x20
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	mov	x2, x26
	mov	x3, x28
	mov	x5, x22
	bl	_iwl_mvm_enable_txq
Lloh21:
	adrp	x8, _IWL_MVM_QUEUE_READY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IWL_MVM_QUEUE_READY@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9, x26, lsl #2]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x23, #1
	ldrsw	x9, [x24]
	add	x25, x25, #16
	cmp	x23, x9
	mov	x23, x8
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x21, #16]
	ldrsw	x26, [x28, x25]
	ldr	w8, [x19]
	cmp	w26, w8
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh24:
	adrp	x8, _tid_to_mac80211_ac@GOTPAGE
Lloh25:
	ldr	x8, [x8, _tid_to_mac80211_ac@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	w27, [x8, x23, lsl #2]
	mov	x0, x20
	bl	_iwl_mvm_has_new_tx_api
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x21, #8]
	mov	x0, x20
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x23
	bl	_IWL_DEBUG_TX_QUEUES
	ldr	w1, [x21, #8]
	mov	x0, x20
	mov	x2, x23
	mov	x3, x22
	bl	_iwl_mvm_tvqm_enable_txq
	ldr	w8, [x19]
	cmp	w0, #0
	csel	w8, w8, w0, lt
	add	x9, x28, x25
	str	w8, [x9]
	str	xzr, [x9, #8]
	b	LBB0_5
LBB0_9:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_FRAME_LIMIT,4,2            ; @IWL_FRAME_LIMIT
	.comm	_IEEE80211_INVAL_HW_QUEUE,8,3   ; @IEEE80211_INVAL_HW_QUEUE
	.comm	_IWL_MVM_QUEUE_RESERVED,4,2     ; @IWL_MVM_QUEUE_RESERVED
	.comm	_IWL_MAX_TID_COUNT,4,2          ; @IWL_MAX_TID_COUNT
	.comm	_IWL_MVM_INVALID_QUEUE,4,2      ; @IWL_MVM_INVALID_QUEUE
	.comm	_tid_to_mac80211_ac,8,3         ; @tid_to_mac80211_ac
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Re-mapping sta %d tid %d\n"

	.comm	_IWL_MVM_DQA_MIN_DATA_QUEUE,4,2 ; @IWL_MVM_DQA_MIN_DATA_QUEUE
	.comm	_IWL_MVM_DQA_BSS_CLIENT_QUEUE,4,2 ; @IWL_MVM_DQA_BSS_CLIENT_QUEUE
l_.str.1:                               ; @.str.1
	.asciz	"Re-mapping sta %d tid %d to queue %d\n"

	.comm	_IWL_MVM_QUEUE_READY,4,2        ; @IWL_MVM_QUEUE_READY
	.no_dead_strip	_iwl_mvm_realloc_queues_after_restart
.subsections_via_symbols
