	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_enable_txq
_iwl_mvm_enable_txq:                    ## @iwl_mvm_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %rbx
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	%edx, -88(%rbp)
	movl	%ecx, %edi
	callq	_cpu_to_le16
	movl	%eax, -84(%rbp)
	movdqu	(%rbx), %xmm0
	pshufd	$141, %xmm0, %xmm0              ## xmm0 = xmm0[1,3,0,2]
	movdqu	%xmm0, -80(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -64(%rbp)
	movq	_SCD_CFG_ENABLE_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	%r15, %rdi
	callq	_iwl_mvm_has_new_tx_api
	movl	%eax, %edi
	callq	_WARN_ON
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movl	4(%rbx), %r8d
	movl	8(%rbx), %ecx
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_iwl_mvm_update_txq_mapping
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	(%r15), %edi
	movl	%r14d, %esi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_iwl_trans_txq_enable_cfg
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	-84(%rbp), %rdi
	movl	$1, %esi
	callq	_le16_add_cpu
LBB0_4:
	movq	_SCD_QUEUE_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %r8
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$32, %ecx
	callq	_iwl_mvm_send_cmd_pdu
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r14d, %edx
	callq	_WARN
LBB0_5:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCD_CFG_ENABLE_QUEUE,4,2       ## @SCD_CFG_ENABLE_QUEUE
	.comm	_SCD_QUEUE_CFG,4,2              ## @SCD_QUEUE_CFG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to configure queue %d on FIFO %d\n"

	.no_dead_strip	_iwl_mvm_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_enable_txq
_iwl_mvm_enable_txq:                    ; @iwl_mvm_enable_txq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x5
	mov	x20, x4
	mov	x23, x3
	mov	x19, x2
	mov	x24, x1
	mov	x21, x0
	str	w2, [sp]
	mov	x0, x3
	bl	_cpu_to_le16
	str	w0, [sp, #4]
	ldr	q0, [x20]
	rev64.4s	v1, v0
	uzp2.4s	v0, v0, v1
	stur	q0, [sp, #8]
	ldr	w8, [x20, #16]
Lloh0:
	adrp	x9, _SCD_CFG_ENABLE_QUEUE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCD_CFG_ENABLE_QUEUE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
	mov	x0, x21
	bl	_iwl_mvm_has_new_tx_api
	bl	_WARN_ON
	cbz	x0, LBB0_2
LBB0_1:
	mov	w22, #0
	b	LBB0_6
LBB0_2:
	ldp	w4, w3, [x20, #4]
	mov	x0, x21
	mov	x1, x24
	mov	x2, x19
	bl	_iwl_mvm_update_txq_mapping
	cbz	w0, LBB0_1
; %bb.3:
	ldr	w0, [x21]
	mov	x1, x19
	mov	x2, x23
	mov	x3, #0
	mov	x4, x22
	bl	_iwl_trans_txq_enable_cfg
	mov	x22, x0
	cbz	w0, LBB0_5
; %bb.4:
	mov	x8, sp
	orr	x0, x8, #0x4
	mov	w1, #1
	bl	_le16_add_cpu
LBB0_5:
Lloh3:
	adrp	x8, _SCD_QUEUE_CFG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCD_QUEUE_CFG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x4, sp
	mov	x0, x21
	mov	w2, #0
	mov	w3, #32
	bl	_iwl_mvm_send_cmd_pdu
	ldr	w3, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_WARN
LBB0_6:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SCD_CFG_ENABLE_QUEUE,4,2       ; @SCD_CFG_ENABLE_QUEUE
	.comm	_SCD_QUEUE_CFG,4,2              ; @SCD_QUEUE_CFG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to configure queue %d on FIFO %d\n"

	.no_dead_strip	_iwl_mvm_enable_txq
.subsections_via_symbols
