	.file	"extr_phy.c_rtw_phy_rf_power_2_rssi.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rtw_phy_rf_power_2_rssi
	.type	rtw_phy_rf_power_2_rssi, @function
rtw_phy_rf_power_2_rssi:
.LFB0:
	.cfi_startproc
	endbr64
	test	rsi, rsi
	je	.L2
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, [rdi+rsi*4]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR [rbx]
	add	rbx, 4
	call	rtw_phy_power_2_db@PLT
	mov	rdi, rax
	call	rtw_phy_db_2_linear@PLT
	add	ebp, eax
	cmp	rbx, r13
	jne	.L3
	mov	eax, DWORD PTR FRAC_BITS[rip]
	mov	edi, 1
	lea	ecx, -1[rax]
	sal	edi, cl
	mov	ecx, eax
	add	edi, ebp
	sar	edi, cl
	cmp	r12, 3
	je	.L4
	cmp	r12, 4
	je	.L5
	mov	eax, edi
	sar	eax
	cmp	r12, 2
	cmove	edi, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	rtw_phy_linear_2_db@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	lea	eax, [rdi+rdi*2]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	edi, [rax+rdi*8]
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	sar	edi, 5
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	rtw_phy_linear_2_db@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	sar	edi, 2
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	rtw_phy_linear_2_db@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR FRAC_BITS[rip]
	mov	edi, 1
	lea	ecx, -1[rax]
	sal	edi, cl
	mov	ecx, eax
	sar	edi, cl
	jmp	rtw_phy_linear_2_db@PLT
	.cfi_endproc
.LFE0:
	.size	rtw_phy_rf_power_2_rssi, .-rtw_phy_rf_power_2_rssi
	.comm	FRAC_BITS,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_phy.c_rtw_phy_rf_power_2_rssi.c"
	.text
	.align	2
	.global	rtw_phy_rf_power_2_rssi
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtw_phy_rf_power_2_rssi, %function
rtw_phy_rf_power_2_rssi:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r6, r1, #0
	beq	.L2
	mov	r5, #0
	sub	r4, r0, #4
	add	r7, r4, r6, lsl #2
.L3:
	ldr	r0, [r4, #4]!
	bl	rtw_phy_power_2_db
	bl	rtw_phy_db_2_linear
	cmp	r4, r7
	add	r5, r5, r0
	bne	.L3
	mov	r2, #1
	ldr	r3, .L10
	cmp	r6, #3
	ldr	r0, [r3]
	sub	r3, r0, #1
	add	r5, r5, r2, lsl r3
	asr	r0, r5, r0
	beq	.L4
	cmp	r6, #4
	asreq	r0, r0, #2
	beq	.L6
	cmp	r6, #2
	asreq	r0, r0, r2
.L6:
	pop	{r4, r5, r6, r7, r8, lr}
	b	rtw_phy_linear_2_db
.L4:
	add	r3, r0, r0, lsl #1
	add	r0, r3, r0, lsl #3
	asr	r0, r0, #5
	pop	{r4, r5, r6, r7, r8, lr}
	b	rtw_phy_linear_2_db
.L2:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L10
	ldr	r3, [r3]
	sub	r2, r3, #1
	lsl	r0, r0, r2
	asr	r0, r0, r3
	b	rtw_phy_linear_2_db
.L11:
	.align	2
.L10:
	.word	FRAC_BITS
	.size	rtw_phy_rf_power_2_rssi, .-rtw_phy_rf_power_2_rssi
	.comm	FRAC_BITS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
