	.file	"extr_rtl819x_HTProc.c_HT_PickMCSRate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"pOperateMCS can't be null in HT_PickMCSRate()\n"
	.text
	.p2align 4
	.globl	HT_PickMCSRate
	.type	HT_PickMCSRate, @function
HT_PickMCSRate:
.LFB0:
	.cfi_startproc
	endbr64
	test	rsi, rsi
	je	.L15
	mov	eax, DWORD PTR [rdi]
	cmp	eax, 129
	jle	.L16
	sub	eax, 130
	mov	r8d, 1
	cmp	eax, 2
	ja	.L10
	lea	rax, 64[rsi]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	DWORD PTR [rsi], 0
	add	rsi, 4
	cmp	rsi, rax
	jne	.L6
.L13:
	mov	r8d, 1
.L10:
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	cmp	eax, 127
	jle	.L13
	mov	eax, DWORD PTR RATE_ADPT_1SS_MASK[rip]
	and	DWORD PTR [rsi], eax
	mov	eax, DWORD PTR RATE_ADPT_2SS_MASK[rip]
	and	DWORD PTR 4[rsi], eax
	mov	eax, DWORD PTR RATE_ADPT_MCS32_MASK[rip]
	and	DWORD PTR 12[rsi], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L15:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	edi, DWORD PTR IEEE80211_DL_ERR[rip]
	lea	rsi, .LC0[rip]
	call	IEEE80211_DEBUG@PLT
	xor	r8d, r8d
	add	rsp, 8
	.cfi_def_cfa_offset 8
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	HT_PickMCSRate, .-HT_PickMCSRate
	.comm	RATE_ADPT_MCS32_MASK,4,4
	.comm	RATE_ADPT_2SS_MASK,4,4
	.comm	RATE_ADPT_1SS_MASK,4,4
	.comm	IEEE80211_DL_ERR,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_rtl819x_HTProc.c_HT_PickMCSRate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pOperateMCS can't be null in HT_PickMCSRate()\012\000"
	.text
	.align	2
	.global	HT_PickMCSRate
	.syntax unified
	.arm
	.fpu softvfp
	.type	HT_PickMCSRate, %function
HT_PickMCSRate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	r4, r1, #0
	beq	.L12
	ldr	r3, [r0]
	cmp	r3, #129
	ble	.L13
	sub	r3, r3, #130
	cmp	r3, #2
	bhi	.L7
	mov	r2, #0
	sub	r3, r4, #4
	add	r0, r4, #60
.L6:
	str	r2, [r3, #4]!
	cmp	r3, r0
	beq	.L7
	str	r2, [r3, #4]!
	cmp	r3, r0
	bne	.L6
	b	.L7
.L13:
	cmp	r3, #127
	bgt	.L5
.L7:
	mov	r0, #1
	pop	{r4, pc}
.L5:
	ldr	r2, .L14
	ldr	r3, [r4]
	ldr	r1, [r2]
	ldr	r2, .L14+4
	and	r3, r3, r1
	ldr	r1, .L14+8
	str	r3, [r4]
	ldr	r0, [r2]
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #4]
	ldr	r1, [r1]
	and	r2, r2, r0
	and	r3, r3, r1
	mov	r0, #1
	str	r2, [r4, #4]
	str	r3, [r4, #12]
	pop	{r4, pc}
.L12:
	ldr	r3, .L14+12
	ldr	r1, .L14+16
	ldr	r0, [r3]
	bl	IEEE80211_DEBUG
	mov	r0, r4
	pop	{r4, pc}
.L15:
	.align	2
.L14:
	.word	RATE_ADPT_1SS_MASK
	.word	RATE_ADPT_2SS_MASK
	.word	RATE_ADPT_MCS32_MASK
	.word	IEEE80211_DL_ERR
	.word	.LC0
	.size	HT_PickMCSRate, .-HT_PickMCSRate
	.comm	RATE_ADPT_MCS32_MASK,4,4
	.comm	RATE_ADPT_2SS_MASK,4,4
	.comm	RATE_ADPT_1SS_MASK,4,4
	.comm	IEEE80211_DL_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
