	.file	"extr_if_iwm_mac_ctxt.c_iwm_mvm_ack_rates.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	iwm_mvm_ack_rates, @function
iwm_mvm_ack_rates:
.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
	mov	r13d, 100
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], rdx
	mov	QWORD PTR 8[rsp], rcx
	test	esi, esi
	je	.L2
	mov	r14d, DWORD PTR IWM_FIRST_CCK_RATE[rip]
	xor	r12d, r12d
	cmp	r14d, DWORD PTR IWM_LAST_CCK_RATE[rip]
	jg	.L2
	mov	ebp, 1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, r14d
	mov	rdi, rbx
	call	iwm_ridx2rate@PLT
	test	DWORD PTR IEEE80211_RATE_BASIC[rip], eax
	je	.L3
	mov	eax, ebp
	mov	ecx, r14d
	sal	eax, cl
	or	r12d, eax
	cmp	r13d, r14d
	cmovg	r13d, r14d
.L3:
	add	r14d, 1
	cmp	DWORD PTR IWM_LAST_CCK_RATE[rip], r14d
	jge	.L4
.L2:
	mov	r14d, DWORD PTR IWM_FIRST_OFDM_RATE[rip]
	xor	ebp, ebp
	cmp	r14d, DWORD PTR IWM_LAST_NON_HT_RATE[rip]
	mov	r15d, 100
	jg	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, r14d
	mov	rdi, rbx
	call	iwm_ridx2rate@PLT
	test	DWORD PTR IEEE80211_RATE_BASIC[rip], eax
	je	.L6
	mov	ecx, r14d
	mov	eax, 1
	sub	ecx, DWORD PTR IWM_FIRST_OFDM_RATE[rip]
	sal	eax, cl
	or	ebp, eax
	cmp	r15d, r14d
	cmovg	r15d, r14d
.L6:
	add	r14d, 1
	cmp	DWORD PTR IWM_LAST_NON_HT_RATE[rip], r14d
	jge	.L7
.L5:
	cmp	DWORD PTR IWM_RATE_24M_INDEX[rip], r15d
	jl	.L27
.L8:
	cmp	DWORD PTR IWM_RATE_12M_INDEX[rip], r15d
	jl	.L28
.L9:
	mov	edi, 6
	call	IWM_RATE_BIT_MSK@PLT
	mov	ecx, DWORD PTR IWM_FIRST_OFDM_RATE[rip]
	sar	eax, cl
	or	ebp, eax
	cmp	DWORD PTR IWM_RATE_11M_INDEX[rip], r13d
	jl	.L29
.L10:
	cmp	DWORD PTR IWM_RATE_5M_INDEX[rip], r13d
	jl	.L30
.L11:
	cmp	DWORD PTR IWM_RATE_2M_INDEX[rip], r13d
	jl	.L31
.L12:
	mov	edi, 1
	call	IWM_RATE_BIT_MSK@PLT
	mov	ecx, DWORD PTR IWM_FIRST_CCK_RATE[rip]
	sar	eax, cl
	or	r12d, eax
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR [rax], r12d
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR [rax], ebp
	add	rsp, 24
	.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
.L31:
	.cfi_restore_state
	mov	edi, 2
	call	IWM_RATE_BIT_MSK@PLT
	mov	ecx, DWORD PTR IWM_FIRST_CCK_RATE[rip]
	sar	eax, cl
	or	r12d, eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edi, 5
	call	IWM_RATE_BIT_MSK@PLT
	mov	ecx, DWORD PTR IWM_FIRST_CCK_RATE[rip]
	sar	eax, cl
	or	r12d, eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edi, 11
	call	IWM_RATE_BIT_MSK@PLT
	mov	ecx, DWORD PTR IWM_FIRST_CCK_RATE[rip]
	sar	eax, cl
	or	r12d, eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edi, 12
	call	IWM_RATE_BIT_MSK@PLT
	mov	ecx, DWORD PTR IWM_FIRST_OFDM_RATE[rip]
	sar	eax, cl
	or	ebp, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, 24
	call	IWM_RATE_BIT_MSK@PLT
	mov	ecx, DWORD PTR IWM_FIRST_OFDM_RATE[rip]
	sar	eax, cl
	or	ebp, eax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	iwm_mvm_ack_rates, .-iwm_mvm_ack_rates
	.comm	IWM_RATE_5M_INDEX,4,4
	.comm	IWM_RATE_2M_INDEX,4,4
	.comm	IWM_RATE_24M_INDEX,4,4
	.comm	IWM_RATE_12M_INDEX,4,4
	.comm	IWM_RATE_11M_INDEX,4,4
	.comm	IWM_LAST_NON_HT_RATE,4,4
	.comm	IWM_LAST_CCK_RATE,4,4
	.comm	IWM_FIRST_OFDM_RATE,4,4
	.comm	IWM_FIRST_CCK_RATE,4,4
	.comm	IEEE80211_RATE_BASIC,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_if_iwm_mac_ctxt.c_iwm_mvm_ack_rates.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iwm_mvm_ack_rates, %function
