	.file	"extr_rx.c_iwlagn_rx_calc_noise.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"inband silence a %u, b %u, c %u, dBm %d\n"
	.text
	.p2align 4
	.type	iwlagn_rx_calc_noise, @function
iwlagn_rx_calc_noise:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	edi, DWORD PTR 8[rdi]
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 4[rbp]
	and	eax, DWORD PTR IN_BAND_FILTER[rip]
	mov	r12d, eax
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 0[rbp]
	and	eax, DWORD PTR IN_BAND_FILTER[rip]
	mov	r13d, eax
	call	le32_to_cpu@PLT
	and	eax, DWORD PTR IN_BAND_FILTER[rip]
	mov	r8d, eax
	test	r12d, r12d
	jne	.L2
	test	r13d, r13d
	je	.L18
	mov	eax, r13d
	mov	ecx, 1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	test	r13d, r13d
	je	.L6
	lea	eax, [r12+r13]
	mov	ecx, 2
.L3:
	test	r8d, r8d
	je	.L16
	add	eax, r8d
	add	ecx, 1
.L16:
	cdq
	idiv	ecx
.L7:
	lea	r9d, -107[rax]
.L9:
	mov	ecx, r13d
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	IWL_DEBUG_CALIB@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	eax, r12d
	test	r8d, r8d
	je	.L7
	lea	r9d, [r12+r8]
	mov	eax, r9d
	shr	eax, 31
	add	eax, r9d
	sar	eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	test	eax, eax
	jne	.L7
	mov	r9d, DWORD PTR IWL_NOISE_MEAS_NOT_AVAILABLE[rip]
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	iwlagn_rx_calc_noise, .-iwlagn_rx_calc_noise
	.comm	IWL_NOISE_MEAS_NOT_AVAILABLE,4,4
	.comm	IN_BAND_FILTER,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_rx.c_iwlagn_rx_calc_noise.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"inband silence a %u, b %u, c %u, dBm %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iwlagn_rx_calc_noise, %function
iwlagn_rx_calc_noise:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	sub	sp, sp, #8
	ldr	r0, [r0, #8]
	bl	le32_to_cpu
	mov	r5, r0
	ldr	r8, .L19
	ldr	r0, [r4, #4]
	ldr	r2, [r8]
	and	r5, r5, r2
	bl	le32_to_cpu
	mov	r6, r0
	ldr	r3, [r8]
	ldr	r0, [r4]
	and	r6, r6, r3
	bl	le32_to_cpu
	ldr	r3, [r8]
	cmp	r5, #0
	and	r7, r0, r3
	bne	.L2
	cmp	r6, #0
	beq	.L17
	mov	r0, r6
	mov	r1, #1
.L3:
	cmp	r7, #0
	addne	r1, r1, #1
	addne	r0, r7, r0
	bl	__aeabi_idiv
.L7:
	sub	r0, r0, #107
.L9:
	str	r0, [sp, #4]
	mov	r3, r6
	mov	r2, r5
	mov	r0, r4
	ldr	r1, .L19+4
	str	r7, [sp]
	bl	IWL_DEBUG_CALIB
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	cmp	r6, #0
	movne	r1, #2
	addne	r0, r5, r6
	bne	.L3
	cmp	r7, #0
	moveq	r0, r5
	addne	r0, r5, r7
	addne	r0, r0, r0, lsr #31
	asrne	r0, r0, #1
	b	.L7
.L17:
	cmp	r7, #0
	movne	r0, r7
	bne	.L7
.L18:
	ldr	r3, .L19+8
	ldr	r0, [r3]
	b	.L9
.L20:
	.align	2
.L19:
	.word	IN_BAND_FILTER
	.word	.LC0
	.word	IWL_NOISE_MEAS_NOT_AVAILABLE
	.size	iwlagn_rx_calc_noise, .-iwlagn_rx_calc_noise
	.comm	IWL_NOISE_MEAS_NOT_AVAILABLE,4,4
	.comm	IN_BAND_FILTER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
