	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_update_vht_cap
_brcmf_update_vht_cap:                  ## @brcmf_update_vht_cap
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	(%rdi), %rcx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_14
## %bb.1:
	movl	%r9d, %r15d
	movl	%r8d, %r12d
	movq	%rdi, %rbx
	movl	$1, 8(%rdi)
	movq	_IEEE80211_VHT_CAP_SHORT_GI_80@GOTPCREL(%rip), %rdi
	movl	12(%rbx), %eax
	orl	(%rdi), %eax
	movl	%eax, 12(%rbx)
	movq	_WLC_BW_160MHZ_BIT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%edi, (%rsi,%rcx,4)
	je	LBB0_3
## %bb.2:
	movq	_IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IEEE80211_VHT_CAP_SHORT_GI_160@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 12(%rbx)
LBB0_3:
	movq	_IEEE80211_VHT_MCS_SUPPORT_0_9@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edx, %edi
	callq	_brcmf_get_mcs_map
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
	movq	_BRCMF_TXBF_SU_BFE_CAP@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
LBB0_5:
	movq	_BRCMF_TXBF_MU_BFE_CAP@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
LBB0_7:
	movq	_BRCMF_TXBF_SU_BFR_CAP@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
LBB0_9:
	movq	_BRCMF_TXBF_MU_BFR_CAP@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
LBB0_11:
	cmpl	$2, %r14d
	jl	LBB0_14
## %bb.12:
	orl	%r12d, %r15d
	je	LBB0_14
## %bb.13:
	movq	_IEEE80211_VHT_CAP_BEAMFORMEE_STS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$2, %eax
	shll	%cl, %eax
	orl	12(%rbx), %eax
	decl	%r14d
	movq	_IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r14d
	orl	%eax, %r14d
	movq	_IEEE80211_VHT_CAP_VHT_LINK_ADAPTATION_VHT_MRQ_MFB@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, 12(%rbx)
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_IEEE80211_VHT_CAP_SHORT_GI_80,4,2 ## @IEEE80211_VHT_CAP_SHORT_GI_80
	.comm	_WLC_BW_160MHZ_BIT,4,2          ## @WLC_BW_160MHZ_BIT
	.comm	_IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ,4,2 ## @IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ
	.comm	_IEEE80211_VHT_CAP_SHORT_GI_160,4,2 ## @IEEE80211_VHT_CAP_SHORT_GI_160
	.comm	_IEEE80211_VHT_MCS_SUPPORT_0_9,4,2 ## @IEEE80211_VHT_MCS_SUPPORT_0_9
	.comm	_BRCMF_TXBF_SU_BFE_CAP,4,2      ## @BRCMF_TXBF_SU_BFE_CAP
	.comm	_IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE,4,2 ## @IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE
	.comm	_BRCMF_TXBF_MU_BFE_CAP,4,2      ## @BRCMF_TXBF_MU_BFE_CAP
	.comm	_IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE,4,2 ## @IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE
	.comm	_BRCMF_TXBF_SU_BFR_CAP,4,2      ## @BRCMF_TXBF_SU_BFR_CAP
	.comm	_IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE,4,2 ## @IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE
	.comm	_BRCMF_TXBF_MU_BFR_CAP,4,2      ## @BRCMF_TXBF_MU_BFR_CAP
	.comm	_IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE,4,2 ## @IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE
	.comm	_IEEE80211_VHT_CAP_BEAMFORMEE_STS_SHIFT,4,2 ## @IEEE80211_VHT_CAP_BEAMFORMEE_STS_SHIFT
	.comm	_IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_SHIFT,4,2 ## @IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_SHIFT
	.comm	_IEEE80211_VHT_CAP_VHT_LINK_ADAPTATION_VHT_MRQ_MFB,4,2 ## @IEEE80211_VHT_CAP_VHT_LINK_ADAPTATION_VHT_MRQ_MFB
	.no_dead_strip	_brcmf_update_vht_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_update_vht_cap
_brcmf_update_vht_cap:                  ; @brcmf_update_vht_cap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.1:
	mov	x21, x5
	mov	x22, x4
	mov	x20, x3
	mov	x19, x0
Lloh3:
	adrp	x9, _IEEE80211_VHT_CAP_SHORT_GI_80@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_VHT_CAP_SHORT_GI_80@GOTPAGEOFF]
	mov	w10, #1
