	.file	"extr_base.c__rtl_init_hw_ht_capab.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Support phy mode switch\n"
.LC1:
	.string	"1T2R or 2T2R\n"
.LC2:
	.string	"1T1R\n"
	.text
	.p2align 4
	.type	_rtl_init_hw_ht_capab, @function
_rtl_init_hw_ht_capab:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	rtl_priv@PLT
	mov	edx, DWORD PTR IEEE80211_HT_CAP_MAX_AMSDU[rip]
	mov	DWORD PTR [rbx], 1
	mov	rbp, rax
	mov	eax, DWORD PTR IEEE80211_HT_CAP_SUP_WIDTH_20_40[rip]
	or	eax, DWORD PTR IEEE80211_HT_CAP_SGI_40[rip]
	or	eax, DWORD PTR IEEE80211_HT_CAP_SGI_20[rip]
	or	eax, DWORD PTR IEEE80211_HT_CAP_DSSSCCK40[rip]
	mov	ecx, eax
	or	ecx, edx
	cmp	QWORD PTR 8[rbp], 0
	mov	DWORD PTR 4[rbx], ecx
	je	.L2
	not	edx
	and	eax, edx
	mov	DWORD PTR 4[rbx], eax
.L2:
	mov	eax, DWORD PTR IEEE80211_HT_MAX_AMPDU_64K[rip]
	cmp	QWORD PTR 0[rbp], 0
	mov	DWORD PTR 36[rbx], eax
	mov	eax, DWORD PTR IEEE80211_HT_MPDU_DENSITY_16[rip]
	mov	DWORD PTR 32[rbx], eax
	mov	eax, DWORD PTR IEEE80211_HT_MCS_TX_DEFINED[rip]
	mov	DWORD PTR 24[rbx], eax
	je	.L3
	lea	rdi, .LC0[rip]
	call	pr_info@PLT
	mov	rax, QWORD PTR 8[rbx]
	movabs	rsi, 1095216660735
	mov	QWORD PTR [rax], rsi
	mov	DWORD PTR 16[rax], 1
	mov	edi, DWORD PTR MAX_BIT_RATE_40MHZ_MCS15[rip]
	call	cpu_to_le16@PLT
	mov	QWORD PTR 16[rbx], rax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	r12, 16[rbp]
	mov	rdi, r12
	call	get_rf_type@PLT
	cmp	rax, QWORD PTR RF_1T2R[rip]
	je	.L6
	mov	rdi, r12
	call	get_rf_type@PLT
	cmp	rax, QWORD PTR RF_2T2R[rip]
	jne	.L9
.L6:
	mov	edx, DWORD PTR DBG_DMESG[rip]
	mov	esi, DWORD PTR COMP_INIT[rip]
	mov	rdi, rbp
	lea	rcx, .LC1[rip]
	call	RT_TRACE@PLT
	mov	rax, QWORD PTR 8[rbx]
	movabs	rdx, 1095216660735
	mov	QWORD PTR [rax], rdx
	mov	DWORD PTR 16[rax], 1
	mov	edi, DWORD PTR MAX_BIT_RATE_40MHZ_MCS15[rip]
	call	cpu_to_le16@PLT
	mov	QWORD PTR 16[rbx], rax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, r12
	call	get_rf_type@PLT
	cmp	rax, QWORD PTR RF_1T1R[rip]
	jne	.L1
	mov	edx, DWORD PTR DBG_DMESG[rip]
	mov	esi, DWORD PTR COMP_INIT[rip]
	lea	rcx, .LC2[rip]
	mov	rdi, rbp
	call	RT_TRACE@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR [rax], 255
	mov	edi, DWORD PTR MAX_BIT_RATE_40MHZ_MCS7[rip]
	mov	DWORD PTR 16[rax], 1
	call	cpu_to_le16@PLT
	mov	QWORD PTR 16[rbx], rax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	_rtl_init_hw_ht_capab, .-_rtl_init_hw_ht_capab
	.comm	RF_2T2R,8,8
	.comm	RF_1T2R,8,8
	.comm	RF_1T1R,8,8
	.comm	MAX_BIT_RATE_40MHZ_MCS7,4,4
	.comm	MAX_BIT_RATE_40MHZ_MCS15,4,4
	.comm	IEEE80211_HT_MPDU_DENSITY_16,4,4
	.comm	IEEE80211_HT_MCS_TX_DEFINED,4,4
	.comm	IEEE80211_HT_MAX_AMPDU_64K,4,4
	.comm	IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,4
	.comm	IEEE80211_HT_CAP_SGI_40,4,4
	.comm	IEEE80211_HT_CAP_SGI_20,4,4
	.comm	IEEE80211_HT_CAP_MAX_AMSDU,4,4
	.comm	IEEE80211_HT_CAP_DSSSCCK40,4,4
	.comm	DBG_DMESG,4,4
	.comm	COMP_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_base.c__rtl_init_hw_ht_capab.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Support phy mode switch\012\000"
	.align	2