iwm_mvm_ack_rates:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmp	r1, #0
	sub	sp, sp, #20
	ldr	r6, [sp, #56]
	str	r1, [sp]
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	beq	.L13
	ldr	r3, .L31
	ldr	r5, .L31+4
	ldr	r9, [r3]
	str	r3, [sp, #4]
	ldr	r3, [r5]
	cmp	r9, r3
	bgt	.L14
	mov	r4, #0
	mov	r7, #100
	mov	r8, #1
	ldr	r10, .L31+8
.L4:
	mov	r1, r9
	mov	r0, r6
	bl	iwm_ridx2rate
	ldr	r2, [r10]
	ldr	r3, [r5]
	tst	r0, r2
	beq	.L3
	cmp	r7, r9
	movge	r7, r9
	orr	r4, r4, r8, lsl r9
.L3:
	add	r9, r9, #1
	cmp	r3, r9
	bge	.L4
	str	r4, [sp]
	b	.L2
.L13:
	mov	r7, #100
	ldr	r3, .L31
	str	r3, [sp, #4]
.L2:
	ldr	r9, .L31+12
	ldr	r8, .L31+16
	ldr	r4, [r9]
	ldr	r3, [r8]
	mov	r5, #0
	cmp	r4, r3
	mov	fp, #100
	bgt	.L5
	ldr	r10, .L31+8
.L7:
	mov	r1, r4
	mov	r0, r6
	bl	iwm_ridx2rate
	ldr	r3, [r10]
	ldr	r2, [r8]
	tst	r0, r3
	beq	.L6
	mov	r1, #1
	cmp	fp, r4
	movge	fp, r4
	ldr	r3, [r9]
	sub	r3, r4, r3
	orr	r5, r5, r1, lsl r3
.L6:
	add	r4, r4, #1
	cmp	r2, r4
	bge	.L7
.L5:
	ldr	r2, .L31+20
	ldr	r2, [r2]
	cmp	r2, fp
	blt	.L26
	ldr	r2, .L31+24
	ldr	r2, [r2]
	cmp	r2, fp
	blt	.L27
.L9:
	mov	r0, #6
	bl	IWM_RATE_BIT_MSK
	ldr	r3, .L31+28
	ldr	r2, [r9]
	ldr	r3, [r3]
	orr	r5, r5, r0, asr r2
	cmp	r3, r7
	blt	.L28
.L10:
	ldr	r3, .L31+32
	ldr	r3, [r3]
	cmp	r3, r7
	blt	.L29
.L11:
	ldr	r3, .L31+36
	ldr	r3, [r3]
	cmp	r3, r7
	blt	.L30
.L12:
	mov	r0, #1
	bl	IWM_RATE_BIT_MSK
	ldr	r3, [sp, #4]
	ldr	r1, [r3]
	ldr	r3, [sp]
	orr	r4, r3, r0, asr r1
	ldr	r3, [sp, #8]
	str	r4, [r3]
	ldr	r3, [sp, #12]
	str	r5, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	mov	r0, #24
	bl	IWM_RATE_BIT_MSK
	ldr	r2, [r9]
	orr	r5, r5, r0, asr r2
	ldr	r2, .L31+24
	ldr	r2, [r2]
	cmp	r2, fp
	bge	.L9
.L27:
	mov	r0, #12
	bl	IWM_RATE_BIT_MSK
	ldr	r3, [r9]
	orr	r5, r5, r0, asr r3
	b	.L9
.L30:
	mov	r0, #2
	bl	IWM_RATE_BIT_MSK
	ldr	r3, [sp, #4]
	ldr	r2, [sp]
	ldr	r3, [r3]
	orr	r3, r2, r0, asr r3
	str	r3, [sp]
	b	.L12
.L29:
	mov	r0, #5
	bl	IWM_RATE_BIT_MSK
	ldr	r3, [sp, #4]
	ldr	r2, [sp]
	ldr	r3, [r3]
	orr	r3, r2, r0, asr r3
	str	r3, [sp]
	b	.L11
.L28:
	mov	r0, #11
	bl	IWM_RATE_BIT_MSK
	ldr	r3, [sp, #4]
	ldr	r2, [sp]
	ldr	r3, [r3]
	orr	r3, r2, r0, asr r3
	str	r3, [sp]
	b	.L10
.L14:
	mov	r3, #0
	mov	r7, #100
	str	r3, [sp]
	b	.L2
.L32:
	.align	2
.L31:
	.word	IWM_FIRST_CCK_RATE
	.word	IWM_LAST_CCK_RATE
	.word	IEEE80211_RATE_BASIC
	.word	IWM_FIRST_OFDM_RATE
	.word	IWM_LAST_NON_HT_RATE
	.word	IWM_RATE_24M_INDEX
	.word	IWM_RATE_12M_INDEX
	.word	IWM_RATE_11M_INDEX
	.word	IWM_RATE_5M_INDEX
	.word	IWM_RATE_2M_INDEX
	.size	iwm_mvm_ack_rates, .-iwm_mvm_ack_rates
	.comm	IWM_RATE_5M_INDEX,4,4
	.comm	IWM_RATE_2M_INDEX,4,4
	.comm	IWM_RATE_24M_INDEX,4,4
	.comm	IWM_RATE_12M_INDEX,4,4
	.comm	IWM_RATE_11M_INDEX,4,4
	.comm	IWM_LAST_NON_HT_RATE,4,4
	.comm	IWM_LAST_CCK_RATE,4,4
	.comm	IWM_FIRST_OFDM_RATE,4,4
	.comm	IWM_FIRST_CCK_RATE,4,4
	.comm	IEEE80211_RATE_BASIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
