	.file	"extr_rc80211_pid_algo.c_rate_control_pid_normalize.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rate_control_pid_normalize, @function
rate_control_pid_normalize:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, QWORD PTR 8[rdi]
	mov	r8d, DWORD PTR [rdi]
	mov	eax, DWORD PTR [rdx]
	cmp	eax, r8d
	jle	.L2
	sub	eax, r8d
	mov	DWORD PTR [rdx], eax
.L3:
	cmp	esi, 1
	jle	.L1
	lea	ecx, -2[rsi]
	lea	rax, 4[rdx]
	lea	rdi, 8[rdx+rcx*4]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	sub	edx, r8d
	mov	DWORD PTR [rax], edx
.L6:
	add	rax, 4
	cmp	rdi, rax
	je	.L1
.L7:
	mov	ecx, DWORD PTR -4[rax]
	mov	edx, DWORD PTR [rax]
	lea	esi, [rcx+r8]
	cmp	edx, esi
	jg	.L10
	cmp	edx, ecx
	jg	.L6
	add	edx, r8d
	add	rax, 4
	mov	DWORD PTR -4[rax], edx
	cmp	rdi, rax
	jne	.L7
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	ecx, r8d
	neg	ecx
	cmp	eax, ecx
	jge	.L3
	add	eax, r8d
	mov	DWORD PTR [rdx], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	rate_control_pid_normalize, .-rate_control_pid_normalize
	.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_pid_algo.c_rate_control_pid_normalize.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rate_control_pid_normalize, %function
rate_control_pid_normalize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldm	r0, {r0, r3}
	ldr	r2, [r3]
	cmp	r2, r0
	subgt	r2, r2, r0
	strgt	r2, [r3]
	bgt	.L3
	rsb	ip, r0, #0
	cmp	r2, ip
	addlt	r2, r2, r0
	strlt	r2, [r3]
.L3:
	cmp	r1, #1
	bxle	lr
	add	r1, r3, r1, lsl #2
	push	{r4, lr}
	sub	lr, r1, #4
.L7:
	ldr	r2, [r3, #4]
	ldr	r1, [r3], #4
	sub	r4, r2, r0
	add	ip, r1, r0
	cmp	r2, ip
	strgt	r4, [r3]
	bgt	.L6
	cmp	r2, r1
	addle	r2, r2, r0
	strle	r2, [r3]
.L6:
	cmp	lr, r3
	bne	.L7
	pop	{r4, pc}
	.size	rate_control_pid_normalize, .-rate_control_pid_normalize
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
