	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il_init_ht_hw_capab
_il_init_ht_hw_capab:                   ## @il_init_ht_hw_capab
	.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
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	8(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	12(%rdi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$0, 32(%rsi)
	leaq	8(%rsi), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	$1, (%rbx)
	movq	_IEEE80211_HT_CAP_SGI_20@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx)
	movq	_MAX_BIT_RATE_20_MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	16(%r15), %r13d
	movl	%r12d, %edi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_2
## %bb.1:
	movq	_IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPCREL(%rip), %rax
	movl	32(%rbx), %ecx
	orl	(%rax), %ecx
	movq	_IEEE80211_HT_CAP_SGI_40@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 32(%rbx)
	movq	8(%rbx), %rax
	movl	$1, 16(%rax)
	movq	_MAX_BIT_RATE_40_MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_2:
	movq	(%r15), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_IEEE80211_HT_CAP_MAX_AMSDU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx)
LBB0_4:
	movq	_CFG_HT_RX_AMPDU_FACTOR_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_CFG_HT_MPDU_DENSITY_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	8(%rbx), %rax
	movl	$255, (%rax)
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	cmpl	$2, %r15d
	jl	LBB0_7
## %bb.5:
	movl	$255, 4(%rax)
	je	LBB0_7
## %bb.6:
	movl	$255, 8(%rax)
LBB0_7:
	imull	%r15d, %r14d
	movq	_IEEE80211_HT_MCS_RX_HIGHEST_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	%r14d, %edi
	callq	_WARN_ON
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movl	%eax, 20(%rbx)
	movq	_IEEE80211_HT_MCS_TX_DEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	cmpl	%r15d, %esi
	je	LBB0_9
