	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_ht_wds_init          ## -- Begin function ieee80211_ht_wds_init
	.p2align	4, 0x90
_ieee80211_ht_wds_init:                 ## @ieee80211_ht_wds_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	%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	%rdi, %r13
	movq	56(%rdi), %r12
	movq	_IEEE80211_FHT_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movl	52(%r13), %r14d
	movq	32(%r13), %r15
	movq	%r15, %rdi
	callq	_ieee80211_htchanflags
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_ieee80211_ht_adjust_channel
	movq	%rax, 32(%r13)
	movl	$0, 48(%r13)
	movq	_IEEE80211_FHT_SHORTGI20@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r12)
	je	LBB0_2
## %bb.1:
	movq	_IEEE80211_HTCAP_SHORTGI20@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%r13)
LBB0_2:
	movq	%rax, %rdi
	callq	_IEEE80211_IS_CHAN_HT40
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	_IEEE80211_HTCAP_CHWIDTH40@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 48(%r13)
	movl	$40, (%r13)
	movq	32(%r13), %rdi
	callq	_IEEE80211_IS_CHAN_HT40U
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_IEEE80211_HTINFO_2NDCHAN_ABOVE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_10:
	movl	$20, (%r13)
	movq	_IEEE80211_HTINFO_2NDCHAN_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r13)
	movl	(%r12), %eax
	jmp	LBB0_11
LBB0_5:
	movq	32(%r13), %rdi
	callq	_IEEE80211_IS_CHAN_HT40D
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_IEEE80211_HTINFO_2NDCHAN_BELOW@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 44(%r13)
LBB0_8:
	movl	(%r12), %eax
	movq	_IEEE80211_FHT_SHORTGI40@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.9:
	movq	_IEEE80211_HTCAP_SHORTGI40@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 48(%r13)
LBB0_11:
	movq	32(%r13), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%r13)
	movq	_IEEE80211_FHT_RIFS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	_IEEE80211_NODE_RIFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r13)
LBB0_13:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r13)
	movq	_WME_NUM_TID@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_16
