	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x0_vht_cap_mask
_mt76x0_vht_cap_mask:                   ## @mt76x0_vht_cap_mask
	.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	%rdi, %r14
	movq	_IEEE80211_VHT_CAP_RXLDPC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%rdi)
	movq	_IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IEEE80211_VHT_MCS_SUPPORT_0_7@GOTPCREL(%rip), %rax
	leal	(,%rbx,4), %ecx
	orl	(%rax), %ecx
	movl	%ebx, %eax
	shll	$4, %eax
	movl	%ebx, %edx
	shll	$6, %edx
	orl	%eax, %edx
	movl	%ebx, %eax
	shll	$8, %eax
	orl	%edx, %eax
	movl	%ebx, %edx
	shll	$10, %edx
	orl	%eax, %edx
	movl	%ebx, %eax
	shll	$12, %eax
	orl	%edx, %eax
	shll	$14, %ebx
	orl	%eax, %ebx
	orl	%ecx, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r14)
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_VHT_CAP_RXLDPC,4,2   ## @IEEE80211_VHT_CAP_RXLDPC
	.comm	_IEEE80211_VHT_MCS_SUPPORT_0_7,4,2 ## @IEEE80211_VHT_MCS_SUPPORT_0_7
	.comm	_IEEE80211_VHT_MCS_NOT_SUPPORTED,4,2 ## @IEEE80211_VHT_MCS_NOT_SUPPORTED
	.no_dead_strip	_mt76x0_vht_cap_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x0_vht_cap_mask
_mt76x0_vht_cap_mask:                   ; @mt76x0_vht_cap_mask
	.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
Lloh0:
	adrp	x8, _IEEE80211_VHT_CAP_RXLDPC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_VHT_CAP_RXLDPC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #16]
	bic	w8, w9, w8
Lloh3:
	adrp	x9, _IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPAGEOFF]
	str	w8, [x0, #16]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _IEEE80211_VHT_MCS_SUPPORT_0_7@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_VHT_MCS_SUPPORT_0_7@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w9, w9, w8, lsl #2
	orr	w9, w9, w8, lsl #4
	orr	w9, w9, w8, lsl #6
	orr	w9, w9, w8, lsl #8
	orr	w9, w9, w8, lsl #10
	orr	w9, w9, w8, lsl #12
	orr	w20, w9, w8, lsl #14
	mov	x0, x20
	bl	_cpu_to_le16
	str	x0, [x19, #8]
	mov	x0, x20
	bl	_cpu_to_le16
	str	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_VHT_CAP_RXLDPC,4,2   ; @IEEE80211_VHT_CAP_RXLDPC
	.comm	_IEEE80211_VHT_MCS_SUPPORT_0_7,4,2 ; @IEEE80211_VHT_MCS_SUPPORT_0_7
	.comm	_IEEE80211_VHT_MCS_NOT_SUPPORTED,4,2 ; @IEEE80211_VHT_MCS_NOT_SUPPORTED
	.no_dead_strip	_mt76x0_vht_cap_mask
.subsections_via_symbols
