	.file	"extr_ar5212_reset.c_ar5212GetLowerUpperValues.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ar5212GetLowerUpperValues
	.type	ar5212GetLowerUpperValues, @function
ar5212GetLowerUpperValues:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	ecx, DWORD PTR EEP_SCALE[rip]
	mov	edi, DWORD PTR [rsi]
	mov	esi, DWORD PTR EEP_DELTA[rip]
	mov	eax, ecx
	imul	ebx, ecx
	imul	eax, edi
	sub	eax, esi
	cmp	ebx, eax
	jl	.L14
	movsx	rdx, edx
	mov	eax, ecx
	lea	rbp, [r15+rdx*4]
	mov	edx, DWORD PTR -4[rbp]
	imul	eax, edx
	add	esi, eax
	cmp	ebx, esi
	jg	.L4
	movsx	r12, ebx
	cmp	r15, rbp
	jb	.L8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR 4[r15]
	mov	ecx, DWORD PTR EEP_SCALE[rip]
	mov	eax, edi
	imul	eax, ecx
	sub	eax, edx
	cmp	ebx, eax
	jl	.L15
	add	r15, 4
	cmp	rbp, r15
	jbe	.L9
.L8:
	imul	edi, ecx
	mov	rsi, r12
	call	udiff@PLT
	mov	edx, DWORD PTR EEP_DELTA[rip]
	cmp	eax, edx
	jge	.L6
	mov	eax, DWORD PTR [r15]
	mov	DWORD PTR 0[r13], eax
	mov	DWORD PTR [r14], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	DWORD PTR [r8], edx
	mov	DWORD PTR [r14], edx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	DWORD PTR [r8], edi
	mov	DWORD PTR [r14], edi
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR AH_FALSE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	HALASSERT@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	eax, DWORD PTR [r15]
	mov	DWORD PTR [r14], eax
	mov	eax, DWORD PTR 4[r15]
	mov	DWORD PTR 0[r13], eax
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ar5212GetLowerUpperValues, .-ar5212GetLowerUpperValues
	.comm	EEP_SCALE,4,4
	.comm	EEP_DELTA,4,4
	.comm	AH_FALSE,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_ar5212_reset.c_ar5212GetLowerUpperValues.c"
	.text
	.align	2
	.global	ar5212GetLowerUpperValues
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar5212GetLowerUpperValues, %function
ar5212GetLowerUpperValues:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r10, r0
	ldr	r7, .L16
	ldr	lr, [r1]
	ldr	ip, [r7]
	ldr	r6, .L16+4
	mul	r0, lr, ip
	mul	r10, ip, r10
	ldr	r4, [r6]
	mov	r8, r3
	sub	r5, r0, r4
	cmp	r5, r10
	ldr	r9, [sp, #32]
	bgt	.L14
	add	r5, r1, r2, lsl #2
	ldr	r3, [r5, #-4]
	mla	ip, r3, ip, r4
	cmp	ip, r10
	blt	.L12
	cmp	r1, r5
	movcc	r4, r1
	bcc	.L8
	b	.L9
.L6:
	ldr	lr, [r4, #4]!
	ldr	ip, [r7]
	mul	r0, ip, lr
	sub	r2, r0, r2
	cmp	r2, r10
	bgt	.L15
	cmp	r5, r4
	bls	.L9
.L8:
	mov	r1, r10
	bl	udiff
	ldr	r2, [r6]
	mov	r3, r4
	cmp	r0, r2
	bge	.L6
	ldr	r3, [r4]
.L12:
	str	r3, [r9]
	str	r3, [r8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	str	lr, [r9]
	str	lr, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	ldr	r3, .L16+8
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, [r3]
	b	HALASSERT
.L15:
	ldr	r2, [r3]
	str	r2, [r8]
	ldr	r3, [r3, #4]
	str	r3, [r9]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	.align	2
.L16:
	.word	EEP_SCALE
	.word	EEP_DELTA
	.word	AH_FALSE
	.size	ar5212GetLowerUpperValues, .-ar5212GetLowerUpperValues
	.comm	EEP_SCALE,4,4
	.comm	EEP_DELTA,4,4
	.comm	AH_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
