	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_init_ht_cap
_rtw_init_ht_cap:                       ## @rtw_init_ht_cap
	.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	%rsi, %rbx
	movl	$1, (%rsi)
	movq	_IEEE80211_HT_CAP_SGI_20@GOTPCREL(%rip), %rax
	movq	_IEEE80211_HT_CAP_MAX_AMSDU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IEEE80211_HT_CAP_LDPC_CODING@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%rdi, %r14
	movq	_IEEE80211_HT_CAP_RX_STBC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %ecx
	movl	%ecx, 4(%rsi)
	movl	(%rdi), %r15d
	movq	_RTW_CHANNEL_WIDTH_40@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_2
## %bb.1:
	movq	_IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPCREL(%rip), %rax
	movq	_IEEE80211_HT_CAP_DSSSCCK40@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IEEE80211_HT_CAP_SGI_40@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	%ecx, 4(%rbx)
LBB0_2:
	movq	_IEEE80211_HT_MAX_AMPDU_64K@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_IEEE80211_HT_MPDU_DENSITY_16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_IEEE80211_HT_MCS_TX_DEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	xorl	%eax, %eax
	cmpl	$2, 4(%r14)
	movq	8(%rbx), %rcx
	movl	$255, (%rcx)
	movl	$255, %edx
	cmovll	%eax, %edx
	movl	$300, %eax                      ## imm = 0x12C
	movl	$150, %edi
	cmovgel	%eax, %edi
	movl	%edx, 4(%rcx)
	movl	$1, 16(%rcx)
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	addq	$8, %rsp
	popq	%rbx
	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	_IEEE80211_HT_CAP_MAX_AMSDU,4,2 ## @IEEE80211_HT_CAP_MAX_AMSDU
	.comm	_IEEE80211_HT_CAP_LDPC_CODING,4,2 ## @IEEE80211_HT_CAP_LDPC_CODING
	.comm	_IEEE80211_HT_CAP_RX_STBC_SHIFT,4,2 ## @IEEE80211_HT_CAP_RX_STBC_SHIFT
	.comm	_RTW_CHANNEL_WIDTH_40,4,2       ## @RTW_CHANNEL_WIDTH_40
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ## @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_IEEE80211_HT_CAP_DSSSCCK40,4,2 ## @IEEE80211_HT_CAP_DSSSCCK40
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ## @IEEE80211_HT_CAP_SGI_40
	.comm	_IEEE80211_HT_MAX_AMPDU_64K,4,2 ## @IEEE80211_HT_MAX_AMPDU_64K
	.comm	_IEEE80211_HT_MPDU_DENSITY_16,4,2 ## @IEEE80211_HT_MPDU_DENSITY_16
	.comm	_IEEE80211_HT_MCS_TX_DEFINED,4,2 ## @IEEE80211_HT_MCS_TX_DEFINED
	.no_dead_strip	_rtw_init_ht_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_init_ht_cap
_rtw_init_ht_cap:                       ; @rtw_init_ht_cap
	.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, x1
	mov	x20, x0
	mov	w21, #1
	str	w21, [x1]
Lloh0:
	adrp	x8, _IEEE80211_HT_CAP_SGI_20@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_HT_CAP_SGI_20@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IEEE80211_HT_CAP_MAX_AMSDU@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_HT_CAP_MAX_AMSDU@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _IEEE80211_HT_CAP_LDPC_CODING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_HT_CAP_LDPC_CODING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _IEEE80211_HT_CAP_RX_STBC_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_HT_CAP_RX_STBC_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w9, w21, w9
	orr	w8, w8, w9
	str	w8, [x1, #4]
	ldr	w22, [x0]
Lloh12:
	adrp	x8, _RTW_CHANNEL_WIDTH_40@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RTW_CHANNEL_WIDTH_40@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _IEEE80211_HT_CAP_DSSSCCK40@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IEEE80211_HT_CAP_DSSSCCK40@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _IEEE80211_HT_CAP_SGI_40@GOTPAGE
Lloh22:
	ldr	x10, [x10, _IEEE80211_HT_CAP_SGI_40@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh23:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	w9, [x19, #4]
	orr	w8, w8, w9
	str	w8, [x19, #4]
LBB0_2:
Lloh24:
	adrp	x8, _IEEE80211_HT_MAX_AMPDU_64K@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IEEE80211_HT_MAX_AMPDU_64K@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _IEEE80211_HT_MPDU_DENSITY_16@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IEEE80211_HT_MPDU_DENSITY_16@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
Lloh30:
	adrp	x8, _IEEE80211_HT_MCS_TX_DEFINED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IEEE80211_HT_MCS_TX_DEFINED@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	w8, [x20, #4]
	mov	w9, #255
	cmp	w8, #1
	csel	w8, w9, wzr, gt
	mov	w10, #150
	mov	w11, #300
	csel	w0, w11, w10, gt
	ldr	x10, [x19, #8]
	stp	w9, w8, [x10]
	str	w21, [x10, #16]
	bl	_cpu_to_le16
	str	x0, [x19, #16]
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.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_CAP_LDPC_CODING,4,2 ; @IEEE80211_HT_CAP_LDPC_CODING
	.comm	_IEEE80211_HT_CAP_RX_STBC_SHIFT,4,2 ; @IEEE80211_HT_CAP_RX_STBC_SHIFT
	.comm	_RTW_CHANNEL_WIDTH_40,4,2       ; @RTW_CHANNEL_WIDTH_40
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ; @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_IEEE80211_HT_CAP_DSSSCCK40,4,2 ; @IEEE80211_HT_CAP_DSSSCCK40
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ; @IEEE80211_HT_CAP_SGI_40
	.comm	_IEEE80211_HT_MAX_AMPDU_64K,4,2 ; @IEEE80211_HT_MAX_AMPDU_64K
	.comm	_IEEE80211_HT_MPDU_DENSITY_16,4,2 ; @IEEE80211_HT_MPDU_DENSITY_16
	.comm	_IEEE80211_HT_MCS_TX_DEFINED,4,2 ; @IEEE80211_HT_MCS_TX_DEFINED
	.no_dead_strip	_rtw_init_ht_cap
.subsections_via_symbols
