	.file	"extr_base.c_ath5k_setup_rate_idx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ath5k_setup_rate_idx, @function
ath5k_setup_rate_idx:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, QWORD PTR AR5K_MAX_RATES[rip]
	test	rdx, rdx
	je	.L2
	mov	rcx, QWORD PTR [rsi]
	mov	rax, QWORD PTR [rdi]
	mov	rax, QWORD PTR [rax+rcx*8]
	lea	rdx, [rax+rdx*4]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	DWORD PTR [rax], -1
	add	rax, 4
	cmp	rax, rdx
	jne	.L3
.L2:
	mov	r8, QWORD PTR 8[rsi]
	test	r8, r8
	je	.L1
	mov	rdx, QWORD PTR [rsi]
	mov	rax, QWORD PTR [rdi]
	mov	rdi, QWORD PTR [rax+rdx*8]
	mov	rdx, QWORD PTR 16[rsi]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rcx, QWORD PTR [rdx]
	mov	DWORD PTR [rdi+rcx*4], eax
	movsx	rcx, DWORD PTR 8[rdx]
	test	ecx, ecx
	je	.L5
	mov	DWORD PTR [rdi+rcx*4], eax
.L5:
	add	rax, 1
	add	rdx, 16
	cmp	rax, r8
	jne	.L6
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	ath5k_setup_rate_idx, .-ath5k_setup_rate_idx
	.comm	AR5K_MAX_RATES,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_base.c_ath5k_setup_rate_idx.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath5k_setup_rate_idx, %function
ath5k_setup_rate_idx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L20
	str	lr, [sp, #-4]!
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L2
	mvn	ip, #0
	ldr	lr, [r1]
	ldr	r3, [r0]
	ldr	r3, [r3, lr, lsl #2]
	add	r2, r3, r2, lsl #2
	sub	r2, r2, #4
	sub	r3, r3, #4
.L3:
	str	ip, [r3, #4]!
	cmp	r3, r2
	bne	.L3
.L2:
	ldr	ip, [r1, #4]
	cmp	ip, #0
	ldreq	pc, [sp], #4
	mov	r3, #0
	ldr	r2, [r0]
	ldr	lr, [r1]
	ldr	r0, [r1, #8]
	ldr	r1, [r2, lr, lsl #2]
	add	lr, r0, #4
.L6:
	ldr	r2, [r0, r3, lsl #3]
	str	r3, [r1, r2, lsl #2]
	ldr	r2, [lr, r3, lsl #3]
	cmp	r2, #0
	strne	r3, [r1, r2, lsl #2]
	add	r3, r3, #1
	cmp	r3, ip
	bne	.L6
	ldr	pc, [sp], #4
.L21:
	.align	2
.L20:
	.word	AR5K_MAX_RATES
	.size	ath5k_setup_rate_idx, .-ath5k_setup_rate_idx
	.comm	AR5K_MAX_RATES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
