	.file	"extr_dib8000.c_interpolate_value.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	interpolate_value, @function
interpolate_value:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r9, QWORD PTR [rsi]
	cmp	r9, rdi
	jle	.L16
	lea	eax, -1[rdx]
	mov	r8, rax
	sal	rax, 4
	add	rax, rsi
	cmp	QWORD PTR [rax], rdi
	jg	.L4
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	lea	rbx, 16[rsi]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rcx, QWORD PTR 16[rsi]
	cmp	r8d, 1
	jbe	.L6
	lea	r9d, -3[rdx]
	mov	r8, rbx
	mov	edx, 16
	add	r9, 2
	sal	r9, 4
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	jg	.L17
	lea	rax, 16[rdx]
	mov	rcx, QWORD PTR 16[rbx]
	lea	r8, 16[r8]
	cmp	r9, rax
	je	.L18
	mov	rdx, rax
.L9:
	mov	rbx, r8
	cmp	rdi, rcx
	jne	.L7
	mov	rax, QWORD PTR 8[r8]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore 3
	.cfi_restore 6
	mov	rax, QWORD PTR 8[rax]
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rax, QWORD PTR 8[rsi]
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	add	rsi, rdx
	mov	rbx, r8
	mov	r9, QWORD PTR [rsi]
.L6:
	mov	rbp, QWORD PTR 8[rsi]
	sub	edi, ecx
	sub	ebp, DWORD PTR 8[rbx]
	mov	rsi, r9
	imul	ebp, edi
	sub	rsi, rcx
	mov	edi, ebp
	call	do_div@PLT
	mov	edi, DWORD PTR 8[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	add	edi, ebp
	pop	rbp
	.cfi_def_cfa_offset 8
	movsx	rax, edi
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	lea	rsi, -16[rsi+rdx]
	mov	r9, QWORD PTR [rsi]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	interpolate_value, .-interpolate_value
	.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_dib8000.c_interpolate_value.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	interpolate_value, %function
interpolate_value:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r1]
	cmp	r6, r0
	ble	.L13
	sub	r3, r2, #-536870911
	ldr	ip, [r1, r3, lsl #3]
	add	r3, r1, r3, lsl #3
	cmp	ip, r0
	bgt	.L4
	sub	lr, r2, #1
	cmp	lr, #1
	add	r4, r1, #8
	movhi	r5, r4
	movhi	r2, #1
	ldr	ip, [r1, #8]
	bhi	.L9
	b	.L6
.L7:
	bgt	.L14
	add	r4, r5, #8
	cmp	r3, lr
	mov	r5, r4
	ldr	ip, [r4]
	beq	.L15
	mov	r2, r3
.L9:
	cmp	r0, ip
	add	r3, r2, #1
	bne	.L7
	ldr	r0, [r5, #4]
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r0, [r3, #4]
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r0, [r1, #4]
	pop	{r4, r5, r6, pc}
.L15:
	lsl	r2, r2, #3
	ldr	r6, [r1, r2]!
.L6:
	ldr	r5, [r1, #4]
	ldr	r3, [r4, #4]
	sub	r0, r0, ip
	sub	r5, r5, r3
	mul	r5, r0, r5
	sub	r1, r6, ip
	mov	r0, r5
	bl	do_div
	ldr	r0, [r4, #4]
	add	r0, r5, r0
	pop	{r4, r5, r6, pc}
.L14:
	sub	r2, r2, #-536870911
	lsl	r2, r2, #3
	ldr	r6, [r1, r2]!
	b	.L6
	.size	interpolate_value, .-interpolate_value
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
