	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_reconfig_scd           ## -- Begin function iwl_mvm_reconfig_scd
	.p2align	4, 0x90
_iwl_mvm_reconfig_scd:                  ## @iwl_mvm_reconfig_scd
	.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	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movl	16(%rbp), %edi
	movl	%esi, -64(%rbp)
	movl	%r9d, -60(%rbp)
	movl	%ecx, -56(%rbp)
	movl	%edx, -52(%rbp)
	movq	_IWL_MVM_DQA_MIN_DATA_QUEUE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	setle	%al
	movq	_IWL_MVM_DQA_BSS_CLIENT_QUEUE@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	movl	%eax, -48(%rbp)
	movl	%r8d, -44(%rbp)
	callq	_cpu_to_le16
	movl	%eax, -40(%rbp)
	movq	_SCD_CFG_ENABLE_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	%r15, %rdi
	callq	_iwl_mvm_has_new_tx_api
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	(%r15), %rax
	movslq	%r12d, %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rcx,8)
	sete	%dil
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_WARN
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_IWL_DEBUG_TX_QUEUES
	movq	_SCD_QUEUE_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %r8
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$32, %ecx
	callq	_iwl_mvm_send_cmd_pdu
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_WARN_ONCE
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_SCD_CFG_ENABLE_QUEUE,4,2       ## @SCD_CFG_ENABLE_QUEUE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trying to reconfig unallocated queue %d\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"Reconfig SCD for TXQ #%d\n"

	.comm	_SCD_QUEUE_CFG,4,2              ## @SCD_QUEUE_CFG
L_.str.2:                               ## @.str.2
	.asciz	"Failed to re-configure queue %d on FIFO %d, ret=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_reconfig_scd           ; -- Begin function iwl_mvm_reconfig_scd
	.p2align	2
_iwl_mvm_reconfig_scd:                  ; @iwl_mvm_reconfig_scd
	.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, x2
	mov	x20, x1
	mov	x21, x0
	stp	w1, w5, [sp]
	stp	w3, w2, [sp, #8]
Lloh0:
	adrp	x8, _IWL_MVM_DQA_MIN_DATA_QUEUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_MVM_DQA_MIN_DATA_QUEUE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IWL_MVM_DQA_BSS_CLIENT_QUEUE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IWL_MVM_DQA_BSS_CLIENT_QUEUE@GOTPAGEOFF]
	cmp	w8, w1
Lloh5:
	ldr	w8, [x9]
	ccmp	w8, w1, #4, gt
	cset	w8, eq
	stp	w8, w4, [sp, #16]
	mov	x0, x6
	bl	_cpu_to_le16
Lloh6:
	adrp	x8, _SCD_CFG_ENABLE_QUEUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCD_CFG_ENABLE_QUEUE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w0, w8, [sp, #24]
	mov	x0, x21
	bl	_iwl_mvm_has_new_tx_api
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	x8, [x21]
	ldr	x8, [x8, w20, sxtw #3]
	cmp	x8, #0
	cset	w0, eq
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_WARN
	cbz	x0, LBB0_6
; %bb.3:
Lloh13:
	adrp	x8, _ENXIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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
LBB0_6:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_IWL_DEBUG_TX_QUEUES
Lloh17:
	adrp	x8, _SCD_QUEUE_CFG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SCD_QUEUE_CFG@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x4, sp
	mov	x0, x21
	mov	w2, #0
	mov	w3, #32
	bl	_iwl_mvm_send_cmd_pdu
	mov	x21, x0
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	mov	x4, x0
	bl	_WARN_ONCE
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_SCD_CFG_ENABLE_QUEUE,4,2       ; @SCD_CFG_ENABLE_QUEUE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying to reconfig unallocated queue %d\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"Reconfig SCD for TXQ #%d\n"

	.comm	_SCD_QUEUE_CFG,4,2              ; @SCD_QUEUE_CFG
l_.str.2:                               ; @.str.2
	.asciz	"Failed to re-configure queue %d on FIFO %d, ret=%d\n"

.subsections_via_symbols
