	.file	"extr_rc80211_minstrel.c_minstrel_get_tp_avg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	minstrel_get_tp_avg
	.type	minstrel_get_tp_avg, @function
minstrel_get_tp_avg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	ecx, 1000000
	mov	r12d, esi
	mov	esi, 100
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, DWORD PTR [rdi]
	mov	ebp, DWORD PTR 4[rdi]
	mov	edi, 10
	test	ebx, ebx
	cmove	ebx, ecx
	call	MINSTREL_FRAC@PLT
	cmp	ebp, eax
	jge	.L8
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, 100
	mov	edi, 90
	call	MINSTREL_FRAC@PLT
	cmp	eax, r12d
	jge	.L4
	mov	esi, 100
	mov	edi, 90
	call	MINSTREL_FRAC@PLT
.L6:
	cdq
	idiv	ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	imul	edi, eax, 100000
	jmp	MINSTREL_TRUNC@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, r12d
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	minstrel_get_tp_avg, .-minstrel_get_tp_avg
	.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_rc80211_minstrel.c_minstrel_get_tp_avg.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.global	minstrel_get_tp_avg
	.syntax unified
	.arm
	.fpu softvfp
	.type	minstrel_get_tp_avg, %function
minstrel_get_tp_avg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, lr}
	ldr	r4, [r0]
	ldr	ip, .L9
	cmp	r4, #0
	mov	r5, r1
	mov	r0, #10
	mov	r1, #100
	moveq	r4, ip
	ldr	r6, [r3, #4]
	bl	MINSTREL_FRAC
	cmp	r6, r0
	bge	.L8
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	mov	r1, #100
	mov	r0, #90
	bl	MINSTREL_FRAC
	cmp	r0, r5
	movge	r1, r4
	movge	r0, r5
	bge	.L6
	mov	r1, #100
	mov	r0, #90
	bl	MINSTREL_FRAC
	mov	r1, r4
.L6:
	bl	__aeabi_idiv
	pop	{r4, r5, r6, lr}
	ldr	r3, .L9+4
	mul	r0, r3, r0
	b	MINSTREL_TRUNC
.L10:
	.align	2
.L9:
	.word	1000000
	.word	100000
	.size	minstrel_get_tp_avg, .-minstrel_get_tp_avg
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
