	.file	"extr_stb0899_drv.c_stb0899_table_lookup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stb0899_table_lookup, @function
stb0899_table_lookup:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r9d, DWORD PTR [rdi]
	cmp	r9d, edx
	jle	.L2
	mov	eax, DWORD PTR 4[rdi]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	movsx	rax, esi
	lea	r10, [rdi+rax*8]
	mov	ecx, DWORD PTR [r10]
	cmp	ecx, edx
	jle	.L4
	xor	eax, eax
	mov	r8, rdi
	cmp	esi, 1
	jg	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	cmp	edx, r10d
	jge	.L10
	movsx	rsi, eax
	lea	r8, [rdi+rsi*8]
	mov	esi, ecx
	mov	ecx, esi
	sub	ecx, eax
	cmp	ecx, 1
	jle	.L14
.L5:
	lea	r8d, [rsi+rax]
	mov	ecx, r8d
	shr	ecx, 31
	add	ecx, r8d
	sar	ecx
	movsx	r8, ecx
	lea	r8, [rdi+r8*8]
	mov	r10d, DWORD PTR [r8]
	cmp	edx, r9d
	jge	.L15
.L10:
	mov	eax, ecx
	mov	ecx, esi
	mov	r9d, r10d
	sub	ecx, eax
	cmp	ecx, 1
	jg	.L5
.L14:
	movsx	rsi, esi
	lea	r10, [rdi+rsi*8]
	mov	ecx, DWORD PTR [r10]
.L6:
	mov	esi, DWORD PTR 4[r8]
	mov	eax, DWORD PTR 4[r10]
	sub	edx, r9d
	sub	ecx, r9d
	sub	eax, esi
	imul	eax, edx
	cdq
	idiv	ecx
	add	eax, esi
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR 4[r10]
	ret
	.cfi_endproc
.LFE0:
	.size	stb0899_table_lookup, .-stb0899_table_lookup
	.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_stb0899_drv.c_stb0899_table_lookup.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stb0899_table_lookup, %function
stb0899_table_lookup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0]
	cmp	r5, r2
	ble	.L2
	ldr	r0, [r0, #4]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, [r0, r1, lsl #3]
	add	ip, r0, r1, lsl #3
	cmp	r3, r2
	ble	.L4
	cmp	r1, #1
	movle	r4, r0
	ble	.L6
	mov	ip, #0
.L5:
	add	r3, r1, ip
	add	r3, r3, r3, lsr #31
	asr	r3, r3, #1
	cmp	r2, r5
	ldr	lr, [r0, r3, lsl #3]
	add	r4, r0, r3, lsl #3
	blt	.L10
	cmp	r2, lr
	movlt	r1, r3
	addlt	r4, r0, ip, lsl #3
	blt	.L7
.L10:
	mov	r5, lr
	mov	ip, r3
.L7:
	sub	r3, r1, ip
	cmp	r3, #1
	bgt	.L5
	ldr	r3, [r0, r1, lsl #3]
	add	ip, r0, r1, lsl #3
.L6:
	ldr	r4, [r4, #4]
	ldr	r0, [ip, #4]
	sub	r2, r2, r5
	sub	r0, r0, r4
	mul	r0, r2, r0
	sub	r1, r3, r5
	bl	__aeabi_idiv
	add	r0, r0, r4
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r0, [ip, #4]
	pop	{r4, r5, r6, pc}
	.size	stb0899_table_lookup, .-stb0899_table_lookup
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
