	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_apply_vhtcap_overrides ## -- Begin function ieee80211_apply_vhtcap_overrides
	.p2align	4, 0x90
_ieee80211_apply_vhtcap_overrides:      ## @ieee80211_apply_vhtcap_overrides
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 24(%rsi)
	je	LBB0_16
## %bb.1:
	movq	%rdi, %rbx
	movq	48(%rdi), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.2:
	movq	%rsi, %r13
	movq	_IEEE80211_VHT_CAP_RXLDPC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	___check_vhtcap_disable
	movq	_IEEE80211_VHT_CAP_SHORT_GI_80@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	___check_vhtcap_disable
	movq	_IEEE80211_VHT_CAP_SHORT_GI_160@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	___check_vhtcap_disable
	movq	_IEEE80211_VHT_CAP_TXSTBC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	___check_vhtcap_disable
	movq	_IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	___check_vhtcap_disable
	movq	_IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	___check_vhtcap_disable
	movq	_IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	___check_vhtcap_disable
	movq	_IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	___check_vhtcap_disable
	movl	24(%rbx), %r15d
	movq	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_cpu_to_le32
	testl	%r15d, %eax
	je	LBB0_5
## %bb.3:
	movl	16(%rbx), %edi
	callq	_le32_to_cpu
	movl	(%r14), %edx
	andl	%edx, %eax
	movq	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT@GOTPCREL(%rip), %r8
	movb	(%r8), %cl
	sarl	%cl, %eax
	movl	(%r13), %esi
	movl	%esi, %edi
	andl	%edx, %edi
	sarl	%cl, %edi
	cmpl	%edi, %eax
	jge	LBB0_5
## %bb.4:
	notl	%edx
	andl	%edx, %esi
	movl	%esi, (%r13)
	movb	(%r8), %cl
	shll	%cl, %eax
	orl	%esi, %eax
	movl	%eax, (%r13)
LBB0_5:
	movq	40(%rbx), %rdi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rdi
	callq	_le16_to_cpu
	andl	%r14d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%r13), %rdi
	callq	_le16_to_cpu
	movl	%eax, %r15d
	movq	32(%rbx), %rdi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	callq	_le16_to_cpu
	movl	%eax, %r12d
	andl	%r14d, %r12d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rdi
	callq	_le16_to_cpu
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r13d
	movq	_IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$3, %edx
	shll	%cl, %edx
	movl	%r12d, %esi
	xorl	%r13d, %esi
	andl	%edx, %esi
	xorl	%esi, %r13d
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	addl	$2, %ecx
	cmpl	$16, %ecx
	je	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r8d, %edx
	sarl	%cl, %edx
	testl	%edx, %eax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, %esi
	sarl	%cl, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	sarl	%cl, %edx
	andl	%eax, %esi
	andl	%eax, %edx
	cmpl	%eax, %esi
	setne	%dil
	cmpl	%esi, %edx
	setl	%bl
	testb	%bl, %dil
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%eax, %edx
	jne	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$3, %edx
	shll	%cl, %edx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%r15d, %esi
	andl	%edx, %esi
	xorl	%esi, %r15d
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %edx
	sarl	%cl, %edx
	testl	%edx, %eax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %esi
	sarl	%cl, %esi
	movl	%r12d, %edx
	sarl	%cl, %edx
	andl	%eax, %esi
	andl	%eax, %edx
	cmpl	%eax, %esi
	setne	%dil
	cmpl	%esi, %edx
	setl	%bl
	testb	%bl, %dil
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%eax, %edx
	jne	LBB0_14
	jmp	LBB0_13
LBB0_15:
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.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_SHORT_GI_160,4,2 ## @IEEE80211_VHT_CAP_SHORT_GI_160
	.comm	_IEEE80211_VHT_CAP_TXSTBC,4,2   ## @IEEE80211_VHT_CAP_TXSTBC
	.comm	_IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE,4,2 ## @IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE
	.comm	_IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE,4,2 ## @IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE
	.comm	_IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN,4,2 ## @IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN
	.comm	_IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN,4,2 ## @IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN
	.comm	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK,4,2 ## @IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK
	.comm	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT,4,2 ## @IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT
	.comm	_IEEE80211_VHT_MCS_NOT_SUPPORTED,4,2 ## @IEEE80211_VHT_MCS_NOT_SUPPORTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_apply_vhtcap_overrides ; -- Begin function ieee80211_apply_vhtcap_overrides
	.p2align	2
_ieee80211_apply_vhtcap_overrides:      ; @ieee80211_apply_vhtcap_overrides
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x1, #24]
	cbz	w8, LBB0_12
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #48]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.2:
	mov	x19, x1
