	.file	"extr_rc80211_minstrel_ht.c_minstrel_ht_get_rate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	minstrel_ht_get_rate, @function
minstrel_ht_get_rate:
.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
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	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
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rdi, QWORD PTR [rcx]
	call	IEEE80211_SKB_CB@PLT
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, rbp
	mov	r15, QWORD PTR 8[rax]
	mov	rbx, rax
	call	rate_control_send_low@PLT
	test	rax, rax
	jne	.L1
	mov	r8d, DWORD PTR 4[r12]
	test	r8d, r8d
	jne	.L4
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rcx, r13
	mov	rdx, r12
	mov	rsi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	rdi, r14
	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
	jmp	[QWORD PTR mac80211_minstrel[rip]]
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR 36[r12]
	or	DWORD PTR [rbx], eax
	lea	rbp, 8[r12]
	mov	rdi, r14
	mov	edx, DWORD PTR 8[r13]
	mov	rsi, rbp
	call	minstrel_ht_check_cck_shortpreamble@PLT
	mov	rax, QWORD PTR 16[r14]
	cmp	DWORD PTR [rax], 1
	je	.L5
.L9:
	mov	rsi, rbp
	mov	rdi, r14
	call	minstrel_get_sample_rate@PLT
	mov	ebp, eax
	mov	eax, DWORD PTR 32[r12]
	lea	edx, 1[rax]
	cmp	eax, -2
	je	.L17
	mov	DWORD PTR 32[r12], edx
.L10:
	test	ebp, ebp
	js	.L1
	mov	esi, DWORD PTR MCS_GROUP_RATES[rip]
	mov	eax, ebp
	mov	rdi, QWORD PTR minstrel_mcs_groups[rip]
	cdq
	idiv	esi
	movsx	rcx, eax
	lea	rcx, [rdi+rcx*8]
	mov	edi, DWORD PTR IEEE80211_TX_CTL_RATE_CTRL_PROBE[rip]
	or	DWORD PTR [rbx], edi
	cmp	eax, DWORD PTR MINSTREL_CCK_GROUP[rip]
	mov	DWORD PTR [r15], 1
	je	.L18
	mov	eax, DWORD PTR [rcx]
	sub	eax, 1
	imul	eax, esi
	add	eax, edx
	mov	DWORD PTR 4[r15], eax
	mov	eax, DWORD PTR 4[rcx]
	or	eax, DWORD PTR IEEE80211_TX_RC_MCS[rip]
	mov	DWORD PTR 8[r15], eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L17:
	.cfi_restore_state
	mov	DWORD PTR 32[r12], 0
	mov	QWORD PTR 24[r12], 0
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 0[r13]
	mov	edi, DWORD PTR ETH_P_PAE[rip]
	mov	r13, QWORD PTR [rax]
	call	cpu_to_be16@PLT
	cmp	r13, rax
	jne	.L9
	mov	eax, DWORD PTR 32[r12]
	lea	edx, 1[rax]
	cmp	eax, -2
	je	.L13
	mov	DWORD PTR 32[r12], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, QWORD PTR 8[r14]
	call	ARRAY_SIZE@PLT
	mov	r8d, eax
	mov	eax, ebp
	cdq
	idiv	r8d
	mov	rax, QWORD PTR 8[r14]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR 8[r15], 0
	mov	DWORD PTR 4[r15], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	DWORD PTR 32[r12], 0
	mov	QWORD PTR 24[r12], 0
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	minstrel_ht_get_rate, .-minstrel_ht_get_rate
	.comm	minstrel_mcs_groups,8,8
	.comm	mac80211_minstrel,8,8
	.comm	MINSTREL_CCK_GROUP,4,4
	.comm	MCS_GROUP_RATES,4,4
	.comm	IEEE80211_TX_RC_MCS,4,4
	.comm	IEEE80211_TX_CTL_RATE_CTRL_PROBE,4,4
	.comm	ETH_P_PAE,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_rc80211_minstrel_ht.c_minstrel_ht_get_rate.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	minstrel_ht_get_rate, %function
