	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_vht_init
_rs_vht_init:                           ## @rs_vht_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rcx, %rsi
	callq	_rs_vht_set_enabled_rates
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.1:
	movq	_IEEE80211_VHT_CAP_RXLDPC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_3
## %bb.2:
	movl	$1, (%r15)
LBB0_3:
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_iwl_mvm_get_valid_tx_ant
	movl	%eax, %edi
	callq	_num_of_ant
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.5:
	movq	_IEEE80211_VHT_CAP_RXSTBC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.6:
	movl	$1, 4(%r15)
LBB0_7:
	movq	(%rbx), %rdi
	movq	_IWL_UCODE_TLV_CAPA_BEAMFORMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%rbx, %rdi
	callq	_iwl_mvm_get_valid_tx_ant
	movl	%eax, %edi
	callq	_num_of_ant
	cmpl	$2, %eax
	jl	LBB0_11
## %bb.9:
	movq	_IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_11
## %bb.10:
	movl	$1, 8(%r15)
LBB0_11:
	movl	$1, 12(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_VHT_CAP_RXLDPC,4,2   ## @IEEE80211_VHT_CAP_RXLDPC
	.comm	_IEEE80211_VHT_CAP_RXSTBC_MASK,4,2 ## @IEEE80211_VHT_CAP_RXSTBC_MASK
	.comm	_IWL_UCODE_TLV_CAPA_BEAMFORMER,4,2 ## @IWL_UCODE_TLV_CAPA_BEAMFORMER
	.comm	_IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE,4,2 ## @IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE
	.no_dead_strip	_rs_vht_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_vht_init
_rs_vht_init:                           ; @rs_vht_init
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x0
	mov	x0, x1
	mov	x1, x3
	bl	_rs_vht_set_enabled_rates
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	w9, [x20]
Lloh0:
	adrp	x10, _IEEE80211_VHT_CAP_RXLDPC@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IEEE80211_VHT_CAP_RXLDPC@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.2:
	mov	w9, #1
	str	w9, [x19]
LBB0_3:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_iwl_mvm_get_valid_tx_ant
	bl	_num_of_ant
	cmp	w0, #2
	b.lt	LBB0_7
; %bb.5:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _IEEE80211_VHT_CAP_RXSTBC_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_VHT_CAP_RXSTBC_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_7:
	ldr	x0, [x21]
Lloh6:
	adrp	x8, _IWL_UCODE_TLV_CAPA_BEAMFORMER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_BEAMFORMER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_fw_has_capa
	cbz	x0, LBB0_11
; %bb.8:
	mov	x0, x21
	bl	_iwl_mvm_get_valid_tx_ant
	bl	_num_of_ant
	cmp	w0, #2
	b.lt	LBB0_11
; %bb.9:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_11:
	mov	w8, #1
	str	w8, [x19, #12]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_VHT_CAP_RXLDPC,4,2   ; @IEEE80211_VHT_CAP_RXLDPC
	.comm	_IEEE80211_VHT_CAP_RXSTBC_MASK,4,2 ; @IEEE80211_VHT_CAP_RXSTBC_MASK
	.comm	_IWL_UCODE_TLV_CAPA_BEAMFORMER,4,2 ; @IWL_UCODE_TLV_CAPA_BEAMFORMER
	.comm	_IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE,4,2 ; @IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE
	.no_dead_strip	_rs_vht_init
.subsections_via_symbols
