	.file	"extr_rs.c_rate_n_flags_from_tbl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Invalid HT rate index %d\n"
.LC1:
	.string	"Invalid tbl->lq_type %d\n"
.LC2:
	.string	"GF was set with SGI:SISO\n"
	.text
	.p2align 4
	.type	rate_n_flags_from_tbl, @function
rate_n_flags_from_tbl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movsx	r14, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edi, DWORD PTR 16[rsi]
	mov	rbx, rsi
	call	is_legacy@PLT
	test	rax, rax
	je	.L2
	movsx	rax, r14d
	sal	rax, 4
	add	rax, QWORD PTR iwl_rates[rip]
	cmp	DWORD PTR IWL_FIRST_CCK_RATE[rip], r14d
	mov	eax, DWORD PTR [rax]
	jle	.L23
.L3:
	mov	ecx, DWORD PTR RATE_MCS_ANT_POS[rip]
	mov	r12d, DWORD PTR [rbx]
	mov	edi, DWORD PTR 16[rbx]
	sal	r12d, cl
	and	r12d, DWORD PTR RATE_MCS_ANT_ABC_MSK[rip]
	or	r12d, eax
	call	is_Ht@PLT
	test	rax, rax
	je	.L1
	cmp	QWORD PTR 32[rbx], 0
	je	.L9
	cmp	QWORD PTR 24[rbx], 0
	je	.L10
	or	r12d, DWORD PTR RATE_MCS_DUP_MSK[rip]
.L9:
	cmp	QWORD PTR 8[rbx], 0
	je	.L11
.L26:
	or	r12d, DWORD PTR RATE_MCS_SGI_MSK[rip]
