	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_init_vht_cap
_rtw_init_vht_cap:                      ## @rtw_init_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	%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
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movq	_EFUSE_HW_CAP_IGNORE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_EFUSE_HW_CAP_PTCL_VHT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movl	$1, (%r15)
	movq	_IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454@GOTPCREL(%rip), %rax
	movq	_IEEE80211_VHT_CAP_RXLDPC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IEEE80211_VHT_CAP_SHORT_GI_80@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IEEE80211_VHT_CAP_TXSTBC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IEEE80211_VHT_CAP_RXSTBC_1@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IEEE80211_VHT_CAP_HTC_VHT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%r15)
	movq	_IEEE80211_VHT_MCS_SUPPORT_0_9@GOTPCREL(%rip), %rax
	movq	_IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r13d
	movl	%r13d, %r12d
	shll	$4, %r12d
	orl	(%rax), %r12d
	movl	%r13d, %ecx
	shll	$6, %ecx
	movl	%r13d, %edx
	shll	$8, %edx
	orl	%ecx, %edx
	movl	%r13d, %ecx
	shll	$10, %ecx
	orl	%edx, %ecx
	movl	%r13d, %edx
	shll	$12, %edx
	orl	%ecx, %edx
	shll	$14, %r13d
	orl	%edx, %r13d
	cmpl	$2, 8(%rdi)
	movl	$780, %ecx                      ## imm = 0x30C
	movl	$390, %edi                      ## imm = 0x186
	cmovgel	%ecx, %edi
	cmovgeq	%rax, %rbx
	callq	_cpu_to_le16
	movq	%rax, %r14
	movl	(%rbx), %ebx
	shll	$2, %ebx
	orl	%r13d, %ebx
	orl	%r12d, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%r15)
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%r15)
	movq	%r14, 16(%r15)
	movq	%r14, 8(%r15)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFUSE_HW_CAP_IGNORE,8,3        ## @EFUSE_HW_CAP_IGNORE
	.comm	_EFUSE_HW_CAP_PTCL_VHT,8,3      ## @EFUSE_HW_CAP_PTCL_VHT
	.comm	_IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454,4,2 ## @IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454
	.comm	_IEEE80211_VHT_CAP_RXLDPC,4,2   ## @IEEE80211_VHT_CAP_RXLDPC
	.comm	_IEEE80211_VHT_CAP_SHORT_GI_80,4,2 ## @IEEE80211_VHT_CAP_SHORT_GI_80
	.comm	_IEEE80211_VHT_CAP_TXSTBC,4,2   ## @IEEE80211_VHT_CAP_TXSTBC
	.comm	_IEEE80211_VHT_CAP_RXSTBC_1,4,2 ## @IEEE80211_VHT_CAP_RXSTBC_1
	.comm	_IEEE80211_VHT_CAP_HTC_VHT,4,2  ## @IEEE80211_VHT_CAP_HTC_VHT
	.comm	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK,4,2 ## @IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK
	.comm	_IEEE80211_VHT_MCS_SUPPORT_0_9,4,2 ## @IEEE80211_VHT_MCS_SUPPORT_0_9
	.comm	_IEEE80211_VHT_MCS_NOT_SUPPORTED,4,2 ## @IEEE80211_VHT_MCS_NOT_SUPPORTED
	.no_dead_strip	_rtw_init_vht_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_init_vht_cap
_rtw_init_vht_cap:                      ; @rtw_init_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, _EFUSE_HW_CAP_IGNORE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EFUSE_HW_CAP_IGNORE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _EFUSE_HW_CAP_PTCL_VHT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _EFUSE_HW_CAP_PTCL_VHT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x1
	mov	w8, #1
	str	w8, [x1]
Lloh6:
	adrp	x8, _IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IEEE80211_VHT_CAP_RXLDPC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_VHT_CAP_RXLDPC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _IEEE80211_VHT_CAP_SHORT_GI_80@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_VHT_CAP_SHORT_GI_80@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _IEEE80211_VHT_CAP_TXSTBC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IEEE80211_VHT_CAP_TXSTBC@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _IEEE80211_VHT_CAP_RXSTBC_1@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IEEE80211_VHT_CAP_RXSTBC_1@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _IEEE80211_VHT_CAP_HTC_VHT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IEEE80211_VHT_CAP_HTC_VHT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x1, #4]
Lloh27:
	adrp	x8, _IEEE80211_VHT_MCS_SUPPORT_0_9@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IEEE80211_VHT_MCS_SUPPORT_0_9@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh29:
	adrp	x10, _IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPAGE
Lloh30:
	ldr	x10, [x10, _IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPAGEOFF]
	ldr	w11, [x10]
	orr	w9, w9, w11, lsl #4
	orr	w9, w9, w11, lsl #6
	orr	w9, w9, w11, lsl #8
	orr	w9, w9, w11, lsl #10
	orr	w9, w9, w11, lsl #12
	orr	w21, w9, w11, lsl #14
	ldr	w9, [x0, #8]
	mov	w11, #390
	mov	w12, #780
	cmp	w9, #1
	csel	w0, w12, w11, gt
	csel	x22, x8, x10, gt
	bl	_cpu_to_le16
	mov	x20, x0
	ldr	w8, [x22]
	orr	w21, w21, w8, lsl #2
	mov	x0, x21
	bl	_cpu_to_le16
	str	x0, [x19, #32]
	mov	x0, x21
	bl	_cpu_to_le16
	stp	x20, x0, [x19, #16]
	str	x20, [x19, #8]
LBB0_2:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EFUSE_HW_CAP_IGNORE,8,3        ; @EFUSE_HW_CAP_IGNORE
	.comm	_EFUSE_HW_CAP_PTCL_VHT,8,3      ; @EFUSE_HW_CAP_PTCL_VHT
	.comm	_IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454,4,2 ; @IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454
	.comm	_IEEE80211_VHT_CAP_RXLDPC,4,2   ; @IEEE80211_VHT_CAP_RXLDPC
	.comm	_IEEE80211_VHT_CAP_SHORT_GI_80,4,2 ; @IEEE80211_VHT_CAP_SHORT_GI_80
	.comm	_IEEE80211_VHT_CAP_TXSTBC,4,2   ; @IEEE80211_VHT_CAP_TXSTBC
	.comm	_IEEE80211_VHT_CAP_RXSTBC_1,4,2 ; @IEEE80211_VHT_CAP_RXSTBC_1
	.comm	_IEEE80211_VHT_CAP_HTC_VHT,4,2  ; @IEEE80211_VHT_CAP_HTC_VHT
	.comm	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK,4,2 ; @IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK
	.comm	_IEEE80211_VHT_MCS_SUPPORT_0_9,4,2 ; @IEEE80211_VHT_MCS_SUPPORT_0_9
	.comm	_IEEE80211_VHT_MCS_NOT_SUPPORTED,4,2 ; @IEEE80211_VHT_MCS_NOT_SUPPORTED
	.no_dead_strip	_rtw_init_vht_cap
.subsections_via_symbols