minstrel_ht_get_rate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r0
	ldr	r0, [r3]
	mov	r9, r3
	mov	r7, r1
	mov	r4, r2
	bl	IEEE80211_SKB_CB
	mov	r5, r0
	mov	r2, r9
	mov	r1, r4
	mov	r0, r7
	ldr	r10, [r5, #4]
	bl	rate_control_send_low
	subs	r6, r0, #0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L4
	ldr	ip, .L19
	mov	r3, r9
	ldr	lr, [ip]
	mov	r2, r4
	mov	r1, r7
	mov	r0, r8
	mov	ip, lr
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	bx	ip	@ indirect register sibling call
.L4:
	ldr	r2, [r4, #28]
	ldr	r3, [r5]
	add	r7, r4, #8
	orr	r3, r3, r2
	str	r3, [r5]
	mov	r1, r7
	mov	r0, r8
	ldr	r2, [r9, #4]
	bl	minstrel_ht_check_cck_shortpreamble
	ldr	r3, [r8, #8]
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L5
.L9:
	mov	r1, r7
	mov	r0, r8
	bl	minstrel_get_sample_rate
	ldr	r3, [r4, #24]
	mov	r6, r0
	cmn	r3, #2
	add	r3, r3, #1
	strne	r3, [r4, #24]
	beq	.L17
.L10:
	cmp	r6, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, .L19+4
	ldr	r3, .L19+8
	ldr	r4, [r2]
	mov	r0, r6
	mov	r1, r4
	ldr	r7, [r3]
	bl	__aeabi_idivmod
	mov	ip, #1
	ldr	r3, .L19+12
	ldr	r2, .L19+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r0, r3
	ldr	r3, [r5]
	orr	r3, r3, r2
	str	r3, [r5]
	add	r2, r7, r0, lsl #3
	str	ip, [r10]
	beq	.L18
	ldr	r3, [r7, r0, lsl #3]
	ldr	r0, .L19+20
	sub	r3, r3, #1
	mla	r1, r4, r3, r1
	ldr	r3, [r2, #4]
	ldr	r2, [r0]
	str	r1, [r10, #4]
	orr	r3, r3, r2
	str	r3, [r10, #8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	mov	r3, #0
	str	r3, [r4, #24]
	str	r3, [r4, #20]
	b	.L10
.L5:
	ldr	r2, .L19+24
	ldr	r3, [r9]
	ldr	r0, [r2]
	ldr	r9, [r3]
	bl	cpu_to_be16
	cmp	r9, r0
	bne	.L9
	ldr	r3, [r4, #24]
	cmn	r3, #2
	add	r3, r3, #1
	strne	r3, [r4, #24]
	streq	r6, [r4, #24]
	streq	r6, [r4, #20]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	ldr	r0, [r8, #4]
	bl	ARRAY_SIZE
	mov	r1, r0
	mov	r0, r6
	bl	__aeabi_idivmod
	mov	r2, #0
	ldr	r3, [r8, #4]
	ldr	r3, [r3, r1, lsl #2]
	str	r2, [r10, #8]
	str	r3, [r10, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	.align	2
.L19:
	.word	mac80211_minstrel
	.word	MCS_GROUP_RATES
	.word	minstrel_mcs_groups
	.word	MINSTREL_CCK_GROUP
	.word	IEEE80211_TX_CTL_RATE_CTRL_PROBE
	.word	IEEE80211_TX_RC_MCS
	.word	ETH_P_PAE
	.size	minstrel_ht_get_rate, .-minstrel_ht_get_rate
	.comm	minstrel_mcs_groups,4,4
	.comm	mac80211_minstrel,4,4
	.comm	MINSTREL_CCK_GROUP,4,4
	.comm	MCS_GROUP_RATES,4,4
	.comm	IEEE80211_TX_RC_MCS,4,4
	.comm	IEEE80211_TX_CTL_RATE_CTRL_PROBE,4,4
	.comm	ETH_P_PAE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