.L11:
	test	rbp, rbp
	jne	.L24
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	cmp	DWORD PTR IWL_LAST_CCK_RATE[rip], r14d
	jl	.L3
	or	eax, DWORD PTR RATE_MCS_CCK_MSK[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR 16[rbx]
	call	is_Ht@PLT
	test	rax, rax
	je	.L4
	cmp	DWORD PTR IWL_LAST_OFDM_RATE[rip], r14d
	jl	.L25
.L5:
	mov	edi, DWORD PTR 16[rbx]
	mov	r12d, DWORD PTR RATE_MCS_HT_MSK[rip]
	sal	r14, 4
	call	is_siso@PLT
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR iwl_rates[rip]
	or	r12d, DWORD PTR 4[rax+r14]
	mov	eax, r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, DWORD PTR 16[rbx]
	or	r12d, DWORD PTR RATE_MCS_GF_MSK[rip]
	call	is_siso@PLT
	test	rax, rax
	je	.L1
	cmp	QWORD PTR 8[rbx], 0
	je	.L1
	mov	eax, DWORD PTR RATE_MCS_SGI_MSK[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	not	eax
	and	r12d, eax
	xor	eax, eax
	call	IWL_ERR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	or	r12d, DWORD PTR RATE_MCS_HT40_MSK[rip]
	cmp	QWORD PTR 8[rbx], 0
	je	.L11
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edx, r14d
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	xor	eax, eax
	call	IWL_ERR@PLT
	movsx	r14, DWORD PTR IWL_LAST_OFDM_RATE[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR 16[rbx]
	call	is_mimo2@PLT
	test	rax, rax
	mov	rax, QWORD PTR iwl_rates[rip]
	je	.L7
	or	r12d, DWORD PTR 8[rax+r14]
	mov	eax, r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR 16[rbx]
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	xor	eax, eax
	call	IWL_ERR@PLT
	xor	eax, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	or	r12d, DWORD PTR 12[rax+r14]
	mov	eax, r12d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	rate_n_flags_from_tbl, .-rate_n_flags_from_tbl
	.comm	iwl_rates,8,8
	.comm	RATE_MCS_SGI_MSK,4,4
	.comm	RATE_MCS_HT_MSK,4,4
	.comm	RATE_MCS_HT40_MSK,4,4
	.comm	RATE_MCS_GF_MSK,4,4
	.comm	RATE_MCS_DUP_MSK,4,4
	.comm	RATE_MCS_CCK_MSK,4,4
	.comm	RATE_MCS_ANT_POS,4,4
	.comm	RATE_MCS_ANT_ABC_MSK,4,4
	.comm	IWL_LAST_OFDM_RATE,4,4
	.comm	IWL_LAST_CCK_RATE,4,4
	.comm	IWL_FIRST_CCK_RATE,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_rs.c_rate_n_flags_from_tbl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid HT rate index %d\012\000"
	.align	2
.LC1:
	.ascii	"Invalid tbl->lq_type %d\012\000"
	.align	2
.LC2:
	.ascii	"GF was set with SGI:SISO\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rate_n_flags_from_tbl, %function
rate_n_flags_from_tbl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r0
	ldr	r0, [r1, #8]
	mov	r4, r1
	mov	r6, r2
	mov	r8, r3
	bl	is_legacy
	cmp	r0, #0
	beq	.L2
	ldr	r2, .L35
	ldr	r3, .L35+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r6
	ldr	r7, [r3, r6, lsl #4]
	ble	.L32
.L3:
	ldr	r2, .L35+8
	ldr	r3, .L35+12
	ldr	r5, [r2]
	ldr	r3, [r3]
	ldr	r2, [r4]
	ldr	r0, [r4, #8]
	and	r5, r5, r2, lsl r3
	bl	is_Ht
	cmp	r0, #0
	orr	r5, r5, r7
	beq	.L1
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [r4, #12]
	cmp	r3, #0
	ldrne	r3, .L35+16
	ldreq	r3, .L35+20
	ldr	r3, [r3]
	orr	r5, r5, r3
.L9:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ldrne	r3, .L35+24
	ldrne	r3, [r3]
	orrne	r5, r5, r3
	cmp	r8, #0
	bne	.L33
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L32:
	ldr	r3, .L35+28
	ldr	r3, [r3]
	cmp	r3, r6
	ldrge	r3, .L35+32
	ldrge	r3, [r3]
	orrge	r7, r7, r3
	b	.L3
.L2:
	ldr	r0, [r4, #8]
	bl	is_Ht
	subs	r7, r0, #0
	beq	.L4
	ldr	r5, .L35+36
	ldr	r3, [r5]
	cmp	r3, r6
	blt	.L34
.L5:
	ldr	r3, .L35+40
	ldr	r0, [r4, #8]
	ldr	r5, [r3]
	bl	is_siso
	cmp	r0, #0
	lsl	r6, r6, #4
	beq	.L6
	ldr	r3, .L35+4
	ldr	r3, [r3]
	add	r6, r3, r6
	ldr	r7, [r6, #4]
	orr	r7, r5, r7
	b	.L3
.L33:
	ldr	r3, .L35+44
	ldr	r0, [r4, #8]
	ldr	r3, [r3]
	orr	r5, r5, r3
	bl	is_siso
	cmp	r0, #0
	beq	.L1
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L1
	ldr	r3, .L35+24
	mov	r0, r9
	ldr	r3, [r3]
	ldr	r1, .L35+48
	bic	r5, r5, r3
	bl	IWL_ERR
	b	.L1
.L34:
	mov	r2, r6
	mov	r0, r9
	ldr	r1, .L35+52
	bl	IWL_ERR
	ldr	r6, [r5]
	b	.L5
.L6:
	ldr	r0, [r4, #8]
	bl	is_mimo2
	ldr	r3, .L35+4
	cmp	r0, #0
	ldr	r3, [r3]
	add	r6, r3, r6
	ldrne	r7, [r6, #8]
	ldreq	r7, [r6, #12]
	orr	r7, r5, r7
	b	.L3
.L4:
	mov	r0, r9
	ldr	r2, [r4, #8]
	ldr	r1, .L35+56
	bl	IWL_ERR
	b	.L3
.L36:
	.align	2
.L35:
	.word	IWL_FIRST_CCK_RATE
	.word	iwl_rates
	.word	RATE_MCS_ANT_ABC_MSK
	.word	RATE_MCS_ANT_POS
	.word	RATE_MCS_DUP_MSK
	.word	RATE_MCS_HT40_MSK
	.word	RATE_MCS_SGI_MSK
	.word	IWL_LAST_CCK_RATE
	.word	RATE_MCS_CCK_MSK
	.word	IWL_LAST_OFDM_RATE
	.word	RATE_MCS_HT_MSK
	.word	RATE_MCS_GF_MSK
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	rate_n_flags_from_tbl, .-rate_n_flags_from_tbl
	.comm	iwl_rates,4,4
	.comm	RATE_MCS_SGI_MSK,4,4
	.comm	RATE_MCS_HT_MSK,4,4
	.comm	RATE_MCS_HT40_MSK,4,4
	.comm	RATE_MCS_GF_MSK,4,4
	.comm	RATE_MCS_DUP_MSK,4,4
	.comm	RATE_MCS_CCK_MSK,4,4
	.comm	RATE_MCS_ANT_POS,4,4
	.comm	RATE_MCS_ANT_ABC_MSK,4,4
	.comm	IWL_LAST_OFDM_RATE,4,4
	.comm	IWL_LAST_CCK_RATE,4,4
	.comm	IWL_FIRST_CCK_RATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
