	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_compute_rspec          ## -- Begin function brcms_c_compute_rspec
	.p2align	4, 0x90
_brcms_c_compute_rspec:                 ## @brcms_c_compute_rspec
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	_RSPEC_BW_SHIFT@GOTPCREL(%rip), %rdx
	movq	_RXS_CHAN_PHYTYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	movq	_RXS_CHAN_PHYTYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	(%rdx), %ecx
	movq	_PHY_TYPE_N@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_7
## %bb.1:
	movq	_PHY_TYPE_SSN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_7
## %bb.2:
	movq	_PHY_TYPE_LCN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_7
## %bb.3:
	movq	_PHY_TYPE_HT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_7
## %bb.4:
	movq	_PHY_TYPE_A@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.5:
	testb	$-126, 4(%rdi)
	je	LBB0_18
LBB0_6:
	movq	(%r14), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ofdm_phy2mac_rate              ## TAILCALL
LBB0_7:
	movq	_PHY_TXC1_BW_20MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shll	%cl, %ebx
	movq	_PRXS0_FT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_11
## %bb.8:
	cmpl	$130, %eax
	je	LBB0_13
## %bb.9:
	cmpl	$131, %eax
	jne	LBB0_15
## %bb.10:
	movl	(%r14), %edi
	callq	_cck_phy2mac_rate
	jmp	LBB0_14
LBB0_11:
	movl	(%r14), %eax
	movq	_MIMO_PLCP_MCS_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	andl	%eax, %ebx
	movq	_RSPEC_MIMORATE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ebx
	movq	_MIMO_PLCP_40MHZ@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_15
## %bb.12:
	movq	_RSPEC_BW_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_PHY_TXC1_BW_40MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, %ebx
	jmp	LBB0_15
LBB0_13:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_ofdm_phy2mac_rate
LBB0_14:
	movl	%eax, %ebx
LBB0_15:
	movl	12(%r14), %edi
	callq	_plcp3_issgi
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_RSPEC_SHORT_GI@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_18:
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cck_phy2mac_rate               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_TXC1_BW_20MHZ,4,2          ## @PHY_TXC1_BW_20MHZ
	.comm	_RSPEC_BW_SHIFT,4,2             ## @RSPEC_BW_SHIFT
	.comm	_RXS_CHAN_PHYTYPE_MASK,4,2      ## @RXS_CHAN_PHYTYPE_MASK
	.comm	_RXS_CHAN_PHYTYPE_SHIFT,4,2     ## @RXS_CHAN_PHYTYPE_SHIFT
	.comm	_PHY_TYPE_N,4,2                 ## @PHY_TYPE_N
	.comm	_PHY_TYPE_SSN,4,2               ## @PHY_TYPE_SSN
	.comm	_PHY_TYPE_LCN,4,2               ## @PHY_TYPE_LCN
	.comm	_PHY_TYPE_HT,4,2                ## @PHY_TYPE_HT
	.comm	_PRXS0_FT_MASK,4,2              ## @PRXS0_FT_MASK
	.comm	_MIMO_PLCP_MCS_MASK,4,2         ## @MIMO_PLCP_MCS_MASK
	.comm	_RSPEC_MIMORATE,4,2             ## @RSPEC_MIMORATE
	.comm	_MIMO_PLCP_40MHZ,4,2            ## @MIMO_PLCP_40MHZ
	.comm	_RSPEC_BW_MASK,4,2              ## @RSPEC_BW_MASK
	.comm	_PHY_TXC1_BW_40MHZ,4,2          ## @PHY_TXC1_BW_40MHZ
	.comm	_RSPEC_SHORT_GI,4,2             ## @RSPEC_SHORT_GI
	.comm	_PHY_TYPE_A,4,2                 ## @PHY_TYPE_A
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_compute_rspec          ; -- Begin function brcms_c_compute_rspec
	.p2align	2
_brcms_c_compute_rspec:                 ; @brcms_c_compute_rspec
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RXS_CHAN_PHYTYPE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RXS_CHAN_PHYTYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _RXS_CHAN_PHYTYPE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RXS_CHAN_PHYTYPE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh6:
	adrp	x9, _PHY_TYPE_N@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PHY_TYPE_N@GOTPAGEOFF]
Lloh8:
	adrp	x10, _PHY_TYPE_SSN@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PHY_TYPE_SSN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _PHY_TYPE_LCN@GOTPAGE
Lloh13:
	ldr	x11, [x11, _PHY_TYPE_LCN@GOTPAGEOFF]
Lloh14:
	adrp	x12, _PHY_TYPE_HT@GOTPAGE
