	.file	"extr_rs.c_rs_switch_to_mimo3.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"LQ: try to switch to MIMO3\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"LQ: MIMO3 best rate %d mask %X\n"
	.align 8
.LC2:
	.string	"Can't switch with index %d rate mask %x\n"
	.align 8
.LC3:
	.string	"LQ: Switch to new mcs %X index is green %X\n"
	.text
	.p2align 4
	.type	rs_switch_to_mimo3, @function
rs_switch_to_mimo3:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR 8[rdx]
	mov	r14d, DWORD PTR [rsi]
	mov	DWORD PTR 12[rsp], r8d
	test	eax, eax
	je	.L8
	mov	rax, QWORD PTR IEEE80211_SMPS_STATIC[rip]
	mov	r15, rdx
	cmp	QWORD PTR [rdx], rax
	je	.L8
	mov	rbp, rdi
	mov	edi, DWORD PTR [rdi]
	mov	r12, rsi
	mov	rbx, rcx
	call	iwl_fw_valid_tx_ant@PLT
	mov	edi, eax
	call	num_of_ant@PLT
	cmp	eax, 2
	jle	.L8
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	IWL_DEBUG_RATE@PLT
	mov	eax, DWORD PTR LQ_MIMO3[rip]
	mov	rdi, r15
	mov	QWORD PTR 16[rbx], 0
	mov	r13d, DWORD PTR 4[r12]
	mov	DWORD PTR 24[rbx], eax
	mov	eax, DWORD PTR IWL_MAX_11N_MIMO3_SEARCH[rip]
	mov	DWORD PTR 8[rbx], eax
	call	iwl_is_ht40_tx_allowed@PLT
	mov	rdi, r12
	mov	rsi, rbx
	test	rax, rax
	setne	al
	movzx	eax, al
	mov	DWORD PTR [rbx], eax
	call	rs_set_expected_tpt_table@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	rsi, r12
	mov	ecx, r13d
	mov	rdx, rbx
	mov	rdi, rbp
	call	rs_get_best_rate@PLT
	mov	ecx, r13d
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	mov	r12d, eax
	mov	edx, eax
	xor	eax, eax
	call	IWL_DEBUG_RATE@PLT
	cmp	DWORD PTR IWL_RATE_INVALID[rip], r12d
	je	.L5
	bt	r13d, r12d
	jnc	.L5
	mov	ecx, r14d
	mov	edx, r12d
	mov	rsi, rbx
	mov	rdi, rbp
	call	rate_n_flags_from_tbl@PLT
	mov	ecx, r14d
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	mov	DWORD PTR 4[rbx], eax
	mov	edx, eax
	xor	eax, eax
	call	IWL_DEBUG_RATE@PLT
	xor	eax, eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	ecx, r13d
	mov	edx, r12d
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	IWL_DEBUG_RATE@PLT
.L8:
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	rs_switch_to_mimo3, .-rs_switch_to_mimo3
	.comm	LQ_MIMO3,4,4
	.comm	IWL_RATE_INVALID,4,4
	.comm	IWL_MAX_11N_MIMO3_SEARCH,4,4
	.comm	IEEE80211_SMPS_STATIC,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_rs.c_rs_switch_to_mimo3.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"LQ: try to switch to MIMO3\012\000"
	.align	2
.LC1:
	.ascii	"LQ: MIMO3 best rate %d mask %X\012\000"
	.align	2
.LC2:
	.ascii	"Can't switch with index %d rate mask %x\012\000"
	.align	2
.LC3:
	.ascii	"LQ: Switch to new mcs %X index is green %X\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rs_switch_to_mimo3, %function
rs_switch_to_mimo3:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r7, r2
	ldr	r2, [r2, #4]
	ldr	r9, [r1]
	cmp	r2, #0
	sub	sp, sp, #12
	beq	.L8
	mov	r4, r3
	ldr	r3, .L10
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L8
	mov	r5, r0
	ldr	r0, [r0]
	mov	r6, r1
	bl	iwl_fw_valid_tx_ant
	bl	num_of_ant
	cmp	r0, #2
	ble	.L8
	mov	r8, #0
	ldr	r1, .L10+4
	mov	r0, r5
	bl	IWL_DEBUG_RATE
	ldr	r2, .L10+8
	ldr	r3, .L10+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [r4, #16]
	str	r3, [r4, #8]
	mov	r0, r7
	str	r8, [r4, #12]
	ldr	r7, [r6, #4]
	bl	iwl_is_ht40_tx_allowed
	subs	r0, r0, r8
	movne	r0, #1
	mov	r1, r4
	str	r0, [r4]
	mov	r0, r6
	bl	rs_set_expected_tpt_table
	ldr	r3, [sp, #40]
	mov	r1, r6
	mov	r2, r4
	str	r3, [sp]
	mov	r0, r5
	mov	r3, r7
	bl	rs_get_best_rate
	mov	r6, r0
	mov	r3, r7
	mov	r2, r0
	ldr	r1, .L10+16
	mov	r0, r5
	bl	IWL_DEBUG_RATE
	ldr	r3, .L10+20
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L5
	mov	r3, #1
	ands	r3, r7, r3, lsl r6
	beq	.L5
	mov	r2, r6
	mov	r3, r9
	mov	r1, r4
	mov	r0, r5
	bl	rate_n_flags_from_tbl
	mov	r3, r9
	mov	r2, r0
	str	r0, [r4, #4]
	ldr	r1, .L10+24
	mov	r0, r5
	bl	IWL_DEBUG_RATE
	mov	r0, r8
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	mov	r3, r7
	mov	r2, r6
	mov	r0, r5
	ldr	r1, .L10+28
	bl	IWL_DEBUG_RATE
.L8:
	mvn	r0, #0
	b	.L1
.L11:
	.align	2
.L10:
	.word	IEEE80211_SMPS_STATIC
	.word	.LC0
	.word	LQ_MIMO3
	.word	IWL_MAX_11N_MIMO3_SEARCH
	.word	.LC1
	.word	IWL_RATE_INVALID
	.word	.LC3
	.word	.LC2
	.size	rs_switch_to_mimo3, .-rs_switch_to_mimo3
	.comm	LQ_MIMO3,4,4
	.comm	IWL_RATE_INVALID,4,4
	.comm	IWL_MAX_11N_MIMO3_SEARCH,4,4
	.comm	IEEE80211_SMPS_STATIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
