	.file	"extr_xmit.c_b43legacy_rssi_postprocess.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	b43legacy_rssi_postprocess, @function
b43legacy_rssi_postprocess:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR 8[rdi]
	cmp	eax, 8272
	je	.L2
	cmp	eax, 8288
	je	.L3
	lea	eax, -11[rsi]
	imul	esi, eax, 103
	test	esi, esi
	lea	eax, 63[rsi]
	cmovns	eax, esi
	sar	eax, 6
	lea	esi, -109[rax]
	sub	eax, 83
	test	ecx, ecx
	cmovne	eax, esi
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	test	edx, edx
	jne	.L20
	mov	rax, QWORD PTR [rdi]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR B43legacy_BFL_RSSI[rip], eax
	je	.L9
	cmp	esi, 63
	mov	eax, 63
	mov	rdx, QWORD PTR 16[rdi]
	cmovg	esi, eax
	mov	eax, 31
	movsx	rsi, esi
	sub	eax, DWORD PTR [rdx+rsi*4]
	imul	edx, eax, -131
	test	edx, edx
	lea	eax, 127[rdx]
	cmovns	eax, edx
	sar	eax, 7
	sub	eax, 57
.L10:
	mov	ecx, DWORD PTR B43legacy_PHYTYPE_G[rip]
	cmp	DWORD PTR 24[rdi], ecx
	jne	.L1
	test	r8d, r8d
	lea	edx, 25[rax]
	setne	cl
	test	cl, cl
	cmovne	eax, edx
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	lea	edx, -256[rsi]
	cmp	esi, 127
	mov	eax, esi
	cmovg	eax, edx
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	lea	eax, -256[rsi]
	cmp	esi, 127
	cmovg	esi, eax
	lea	eax, [rsi+rsi*8]
	lea	edx, [rsi+rax*8]
	test	edx, edx
	lea	eax, 63[rdx]
	cmovns	eax, edx
	sar	eax, 6
	lea	esi, 25[rax]
	sub	eax, 3
	test	r8d, r8d
	cmovne	eax, esi
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, 31
	sub	eax, esi
	imul	edx, eax, -149
	test	edx, edx
	lea	eax, 127[rdx]
	cmovns	eax, edx
	sar	eax, 7
	sub	eax, 68
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	b43legacy_rssi_postprocess, .-b43legacy_rssi_postprocess
	.comm	B43legacy_PHYTYPE_G,4,4
	.comm	B43legacy_BFL_RSSI,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_xmit.c_b43legacy_rssi_postprocess.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b43legacy_rssi_postprocess, %function
b43legacy_rssi_postprocess:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	lr, [r0, #4]
	ldr	r4, .L20
	cmp	lr, r4
	beq	.L2
	ldr	r2, .L20+4
	cmp	lr, r2
	beq	.L3
	sub	r1, r1, #11
	add	r0, r1, r1, lsl #1
	add	r0, r0, r0, lsl #4
	add	r1, r1, r0, lsl #1
	add	r0, r1, #63
	cmp	r1, #0
	movlt	r1, r0
	cmp	r3, #0
	asr	r1, r1, #6
	subne	r0, r1, #109
	subeq	r0, r1, #83
	pop	{r4, pc}
.L2:
	cmp	r2, #0
	bne	.L19
	ldr	r2, [r0]
	ldr	r3, .L20+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	ip, r0
	tst	r2, r3
	beq	.L9
	cmp	r1, #63
	movge	r1, #63
	ldr	r3, [r0, #8]
	ldr	r3, [r3, r1, lsl #2]
	rsb	r3, r3, #31
	rsb	r0, r3, r3, lsl #25
	rsb	r0, r3, r0, lsl #5
	add	r3, r3, r0, lsl #2
	add	r1, r3, #127
	cmp	r3, #0
	movlt	r3, r1
	asr	r1, r3, #7
	sub	r0, r1, #57
.L10:
	ldr	r2, .L20+12
	ldr	r3, [ip, #12]
	ldr	r2, [r2]
	ldr	r1, [sp, #8]
	sub	r3, r3, r2
	clz	r3, r3
	cmp	r1, #0
	lsr	r3, r3, #5
	moveq	r3, #0
	cmp	r3, #0
	addne	r0, r0, #25
	pop	{r4, pc}
.L3:
	cmp	r1, #127
	ble	.L12
	sub	r0, r1, #256
	pop	{r4, pc}
.L12:
	mov	r0, r1
	pop	{r4, pc}
.L19:
	cmp	r1, #127
	subgt	r1, r1, #256
	add	r0, r1, r1, lsl #3
	add	r1, r1, r0, lsl #3
	add	r0, r1, #63
	cmp	r1, #0
	movlt	r1, r0
	ldr	r3, [sp, #8]
	asr	r1, r1, #6
	cmp	r3, #0
	addne	r0, r1, #25
	subeq	r0, r1, #3
	pop	{r4, pc}
.L9:
	mvn	r0, #148
	rsb	r1, r1, #31
	mul	r1, r0, r1
	add	r0, r1, #127
	cmp	r1, #0
	movlt	r1, r0
	asr	r1, r1, #7
	sub	r0, r1, #68
	b	.L10
.L21:
	.align	2
.L20:
	.word	8272
	.word	8288
	.word	B43legacy_BFL_RSSI
	.word	B43legacy_PHYTYPE_G
	.size	b43legacy_rssi_postprocess, .-b43legacy_rssi_postprocess
	.comm	B43legacy_PHYTYPE_G,4,4
	.comm	B43legacy_BFL_RSSI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
