	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_apply_htcap_overrides ## -- Begin function ieee80211_apply_htcap_overrides
	.p2align	4, 0x90
_ieee80211_apply_htcap_overrides:       ## @ieee80211_apply_htcap_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, 24(%rsi)
	je	LBB0_23
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_IEEE80211_HT_MCS_MASK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.2:
	movq	16(%r14), %rcx
	cmpl	$1, %eax
	je	LBB0_3
## %bb.4:
	leaq	(%rbx,%rax,8), %rdx
	addq	$12, %rdx
	cmpq	%rcx, %rdx
	jbe	LBB0_7
## %bb.5:
	leaq	(%rcx,%rax,8), %rdx
	leaq	4(%rbx), %rsi
	cmpq	%rdx, %rsi
	jae	LBB0_7
LBB0_3:
	xorl	%edx, %edx
LBB0_13:
	movq	%rdx, %r8
	notq	%r8
	testb	$1, %al
	je	LBB0_15
## %bb.14:
	movq	12(%rbx,%rdx,8), %rsi
	movq	%rsi, %rdi
	notq	%rdi
	andq	(%rcx,%rdx,8), %rdi
	movq	%rdi, (%rcx,%rdx,8)
	andq	4(%rbx,%rdx,8), %rsi
	orq	%rdi, %rsi
	movq	%rsi, (%rcx,%rdx,8)
	orq	$1, %rdx
LBB0_15:
	addq	%rax, %r8
	je	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	12(%rbx,%rdx,8), %rsi
	movq	%rsi, %rdi
	notq	%rdi
	andq	(%rcx,%rdx,8), %rdi
	movq	%rdi, (%rcx,%rdx,8)
	andq	4(%rbx,%rdx,8), %rsi
	orq	%rdi, %rsi
	movq	%rsi, (%rcx,%rdx,8)
	movq	20(%rbx,%rdx,8), %rsi
	movq	%rsi, %rdi
	notq	%rdi
	andq	8(%rcx,%rdx,8), %rdi
	movq	%rdi, 8(%rcx,%rdx,8)
	andq	12(%rbx,%rdx,8), %rsi
	orq	%rdi, %rsi
	movq	%rsi, 8(%rcx,%rdx,8)
	addq	$2, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_16
	jmp	LBB0_17
LBB0_7:
	movl	%eax, %edx
	andl	$-2, %edx
	leaq	-2(%rdx), %rsi
	movq	%rsi, %r8
	shrq	%r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.8:
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	12(%rbx,%rsi,8), %xmm0
	movups	(%rcx,%rsi,8), %xmm1
	movups	16(%rcx,%rsi,8), %xmm2
	movaps	%xmm0, %xmm3
	andnps	%xmm1, %xmm3
	movups	%xmm3, (%rcx,%rsi,8)
	movups	4(%rbx,%rsi,8), %xmm1
	andps	%xmm0, %xmm1
	orps	%xmm3, %xmm1
	movups	%xmm1, (%rcx,%rsi,8)
	movups	28(%rbx,%rsi,8), %xmm0
	movaps	%xmm0, %xmm1
	andnps	%xmm2, %xmm1
	movups	%xmm1, 16(%rcx,%rsi,8)
	movups	20(%rbx,%rsi,8), %xmm2
	andps	%xmm0, %xmm2
	orps	%xmm1, %xmm2
	movups	%xmm2, 16(%rcx,%rsi,8)
	addq	$4, %rsi
	addq	$-2, %rdi
	jne	LBB0_9
## %bb.10:
	testb	$1, %r8b
	je	LBB0_12
LBB0_11:
	movups	12(%rbx,%rsi,8), %xmm0
	movups	(%rcx,%rsi,8), %xmm1
	movaps	%xmm0, %xmm2
	andnps	%xmm1, %xmm2
	movups	%xmm2, (%rcx,%rsi,8)
	movups	4(%rbx,%rsi,8), %xmm1
	andps	%xmm0, %xmm1
	orps	%xmm2, %xmm1
	movups	%xmm1, (%rcx,%rsi,8)
LBB0_12:
	cmpq	%rax, %rdx
	jne	LBB0_13
LBB0_17:
	movq	_IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___check_htcap_disable
	movq	_IEEE80211_HT_CAP_SGI_40@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___check_htcap_disable
	movq	_IEEE80211_HT_CAP_SGI_20@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___check_htcap_disable
	movq	_IEEE80211_HT_CAP_MAX_AMSDU@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___check_htcap_disable
	movl	8(%rbx), %eax
	movq	_IEEE80211_HT_AMPDU_PARM_FACTOR@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	testl	%eax, %ecx
	je	LBB0_20
## %bb.18:
	movslq	(%rbx), %rdx
	andq	%rcx, %rdx
	cmpq	%rdx, (%r14)
	jle	LBB0_20
## %bb.19:
	movq	%rdx, (%r14)
LBB0_20:
	movq	_IEEE80211_HT_AMPDU_PARM_DENSITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_23
## %bb.21:
	andl	(%rbx), %edx
	movq	_IEEE80211_HT_AMPDU_PARM_DENSITY_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movslq	%edx, %rax
	cmpq	%rax, 8(%r14)
	jge	LBB0_23
## %bb.22:
	movq	%rax, 8(%r14)