.LC1:
	.ascii	"1T2R or 2T2R\012\000"
	.align	2
.LC2:
	.ascii	"1T1R\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rtl_init_hw_ht_capab, %function
_rtl_init_hw_ht_capab:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	bl	rtl_priv
	mov	r5, r0
	mov	r1, #1
	ldr	r3, .L14
	ldr	r0, .L14+4
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	r2, .L14+8
	orr	r3, r3, r0
	ldr	r0, .L14+12
	ldr	r2, [r2]
	ldr	r0, [r0]
	orr	r3, r3, r2
	ldr	r2, .L14+16
	orr	r3, r3, r0
	ldr	r0, [r5, #4]
	ldr	r2, [r2]
	cmp	r0, #0
	str	r1, [r4]
	orr	r1, r3, r2
	bicne	r3, r3, r2
	str	r1, [r4, #4]
	ldr	r2, .L14+20
	strne	r3, [r4, #4]
	ldr	r1, .L14+24
	ldr	r3, .L14+28
	ldr	r6, [r5]
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r6, #0
	str	r1, [r4, #24]
	str	r2, [r4, #20]
	str	r3, [r4, #16]
	beq	.L3
	ldr	r0, .L14+32
	bl	pr_info
.L11:
	mov	r2, #255
	mov	r0, #1
	ldr	r3, [r4, #8]
	ldr	r1, .L14+36
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r0, [r3, #16]
	ldr	r0, [r1]
	bl	cpu_to_le16
	str	r0, [r4, #12]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	add	r7, r5, #8
	mov	r0, r7
	bl	get_rf_type
	ldr	r3, .L14+40
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L6
	mov	r0, r7
	bl	get_rf_type
	ldr	r3, .L14+44
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L13
.L6:
	ldr	r3, .L14+48
	ldr	r2, .L14+52
	ldr	r1, [r3]
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r3, .L14+56
	bl	RT_TRACE
	b	.L11
.L13:
	mov	r0, r7
	bl	get_rf_type
	ldr	r3, .L14+60
	ldr	r3, [r3]
	cmp	r0, r3
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L14+48
	ldr	r2, .L14+52
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, .L14+64
	mov	r0, r5
	bl	RT_TRACE
	mov	r0, #255
	mov	r1, #1
	ldr	r3, [r4, #8]
	ldr	r2, .L14+68
	stm	r3, {r0, r6}
	str	r1, [r3, #16]
	ldr	r0, [r2]
	bl	cpu_to_le16
	str	r0, [r4, #12]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.word	IEEE80211_HT_CAP_SGI_40
	.word	IEEE80211_HT_CAP_SGI_20
	.word	IEEE80211_HT_CAP_DSSSCCK40
	.word	IEEE80211_HT_CAP_MAX_AMSDU
	.word	IEEE80211_HT_MPDU_DENSITY_16
	.word	IEEE80211_HT_MAX_AMPDU_64K
	.word	IEEE80211_HT_MCS_TX_DEFINED
	.word	.LC0
	.word	MAX_BIT_RATE_40MHZ_MCS15
	.word	RF_1T2R
	.word	RF_2T2R
	.word	COMP_INIT
	.word	DBG_DMESG
	.word	.LC1
	.word	RF_1T1R
	.word	.LC2
	.word	MAX_BIT_RATE_40MHZ_MCS7
	.size	_rtl_init_hw_ht_capab, .-_rtl_init_hw_ht_capab
	.comm	RF_2T2R,4,4
	.comm	RF_1T2R,4,4
	.comm	RF_1T1R,4,4
	.comm	MAX_BIT_RATE_40MHZ_MCS7,4,4
	.comm	MAX_BIT_RATE_40MHZ_MCS15,4,4
	.comm	IEEE80211_HT_MPDU_DENSITY_16,4,4
	.comm	IEEE80211_HT_MCS_TX_DEFINED,4,4
	.comm	IEEE80211_HT_MAX_AMPDU_64K,4,4
	.comm	IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,4
	.comm	IEEE80211_HT_CAP_SGI_40,4,4
	.comm	IEEE80211_HT_CAP_SGI_20,4,4
	.comm	IEEE80211_HT_CAP_MAX_AMSDU,4,4
	.comm	IEEE80211_HT_CAP_DSSSCCK40,4,4
	.comm	DBG_DMESG,4,4
	.comm	COMP_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
