	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_fill_lq_cmd
_rs_fill_lq_cmd:                        ## @rs_fill_lq_cmd
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_IWL_MVM_RS_AGG_DISABLE_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rdx)
	movq	_IWL_MVM_RS_AGG_TIME_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	testq	%r14, %r14
	sete	%al
	testq	%r12, %r12
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_rs_build_rates_table
	movq	(%r15), %rdi
	movq	_IWL_UCODE_TLV_API_LQ_SS_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_api
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_rs_set_lq_ss_params
LBB0_3:
	movq	%r14, %rdi
	callq	_iwl_mvm_sta_from_mac80211
	movq	%rax, %r13
	movq	(%rax), %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rdi
	movq	_IWL_UCODE_TLV_CAPA_COEX_SCHEMA_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	(%r12), %edi
	callq	_num_of_ant
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.5:
	movl	(%r12), %eax
	movl	%eax, 24(%rbx)
LBB0_6:
	movl	8(%r13), %eax
	movl	%eax, 20(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_iwl_mvm_vif_low_latency
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	decl	20(%rbx)
LBB0_8:
	movq	(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_LQ_FLAG_USE_RTS_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
LBB0_10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_coex_agg_time_limit
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_MVM_RS_AGG_DISABLE_START,4,2 ## @IWL_MVM_RS_AGG_DISABLE_START
	.comm	_IWL_MVM_RS_AGG_TIME_LIMIT,4,2  ## @IWL_MVM_RS_AGG_TIME_LIMIT
	.comm	_IWL_UCODE_TLV_API_LQ_SS_PARAMS,4,2 ## @IWL_UCODE_TLV_API_LQ_SS_PARAMS
	.comm	_IWL_UCODE_TLV_CAPA_COEX_SCHEMA_2,4,2 ## @IWL_UCODE_TLV_CAPA_COEX_SCHEMA_2
	.comm	_LQ_FLAG_USE_RTS_MSK,4,2        ## @LQ_FLAG_USE_RTS_MSK
	.no_dead_strip	_rs_fill_lq_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_fill_lq_cmd
_rs_fill_lq_cmd:                        ; @rs_fill_lq_cmd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _IWL_MVM_RS_AGG_DISABLE_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_MVM_RS_AGG_DISABLE_START@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x2, #28]
Lloh3:
	adrp	x8, _IWL_MVM_RS_AGG_TIME_LIMIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_MVM_RS_AGG_TIME_LIMIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19, #8]
	cmp	x20, #0
	ccmp	x22, #0, #4, ne
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_11
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	bl	_rs_build_rates_table
	ldr	x0, [x21]
Lloh6:
	adrp	x8, _IWL_UCODE_TLV_API_LQ_SS_PARAMS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IWL_UCODE_TLV_API_LQ_SS_PARAMS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_fw_has_api
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	bl	_rs_set_lq_ss_params
LBB0_3:
	mov	x0, x20
	bl	_iwl_mvm_sta_from_mac80211
	mov	x23, x0
	ldr	x0, [x0]
	bl	_iwl_mvm_vif_from_mac80211
	mov	x24, x0
	ldr	x0, [x21]
Lloh9:
	adrp	x8, _IWL_UCODE_TLV_CAPA_COEX_SCHEMA_2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_COEX_SCHEMA_2@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_fw_has_capa
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	w0, [x22]
	bl	_num_of_ant
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x22]
	str	w8, [x19, #24]
LBB0_6:
	ldr	w8, [x23, #8]
	str	w8, [x19, #20]
	mov	x0, x24
	bl	_iwl_mvm_vif_low_latency
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w8, [x19, #20]
	sub	w8, w8, #1
	str	w8, [x19, #20]
LBB0_8:
	ldr	x8, [x23]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, _LQ_FLAG_USE_RTS_MSK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LQ_FLAG_USE_RTS_MSK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_10:
	mov	x0, x21
	mov	x1, x20
	bl	_iwl_mvm_coex_agg_time_limit
	bl	_cpu_to_le16
	str	x0, [x19, #8]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MVM_RS_AGG_DISABLE_START,4,2 ; @IWL_MVM_RS_AGG_DISABLE_START
	.comm	_IWL_MVM_RS_AGG_TIME_LIMIT,4,2  ; @IWL_MVM_RS_AGG_TIME_LIMIT
	.comm	_IWL_UCODE_TLV_API_LQ_SS_PARAMS,4,2 ; @IWL_UCODE_TLV_API_LQ_SS_PARAMS
	.comm	_IWL_UCODE_TLV_CAPA_COEX_SCHEMA_2,4,2 ; @IWL_UCODE_TLV_CAPA_COEX_SCHEMA_2
	.comm	_LQ_FLAG_USE_RTS_MSK,4,2        ; @LQ_FLAG_USE_RTS_MSK
	.no_dead_strip	_rs_fill_lq_cmd
.subsections_via_symbols