LBB0_23:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_24:
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HT_MCS_MASK_LEN,4,2  ## @IEEE80211_HT_MCS_MASK_LEN
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ## @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ## @IEEE80211_HT_CAP_SGI_40
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ## @IEEE80211_HT_CAP_SGI_20
	.comm	_IEEE80211_HT_CAP_MAX_AMSDU,4,2 ## @IEEE80211_HT_CAP_MAX_AMSDU
	.comm	_IEEE80211_HT_AMPDU_PARM_FACTOR,4,2 ## @IEEE80211_HT_AMPDU_PARM_FACTOR
	.comm	_IEEE80211_HT_AMPDU_PARM_DENSITY,4,2 ## @IEEE80211_HT_AMPDU_PARM_DENSITY
	.comm	_IEEE80211_HT_AMPDU_PARM_DENSITY_SHIFT,4,2 ## @IEEE80211_HT_AMPDU_PARM_DENSITY_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_apply_htcap_overrides ; -- Begin function ieee80211_apply_htcap_overrides
	.p2align	2
_ieee80211_apply_htcap_overrides:       ; @ieee80211_apply_htcap_overrides
	.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
	ldr	w8, [x1, #24]
	cbz	w8, LBB0_16
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _IEEE80211_HT_MCS_MASK_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_HT_MCS_MASK_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	ldr	x9, [x19, #16]
	cmp	w8, #4
	b.lo	LBB0_7
; %bb.3:
	lsl	x10, x8, #3
	add	x11, x9, x10
	add	x12, x20, #4
	add	x10, x10, x20
	add	x10, x10, #12
	cmp	x10, x9
	ccmp	x12, x11, #2, hi
	b.lo	LBB0_7
; %bb.4:
	and	x10, x8, #0xfffffffc
	add	x11, x20, #20
	add	x12, x9, #16
	mov	x13, x10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	q0, [x11, #-8]
	ldur	q1, [x11, #8]
	ldp	q2, q3, [x12, #-16]
	ldp	q4, q5, [x11, #-16]
	bsl.16b	v0, v4, v2
	bsl.16b	v1, v5, v3
	stp	q0, q1, [x12, #-16]
	add	x11, x11, #32
	add	x12, x12, #32
	subs	x13, x13, #4
	b.ne	LBB0_5
; %bb.6:
	cmp	x10, x8
	b.ne	LBB0_8
	b	LBB0_10
LBB0_7:
	mov	x10, #0
LBB0_8:
	lsl	x12, x10, #3
	add	x11, x12, x20
	add	x11, x11, #12
	add	x9, x9, x12
	sub	x8, x8, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x11]
	ldr	x12, [x9]
	bic	x12, x12, x10
	str	x12, [x9]
	ldur	x13, [x11, #-8]
	and	x10, x13, x10
	orr	x10, x10, x12
	str	x10, [x9], #8
	add	x11, x11, #8
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
Lloh3:
	adrp	x8, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	___check_htcap_disable
Lloh6:
	adrp	x8, _IEEE80211_HT_CAP_SGI_40@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_HT_CAP_SGI_40@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	___check_htcap_disable
Lloh9:
	adrp	x8, _IEEE80211_HT_CAP_SGI_20@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_HT_CAP_SGI_20@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	___check_htcap_disable
Lloh12:
	adrp	x8, _IEEE80211_HT_CAP_MAX_AMSDU@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE80211_HT_CAP_MAX_AMSDU@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	___check_htcap_disable
	ldr	w8, [x20, #8]
Lloh15:
	adrp	x9, _IEEE80211_HT_AMPDU_PARM_FACTOR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IEEE80211_HT_AMPDU_PARM_FACTOR@GOTPAGEOFF]
Lloh17:
	ldrsw	x9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
	ldrsw	x10, [x20]
	and	x9, x10, x9
	ldr	x10, [x19]
	cmp	x10, x9
	b.le	LBB0_13
; %bb.12:
	str	x9, [x19]
LBB0_13:
Lloh18:
	adrp	x9, _IEEE80211_HT_AMPDU_PARM_DENSITY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IEEE80211_HT_AMPDU_PARM_DENSITY@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.14:
	ldr	w8, [x20]
Lloh21:
	adrp	x10, _IEEE80211_HT_AMPDU_PARM_DENSITY_SHIFT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _IEEE80211_HT_AMPDU_PARM_DENSITY_SHIFT@GOTPAGEOFF]
	and	w8, w8, w9
Lloh23:
	ldr	w9, [x10]
	asr	w8, w8, w9
	sxtw	x8, w8
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.ge	LBB0_16
; %bb.15:
	str	x8, [x19, #8]
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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 AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HT_MCS_MASK_LEN,4,2  ; @IEEE80211_HT_MCS_MASK_LEN
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ; @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ; @IEEE80211_HT_CAP_SGI_40
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ; @IEEE80211_HT_CAP_SGI_20
	.comm	_IEEE80211_HT_CAP_MAX_AMSDU,4,2 ; @IEEE80211_HT_CAP_MAX_AMSDU
	.comm	_IEEE80211_HT_AMPDU_PARM_FACTOR,4,2 ; @IEEE80211_HT_AMPDU_PARM_FACTOR
	.comm	_IEEE80211_HT_AMPDU_PARM_DENSITY,4,2 ; @IEEE80211_HT_AMPDU_PARM_DENSITY
	.comm	_IEEE80211_HT_AMPDU_PARM_DENSITY_SHIFT,4,2 ; @IEEE80211_HT_AMPDU_PARM_DENSITY_SHIFT
.subsections_via_symbols
