	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_update_txq_mapping
_iwl_mvm_update_txq_mapping:            ## @iwl_mvm_update_txq_mapping
	.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	%r8, %r15
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movslq	%edx, %r12
	shlq	$5, %r12
	movl	(%rax,%r12), %r13d
	movq	%r8, %rdi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	_IWL_ERR
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_2:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rax
	movl	(%rax,%r12), %ebx
	movq	%r15, %rdi
	callq	_BIT
	movq	(%r14), %rcx
	orl	%eax, (%rcx,%r12)
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rcx,%r12)
	testl	%ebx, %ebx
	sete	%dl
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_7
## %bb.3:
	movq	_IWL_MAX_TID_COUNT@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_4
## %bb.5:
	movq	_IEEE80211_AC_VO@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_tid_to_mac80211_ac@GOTPCREL(%rip), %rsi
	leaq	(,%r15,4), %rax
	addq	(%rsi), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 24(%rcx,%r12)
	movq	%r15, 16(%rcx,%r12)
LBB0_7:
	testq	%rdi, %rdi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_9
## %bb.8:
	movb	%dl, -48(%rbp)                  ## 1-byte Spill
	movq	%r15, %rsi
	callq	_iwl_mvm_txq_from_tid
	movb	-48(%rbp), %dl                  ## 1-byte Reload
	movl	%ebx, (%rax)
LBB0_9:
	movb	%dl, %r13b
	movq	(%r14), %rax
	movl	(%rax,%r12), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_IWL_DEBUG_TX_QUEUES
LBB0_10:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trying to enable TXQ %d with existing TID %d\n"

	.comm	_IWL_MAX_TID_COUNT,8,3          ## @IWL_MAX_TID_COUNT
	.comm	_tid_to_mac80211_ac,8,3         ## @tid_to_mac80211_ac
	.comm	_IEEE80211_AC_VO,4,2            ## @IEEE80211_AC_VO
L_.str.1:                               ## @.str.1
	.asciz	"Enabling TXQ #%d tids=0x%x\n"

	.no_dead_strip	_iwl_mvm_update_txq_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_update_txq_mapping
_iwl_mvm_update_txq_mapping:            ; @iwl_mvm_update_txq_mapping
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x4
	mov	x24, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x8, [x0]
	sbfiz	x9, x19, #5, #32
	ldr	w22, [x8, x9]
	mov	x0, x4
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_IWL_ERR
	mov	w22, #0
	b	LBB0_7
LBB0_2:
	sxtw	x26, w19
	ldr	x8, [x20]
	lsl	x25, x26, #5
	ldr	w27, [x8, x25]
	cmp	w27, #0
	cset	w22, eq
	mov	x0, x21
	bl	_BIT
	ldr	x8, [x20]
	add	x9, x8, x25
	ldr	w10, [x9]
	orr	w10, w10, w0
	str	w10, [x9]
	str	x24, [x9, #8]
	cbnz	w27, LBB0_4
; %bb.3:
Lloh2:
	adrp	x9, _IWL_MAX_TID_COUNT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IWL_MAX_TID_COUNT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _tid_to_mac80211_ac@GOTPAGE
Lloh6:
	ldr	x10, [x10, _tid_to_mac80211_ac@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	add	x10, x10, x21, lsl #2
Lloh8:
	adrp	x11, _IEEE80211_AC_VO@GOTPAGE
Lloh9:
	ldr	x11, [x11, _IEEE80211_AC_VO@GOTPAGEOFF]
	cmp	x9, x21
	csel	x9, x11, x10, eq
	ldr	w9, [x9]
	add	x8, x8, x26, lsl #5
	str	w9, [x8, #24]
	str	x21, [x8, #16]
LBB0_4:
	cbz	x23, LBB0_6
; %bb.5:
	mov	x0, x23
	mov	x1, x21
	bl	_iwl_mvm_txq_from_tid
	str	w19, [x0]
LBB0_6:
	ldr	x8, [x20]
	ldr	w3, [x8, x25]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_IWL_DEBUG_TX_QUEUES
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying to enable TXQ %d with existing TID %d\n"

	.comm	_IWL_MAX_TID_COUNT,8,3          ; @IWL_MAX_TID_COUNT
	.comm	_tid_to_mac80211_ac,8,3         ; @tid_to_mac80211_ac
	.comm	_IEEE80211_AC_VO,4,2            ; @IEEE80211_AC_VO
l_.str.1:                               ; @.str.1
	.asciz	"Enabling TXQ #%d tids=0x%x\n"

	.no_dead_strip	_iwl_mvm_update_txq_mapping
.subsections_via_symbols