Lloh3:
	adrp	x8, _IEEE80211_VHT_CAP_RXLDPC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_VHT_CAP_RXLDPC@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	___check_vhtcap_disable
Lloh6:
	adrp	x8, _IEEE80211_VHT_CAP_SHORT_GI_80@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_VHT_CAP_SHORT_GI_80@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	___check_vhtcap_disable
Lloh9:
	adrp	x8, _IEEE80211_VHT_CAP_SHORT_GI_160@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_VHT_CAP_SHORT_GI_160@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	___check_vhtcap_disable
Lloh12:
	adrp	x8, _IEEE80211_VHT_CAP_TXSTBC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE80211_VHT_CAP_TXSTBC@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	___check_vhtcap_disable
Lloh15:
	adrp	x8, _IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	___check_vhtcap_disable
Lloh18:
	adrp	x8, _IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	___check_vhtcap_disable
Lloh21:
	adrp	x8, _IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	___check_vhtcap_disable
Lloh24:
	adrp	x8, _IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	___check_vhtcap_disable
	ldr	w22, [x20, #24]
Lloh27:
	adrp	x21, _IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK@GOTPAGE
Lloh28:
	ldr	x21, [x21, _IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_cpu_to_le32
	tst	w0, w22
	b.eq	LBB0_5
; %bb.3:
	ldr	w0, [x20, #16]
	bl	_le32_to_cpu
	ldr	w8, [x21]
	and	w10, w8, w0
Lloh29:
	adrp	x9, _IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT@GOTPAGEOFF]
	ldr	w12, [x9]
	asr	w10, w10, w12
	ldr	w11, [x19]
	and	w13, w11, w8
	asr	w12, w13, w12
	cmp	w10, w12
	b.ge	LBB0_5
; %bb.4:
	bic	w8, w11, w8
	str	w8, [x19]
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	ldr	x0, [x20, #40]
	bl	_le16_to_cpu
	mov	x21, x0
	ldr	x0, [x20, #8]
	bl	_le16_to_cpu
	and	w24, w0, w21
	ldr	x0, [x19, #16]
	bl	_le16_to_cpu
	mov	x22, x0
	ldr	x0, [x20, #32]
	bl	_le16_to_cpu
	mov	x23, x0
	ldr	x0, [x20]
	bl	_le16_to_cpu
	and	w25, w0, w23
	ldr	x0, [x19, #8]
	bl	_le16_to_cpu
	mov	x20, x0
	mov	w8, #0
Lloh31:
	adrp	x9, _IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	mov	w10, #3
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	bic	w12, w20, w11
	and	w11, w11, w25
	orr	w20, w12, w11
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w8, w8, #2
	cmp	w8, #16
	b.eq	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	asr	w12, w21, w8
	asr	w11, w22, w8
	and	w11, w9, w11
	asr	w13, w24, w8
	and	w13, w9, w13
	cmp	w13, w11
	ccmp	w11, w9, #4, lt
	ccmp	w13, w9, #4, eq
	lsl	w11, w10, w8
	bic	w13, w22, w11
	and	w14, w11, w24
	orr	w13, w13, w14
	csel	w13, w22, w13, ne
	tst	w9, w12
	csel	w22, w22, w13, eq
	asr	w12, w23, w8
	tst	w9, w12
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	asr	w12, w20, w8
	and	w13, w9, w12
	asr	w12, w25, w8
	and	w12, w9, w12
	cmp	w12, w13
	ccmp	w13, w9, #4, lt
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w12, w9
	b.ne	LBB0_7
	b	LBB0_6
LBB0_11:
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [x19, #16]
	mov	x0, x20
	bl	_cpu_to_le16
	str	x0, [x19, #8]
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.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_SHORT_GI_160,4,2 ; @IEEE80211_VHT_CAP_SHORT_GI_160
	.comm	_IEEE80211_VHT_CAP_TXSTBC,4,2   ; @IEEE80211_VHT_CAP_TXSTBC
	.comm	_IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE,4,2 ; @IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE
	.comm	_IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE,4,2 ; @IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE
	.comm	_IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN,4,2 ; @IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN
	.comm	_IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN,4,2 ; @IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN
	.comm	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK,4,2 ; @IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK
	.comm	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT,4,2 ; @IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT
	.comm	_IEEE80211_VHT_MCS_NOT_SUPPORTED,4,2 ; @IEEE80211_VHT_MCS_NOT_SUPPORTED
.subsections_via_symbols
