	.file	"extr_4965-rs.c_il4965_rs_switch_to_mimo2.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"LQ: try to switch to MIMO2\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"LQ: MIMO2 best rate %d mask %X\n"
	.align 8
.LC2:
	.string	"Can't switch with idx %d rate mask %x\n"
	.align 8
.LC3:
	.string	"LQ: Switch to new mcs %X idx is green %X\n"
	.text
	.p2align 4
	.type	il4965_rs_switch_to_mimo2, @function
il4965_rs_switch_to_mimo2:
.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
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	rdi, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r15d, DWORD PTR [rsi]
	mov	DWORD PTR 12[rsp], r9d
	call	conf_is_ht@PLT
	test	eax, eax
	je	.L8
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	je	.L8
	mov	rax, QWORD PTR IEEE80211_SMPS_STATIC[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L8
	cmp	DWORD PTR [r12], 1
	jle	.L8
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	D_RATE@PLT
	lea	rsi, 8[rbp]
	mov	rdi, r12
	mov	r14d, DWORD PTR 4[r13]
	mov	eax, DWORD PTR LQ_MIMO2[rip]
	mov	DWORD PTR 28[rbx], eax
	mov	eax, DWORD PTR 8[r13]
	mov	QWORD PTR 16[rbx], 0
	mov	DWORD PTR 24[rbx], eax
	mov	eax, DWORD PTR IL_MAX_SEARCH[rip]
	mov	DWORD PTR 8[rbx], eax
	call	il_is_ht40_tx_allowed@PLT
	mov	rdi, r13
	mov	rsi, rbx
	test	rax, rax
	setne	al
	movzx	eax, al
	mov	DWORD PTR [rbx], eax
	call	il4965_rs_set_expected_tpt_table@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	rsi, r13
	mov	ecx, r14d
	mov	rdx, rbx
	mov	rdi, r12
	call	il4965_rs_get_best_rate@PLT
	mov	edx, r14d
	lea	rdi, .LC1[rip]
	mov	r13d, eax
	mov	esi, eax
	xor	eax, eax
	call	D_RATE@PLT
	cmp	DWORD PTR RATE_INVALID[rip], r13d
	je	.L3
	bt	r14d, r13d
	jnc	.L3
	mov	ecx, r15d
	mov	edx, r13d
	mov	rsi, rbx
	mov	rdi, r12
	call	il4965_rate_n_flags_from_tbl@PLT
	mov	edx, r15d
	lea	rdi, .LC3[rip]
	mov	DWORD PTR 4[rbx], eax
	mov	esi, eax
	xor	eax, eax
	call	D_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
.L8:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, r14d
	mov	esi, r13d
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	D_RATE@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	il4965_rs_switch_to_mimo2, .-il4965_rs_switch_to_mimo2
	.comm	RATE_INVALID,4,4
	.comm	LQ_MIMO2,4,4
	.comm	IL_MAX_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_4965-rs.c_il4965_rs_switch_to_mimo2.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"LQ: try to switch to MIMO2\012\000"
	.align	2
.LC1:
	.ascii	"LQ: MIMO2 best rate %d mask %X\012\000"
	.align	2
.LC2:
	.ascii	"Can't switch with idx %d rate mask %x\012\000"
	.align	2
.LC3:
	.ascii	"LQ: Switch to new mcs %X idx is green %X\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	il4965_rs_switch_to_mimo2, %function
il4965_rs_switch_to_mimo2:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, r0
	sub	sp, sp, #12
	mov	r0, r2
	mov	r5, r1
	mov	r7, r3
	ldr	r9, [r1]
	ldr	r4, [sp, #40]
	bl	conf_is_ht
	cmp	r0, #0
	beq	.L8
	ldr	r3, [r7, #4]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L11
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L8
	ldr	r3, [r6]
	cmp	r3, #1
	ble	.L8
	mov	r8, #0
	ldr	r0, .L11+4
	bl	D_RATE
	ldr	r2, .L11+8
	ldr	r3, .L11+12
	ldr	r0, [r2]
	ldr	r2, [r3]
	ldr	r3, [r5, #8]
	add	r1, r7, #4
	str	r2, [r4, #8]
	str	r3, [r4, #16]
	str	r0, [r4, #20]
	str	r8, [r4, #12]
	mov	r0, r6
	ldr	r7, [r5, #4]
	bl	il_is_ht40_tx_allowed
	subs	r0, r0, r8
	movne	r0, #1
	mov	r1, r4
	str	r0, [r4]
	mov	r0, r5
	bl	il4965_rs_set_expected_tpt_table
	ldr	r3, [sp, #44]
	mov	r1, r5
	mov	r2, r4
	str	r3, [sp]
	mov	r0, r6
	mov	r3, r7
	bl	il4965_rs_get_best_rate
	mov	r5, r0
	mov	r1, r0
	mov	r2, r7
	ldr	r0, .L11+16
	bl	D_RATE
	ldr	r3, .L11+20
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L3
	mov	r3, #1
	ands	r3, r7, r3, lsl r5
	beq	.L3
	mov	r2, r5
	mov	r3, r9
	mov	r1, r4
	mov	r0, r6
	bl	il4965_rate_n_flags_from_tbl
	mov	r2, r9
	mov	r1, r0
	str	r0, [r4, #4]
	ldr	r0, .L11+24
	bl	D_RATE
	mov	r0, r8
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L8:
	mvn	r0, #0
	b	.L1
.L3:
	mov	r2, r7
	mov	r1, r5
	ldr	r0, .L11+28
	bl	D_RATE
	mvn	r0, #0
	b	.L1
.L12:
	.align	2
.L11:
	.word	IEEE80211_SMPS_STATIC
	.word	.LC0
	.word	LQ_MIMO2
	.word	IL_MAX_SEARCH
	.word	.LC1
	.word	RATE_INVALID
	.word	.LC3
	.word	.LC2
	.size	il4965_rs_switch_to_mimo2, .-il4965_rs_switch_to_mimo2
	.comm	RATE_INVALID,4,4
	.comm	LQ_MIMO2,4,4
	.comm	IL_MAX_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
