	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_ht_vht_rx_chains
_ieee80211_ht_vht_rx_chains:            ## @ieee80211_ht_vht_rx_chains
	.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	_IEEE80211_STA_DISABLE_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %r14d
	testl	%eax, (%rdi)
	jne	LBB0_16
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_WLAN_EID_HT_CAPABILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ieee80211_bss_get_ie
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	cmpl	$4, 4(%rax)
	jb	LBB0_4
## %bb.3:
	addq	$8, %rax
	movq	%rax, %rdi
	callq	_ieee80211_mcs_to_chains
	movl	%eax, %r14d
LBB0_4:
	movq	_IEEE80211_STA_DISABLE_VHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_WLAN_EID_VHT_CAPABILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ieee80211_bss_get_ie
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:
	cmpl	$4, 4(%rax)
	jb	LBB0_16
## %bb.7:
	movl	8(%rax), %edi
	callq	_le16_to_cpu
	movq	_IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edx
	shrl	$14, %edx
	andl	$3, %edx
	movl	$8, %esi
	cmpl	%ecx, %edx
	jne	LBB0_15
## %bb.8:
	movl	%eax, %edx
	shrl	$12, %edx
	andl	$3, %edx
	movl	$7, %esi
	cmpl	%ecx, %edx
	jne	LBB0_15
## %bb.9:
	movl	%eax, %edx
	shrl	$10, %edx
	andl	$3, %edx
	movl	$6, %esi
	cmpl	%ecx, %edx
	jne	LBB0_15
## %bb.10:
	movl	%eax, %edx
	shrl	$8, %edx
	andl	$3, %edx
	movl	$5, %esi
	cmpl	%ecx, %edx
	jne	LBB0_15
## %bb.11:
	movl	%eax, %edx
	shrl	$6, %edx
	andl	$3, %edx
	movl	$4, %esi
	cmpl	%ecx, %edx
	jne	LBB0_15
## %bb.12:
	movl	%eax, %edx
	shrl	$4, %edx
	andl	$3, %edx
	movl	$3, %esi
	cmpl	%ecx, %edx
	jne	LBB0_15
## %bb.13:
	movl	%eax, %edx
	shrl	$2, %edx
	andl	$3, %edx
	movl	$2, %esi
	cmpl	%ecx, %edx
	jne	LBB0_15
## %bb.14:
	andl	$3, %eax
	xorl	%esi, %esi
	cmpl	%ecx, %eax
	setne	%sil
LBB0_15:
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_max                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_STA_DISABLE_HT,4,2   ## @IEEE80211_STA_DISABLE_HT
	.comm	_WLAN_EID_HT_CAPABILITY,4,2     ## @WLAN_EID_HT_CAPABILITY
	.comm	_IEEE80211_STA_DISABLE_VHT,4,2  ## @IEEE80211_STA_DISABLE_VHT
	.comm	_WLAN_EID_VHT_CAPABILITY,4,2    ## @WLAN_EID_VHT_CAPABILITY
	.comm	_IEEE80211_VHT_MCS_NOT_SUPPORTED,4,2 ## @IEEE80211_VHT_MCS_NOT_SUPPORTED
	.no_dead_strip	_ieee80211_ht_vht_rx_chains
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_ht_vht_rx_chains
_ieee80211_ht_vht_rx_chains:            ; @ieee80211_ht_vht_rx_chains
	.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	w8, [x0]
Lloh0:
	adrp	x9, _IEEE80211_STA_DISABLE_HT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_STA_DISABLE_HT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w19, #1
	b	LBB0_7
LBB0_2:
	mov	x20, x1
	mov	x21, x0
Lloh3:
	adrp	x8, _WLAN_EID_HT_CAPABILITY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_EID_HT_CAPABILITY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_bss_get_ie
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x0, #4]
	cmp	w8, #4
	b.lo	LBB0_5
; %bb.4:
	add	x0, x0, #8
	bl	_ieee80211_mcs_to_chains
	mov	x19, x0
	b	LBB0_6
LBB0_5:
	mov	w19, #1
LBB0_6:
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _IEEE80211_STA_DISABLE_VHT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_STA_DISABLE_VHT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_7:
	mov	x0, x19
	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
LBB0_8:
Lloh9:
	adrp	x8, _WLAN_EID_VHT_CAPABILITY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WLAN_EID_VHT_CAPABILITY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_bss_get_ie
	cbz	x0, LBB0_7
; %bb.9:
	ldr	w8, [x0, #4]
	cmp	w8, #4
	b.lo	LBB0_7
; %bb.10:
	ldr	w0, [x0, #8]
	bl	_le16_to_cpu
Lloh12:
	adrp	x8, _IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ubfx	w9, w0, #14, #2
	cmp	w9, w8
	b.ne	LBB0_18
; %bb.11:
	ubfx	w9, w0, #12, #2
	cmp	w9, w8
	b.ne	LBB0_19
; %bb.12:
	ubfx	w9, w0, #10, #2
	cmp	w9, w8
	b.ne	LBB0_20
; %bb.13:
	ubfx	w9, w0, #8, #2
	cmp	w9, w8
	b.ne	LBB0_21
; %bb.14:
	ubfx	w9, w0, #6, #2
	cmp	w9, w8
	b.ne	LBB0_22
; %bb.15:
	ubfx	w9, w0, #4, #2
	cmp	w9, w8
	b.ne	LBB0_23
; %bb.16:
	ubfx	w9, w0, #2, #2
	cmp	w9, w8
	b.ne	LBB0_24
; %bb.17:
	and	w9, w0, #0x3
	cmp	w9, w8
	cset	w1, ne
	b	LBB0_25
LBB0_18:
	mov	w1, #8
	b	LBB0_25
LBB0_19:
	mov	w1, #7
	b	LBB0_25
LBB0_20:
	mov	w1, #6
	b	LBB0_25
LBB0_21:
	mov	w1, #5
	b	LBB0_25
LBB0_22:
	mov	w1, #4
	b	LBB0_25
LBB0_23:
	mov	w1, #3
	b	LBB0_25
LBB0_24:
	mov	w1, #2
LBB0_25:
	mov	x0, x19
	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
	b	_max
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_STA_DISABLE_HT,4,2   ; @IEEE80211_STA_DISABLE_HT
	.comm	_WLAN_EID_HT_CAPABILITY,4,2     ; @WLAN_EID_HT_CAPABILITY
	.comm	_IEEE80211_STA_DISABLE_VHT,4,2  ; @IEEE80211_STA_DISABLE_VHT
	.comm	_WLAN_EID_VHT_CAPABILITY,4,2    ; @WLAN_EID_VHT_CAPABILITY
	.comm	_IEEE80211_VHT_MCS_NOT_SUPPORTED,4,2 ; @IEEE80211_VHT_MCS_NOT_SUPPORTED
	.no_dead_strip	_ieee80211_ht_vht_rx_chains
.subsections_via_symbols
