	.file	"extr_3945-rs.c_il3945_rate_scale_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"enter\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Unable to find station to initialize rate scaling.\n"
	.section	.rodata.str1.1
.LC2:
	.string	"Network RSSI: %d\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"leave: rssi %d assign rate idx: %d (plcp 0x%x)\n"
	.text
	.p2align 4
	.globl	il3945_rate_scale_init
	.type	il3945_rate_scale_init, @function
il3945_rate_scale_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR [rdi]
	lea	rdi, .LC0[rip]
	call	D_RATE@PLT
	xor	eax, eax
	call	rcu_read_lock@PLT
	mov	rax, QWORD PTR 24[rbx]
	mov	edi, DWORD PTR 32[rbx]
	mov	esi, DWORD PTR [rax+rbp*4]
	call	ieee80211_find_sta@PLT
	test	rax, rax
	je	.L11
	mov	r12, QWORD PTR [rax]
	xor	esi, esi
	lea	rbp, 16[r12]
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR [r12], 0
	cmp	eax, 128
	je	.L3
	cmp	eax, 129
	je	.L12
	xor	eax, eax
	call	BUG@PLT
.L6:
	xor	esi, esi
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
	mov	rbp, QWORD PTR 8[rbx]
	lea	rdi, .LC2[rip]
	test	rbp, rbp
	cmove	rbp, QWORD PTR IL_MIN_RSSI_VAL[rip]
	xor	eax, eax
	mov	rsi, rbp
	call	D_RATE@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rbp
	call	il3945_get_rate_idx_by_rssi@PLT
	mov	rsi, rbp
	lea	rdi, .LC3[rip]
	mov	QWORD PTR 8[r12], rax
	mov	rdx, rax
	mov	rax, QWORD PTR il3945_rates[rip]
	mov	ecx, DWORD PTR [rax+rdx*4]
	xor	eax, eax
	call	D_RATE@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	rcu_read_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	eax, DWORD PTR 16[rbx]
	test	DWORD PTR RXON_FLG_TGG_PROTECT_MSK[rip], eax
	je	.L5
	mov	eax, DWORD PTR il3945_expected_tpt_g_prot[rip]
	mov	DWORD PTR [r12], 1
	mov	DWORD PTR 20[r12], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR il3945_expected_tpt_a[rip]
	mov	DWORD PTR 20[r12], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR il3945_expected_tpt_g[rip]
	mov	DWORD PTR 20[r12], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdi, .LC1[rip]
	call	D_RATE@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	rcu_read_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	il3945_rate_scale_init, .-il3945_rate_scale_init
	.comm	il3945_rates,8,8
	.comm	il3945_expected_tpt_g_prot,4,4
	.comm	il3945_expected_tpt_g,4,4
	.comm	il3945_expected_tpt_a,4,4
	.comm	RXON_FLG_TGG_PROTECT_MSK,4,4
	.comm	IL_MIN_RSSI_VAL,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_3945-rs.c_il3945_rate_scale_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"enter\012\000"
	.align	2
.LC1:
	.ascii	"Unable to find station to initialize rate scaling.\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"Network RSSI: %d\012\000"
	.align	2
.LC3:
	.ascii	"leave: rssi %d assign rate idx: %d (plcp 0x%x)\012\000"
	.text
	.align	2
	.global	il3945_rate_scale_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	il3945_rate_scale_init, %function
il3945_rate_scale_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r4, [r0]
	ldr	r0, .L11
	bl	D_RATE
	bl	rcu_read_lock
	ldr	r3, [r4, #12]
	ldr	r0, [r4, #16]
	ldr	r1, [r3, r5, lsl #2]
	bl	ieee80211_find_sta
	cmp	r0, #0
	beq	.L10
	ldr	r6, [r0]
	mov	r1, #0
	add	r5, r6, #8
	mov	r0, r5
	bl	spin_lock_irqsave
	mov	r2, #0
	ldr	r3, [r4]
	str	r2, [r6]
	cmp	r3, #128
	beq	.L3
	cmp	r3, #129
	bne	.L4
	ldr	r3, .L11+4
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	tst	r2, r3
	movne	r2, #1
	ldrne	r3, .L11+8
	ldreq	r3, .L11+12
	strne	r2, [r6]
	ldr	r3, [r3]
	str	r3, [r6, #12]
.L6:
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r5, [r4, #4]
	ldr	r0, .L11+16
	cmp	r5, #0
	ldreq	r3, .L11+20
	ldreq	r5, [r3]
	mov	r1, r5
	bl	D_RATE
	ldr	r1, [r4]
	mov	r0, r5
	bl	il3945_get_rate_idx_by_rssi
	ldr	r3, .L11+24
	str	r0, [r6, #4]
	ldr	r3, [r3]
	mov	r2, r0
	mov	r1, r5
	ldr	r3, [r3, r0, lsl #2]
	ldr	r0, .L11+28
	bl	D_RATE
	pop	{r4, r5, r6, lr}
	b	rcu_read_unlock
.L4:
	bl	BUG
	b	.L6
.L3:
	ldr	r3, .L11+32
	ldr	r3, [r3]
	str	r3, [r6, #12]
	b	.L6
.L10:
	ldr	r0, .L11+36
	bl	D_RATE
	pop	{r4, r5, r6, lr}
	b	rcu_read_unlock
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	RXON_FLG_TGG_PROTECT_MSK
	.word	il3945_expected_tpt_g_prot
	.word	il3945_expected_tpt_g
	.word	.LC2
	.word	IL_MIN_RSSI_VAL
	.word	il3945_rates
	.word	.LC3
	.word	il3945_expected_tpt_a
	.word	.LC1
	.size	il3945_rate_scale_init, .-il3945_rate_scale_init
	.comm	il3945_rates,4,4
	.comm	il3945_expected_tpt_g_prot,4,4
	.comm	il3945_expected_tpt_g,4,4
	.comm	il3945_expected_tpt_a,4,4
	.comm	RXON_FLG_TGG_PROTECT_MSK,4,4
	.comm	IL_MIN_RSSI_VAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