Lloh15:
	ldr	x12, [x12, _PHY_TYPE_HT@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
Lloh17:
	ldr	w12, [x12]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	ccmp	w8, w12, #4, ne
	b.ne	LBB0_5
; %bb.1:
Lloh18:
	adrp	x8, _RSPEC_BW_SHIFT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RSPEC_BW_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x0, #4]
Lloh21:
	adrp	x10, _PRXS0_FT_MASK@GOTPAGE
Lloh22:
	ldr	x10, [x10, _PRXS0_FT_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	and	w9, w10, w9
	cmp	w9, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	w9, #130
	b.eq	LBB0_10
; %bb.3:
	cmp	w9, #131
	b.ne	LBB0_11
; %bb.4:
	ldr	w0, [x19]
	bl	_cck_phy2mac_rate
	mov	x20, x0
	b	LBB0_12
LBB0_5:
Lloh24:
	adrp	x9, _PHY_TYPE_A@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PHY_TYPE_A@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.6:
	ldrb	w8, [x0, #4]
	mov	w9, #130
	tst	w8, w9
	b.eq	LBB0_15
LBB0_7:
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ofdm_phy2mac_rate
LBB0_8:
	ldr	w9, [x19]
Lloh27:
	adrp	x10, _MIMO_PLCP_MCS_MASK@GOTPAGE
Lloh28:
	ldr	x10, [x10, _MIMO_PLCP_MCS_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	and	w10, w10, w9
Lloh30:
	adrp	x11, _RSPEC_MIMORATE@GOTPAGE
Lloh31:
	ldr	x11, [x11, _RSPEC_MIMORATE@GOTPAGEOFF]
Lloh32:
	ldr	w11, [x11]
	orr	w20, w10, w11
Lloh33:
	adrp	x10, _MIMO_PLCP_40MHZ@GOTPAGE
Lloh34:
	ldr	x10, [x10, _MIMO_PLCP_40MHZ@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_12
; %bb.9:
Lloh36:
	adrp	x9, _RSPEC_BW_MASK@GOTPAGE
Lloh37:
	ldr	x9, [x9, _RSPEC_BW_MASK@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	bic	w9, w20, w9
Lloh39:
	adrp	x10, _PHY_TXC1_BW_40MHZ@GOTPAGE
Lloh40:
	ldr	x10, [x10, _PHY_TXC1_BW_40MHZ@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	lsl	w8, w10, w8
	orr	w20, w8, w9
	b	LBB0_12
LBB0_10:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_ofdm_phy2mac_rate
	mov	x20, x0
	b	LBB0_12
LBB0_11:
Lloh42:
	adrp	x9, _PHY_TXC1_BW_20MHZ@GOTPAGE
Lloh43:
	ldr	x9, [x9, _PHY_TXC1_BW_20MHZ@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	lsl	w20, w9, w8
LBB0_12:
	ldr	w0, [x19, #12]
	bl	_plcp3_issgi
	cbz	x0, LBB0_14
; %bb.13:
Lloh45:
	adrp	x8, _RSPEC_SHORT_GI@GOTPAGE
Lloh46:
	ldr	x8, [x8, _RSPEC_SHORT_GI@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cck_phy2mac_rate
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_TXC1_BW_20MHZ,4,2          ; @PHY_TXC1_BW_20MHZ
	.comm	_RSPEC_BW_SHIFT,4,2             ; @RSPEC_BW_SHIFT
	.comm	_RXS_CHAN_PHYTYPE_MASK,4,2      ; @RXS_CHAN_PHYTYPE_MASK
	.comm	_RXS_CHAN_PHYTYPE_SHIFT,4,2     ; @RXS_CHAN_PHYTYPE_SHIFT
	.comm	_PHY_TYPE_N,4,2                 ; @PHY_TYPE_N
	.comm	_PHY_TYPE_SSN,4,2               ; @PHY_TYPE_SSN
	.comm	_PHY_TYPE_LCN,4,2               ; @PHY_TYPE_LCN
	.comm	_PHY_TYPE_HT,4,2                ; @PHY_TYPE_HT
	.comm	_PRXS0_FT_MASK,4,2              ; @PRXS0_FT_MASK
	.comm	_MIMO_PLCP_MCS_MASK,4,2         ; @MIMO_PLCP_MCS_MASK
	.comm	_RSPEC_MIMORATE,4,2             ; @RSPEC_MIMORATE
	.comm	_MIMO_PLCP_40MHZ,4,2            ; @MIMO_PLCP_40MHZ
	.comm	_RSPEC_BW_MASK,4,2              ; @RSPEC_BW_MASK
	.comm	_PHY_TXC1_BW_40MHZ,4,2          ; @PHY_TXC1_BW_40MHZ
	.comm	_RSPEC_SHORT_GI,4,2             ; @RSPEC_SHORT_GI
	.comm	_PHY_TYPE_A,4,2                 ; @PHY_TYPE_A
.subsections_via_symbols
