	.file	"extr_main.c_brcms_c_calc_lsig_len.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	brcms_c_calc_lsig_len
	.type	brcms_c_calc_lsig_len, @function
brcms_c_calc_lsig_len:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edi, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	is_mcs_rate@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	jne	.L10
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L10:
	.cfi_restore_state
	mov	r14d, DWORD PTR RSPEC_RATE_MASK[rip]
	and	r14d, ebp
	mov	edi, r14d
	call	mcs_2_txstreams@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	rspec_stc@PLT
	mov	edi, ebp
	lea	ebx, 1[rbx+rax]
	call	rspec_issgi@PLT
	mov	edi, ebp
	mov	r13d, eax
	call	rspec_is40mhz@PLT
	mov	edx, r13d
	mov	edi, r14d
	mov	esi, eax
	call	mcs_2_rate@PLT
	mov	edi, ebp
	mov	r13d, eax
	call	rspec_stc@PLT
	lea	edx, 0[0+r12*8]
	test	eax, eax
	je	.L11
	mov	edi, DWORD PTR APHY_TAIL_NBITS[rip]
	add	edx, DWORD PTR APHY_SERVICE_NBITS[rip]
	lea	esi, 0[0+r13*8]
	add	edi, edx
	imul	edi, edi, 1000
	call	CEIL@PLT
	add	eax, eax
.L4:
	lea	eax, 2[rax+rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	lea	eax, [rax+rax*2]
	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
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR APHY_TAIL_NBITS[rip]
	add	edx, DWORD PTR APHY_SERVICE_NBITS[rip]
	lea	esi, 0[0+r13*4]
	add	edi, edx
	imul	edi, edi, 1000
	call	CEIL@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	brcms_c_calc_lsig_len, .-brcms_c_calc_lsig_len
	.comm	RSPEC_RATE_MASK,4,4
	.comm	APHY_TAIL_NBITS,4,4
	.comm	APHY_SERVICE_NBITS,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_main.c_brcms_c_calc_lsig_len.c"
	.text
	.align	2
	.global	brcms_c_calc_lsig_len
	.syntax unified
	.arm
	.fpu softvfp
	.type	brcms_c_calc_lsig_len, %function
brcms_c_calc_lsig_len:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r0, r1
	mov	r6, r1
	mov	r5, r2
	bl	is_mcs_rate
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L11
	ldr	r7, [r3]
	and	r7, r7, r6
	mov	r0, r7
	bl	mcs_2_txstreams
	mov	r4, r0
	mov	r0, r6
	bl	rspec_stc
	mov	r3, r0
	add	r4, r4, #1
	mov	r0, r6
	add	r4, r4, r3
	bl	rspec_is40mhz
	mov	r8, r0
	mov	r0, r6
	bl	rspec_issgi
	mov	r1, r8
	mov	r2, r0
	mov	r0, r7
	bl	mcs_2_rate
	mov	r1, r0
	mov	r0, r6
	mov	r6, r1
	bl	rspec_stc
	cmp	r0, #0
	lsl	r2, r5, #3
	beq	.L10
	ldr	r1, .L11+4
	ldr	r3, .L11+8
	ldr	r0, [r1]
	ldr	r3, [r3]
	add	r2, r2, r0
	add	r3, r2, r3
	rsb	r0, r3, r3, lsl #5
	add	r0, r3, r0, lsl #2
	lsl	r1, r6, #3
	lsl	r0, r0, #3
	bl	CEIL
	lsl	r0, r0, #1
.L4:
	add	r0, r0, r4
	add	r0, r0, #2
	add	r0, r0, r0, lsl #1
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, .L11+4
	ldr	r1, .L11+8
	ldr	r3, [r3]
	ldr	r0, [r1]
	add	r2, r2, r3
	add	r2, r2, r0
	rsb	r0, r2, r2, lsl #5
	add	r0, r2, r0, lsl #2
	lsl	r1, r6, #2
	lsl	r0, r0, #3
	bl	CEIL
	b	.L4
.L12:
	.align	2
.L11:
	.word	RSPEC_RATE_MASK
	.word	APHY_SERVICE_NBITS
	.word	APHY_TAIL_NBITS
	.size	brcms_c_calc_lsig_len, .-brcms_c_calc_lsig_len
	.comm	RSPEC_RATE_MASK,4,4
	.comm	APHY_TAIL_NBITS,4,4
	.comm	APHY_SERVICE_NBITS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
