	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl_init_hw_ht_capab
__rtl_init_hw_ht_capab:                 ## @_rtl_init_hw_ht_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_rtl_priv
	movq	%rax, %r15
	movq	%rax, %r14
	movl	$1, (%rbx)
	movq	_IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPCREL(%rip), %rcx
	movq	_IEEE80211_HT_CAP_SGI_40@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_IEEE80211_HT_CAP_SGI_20@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IEEE80211_HT_CAP_DSSSCCK40@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IEEE80211_HT_CAP_MAX_AMSDU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edx
	orl	%ecx, %edx
	movl	%edx, 4(%rbx)
	cmpq	$0, 8(%r15)
	je	LBB0_2
## %bb.1:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 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)
	cmpq	$0, (%r14)
	je	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	jmp	LBB0_4
LBB0_5:
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_get_rf_type
	movq	_RF_1T2R@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_get_rf_type
	movq	_RF_2T2R@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_7:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
LBB0_4:
	movq	_MAX_BIT_RATE_40MHZ_MCS15@GOTPCREL(%rip), %rax
	movl	$255, %ecx
LBB0_10:
	movq	8(%rbx), %rdx
	movl	$255, (%rdx)
	movl	%ecx, 4(%rdx)
	movl	$1, 16(%rdx)
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	callq	_get_rf_type
	movq	_RF_1T1R@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	_MAX_BIT_RATE_40MHZ_MCS7@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.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_DSSSCCK40,4,2 ## @IEEE80211_HT_CAP_DSSSCCK40
	.comm	_IEEE80211_HT_CAP_MAX_AMSDU,4,2 ## @IEEE80211_HT_CAP_MAX_AMSDU
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Support phy mode switch\n"

	.comm	_MAX_BIT_RATE_40MHZ_MCS15,4,2   ## @MAX_BIT_RATE_40MHZ_MCS15
	.comm	_RF_1T2R,8,3                    ## @RF_1T2R
	.comm	_RF_2T2R,8,3                    ## @RF_2T2R
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
L_.str.1:                               ## @.str.1
	.asciz	"1T2R or 2T2R\n"

	.comm	_RF_1T1R,8,3                    ## @RF_1T1R
L_.str.2:                               ## @.str.2
	.asciz	"1T1R\n"

	.comm	_MAX_BIT_RATE_40MHZ_MCS7,4,2    ## @MAX_BIT_RATE_40MHZ_MCS7
	.no_dead_strip	__rtl_init_hw_ht_capab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl_init_hw_ht_capab
__rtl_init_hw_ht_capab:                 ; @_rtl_init_hw_ht_capab
	.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
	bl	_rtl_priv
	mov	x20, x0
	mov	w8, #1
	str	w8, [x19]
Lloh0:
	adrp	x8, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IEEE80211_HT_CAP_SGI_40@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_HT_CAP_SGI_40@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _IEEE80211_HT_CAP_SGI_20@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_HT_CAP_SGI_20@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _IEEE80211_HT_CAP_DSSSCCK40@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_HT_CAP_DSSSCCK40@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _IEEE80211_HT_CAP_MAX_AMSDU@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_HT_CAP_MAX_AMSDU@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w10, w8, w9
	str	w10, [x19, #4]
	ldr	x10, [x0, #8]
	cbz	x10, LBB0_2
; %bb.1:
	bic	w8, w8, w9
	str	w8, [x19, #4]
LBB0_2:
Lloh15:
	adrp	x8, _IEEE80211_HT_MAX_AMPDU_64K@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_HT_MAX_AMPDU_64K@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _IEEE80211_HT_MPDU_DENSITY_16@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IEEE80211_HT_MPDU_DENSITY_16@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
Lloh21:
	adrp	x8, _IEEE80211_HT_MCS_TX_DEFINED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IEEE80211_HT_MCS_TX_DEFINED@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	b	LBB0_7
LBB0_4:
	add	x21, x20, #16
	mov	x0, x21
	bl	_get_rf_type
Lloh26:
	adrp	x8, _RF_1T2R@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RF_1T2R@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_get_rf_type
Lloh29:
	adrp	x8, _RF_2T2R@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RF_2T2R@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
LBB0_6:
Lloh32:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x3, l_.str.1@PAGE
Lloh39:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
LBB0_7:
Lloh40:
	adrp	x8, _MAX_BIT_RATE_40MHZ_MCS15@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MAX_BIT_RATE_40MHZ_MCS15@GOTPAGEOFF]
	mov	w9, #255
LBB0_8:
	ldr	x10, [x19, #8]
	mov	w11, #255
	stp	w11, w9, [x10]
	mov	w9, #1
	str	w9, [x10, #16]
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19, #16]
LBB0_9:
	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
LBB0_10:
	mov	x0, x21
	bl	_get_rf_type
Lloh42:
	adrp	x8, _RF_1T1R@GOTPAGE
Lloh43:
	ldr	x8, [x8, _RF_1T1R@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.11:
Lloh45:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh49:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
Lloh51:
	adrp	x3, l_.str.2@PAGE
Lloh52:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	w9, #0
Lloh53:
	adrp	x8, _MAX_BIT_RATE_40MHZ_MCS7@GOTPAGE
Lloh54:
	ldr	x8, [x8, _MAX_BIT_RATE_40MHZ_MCS7@GOTPAGEOFF]
	b	LBB0_8
	.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 AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.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_DSSSCCK40,4,2 ; @IEEE80211_HT_CAP_DSSSCCK40
	.comm	_IEEE80211_HT_CAP_MAX_AMSDU,4,2 ; @IEEE80211_HT_CAP_MAX_AMSDU
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Support phy mode switch\n"

	.comm	_MAX_BIT_RATE_40MHZ_MCS15,4,2   ; @MAX_BIT_RATE_40MHZ_MCS15
	.comm	_RF_1T2R,8,3                    ; @RF_1T2R
	.comm	_RF_2T2R,8,3                    ; @RF_2T2R
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
l_.str.1:                               ; @.str.1
	.asciz	"1T2R or 2T2R\n"

	.comm	_RF_1T1R,8,3                    ; @RF_1T1R
l_.str.2:                               ; @.str.2
	.asciz	"1T1R\n"

	.comm	_MAX_BIT_RATE_40MHZ_MCS7,4,2    ; @MAX_BIT_RATE_40MHZ_MCS7
	.no_dead_strip	__rtl_init_hw_ht_capab
.subsections_via_symbols
