	.file	"extr_rs.c_rs_ht_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rs_ht_init, @function
rs_ht_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rsi, QWORD PTR 8[rcx]
	mov	ecx, DWORD PTR IWL_FIRST_OFDM_RATE[rip]
	mov	eax, DWORD PTR [rsi]
	lea	edx, [rax+rax]
	mov	DWORD PTR [rbx], edx
	mov	eax, DWORD PTR [rsi]
	and	eax, 1
	or	eax, edx
	and	eax, -3
	sal	eax, cl
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR 4[rsi]
	lea	edx, [rax+rax]
	mov	DWORD PTR 4[rbx], edx
	mov	eax, DWORD PTR 4[rsi]
	and	eax, 1
	or	eax, edx
	and	eax, -3
	sal	eax, cl
	mov	DWORD PTR 4[rbx], eax
	mov	rax, QWORD PTR [rdi]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR 8[rax], 0
	je	.L2
	mov	edx, DWORD PTR 0[rbp]
	test	DWORD PTR IEEE80211_HT_CAP_LDPC_CODING[rip], edx
	jne	.L14
.L2:
	cmp	QWORD PTR [rax], 0
	jne	.L15
.L4:
	mov	DWORD PTR 16[rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	cmp	QWORD PTR [rax], 0
	mov	DWORD PTR 8[rbx], 1
	je	.L4
.L15:
	call	iwl_mvm_get_valid_tx_ant@PLT
	mov	edi, eax
	call	num_of_ant@PLT
	cmp	eax, 1
	jle	.L4
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR IEEE80211_HT_CAP_RX_STBC[rip], eax
	je	.L4
	mov	DWORD PTR 12[rbx], 1
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	rs_ht_init, .-rs_ht_init
	.comm	IWL_FIRST_OFDM_RATE,4,4
	.comm	IEEE80211_HT_CAP_RX_STBC,4,4
	.comm	IEEE80211_HT_CAP_LDPC_CODING,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_rs.c_rs_ht_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rs_ht_init, %function
rs_ht_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	ldr	lr, [r3, #4]
	mov	r5, r3
	ldr	ip, [lr]
	ldr	r3, .L18
	ldr	r2, [r3]
	lsl	r3, ip, #1
	str	r3, [r4]
	ldr	ip, [lr]
	and	ip, ip, #1
	orr	ip, ip, r3
	bic	ip, ip, #2
	lsl	ip, ip, r2
	str	ip, [r4]
	ldr	r1, [lr, #4]
	ldr	ip, [r0]
	lsl	r3, r1, #1
	str	r3, [r4, #4]
	ldr	r1, [lr, #4]
	ldr	ip, [ip]
	and	r1, r1, #1
	orr	r1, r1, r3
	ldr	r3, [ip, #4]
	bic	r1, r1, #2
	lsl	r1, r1, r2
	cmp	r3, #0
	str	r1, [r4, #4]
	beq	.L2
	ldr	r3, .L18+4
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	movne	r3, #1
	strne	r3, [r4, #8]
.L2:
	ldr	r3, [ip]
	cmp	r3, #0
	bne	.L17
.L4:
	mov	r3, #0
	str	r3, [r4, #16]
	pop	{r4, r5, r6, pc}
.L17:
	bl	iwl_mvm_get_valid_tx_ant
	bl	num_of_ant
	cmp	r0, #1
	ble	.L4
	ldr	r3, .L18+8
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	movne	r3, #1
	strne	r3, [r4, #12]
	b	.L4
.L19:
	.align	2
.L18:
	.word	IWL_FIRST_OFDM_RATE
	.word	IEEE80211_HT_CAP_LDPC_CODING
	.word	IEEE80211_HT_CAP_RX_STBC
	.size	rs_ht_init, .-rs_ht_init
	.comm	IWL_FIRST_OFDM_RATE,4,4
	.comm	IEEE80211_HT_CAP_RX_STBC,4,4
	.comm	IEEE80211_HT_CAP_LDPC_CODING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
