	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_calc_lsig_len          ## -- Begin function brcms_c_calc_lsig_len
	.p2align	4, 0x90
_brcms_c_calc_lsig_len:                 ## @brcms_c_calc_lsig_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %ebx
	movl	%esi, %edi
	callq	_is_mcs_rate
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_RSPEC_RATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	%ebx, %r13d
	movl	%r13d, %edi
	callq	_mcs_2_txstreams
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_rspec_stc
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_rspec_is40mhz
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_rspec_issgi
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_mcs_2_rate
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_rspec_stc
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_APHY_SERVICE_NBITS@GOTPCREL(%rip), %rax
	shll	$3, %r12d
	addl	(%rax), %r12d
	movq	_APHY_TAIL_NBITS@GOTPCREL(%rip), %rax
	addl	(%rax), %r12d
	imull	$1000, %r12d, %edi              ## imm = 0x3E8
	shll	$3, %r13d
	movl	%r13d, %esi
	callq	_CEIL
	addl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	shll	$2, %r13d
	movq	_APHY_SERVICE_NBITS@GOTPCREL(%rip), %rax
	shll	$3, %r12d
	addl	(%rax), %r12d
	movq	_APHY_TAIL_NBITS@GOTPCREL(%rip), %rax
	addl	(%rax), %r12d
	imull	$1000, %r12d, %edi              ## imm = 0x3E8
	movl	%r13d, %esi
	callq	_CEIL
LBB0_5:
	addl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	addl	%eax, %r15d
	leal	(%r15,%r15,2), %eax
	addl	$9, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RSPEC_RATE_MASK,4,2            ## @RSPEC_RATE_MASK
	.comm	_APHY_SERVICE_NBITS,4,2         ## @APHY_SERVICE_NBITS
	.comm	_APHY_TAIL_NBITS,4,2            ## @APHY_TAIL_NBITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_calc_lsig_len          ; -- Begin function brcms_c_calc_lsig_len
	.p2align	2
_brcms_c_calc_lsig_len:                 ; @brcms_c_calc_lsig_len
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x0, x1
	bl	_is_mcs_rate
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _RSPEC_RATE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RSPEC_RATE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w23, w8, w22
	mov	x0, x23
	bl	_mcs_2_txstreams
	mov	x19, x0
	mov	x0, x22
	bl	_rspec_stc
	mov	x20, x0
	mov	x0, x22
	bl	_rspec_is40mhz
	mov	x24, x0
	mov	x0, x22
	bl	_rspec_issgi
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_mcs_2_rate
	mov	x23, x0
	mov	x0, x22
	bl	_rspec_stc
	cbz	w0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _APHY_SERVICE_NBITS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APHY_SERVICE_NBITS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _APHY_TAIL_NBITS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _APHY_TAIL_NBITS@GOTPAGEOFF]
	add	w8, w8, w21, lsl #3
Lloh8:
	ldr	w9, [x9]
	add	w8, w8, w9
	mov	w9, #1000
	mul	w0, w8, w9
	lsl	w1, w23, #3
	bl	_CEIL
	lsl	w0, w0, #1
	b	LBB0_4
LBB0_3:
	lsl	w1, w23, #2
Lloh9:
	adrp	x8, _APHY_SERVICE_NBITS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _APHY_SERVICE_NBITS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	w8, w8, w21, lsl #3
Lloh12:
	adrp	x9, _APHY_TAIL_NBITS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _APHY_TAIL_NBITS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	add	w8, w8, w9
	mov	w9, #1000
	mul	w0, w8, w9
	bl	_CEIL
LBB0_4:
	add	w8, w19, w20
	add	w8, w8, w0
	add	w8, w8, w8, lsl #1
	add	w0, w8, #9
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RSPEC_RATE_MASK,4,2            ; @RSPEC_RATE_MASK
	.comm	_APHY_SERVICE_NBITS,4,2         ; @APHY_SERVICE_NBITS
	.comm	_APHY_TAIL_NBITS,4,2            ; @APHY_TAIL_NBITS
.subsections_via_symbols
