	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_tvqm_enable_txq
_iwl_mvm_tvqm_enable_txq:               ## @iwl_mvm_tvqm_enable_txq
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	_u32@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_IWL_DEFAULT_QUEUE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edx
	callq	_max_t
	movl	%eax, %ebx
	movq	_IWL_MAX_TID_COUNT@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_IWL_MGMT_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r12), %edi
	movq	_IWL_MGMT_QUEUE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	callq	_max_t
	movl	%eax, %ebx
LBB0_2:
	movq	(%r13), %r12
	movq	_TX_QUEUE_CFG_ENABLE_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	_SCD_QUEUE_CFG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rsp)
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r9d
	callq	_iwl_trans_txq_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_u32,4,2                        ## @u32
	.comm	_IWL_DEFAULT_QUEUE_SIZE,4,2     ## @IWL_DEFAULT_QUEUE_SIZE
	.comm	_IWL_MAX_TID_COUNT,4,2          ## @IWL_MAX_TID_COUNT
	.comm	_IWL_MGMT_TID,4,2               ## @IWL_MGMT_TID
	.comm	_IWL_MGMT_QUEUE_SIZE,4,2        ## @IWL_MGMT_QUEUE_SIZE
	.comm	_TX_QUEUE_CFG_ENABLE_QUEUE,4,2  ## @TX_QUEUE_CFG_ENABLE_QUEUE
	.comm	_SCD_QUEUE_CFG,4,2              ## @SCD_QUEUE_CFG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed allocating TXQ for sta %d tid %d, ret: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Enabling TXQ #%d for sta %d tid %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Enabling TXQ #%d\n"

	.no_dead_strip	_iwl_mvm_tvqm_enable_txq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_tvqm_enable_txq
_iwl_mvm_tvqm_enable_txq:               ; @iwl_mvm_tvqm_enable_txq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _u32@GOTPAGE
Lloh1:
	ldr	x24, [x24, _u32@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x8, _IWL_DEFAULT_QUEUE_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IWL_DEFAULT_QUEUE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w2, [x8, #4]
	bl	_max_t
Lloh5:
	adrp	x8, _IWL_MAX_TID_COUNT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IWL_MAX_TID_COUNT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _IWL_MGMT_TID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IWL_MGMT_TID@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	ldr	w0, [x24]
Lloh11:
	adrp	x8, _IWL_MGMT_QUEUE_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IWL_MGMT_QUEUE_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w2, [x8]
	bl	_max_t
LBB0_2:
	mov	x23, x0
	ldr	x24, [x19]
Lloh14:
	adrp	x8, _TX_QUEUE_CFG_ENABLE_QUEUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TX_QUEUE_CFG_ENABLE_QUEUE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	mov	x1, x0
Lloh17:
	adrp	x8, _SCD_QUEUE_CFG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SCD_QUEUE_CFG@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
	mov	x0, x24
	mov	x2, x20
	mov	x3, x21
	mov	x5, x23
	mov	x6, x22
	bl	_iwl_trans_txq_alloc
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.3:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x20, x21, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_IWL_DEBUG_TX_QUEUES
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	b	LBB0_5
LBB0_4:
	stp	x21, x22, [sp]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
LBB0_5:
	bl	_IWL_DEBUG_TX_QUEUES
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_u32,4,2                        ; @u32
	.comm	_IWL_DEFAULT_QUEUE_SIZE,4,2     ; @IWL_DEFAULT_QUEUE_SIZE
	.comm	_IWL_MAX_TID_COUNT,4,2          ; @IWL_MAX_TID_COUNT
	.comm	_IWL_MGMT_TID,4,2               ; @IWL_MGMT_TID
	.comm	_IWL_MGMT_QUEUE_SIZE,4,2        ; @IWL_MGMT_QUEUE_SIZE
	.comm	_TX_QUEUE_CFG_ENABLE_QUEUE,4,2  ; @TX_QUEUE_CFG_ENABLE_QUEUE
	.comm	_SCD_QUEUE_CFG,4,2              ; @SCD_QUEUE_CFG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed allocating TXQ for sta %d tid %d, ret: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Enabling TXQ #%d for sta %d tid %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Enabling TXQ #%d\n"

	.no_dead_strip	_iwl_mvm_tvqm_enable_txq
.subsections_via_symbols
