	.file	"extr_rt2661.c_rt2661_set_basicrates.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Setting basic rate mask to 0x%x\n"
	.text
	.p2align 4
	.type	rt2661_set_basicrates, @function
rt2661_set_basicrates:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	eax, DWORD PTR [rsi]
	test	eax, eax
	jle	.L5
	mov	rbp, rsi
	xor	ebx, ebx
	xor	r14d, r14d
	mov	r13d, 1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rax+rbx*4]
	test	DWORD PTR IEEE80211_RATE_BASIC[rip], edi
	je	.L3
	call	IEEE80211_RV@PLT
	mov	edi, DWORD PTR [r12]
	mov	esi, eax
	call	ieee80211_legacy_rate_lookup@PLT
	mov	edx, r13d
	mov	ecx, eax
	sal	edx, cl
	or	r14d, edx
.L3:
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L4
.L2:
	mov	esi, DWORD PTR RT2661_TXRX_CSR5[rip]
	mov	edx, r14d
	mov	rdi, r12
	call	RAL_WRITE@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	DPRINTF@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	r14d, r14d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	rt2661_set_basicrates, .-rt2661_set_basicrates
	.comm	RT2661_TXRX_CSR5,4,4
	.comm	IEEE80211_RATE_BASIC,4,4
	.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_rt2661.c_rt2661_set_basicrates.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Setting basic rate mask to 0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rt2661_set_basicrates, %function
rt2661_set_basicrates:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	ldr	r1, [r1]
	mov	r6, r0
	cmp	r1, #0
	ble	.L5
	mov	r4, #0
	mov	r7, #1
	mov	r8, r4
	ldr	r9, .L12
.L4:
	ldr	ip, [r5, #4]
	ldr	r3, [r9]
	ldr	r0, [ip, r4, lsl #2]
	add	r4, r4, #1
	tst	r0, r3
	beq	.L3
	ldr	r10, [r6]
	bl	IEEE80211_RV
	mov	r1, r0
	mov	r0, r10
	bl	ieee80211_legacy_rate_lookup
	ldr	r1, [r5]
	orr	r8, r8, r7, lsl r0
.L3:
	cmp	r1, r4
	bgt	.L4
.L2:
	ldr	r3, .L12+4
	mov	r2, r8
	mov	r0, r6
	ldr	r1, [r3]
	bl	RAL_WRITE
	mov	r2, r8
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r1, .L12+8
	b	DPRINTF
.L5:
	mov	r8, #0
	b	.L2
.L13:
	.align	2
.L12:
	.word	IEEE80211_RATE_BASIC
	.word	RT2661_TXRX_CSR5
	.word	.LC0
	.size	rt2661_set_basicrates, .-rt2661_set_basicrates
	.comm	RT2661_TXRX_CSR5,4,4
	.comm	IEEE80211_RATE_BASIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
