	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_update_ht_cap
_brcmf_update_ht_cap:                   ## @brcmf_update_ht_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$1, 8(%rdi)
	movq	(%rdi), %rax
	movq	_WLC_BW_40MHZ_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rsi,%rax,4)
	je	LBB0_1
## %bb.2:
	movq	_IEEE80211_HT_CAP_SGI_40@GOTPCREL(%rip), %rcx
	movl	28(%rbx), %eax
	orl	(%rcx), %eax
	movq	_IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_3
LBB0_1:
	movl	28(%rbx), %eax
LBB0_3:
	movq	_IEEE80211_HT_CAP_SGI_20@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IEEE80211_HT_CAP_DSSSCCK40@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 28(%rbx)
	movq	_IEEE80211_HT_MAX_AMPDU_64K@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_IEEE80211_HT_MPDU_DENSITY_16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	16(%rbx), %edi
	movl	$255, %esi
	callq	_memset
	movq	_IEEE80211_HT_MCS_TX_DEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLC_BW_40MHZ_BIT,4,2           ## @WLC_BW_40MHZ_BIT
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ## @IEEE80211_HT_CAP_SGI_40
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ## @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ## @IEEE80211_HT_CAP_SGI_20
	.comm	_IEEE80211_HT_CAP_DSSSCCK40,4,2 ## @IEEE80211_HT_CAP_DSSSCCK40
	.comm	_IEEE80211_HT_MAX_AMPDU_64K,4,2 ## @IEEE80211_HT_MAX_AMPDU_64K
	.comm	_IEEE80211_HT_MPDU_DENSITY_16,4,2 ## @IEEE80211_HT_MPDU_DENSITY_16
	.comm	_IEEE80211_HT_MCS_TX_DEFINED,4,2 ## @IEEE80211_HT_MCS_TX_DEFINED
	.no_dead_strip	_brcmf_update_ht_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_ht_cap
_brcmf_update_ht_cap:                   ; @brcmf_update_ht_cap
	.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, x0
	mov	w8, #1
	str	w8, [x0, #8]
	ldr	x8, [x0]
	ldr	w8, [x1, x8, lsl #2]
Lloh0:
	adrp	x9, _WLC_BW_40MHZ_BIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLC_BW_40MHZ_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IEEE80211_HT_CAP_SGI_40@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_HT_CAP_SGI_40@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #28]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19, #28]
LBB0_3:
Lloh9:
	adrp	x9, _IEEE80211_HT_CAP_SGI_20@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_HT_CAP_SGI_20@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _IEEE80211_HT_CAP_DSSSCCK40@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_HT_CAP_DSSSCCK40@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #28]
Lloh15:
	adrp	x8, _IEEE80211_HT_MAX_AMPDU_64K@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_HT_MAX_AMPDU_64K@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _IEEE80211_HT_MPDU_DENSITY_16@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IEEE80211_HT_MPDU_DENSITY_16@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #20]
	ldr	w0, [x19, #16]
	mov	w1, #255
	bl	_memset
Lloh21:
	adrp	x8, _IEEE80211_HT_MCS_TX_DEFINED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IEEE80211_HT_MCS_TX_DEFINED@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WLC_BW_40MHZ_BIT,4,2           ; @WLC_BW_40MHZ_BIT
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ; @IEEE80211_HT_CAP_SGI_40
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ; @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ; @IEEE80211_HT_CAP_SGI_20
	.comm	_IEEE80211_HT_CAP_DSSSCCK40,4,2 ; @IEEE80211_HT_CAP_DSSSCCK40
	.comm	_IEEE80211_HT_MAX_AMPDU_64K,4,2 ; @IEEE80211_HT_MAX_AMPDU_64K
	.comm	_IEEE80211_HT_MPDU_DENSITY_16,4,2 ; @IEEE80211_HT_MPDU_DENSITY_16
	.comm	_IEEE80211_HT_MCS_TX_DEFINED,4,2 ; @IEEE80211_HT_MCS_TX_DEFINED
	.no_dead_strip	_brcmf_update_ht_cap
.subsections_via_symbols