## %bb.8:
	movq	_IEEE80211_HT_MCS_TX_MAX_STREAMS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_IEEE80211_HT_MCS_TX_RX_DIFF@GOTPCREL(%rip), %rdx
	decl	%esi
	shll	%cl, %esi
	orl	(%rdx), %eax
	orl	%eax, %esi
	movl	%esi, 16(%rbx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ## @IEEE80211_HT_CAP_SGI_20
	.comm	_MAX_BIT_RATE_20_MHZ,4,2        ## @MAX_BIT_RATE_20_MHZ
	.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	_MAX_BIT_RATE_40_MHZ,4,2        ## @MAX_BIT_RATE_40_MHZ
	.comm	_IEEE80211_HT_CAP_MAX_AMSDU,4,2 ## @IEEE80211_HT_CAP_MAX_AMSDU
	.comm	_CFG_HT_RX_AMPDU_FACTOR_DEF,4,2 ## @CFG_HT_RX_AMPDU_FACTOR_DEF
	.comm	_CFG_HT_MPDU_DENSITY_DEF,4,2    ## @CFG_HT_MPDU_DENSITY_DEF
	.comm	_IEEE80211_HT_MCS_RX_HIGHEST_MASK,4,2 ## @IEEE80211_HT_MCS_RX_HIGHEST_MASK
	.comm	_IEEE80211_HT_MCS_TX_DEFINED,4,2 ## @IEEE80211_HT_MCS_TX_DEFINED
	.comm	_IEEE80211_HT_MCS_TX_RX_DIFF,4,2 ## @IEEE80211_HT_MCS_TX_RX_DIFF
	.comm	_IEEE80211_HT_MCS_TX_MAX_STREAMS_SHIFT,4,2 ## @IEEE80211_HT_MCS_TX_MAX_STREAMS_SHIFT
	.no_dead_strip	_il_init_ht_hw_capab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il_init_ht_hw_capab
_il_init_ht_hw_capab:                   ; @il_init_ht_hw_capab
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldp	w23, w22, [x0, #8]
	str	wzr, [x1, #32]
	add	x0, x1, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	w25, #1
	str	w25, [x19]
Lloh0:
	adrp	x8, _IEEE80211_HT_CAP_SGI_20@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_HT_CAP_SGI_20@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
Lloh3:
	adrp	x8, _MAX_BIT_RATE_20_MHZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_BIT_RATE_20_MHZ@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	ldr	w26, [x20, #16]
	mov	x0, x21
	bl	_BIT
	tst	w0, w26
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _IEEE80211_HT_CAP_SGI_40@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_HT_CAP_SGI_40@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #32]
	ldr	x8, [x19, #8]
	str	w25, [x8, #16]
Lloh12:
	adrp	x8, _MAX_BIT_RATE_40_MHZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX_BIT_RATE_40_MHZ@GOTPAGEOFF]
Lloh14:
	ldr	w24, [x8]
LBB0_2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _IEEE80211_HT_CAP_MAX_AMSDU@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_HT_CAP_MAX_AMSDU@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
LBB0_4:
Lloh18:
	adrp	x8, _CFG_HT_RX_AMPDU_FACTOR_DEF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CFG_HT_RX_AMPDU_FACTOR_DEF@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _CFG_HT_MPDU_DENSITY_DEF@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CFG_HT_MPDU_DENSITY_DEF@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	ldr	x8, [x19, #8]
	mov	w9, #255
	str	w9, [x8]
	cmp	w23, #2
	b.lt	LBB0_7
; %bb.5:
	str	w9, [x8, #4]
	b.eq	LBB0_7
; %bb.6:
	mov	w9, #255
	str	w9, [x8, #8]
LBB0_7:
	mul	w20, w24, w23
Lloh24:
	adrp	x8, _IEEE80211_HT_MCS_RX_HIGHEST_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IEEE80211_HT_MCS_RX_HIGHEST_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	bic	w0, w20, w8
	bl	_WARN_ON
	mov	x0, x20
	bl	_cpu_to_le16
Lloh27:
	adrp	x8, _IEEE80211_HT_MCS_TX_DEFINED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IEEE80211_HT_MCS_TX_DEFINED@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #16]
	cmp	w22, w23
	b.eq	LBB0_9
; %bb.8:
Lloh30:
	adrp	x9, _IEEE80211_HT_MCS_TX_RX_DIFF@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IEEE80211_HT_MCS_TX_RX_DIFF@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
	sub	w9, w22, #1
Lloh33:
	adrp	x10, _IEEE80211_HT_MCS_TX_MAX_STREAMS_SHIFT@GOTPAGE
Lloh34:
	ldr	x10, [x10, _IEEE80211_HT_MCS_TX_MAX_STREAMS_SHIFT@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_9:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ; @IEEE80211_HT_CAP_SGI_20
	.comm	_MAX_BIT_RATE_20_MHZ,4,2        ; @MAX_BIT_RATE_20_MHZ
	.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	_MAX_BIT_RATE_40_MHZ,4,2        ; @MAX_BIT_RATE_40_MHZ
	.comm	_IEEE80211_HT_CAP_MAX_AMSDU,4,2 ; @IEEE80211_HT_CAP_MAX_AMSDU
	.comm	_CFG_HT_RX_AMPDU_FACTOR_DEF,4,2 ; @CFG_HT_RX_AMPDU_FACTOR_DEF
	.comm	_CFG_HT_MPDU_DENSITY_DEF,4,2    ; @CFG_HT_MPDU_DENSITY_DEF
	.comm	_IEEE80211_HT_MCS_RX_HIGHEST_MASK,4,2 ; @IEEE80211_HT_MCS_RX_HIGHEST_MASK
	.comm	_IEEE80211_HT_MCS_TX_DEFINED,4,2 ; @IEEE80211_HT_MCS_TX_DEFINED
	.comm	_IEEE80211_HT_MCS_TX_RX_DIFF,4,2 ; @IEEE80211_HT_MCS_TX_RX_DIFF
	.comm	_IEEE80211_HT_MCS_TX_MAX_STREAMS_SHIFT,4,2 ; @IEEE80211_HT_MCS_TX_MAX_STREAMS_SHIFT
	.no_dead_strip	_il_init_ht_hw_capab
.subsections_via_symbols