Lloh5:
	ldr	w9, [x9]
	ldr	w11, [x0, #12]
	orr	w9, w11, w9
	stp	w10, w9, [x0, #8]
	ldr	w8, [x1, x8, lsl #2]
Lloh6:
	adrp	x10, _WLC_BW_160MHZ_BIT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WLC_BW_160MHZ_BIT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _IEEE80211_VHT_CAP_SHORT_GI_160@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_VHT_CAP_SHORT_GI_160@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #12]
LBB0_3:
Lloh15:
	adrp	x8, _IEEE80211_VHT_MCS_SUPPORT_0_9@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_VHT_MCS_SUPPORT_0_9@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x2
	bl	_brcmf_get_mcs_map
	stp	x0, x0, [x19, #16]
Lloh18:
	adrp	x8, _BRCMF_TXBF_SU_BFE_CAP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BRCMF_TXBF_SU_BFE_CAP@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.4:
Lloh21:
	adrp	x8, _IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
LBB0_5:
Lloh24:
	adrp	x8, _BRCMF_TXBF_MU_BFE_CAP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BRCMF_TXBF_MU_BFE_CAP@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.6:
Lloh27:
	adrp	x8, _IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
LBB0_7:
Lloh30:
	adrp	x8, _BRCMF_TXBF_SU_BFR_CAP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BRCMF_TXBF_SU_BFR_CAP@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.8:
Lloh33:
	adrp	x8, _IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
LBB0_9:
Lloh36:
	adrp	x8, _BRCMF_TXBF_MU_BFR_CAP@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BRCMF_TXBF_MU_BFR_CAP@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_11
; %bb.10:
Lloh39:
	adrp	x8, _IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
LBB0_11:
	cmp	w20, #2
	b.lt	LBB0_14
; %bb.12:
	orr	w8, w21, w22
	cbz	w8, LBB0_14
; %bb.13:
Lloh42:
	adrp	x8, _IEEE80211_VHT_CAP_BEAMFORMEE_STS_SHIFT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IEEE80211_VHT_CAP_BEAMFORMEE_STS_SHIFT@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	mov	w9, #2
	lsl	w8, w9, w8
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	sub	w9, w20, #1
Lloh45:
	adrp	x10, _IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_SHIFT@GOTPAGE
Lloh46:
	ldr	x10, [x10, _IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_SHIFT@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh48:
	adrp	x9, _IEEE80211_VHT_CAP_VHT_LINK_ADAPTATION_VHT_MRQ_MFB@GOTPAGE
Lloh49:
	ldr	x9, [x9, _IEEE80211_VHT_CAP_VHT_LINK_ADAPTATION_VHT_MRQ_MFB@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #12]
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 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
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_IEEE80211_VHT_CAP_SHORT_GI_80,4,2 ; @IEEE80211_VHT_CAP_SHORT_GI_80
	.comm	_WLC_BW_160MHZ_BIT,4,2          ; @WLC_BW_160MHZ_BIT
	.comm	_IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ,4,2 ; @IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ
	.comm	_IEEE80211_VHT_CAP_SHORT_GI_160,4,2 ; @IEEE80211_VHT_CAP_SHORT_GI_160
	.comm	_IEEE80211_VHT_MCS_SUPPORT_0_9,4,2 ; @IEEE80211_VHT_MCS_SUPPORT_0_9
	.comm	_BRCMF_TXBF_SU_BFE_CAP,4,2      ; @BRCMF_TXBF_SU_BFE_CAP
	.comm	_IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE,4,2 ; @IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE
	.comm	_BRCMF_TXBF_MU_BFE_CAP,4,2      ; @BRCMF_TXBF_MU_BFE_CAP
	.comm	_IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE,4,2 ; @IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE
	.comm	_BRCMF_TXBF_SU_BFR_CAP,4,2      ; @BRCMF_TXBF_SU_BFR_CAP
	.comm	_IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE,4,2 ; @IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE
	.comm	_BRCMF_TXBF_MU_BFR_CAP,4,2      ; @BRCMF_TXBF_MU_BFR_CAP
	.comm	_IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE,4,2 ; @IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE
	.comm	_IEEE80211_VHT_CAP_BEAMFORMEE_STS_SHIFT,4,2 ; @IEEE80211_VHT_CAP_BEAMFORMEE_STS_SHIFT
	.comm	_IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_SHIFT,4,2 ; @IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_SHIFT
	.comm	_IEEE80211_VHT_CAP_VHT_LINK_ADAPTATION_VHT_MRQ_MFB,4,2 ; @IEEE80211_VHT_CAP_VHT_LINK_ADAPTATION_VHT_MRQ_MFB
	.no_dead_strip	_brcmf_update_vht_cap
.subsections_via_symbols
