	.file	"extr_main.c_brcms_c_set_ratetable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	brcms_c_set_ratetable, @function
brcms_c_set_ratetable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rbp, rsp
	call	brcms_c_rateset_get_hwrs@PLT
	mov	rsi, rbp
	mov	rdi, rax
	call	brcms_c_rateset_copy@PLT
	mov	rax, QWORD PTR [r12]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax]
	call	brcms_c_rateset_mcs_upd@PLT
	cmp	QWORD PTR [rsp], 0
	je	.L1
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, r12
	mov	ebp, DWORD PTR [rax+rbx*4]
	and	ebp, DWORD PTR BRCMS_RATE_MASK[rip]
	mov	esi, ebp
	call	brcms_basic_rate@PLT
	mov	edx, eax
	test	eax, eax
	jne	.L3
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR [rax]
	and	edx, DWORD PTR BRCMS_RATE_MASK[rip]
.L3:
	mov	esi, ebp
	mov	rdi, r12
	add	rbx, 1
	call	brcms_c_write_rate_shm@PLT
	cmp	QWORD PTR [rsp], rbx
	ja	.L4
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	brcms_c_set_ratetable, .-brcms_c_set_ratetable
	.comm	BRCMS_RATE_MASK,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_main.c_brcms_c_set_ratetable.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	brcms_c_set_ratetable, %function
brcms_c_set_ratetable:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r0
	ldr	r3, .L13
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	brcms_c_rateset_get_hwrs
	add	r1, sp, #4
	bl	brcms_c_rateset_copy
	ldr	r3, [r6]
	add	r0, sp, #4
	ldr	r1, [r3]
	bl	brcms_c_rateset_mcs_upd
	ldr	r3, [sp, #4]
	cmp	r3, #0
	beq	.L1
	mov	r5, #0
	ldr	r7, .L13+4
.L4:
	ldr	r3, [sp, #8]
	ldr	r1, [r7]
	ldr	r4, [r3, r5, lsl #2]
	mov	r0, r6
	and	r4, r4, r1
	mov	r1, r4
	bl	brcms_basic_rate
	subs	r2, r0, #0
	ldreq	r3, [sp, #8]
	ldreq	r0, [r7]
	ldreq	r2, [r3]
	mov	r1, r4
	andeq	r2, r2, r0
	mov	r0, r6
	bl	brcms_c_write_rate_shm
	ldr	r3, [sp, #4]
	add	r5, r5, #1
	cmp	r3, r5
	bhi	.L4
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	BRCMS_RATE_MASK
	.size	brcms_c_set_ratetable, .-brcms_c_set_ratetable
	.comm	BRCMS_RATE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