## %bb.14:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	movl	%ebx, (%rdi,%rbx,4)
	addq	%r15, %rdi
	callq	_ieee80211_txampdu_init_pps
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_15
LBB0_16:
	movq	_IEEE80211_NODE_HT@GOTPCREL(%rip), %rax
	movq	_IEEE80211_NODE_AMPDU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 4(%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_FHT_HT,4,2           ## @IEEE80211_FHT_HT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no HT requested"

	.comm	_IEEE80211_FHT_SHORTGI20,4,2    ## @IEEE80211_FHT_SHORTGI20
	.comm	_IEEE80211_HTCAP_SHORTGI20,4,2  ## @IEEE80211_HTCAP_SHORTGI20
	.comm	_IEEE80211_HTCAP_CHWIDTH40,4,2  ## @IEEE80211_HTCAP_CHWIDTH40
	.comm	_IEEE80211_HTINFO_2NDCHAN_ABOVE,4,2 ## @IEEE80211_HTINFO_2NDCHAN_ABOVE
	.comm	_IEEE80211_HTINFO_2NDCHAN_BELOW,4,2 ## @IEEE80211_HTINFO_2NDCHAN_BELOW
	.comm	_IEEE80211_FHT_SHORTGI40,4,2    ## @IEEE80211_FHT_SHORTGI40
	.comm	_IEEE80211_HTCAP_SHORTGI40,4,2  ## @IEEE80211_HTCAP_SHORTGI40
	.comm	_IEEE80211_HTINFO_2NDCHAN_NONE,4,2 ## @IEEE80211_HTINFO_2NDCHAN_NONE
	.comm	_IEEE80211_FHT_RIFS,4,2         ## @IEEE80211_FHT_RIFS
	.comm	_IEEE80211_NODE_RIFS,4,2        ## @IEEE80211_NODE_RIFS
	.comm	_WME_NUM_TID,4,2                ## @WME_NUM_TID
	.comm	_IEEE80211_NODE_HT,4,2          ## @IEEE80211_NODE_HT
	.comm	_IEEE80211_NODE_AMPDU,4,2       ## @IEEE80211_NODE_AMPDU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_ht_wds_init          ; -- Begin function ieee80211_ht_wds_init
	.p2align	2
_ieee80211_ht_wds_init:                 ; @ieee80211_ht_wds_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	x19, x0
	ldr	x22, [x0, #56]
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _IEEE80211_FHT_HT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_FHT_HT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	w20, [x19, #52]
	ldr	x21, [x19, #32]
	mov	x0, x21
	bl	_ieee80211_htchanflags
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ieee80211_ht_adjust_channel
	str	x0, [x19, #32]
	str	wzr, [x19, #48]
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _IEEE80211_FHT_SHORTGI20@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_FHT_SHORTGI20@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _IEEE80211_HTCAP_SHORTGI20@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_HTCAP_SHORTGI20@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #48]
LBB0_2:
	bl	_IEEE80211_IS_CHAN_HT40
	cbz	x0, LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _IEEE80211_HTCAP_CHWIDTH40@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IEEE80211_HTCAP_CHWIDTH40@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19, #48]
	orr	w8, w9, w8
	str	w8, [x19, #48]
	mov	w8, #40
	str	w8, [x19]
	ldr	x0, [x19, #32]
	bl	_IEEE80211_IS_CHAN_HT40U
	cbz	x0, LBB0_6
; %bb.4:
Lloh14:
	adrp	x8, _IEEE80211_HTINFO_2NDCHAN_ABOVE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IEEE80211_HTINFO_2NDCHAN_ABOVE@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	w8, #20
	str	w8, [x19]
Lloh16:
	adrp	x8, _IEEE80211_HTINFO_2NDCHAN_NONE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IEEE80211_HTINFO_2NDCHAN_NONE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	ldr	w8, [x22]
	b	LBB0_11
LBB0_6:
	ldr	x0, [x19, #32]
	bl	_IEEE80211_IS_CHAN_HT40D
	cbz	x0, LBB0_9
; %bb.7:
Lloh19:
	adrp	x8, _IEEE80211_HTINFO_2NDCHAN_BELOW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IEEE80211_HTINFO_2NDCHAN_BELOW@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x19, #44]
LBB0_9:
	ldr	w8, [x22]
Lloh21:
	adrp	x9, _IEEE80211_FHT_SHORTGI40@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IEEE80211_FHT_SHORTGI40@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh24:
	adrp	x9, _IEEE80211_HTCAP_SHORTGI40@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IEEE80211_HTCAP_SHORTGI40@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	ldr	w10, [x19, #48]
	orr	w9, w10, w9
	str	w9, [x19, #48]
LBB0_11:
	ldr	x9, [x19, #32]
	ldr	w9, [x9]
	str	w9, [x19, #40]
Lloh27:
	adrp	x9, _IEEE80211_FHT_RIFS@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IEEE80211_FHT_RIFS@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
Lloh30:
	adrp	x8, _IEEE80211_NODE_RIFS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IEEE80211_NODE_RIFS@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_13:
	stp	xzr, xzr, [x19, #16]
Lloh33:
	adrp	x20, _WME_NUM_TID@GOTPAGE
Lloh34:
	ldr	x20, [x20, _WME_NUM_TID@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x21, #0
	mov	x22, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x21
	str	w22, [x8, x22, lsl #2]
	bl	_ieee80211_txampdu_init_pps
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_15
LBB0_16:
Lloh35:
	adrp	x8, _IEEE80211_NODE_HT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IEEE80211_NODE_HT@GOTPAGEOFF]
Lloh37:
	adrp	x9, _IEEE80211_NODE_AMPDU@GOTPAGE
Lloh38:
	ldr	x9, [x9, _IEEE80211_NODE_AMPDU@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #4]
	orr	w8, w8, w9
	str	w8, [x19, #4]
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_FHT_HT,4,2           ; @IEEE80211_FHT_HT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no HT requested"

	.comm	_IEEE80211_FHT_SHORTGI20,4,2    ; @IEEE80211_FHT_SHORTGI20
	.comm	_IEEE80211_HTCAP_SHORTGI20,4,2  ; @IEEE80211_HTCAP_SHORTGI20
	.comm	_IEEE80211_HTCAP_CHWIDTH40,4,2  ; @IEEE80211_HTCAP_CHWIDTH40
	.comm	_IEEE80211_HTINFO_2NDCHAN_ABOVE,4,2 ; @IEEE80211_HTINFO_2NDCHAN_ABOVE
	.comm	_IEEE80211_HTINFO_2NDCHAN_BELOW,4,2 ; @IEEE80211_HTINFO_2NDCHAN_BELOW
	.comm	_IEEE80211_FHT_SHORTGI40,4,2    ; @IEEE80211_FHT_SHORTGI40
	.comm	_IEEE80211_HTCAP_SHORTGI40,4,2  ; @IEEE80211_HTCAP_SHORTGI40
	.comm	_IEEE80211_HTINFO_2NDCHAN_NONE,4,2 ; @IEEE80211_HTINFO_2NDCHAN_NONE
	.comm	_IEEE80211_FHT_RIFS,4,2         ; @IEEE80211_FHT_RIFS
	.comm	_IEEE80211_NODE_RIFS,4,2        ; @IEEE80211_NODE_RIFS
	.comm	_WME_NUM_TID,4,2                ; @WME_NUM_TID
	.comm	_IEEE80211_NODE_HT,4,2          ; @IEEE80211_NODE_HT
	.comm	_IEEE80211_NODE_AMPDU,4,2       ; @IEEE80211_NODE_AMPDU
.subsections_via_symbols
