	.file	"extr_r8192U_core.c_rtl8192SU_update_ratr_table.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"=============>ARFR0+rate_index*4:%#x\n"
	.text
	.p2align 4
	.globl	rtl8192SU_update_ratr_table
	.type	rtl8192SU_update_ratr_table, @function
rtl8192SU_update_ratr_table:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	ieee80211_priv@PLT
	lea	rsi, 4[rsp]
	mov	rdi, rbp
	mov	r13, QWORD PTR 8[rax]
	mov	r14, rax
	mov	r15, QWORD PTR 0[r13]
	mov	rax, QWORD PTR 16[r13]
	mov	DWORD PTR 4[rsp], 0
	mov	ebx, DWORD PTR 8[r13]
	mov	r12d, DWORD PTR [rax]
	call	rtl8192_config_rate@PLT
	mov	edx, DWORD PTR [r15]
	sal	edx, 12
	or	edx, DWORD PTR 4[rsp]
	cmp	ebx, 131
	je	.L2
	jg	.L3
	cmp	ebx, 130
	jne	.L30
	and	edx, 4085
	mov	DWORD PTR 4[rsp], edx
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rsi, QWORD PTR ARFR0[rip]
	mov	rdi, rbp
	call	write_nic_dword@PLT
	mov	esi, DWORD PTR 4[rsp]
	lea	rdi, .LC0[rip]
	call	printk@PLT
	test	DWORD PTR 4[rsp], -4096
	je	.L20
	mov	esi, DWORD PTR FW_CMD_RA_REFRESH_N[rip]
	mov	rdi, rbp
	call	HalSetFwCmd8192S@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	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
.L30:
	.cfi_restore_state
	cmp	ebx, 127
	jg	.L32
.L6:
	and	edx, 268435455
	mov	DWORD PTR 4[rsp], edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	ebx, 132
	jne	.L6
	and	edx, 4080
	mov	DWORD PTR 4[rsp], edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L20:
	mov	esi, DWORD PTR FW_CMD_RA_REFRESH_BG[rip]
	mov	rdi, rbp
	call	HalSetFwCmd8192S@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	and	edx, 13
	mov	DWORD PTR 4[rsp], edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rax, QWORD PTR 16[r13]
	mov	ecx, DWORD PTR 4[rax]
	test	r12d, r12d
	jne	.L9
	and	edx, 520197
	mov	DWORD PTR 4[rsp], edx
.L10:
	test	DWORD PTR HT_IOT_ACT_DISABLE_SHORT_GI[rip], ecx
	jne	.L28
	cmp	QWORD PTR 16[rax], 0
	jne	.L33
	cmp	QWORD PTR 8[rax], 0
	je	.L28
.L15:
	or	edx, 268435456
	mov	ecx, 15
	mov	esi, 1
	mov	DWORD PTR 4[rsp], edx
	sar	edx, 12
	.p2align 4,,10
	.p2align 3
.L18:
	mov	eax, esi
	sal	eax, cl
	test	eax, edx
	jne	.L17
	sub	ecx, 1
	jne	.L18
.L19:
	mov	esi, DWORD PTR SG_RATE[rip]
	mov	edx, ecx
	mov	rdi, rbp
	call	write_nic_byte@PLT
.L28:
	mov	edx, DWORD PTR 4[rsp]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L33:
	cmp	QWORD PTR 24[rax], 0
	jne	.L15
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR [r14]
	cmp	edi, DWORD PTR RF_1T2R[rip]
	mov	esi, 1044485
	je	.L11
	cmp	edi, DWORD PTR RF_1T1R[rip]
	je	.L11
	mov	esi, DWORD PTR HT_IOT_ACT_DISABLE_TX_2SS[rip]
	and	esi, ecx
	cmp	esi, 1
	sbb	esi, esi
	and	esi, 251658240
	add	esi, 1044485
.L11:
	mov	edi, DWORD PTR 32[rax]
	test	edi, edi
	je	.L12
	mov	edi, esi
	or	edi, 16
	test	DWORD PTR HT_IOT_ACT_DISABLE_TX_40_MHZ[rip], ecx
	cmove	esi, edi
