	.file	"extr_rate.c_rate_control_apply_mask_ratetbl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rate_control_apply_mask_ratetbl, @function
rate_control_apply_mask_ratetbl:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	.cfi_offset 12, -48
	mov	r12, rsi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR IEEE80211_HT_MCS_MASK_LEN[rip]
	mov	rcx, rsp
	mov	QWORD PTR -80[rbp], rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L22:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L22
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L23
.L4:
	movsx	rax, DWORD PTR NL80211_VHT_NSS_MAX[rip]
	mov	rcx, rsp
	mov	r14, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L6
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L24
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L25
.L7:
	mov	rdi, QWORD PTR 0[r13]
	mov	r9, rsp
	lea	rcx, -60[rbp]
	lea	rdx, 8[r13]
	mov	r8, r14
	mov	rsi, r12
	mov	QWORD PTR -72[rbp], r9
	call	rate_control_cap_mask@PLT
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR 0[r13]
	mov	ecx, DWORD PTR IEEE80211_TX_RATE_TABLE_SIZE[rip]
	mov	r13d, DWORD PTR [rax]
	test	ecx, ecx
	jle	.L10
	xor	r15d, r15d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L26:
	sub	rsp, 8
	mov	r8d, DWORD PTR -60[rbp]
	push	QWORD PTR -72[rbp]
	mov	rdx, r12
	lea	rsi, 8[rdi]
	mov	r9, r14
	mov	ecx, r13d
	add	r15, 1
	call	rate_idx_match_mask@PLT
	cmp	DWORD PTR IEEE80211_TX_RATE_TABLE_SIZE[rip], r15d
	pop	rax
	pop	rdx
	jle	.L10
.L11:
	mov	rdi, r15
	sal	rdi, 4
	add	rdi, QWORD PTR [rbx]
	cmp	QWORD PTR [rdi], 0
	jns	.L26
.L10:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	mov	rsp, QWORD PTR -80[rbp]
	jne	.L27
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L25:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rate_control_apply_mask_ratetbl, .-rate_control_apply_mask_ratetbl
	.comm	NL80211_VHT_NSS_MAX,4,4
	.comm	IEEE80211_TX_RATE_TABLE_SIZE,4,4
	.comm	IEEE80211_HT_MCS_MASK_LEN,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_rate.c_rate_control_apply_mask_ratetbl.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rate_control_apply_mask_ratetbl, %function
rate_control_apply_mask_ratetbl:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #36
	mov	ip, r0
	mov	r5, r2
	ldr	r2, .L12
	ldr	r3, .L12+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	lsl	r2, r2, #2
	add	r2, r2, #7
	lsl	r3, r3, #2
	bic	r2, r2, #7
	add	r3, r3, #7
	str	sp, [fp, #-48]
	bic	r3, r3, #7
	sub	sp, sp, r2
	add	r7, sp, #16
	mov	r4, r0
	sub	sp, sp, r3
	ldr	r0, [ip], #4
	ldr	r3, .L12+8
	add	r8, sp, #16
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r2, ip
	stm	sp, {r7, r8}
	sub	r3, fp, #44
	mov	r6, r1
	bl	rate_control_cap_mask
	cmp	r0, #0
	beq	.L4
	ldr	r9, .L12+12
	ldr	r3, [r4]
	ldr	r2, [r9]
	ldr	r10, [r3]
	cmp	r2, #0
	ble	.L4
	mov	r4, #0
	b	.L5
.L10:
	stmib	sp, {r7, r8}
	ldr	r2, [fp, #-44]
	mov	r3, r10
	str	r2, [sp]
	add	r1, r0, #4
	mov	r2, r6
	bl	rate_idx_match_mask
	ldr	r2, [r9]
	add	r4, r4, #1
	cmp	r2, r4
	ble	.L4
.L5:
	ldr	r0, [r5]
	ldr	r2, [r0, r4, lsl #3]
	add	r0, r0, r4, lsl #3
	cmp	r2, #0
	bge	.L10
.L4:
	ldr	r3, .L12+8
	ldr	sp, [fp, #-48]
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	IEEE80211_HT_MCS_MASK_LEN
	.word	NL80211_VHT_NSS_MAX
	.word	.LC0
	.word	IEEE80211_TX_RATE_TABLE_SIZE
	.size	rate_control_apply_mask_ratetbl, .-rate_control_apply_mask_ratetbl
	.comm	NL80211_VHT_NSS_MAX,4,4
	.comm	IEEE80211_TX_RATE_TABLE_SIZE,4,4
	.comm	IEEE80211_HT_MCS_MASK_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
