	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_set_lq_ss_params
_rs_set_lq_ss_params:                   ## @rs_set_lq_ss_params
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_iwl_mvm_sta_from_mac80211
	movq	%rax, %r13
	movq	$0, -56(%rbp)
	movq	%rbx, -48(%rbp)
	movq	_LQ_SS_PARAMS_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_iwl_mvm_bt_coex_is_mimo_allowed
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	xorl	%eax, %eax
	cmpq	$0, 8(%r14)
	je	LBB0_3
## %bb.2:
	movq	_LQ_SS_STBC_1SS_ALLOWED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	orl	%eax, %r12d
	cmpl	$0, (%r14)
	je	LBB0_8
## %bb.4:
	movq	%r13, %rbx
	movl	(%r15), %edi
	movq	_rs_bfer_active_iter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	callq	_ieee80211_iterate_stations_atomic
	movq	-56(%rbp), %r13
	testq	%r13, %r13
	je	LBB0_5
## %bb.6:
	movq	(%r13), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_RATE
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_rs_bfer_priority_cmp
	testq	%rax, %rax
	jle	LBB0_8
## %bb.7:
	leaq	8(%r13), %rbx
	movq	8(%r13), %rdi
	callq	_le32_to_cpu
	movq	_LQ_SS_BFER_ALLOWED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r13)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_iwl_mvm_send_lq_cmd
	movq	_LQ_SS_BFER_ALLOWED@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	(%r13), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_RATE
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_RATE
	movq	_LQ_SS_BFER_ALLOWED@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_8:
	movl	%r12d, %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LQ_SS_PARAMS_VALID,4,2         ## @LQ_SS_PARAMS_VALID
	.comm	_LQ_SS_STBC_1SS_ALLOWED,4,2     ## @LQ_SS_STBC_1SS_ALLOWED
	.comm	_rs_bfer_active_iter,4,2        ## @rs_bfer_active_iter
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No sta with BFER allowed found. Allow\n"

	.comm	_LQ_SS_BFER_ALLOWED,4,2         ## @LQ_SS_BFER_ALLOWED
L_.str.1:                               ## @.str.1
	.asciz	"Found existing sta %d with BFER activated\n"

L_.str.2:                               ## @.str.2
	.asciz	"Lower priority BFER sta found (%d). Switch BFER\n"

	.comm	_LQ_SS_FORCE,4,2                ## @LQ_SS_FORCE
	.comm	_RS_SS_FORCE_BFER,8,3           ## @RS_SS_FORCE_BFER
	.comm	_RS_SS_FORCE_NONE,8,3           ## @RS_SS_FORCE_NONE
	.comm	_RS_SS_FORCE_STBC,8,3           ## @RS_SS_FORCE_STBC
	.no_dead_strip	_rs_set_lq_ss_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_set_lq_ss_params
_rs_set_lq_ss_params:                   ; @rs_set_lq_ss_params
	.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	x19, x2
	mov	x23, x1
	mov	x21, x0
	mov	x0, x1
	bl	_iwl_mvm_sta_from_mac80211
	mov	x22, x0
	stp	xzr, x23, [sp, #16]
Lloh0:
	adrp	x8, _LQ_SS_PARAMS_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LQ_SS_PARAMS_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x21
	mov	x1, x23
	bl	_iwl_mvm_bt_coex_is_mimo_allowed
	cbz	w0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _LQ_SS_STBC_1SS_ALLOWED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LQ_SS_STBC_1SS_ALLOWED@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh5:
	ldr	w8, [x8]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
	orr	w20, w8, w20
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	w0, [x21]
Lloh6:
	adrp	x8, _rs_bfer_active_iter@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rs_bfer_active_iter@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #16
	bl	_ieee80211_iterate_stations_atomic
	ldr	x23, [sp, #16]
	cbz	x23, LBB0_5
; %bb.3:
	ldr	x8, [x23]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_IWL_DEBUG_RATE
	mov	x0, x22
	mov	x1, x23
	bl	_rs_bfer_priority_cmp
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x22, x23
	ldr	x0, [x22, #8]!
	bl	_le32_to_cpu
Lloh11:
	adrp	x24, _LQ_SS_BFER_ALLOWED@GOTPAGE
Lloh12:
	ldr	x24, [x24, _LQ_SS_BFER_ALLOWED@GOTPAGEOFF]
	ldr	w8, [x24]
	bic	w0, w0, w8
	bl	_cpu_to_le32
	str	x0, [x22]
	mov	x0, x21
	mov	x1, x22
	bl	_iwl_mvm_send_lq_cmd
	ldr	w8, [x24]
	orr	w20, w8, w20
	ldr	x8, [x23]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_IWL_DEBUG_RATE
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_IWL_DEBUG_RATE
Lloh17:
	adrp	x8, _LQ_SS_BFER_ALLOWED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LQ_SS_BFER_ALLOWED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_6:
	mov	x0, x20
	bl	_cpu_to_le32
	str	x0, [x19, #24]
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_LQ_SS_PARAMS_VALID,4,2         ; @LQ_SS_PARAMS_VALID
	.comm	_LQ_SS_STBC_1SS_ALLOWED,4,2     ; @LQ_SS_STBC_1SS_ALLOWED
	.comm	_rs_bfer_active_iter,4,2        ; @rs_bfer_active_iter
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No sta with BFER allowed found. Allow\n"

	.comm	_LQ_SS_BFER_ALLOWED,4,2         ; @LQ_SS_BFER_ALLOWED
l_.str.1:                               ; @.str.1
	.asciz	"Found existing sta %d with BFER activated\n"

l_.str.2:                               ; @.str.2
	.asciz	"Lower priority BFER sta found (%d). Switch BFER\n"

	.comm	_LQ_SS_FORCE,4,2                ; @LQ_SS_FORCE
	.comm	_RS_SS_FORCE_BFER,8,3           ; @RS_SS_FORCE_BFER
	.comm	_RS_SS_FORCE_NONE,8,3           ; @RS_SS_FORCE_NONE
	.comm	_RS_SS_FORCE_STBC,8,3           ; @RS_SS_FORCE_STBC
	.no_dead_strip	_rs_set_lq_ss_params
.subsections_via_symbols