.L12:
	and	edx, esi
	mov	DWORD PTR 4[rsp], edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, ecx
	mov	edx, ecx
	sal	eax, 12
	sal	edx, 8
	or	eax, edx
	or	eax, ecx
	sal	ecx, 4
	or	ecx, eax
	jmp	.L19
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rtl8192SU_update_ratr_table, .-rtl8192SU_update_ratr_table
	.comm	SG_RATE,4,4
	.comm	RF_1T2R,4,4
	.comm	RF_1T1R,4,4
	.comm	HT_IOT_ACT_DISABLE_TX_40_MHZ,4,4
	.comm	HT_IOT_ACT_DISABLE_TX_2SS,4,4
	.comm	HT_IOT_ACT_DISABLE_SHORT_GI,4,4
	.comm	FW_CMD_RA_REFRESH_N,4,4
	.comm	FW_CMD_RA_REFRESH_BG,4,4
	.comm	ARFR0,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_r8192U_core.c_rtl8192SU_update_ratr_table.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"=============>ARFR0+rate_index*4:%#x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rtl8192SU_update_ratr_table
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl8192SU_update_ratr_table, %function
rtl8192SU_update_ratr_table:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L38
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r0
	bl	ieee80211_priv
	mov	r3, #0
	ldr	r6, [r0, #4]
	mov	r1, sp
	ldr	r9, [r6]
	ldr	r2, [r6, #8]
	ldr	r5, [r6, #4]
	mov	r7, r0
	mov	r0, r4
	ldr	r8, [r2]
	str	r3, [sp]
	bl	rtl8192_config_rate
	ldr	r1, [r9]
	ldr	r2, [sp]
	sub	r3, r5, #128
	orr	r1, r2, r1, lsl #12
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L7:
	ldr	r0, [r6, #8]
	cmp	r8, #0
	ldr	ip, [r0, #4]
	bne	.L9
	ldr	r3, .L38+4
	and	r3, r3, r1
	str	r3, [sp]
.L10:
	ldr	r2, .L38+8
	ldr	r2, [r2]
	tst	ip, r2
	bne	.L34
	ldr	r2, [r0, #12]
	cmp	r2, #0
	bne	.L36
	ldr	r2, [r0, #8]
	cmp	r2, #0
	beq	.L34
.L15:
	mov	r2, #15
	mov	r1, #1
	orr	r3, r3, #268435456
	str	r3, [sp]
	asr	r3, r3, #12
.L18:
	ands	r0, r3, r1, lsl r2
	bne	.L17
	subs	r2, r2, #1
	bne	.L18
.L19:
	ldr	r3, .L38+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	write_nic_byte
.L34:
	ldr	r2, [sp]
	b	.L8
.L6:
	ldr	r2, .L38+16
	and	r2, r2, r1
	str	r2, [sp]
.L8:
	ldr	r3, .L38+20
	mov	r0, r4
	ldr	r1, [r3]
	bl	write_nic_dword
	ldr	r1, [sp]
	ldr	r0, .L38+24
	bl	printk
	ldr	r3, [sp]
	mov	r0, r4
	bic	r3, r3, #4080
	bic	r3, r3, #15
	cmp	r3, #0
	ldrne	r3, .L38+28
	ldreq	r3, .L38+32
	ldr	r1, [r3]
	bl	HalSetFwCmd8192S
	ldr	r3, .L38
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	and	r2, r1, #13
	str	r2, [sp]
	b	.L8
.L3:
	and	r2, r1, #4080
	str	r2, [sp]
	b	.L8
.L36:
	ldr	r2, [r0, #16]
	cmp	r2, #0
	bne	.L15
	b	.L34
.L9:
	ldr	r2, .L38+36
	ldr	r3, [r7]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L24
	ldr	r2, .L38+40
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L24
	ldr	r2, .L38+44
	ldr	r3, .L38+48
	ldr	lr, [r2]
	ldr	r2, .L38+52
	tst	ip, lr
	moveq	r3, r2
	b	.L11
.L24:
	ldr	r3, .L38+48
.L11:
	ldr	r2, [r0, #20]
	cmp	r2, #0
	beq	.L12
	ldr	r2, .L38+56
	ldr	r2, [r2]
	tst	ip, r2
	orreq	r3, r3, #16
.L12:
	and	r3, r3, r1
	str	r3, [sp]
	b	.L10
.L17:
	lsl	r3, r2, #8
	orr	r3, r3, r2, lsl #12
	orr	r3, r3, r2
	orr	r2, r3, r2, lsl #4
	b	.L19
.L37:
	bl	__stack_chk_fail
.L2:
	bic	r2, r1, #-268435456
	str	r2, [sp]
	b	.L8
.L39:
	.align	2
.L38:
	.word	.LC1
	.word	520197
	.word	HT_IOT_ACT_DISABLE_SHORT_GI
	.word	SG_RATE
	.word	4085
	.word	ARFR0
	.word	.LC0
	.word	FW_CMD_RA_REFRESH_N
	.word	FW_CMD_RA_REFRESH_BG
	.word	RF_1T2R
	.word	RF_1T1R
	.word	HT_IOT_ACT_DISABLE_TX_2SS
	.word	1044485
	.word	252702725
	.word	HT_IOT_ACT_DISABLE_TX_40_MHZ
	.size	rtl8192SU_update_ratr_table, .-rtl8192SU_update_ratr_table
	.comm	SG_RATE,4,4
	.comm	RF_1T2R,4,4
	.comm	RF_1T1R,4,4
	.comm	HT_IOT_ACT_DISABLE_TX_40_MHZ,4,4
	.comm	HT_IOT_ACT_DISABLE_TX_2SS,4,4
	.comm	HT_IOT_ACT_DISABLE_SHORT_GI,4,4
	.comm	FW_CMD_RA_REFRESH_N,4,4
	.comm	FW_CMD_RA_REFRESH_BG,4,4
	.comm	ARFR0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
