	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_change_queue_tid
_iwl_mvm_change_queue_tid:              ## @iwl_mvm_change_queue_tid
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, -48(%rbp)
	movq	_SCD_CFG_UPDATE_QUEUE_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	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_5
## %bb.1:
	movq	(%rbx), %rax
	movslq	%r14d, %r12
	shlq	$4, %r12
	movq	(%rax,%r12), %rax
	movq	%rax, -56(%rbp)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_WARN
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	_IWL_MAX_TID_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	leaq	-56(%rbp), %rdi
	callq	_find_first_bit
	movl	%eax, %r15d
	movl	%eax, -44(%rbp)
	movq	_iwl_mvm_ac_to_tx_fifo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_tid_to_mac80211_ac@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r15d, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -40(%rbp)
	movq	_SCD_QUEUE_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$16, %ecx
	callq	_iwl_mvm_send_cmd_pdu
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_IWL_ERR
	jmp	LBB0_5
LBB0_4:
	movq	(%rbx), %rax
	movl	%r15d, 8(%rax,%r12)
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_IWL_DEBUG_TX_QUEUES
LBB0_5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCD_CFG_UPDATE_QUEUE_TID,4,2   ## @SCD_CFG_UPDATE_QUEUE_TID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TXQ %d has no tids assigned to it\n"

	.comm	_IWL_MAX_TID_COUNT,8,3          ## @IWL_MAX_TID_COUNT
	.comm	_iwl_mvm_ac_to_tx_fifo,8,3      ## @iwl_mvm_ac_to_tx_fifo
	.comm	_tid_to_mac80211_ac,8,3         ## @tid_to_mac80211_ac
	.comm	_SCD_QUEUE_CFG,4,2              ## @SCD_QUEUE_CFG
L_.str.1:                               ## @.str.1
	.asciz	"Failed to update owner of TXQ %d (ret=%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Changed TXQ %d ownership to tid %d\n"

	.no_dead_strip	_iwl_mvm_change_queue_tid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_change_queue_tid
_iwl_mvm_change_queue_tid:              ; @iwl_mvm_change_queue_tid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SCD_CFG_UPDATE_QUEUE_TID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCD_CFG_UPDATE_QUEUE_TID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w1, [sp, #16]
	str	w8, [sp, #28]
	add	x0, x0, #8
	bl	_lockdep_assert_held
	mov	x0, x20
	bl	_iwl_mvm_has_new_tx_api
	bl	_WARN_ON
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x20]
	sbfiz	x9, x19, #4, #32
	ldr	x8, [x8, x9]
	str	x8, [sp, #8]
	cmp	x8, #0
	cset	w0, eq
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_WARN
	cbnz	x0, LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _IWL_MAX_TID_COUNT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IWL_MAX_TID_COUNT@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x1, x8, #1
	add	x0, sp, #8
	bl	_find_first_bit
	mov	x21, x0
	str	w0, [sp, #20]
Lloh8:
	adrp	x8, _iwl_mvm_ac_to_tx_fifo@GOTPAGE
Lloh9:
	ldr	x8, [x8, _iwl_mvm_ac_to_tx_fifo@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _tid_to_mac80211_ac@GOTPAGE
Lloh12:
	ldr	x9, [x9, _tid_to_mac80211_ac@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	x9, [x9, w0, sxtw #3]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [sp, #24]
Lloh14:
	adrp	x8, _SCD_QUEUE_CFG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SCD_QUEUE_CFG@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x4, sp, #16
	mov	x0, x20
	mov	w2, #0
	mov	w3, #16
	bl	_iwl_mvm_send_cmd_pdu
	cbz	w0, LBB0_4
; %bb.3:
	mov	x3, x0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_IWL_ERR
	b	LBB0_5
LBB0_4:
	sxtw	x8, w19
	ldr	x9, [x20]
	add	x8, x9, x8, lsl #4
	str	w21, [x8, #8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_IWL_DEBUG_TX_QUEUES
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SCD_CFG_UPDATE_QUEUE_TID,4,2   ; @SCD_CFG_UPDATE_QUEUE_TID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TXQ %d has no tids assigned to it\n"

	.comm	_IWL_MAX_TID_COUNT,8,3          ; @IWL_MAX_TID_COUNT
	.comm	_iwl_mvm_ac_to_tx_fifo,8,3      ; @iwl_mvm_ac_to_tx_fifo
	.comm	_tid_to_mac80211_ac,8,3         ; @tid_to_mac80211_ac
	.comm	_SCD_QUEUE_CFG,4,2              ; @SCD_QUEUE_CFG
l_.str.1:                               ; @.str.1
	.asciz	"Failed to update owner of TXQ %d (ret=%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Changed TXQ %d ownership to tid %d\n"

	.no_dead_strip	_iwl_mvm_change_queue_tid
.subsections_via_symbols
