	.file	"extr_main.c_wl12xx_set_bitrate_mask.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"mac80211 set_bitrate_mask 0x%x 0x%x"
	.text
	.p2align 4
	.type	wl12xx_set_bitrate_mask, @function
wl12xx_set_bitrate_mask:
.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
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	rdi, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	wl12xx_vif_to_data@PLT
	mov	rdx, QWORD PTR NL80211_BAND_5GHZ[rip]
	mov	r14, QWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	mov	r13, rax
	mov	rax, QWORD PTR [r12]
	mov	edi, DWORD PTR DEBUG_MAC80211[rip]
	lea	r15, 8[r14]
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rdx, QWORD PTR NL80211_BAND_2GHZ[rip]
	mov	edx, DWORD PTR [rax+rdx*4]
	call	wl1271_debug@PLT
	mov	rdi, r15
	call	mutex_lock@PLT
	mov	eax, DWORD PTR WLCORE_NUM_BANDS[rip]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 24[r13]
	mov	edx, ebx
	mov	rdi, r14
	lea	rbp, [rax+rbx*4]
	mov	rax, QWORD PTR [r12]
	mov	esi, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	wl1271_tx_enabled_rates_get@PLT
	mov	DWORD PTR 0[rbp], eax
	cmp	DWORD PTR WLCORE_NUM_BANDS[rip], ebx
	jg	.L3
.L2:
	xor	edi, edi
	mov	rax, QWORD PTR WLCORE_STATE_ON[rip]
	cmp	QWORD PTR [r14], rax
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR BSS_TYPE_STA_BSS[rip]
	cmp	QWORD PTR 0[r13], rax
	je	.L10
.L6:
	xor	r12d, r12d
.L5:
	mov	rdi, r15
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR WLVIF_FLAG_STA_ASSOCIATED[rip]
	lea	rsi, 16[r13]
	call	test_bit@PLT
	test	eax, eax
	jne	.L6
	mov	rdi, r14
	call	wl1271_ps_elp_wakeup@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L5
	mov	rsi, r13
	mov	rdi, r14
	call	wl1271_set_band_rate@PLT
	mov	esi, DWORD PTR 8[r13]
	mov	rdi, r14
	call	wl1271_tx_min_rate_get@PLT
	mov	rdi, r14
	mov	rsi, r13
	mov	DWORD PTR 12[r13], eax
	call	wl1271_acx_sta_rate_policies@PLT
	mov	rdi, r14
	mov	r12d, eax
	call	wl1271_ps_elp_sleep@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	wl12xx_set_bitrate_mask, .-wl12xx_set_bitrate_mask
	.comm	WLVIF_FLAG_STA_ASSOCIATED,4,4
	.comm	WLCORE_STATE_ON,8,8
	.comm	WLCORE_NUM_BANDS,4,4
	.comm	NL80211_BAND_5GHZ,8,8
	.comm	NL80211_BAND_2GHZ,8,8
	.comm	DEBUG_MAC80211,4,4
	.comm	BSS_TYPE_STA_BSS,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_main.c_wl12xx_set_bitrate_mask.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mac80211 set_bitrate_mask 0x%x 0x%x\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl12xx_set_bitrate_mask, %function
wl12xx_set_bitrate_mask:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r6, r2
	bl	wl12xx_vif_to_data
	ldr	r1, .L11
	ldr	r3, .L11+4
	ldr	r2, [r6]
	ldr	r8, [r4]
	ldr	r3, [r3]
	mov	r7, r0
	ldr	r0, [r1]
	ldr	r1, .L11+8
	ldr	r3, [r2, r3, lsl #2]
	ldr	r10, .L11+12
	ldr	r2, [r2, r0, lsl #2]
	add	r9, r8, #4
	ldr	r0, [r1]
	ldr	r1, .L11+16
	bl	wl1271_debug
	mov	r0, r9
	bl	mutex_lock
	ldr	r3, [r10]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
.L3:
	ldr	r3, [r6]
	mov	r2, r4
	ldr	r1, [r3, r4, lsl #2]
	mov	r0, r8
	ldr	r5, [r7, #16]
	bl	wl1271_tx_enabled_rates_get
	str	r0, [r5, r4, lsl #2]
	ldr	r3, [r10]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L3
.L2:
	ldr	r3, .L11+20
	ldr	r0, [r8]
	ldr	r3, [r3]
	subs	r0, r0, r3
	movne	r0, #1
	bl	unlikely
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L11+24
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L10
.L6:
	mov	r4, #0
.L5:
	mov	r0, r9
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r3, .L11+28
	add	r1, r7, #12
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L6
	mov	r0, r8
	bl	wl1271_ps_elp_wakeup
	subs	r4, r0, #0
	blt	.L5
	mov	r1, r7
	mov	r0, r8
	bl	wl1271_set_band_rate
	ldr	r1, [r7, #4]
	mov	r0, r8
	bl	wl1271_tx_min_rate_get
	mov	r1, r7
	str	r0, [r7, #8]
	mov	r0, r8
	bl	wl1271_acx_sta_rate_policies
	mov	r4, r0
	mov	r0, r8
	bl	wl1271_ps_elp_sleep
	b	.L5
.L12:
	.align	2
.L11:
	.word	NL80211_BAND_2GHZ
	.word	NL80211_BAND_5GHZ
	.word	DEBUG_MAC80211
	.word	WLCORE_NUM_BANDS
	.word	.LC0
	.word	WLCORE_STATE_ON
	.word	BSS_TYPE_STA_BSS
	.word	WLVIF_FLAG_STA_ASSOCIATED
	.size	wl12xx_set_bitrate_mask, .-wl12xx_set_bitrate_mask
	.comm	WLVIF_FLAG_STA_ASSOCIATED,4,4
	.comm	WLCORE_STATE_ON,4,4
	.comm	WLCORE_NUM_BANDS,4,4
	.comm	NL80211_BAND_5GHZ,4,4
	.comm	NL80211_BAND_2GHZ,4,4
	.comm	DEBUG_MAC80211,4,4
	.comm	BSS_TYPE_STA_BSS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
