	.file	"extr_vp3.c_init_dequantizer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	init_dequantizer, @function
init_dequantizer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movsx	rax, esi
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	r14, 0[0+rax*8]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rdx, QWORD PTR 8[rdi]
	mov	DWORD PTR 68[rsp], 1
	mov	QWORD PTR 72[rsp], 0
	mov	r10, QWORD PTR [rdx+rax*8]
	mov	rax, QWORD PTR [rdi]
	mov	eax, DWORD PTR [rax+r10*4]
	mov	DWORD PTR 44[rsp], eax
	mov	rax, r10
.L2:
	mov	rbx, QWORD PTR 72[rsp]
	mov	rcx, QWORD PTR 16[r15]
	xor	edx, edx
	mov	QWORD PTR 56[rsp], 0
	mov	DWORD PTR 48[rsp], ebx
	lea	r13, 0[0+rbx*8]
	mov	ebx, DWORD PTR 68[rsp]
	lea	ebx, [rbx+rbx*2]
	mov	DWORD PTR 52[rsp], ebx
.L14:
	mov	rdx, QWORD PTR [rcx+rdx]
	mov	rcx, QWORD PTR 32[r15]
	mov	ebx, DWORD PTR [rdx+rax*4]
	mov	rdx, QWORD PTR 24[r15]
	mov	rcx, QWORD PTR [rcx+r13]
	mov	DWORD PTR 64[rsp], ebx
	mov	rdx, QWORD PTR [rdx+r13]
	mov	rbx, QWORD PTR 56[rsp]
	mov	r11, QWORD PTR [rcx+rbx*2]
	mov	edx, DWORD PTR [rdx+rbx]
	lea	rbp, [rbx+rbx]
	mov	ecx, DWORD PTR [r11]
	test	edx, edx
	jle	.L3
	lea	edi, -1[rdx]
	xor	esi, esi
	mov	edx, 1
	add	rdi, 2
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	lea	r9, 0[0+rdx*4]
	add	rdx, 1
	mov	ecx, DWORD PTR -4[r11+rdx*4]
	cmp	rdi, rdx
	je	.L19
.L6:
	mov	r12d, esi
	lea	esi, [rsi+rcx]
	lea	r9d, -1[rdx]
	movsx	r10, esi
	cmp	r10, rax
	jb	.L4
	movsx	r9, r9d
	sal	r9, 2
	lea	rdi, 4[r9]
.L5:
	mov	rdx, QWORD PTR 40[r15]
	movsx	r12, r12d
	mov	QWORD PTR 32[rsp], r9
	mov	rsi, rax
	mov	QWORD PTR 24[rsp], r12
	mov	r12, r14
	mov	r14, rbp
	mov	rdx, QWORD PTR [rdx+r13]
	mov	QWORD PTR 16[rsp], r10
	mov	rdx, QWORD PTR [rdx+rbp]
	mov	rbp, r13
	movsx	r11, DWORD PTR [rdx+r9]
	movsx	rdx, DWORD PTR [rdx+rdi]
	sal	r11, 3
	lea	rbx, 0[0+rdx*8]
	mov	QWORD PTR 8[rsp], rbx
	mov	r13, r11
	xor	ebx, ebx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	cmp	DWORD PTR 72[r15], 1
	mov	edx, DWORD PTR 44[rsp]
	jle	.L7
	mov	esi, DWORD PTR 52[rsp]
	sub	eax, esi
	imul	eax, DWORD PTR 44[rsp]
	movsx	rdx, eax
	sar	eax, 31
	imul	rdx, rdx, 1374389535
	sar	rdx, 37
	sub	edx, eax
	mov	eax, edx
	add	eax, esi
	sal	eax, 2
.L9:
	mov	rcx, QWORD PTR 56[r15]
	mov	rsi, QWORD PTR 64[r15]
	mov	rdx, QWORD PTR [rcx+r12]
	mov	rsi, QWORD PTR [rsi+rbx*8]
	add	rbx, 1
	mov	rdx, QWORD PTR [rdx+rbp]
	mov	rdx, QWORD PTR [rdx+r14]
	mov	DWORD PTR [rdx+rsi*4], eax
	cmp	rbx, 64
	je	.L10
	mov	rax, QWORD PTR 8[r15]
	mov	rdi, QWORD PTR 32[rsp]
	mov	rsi, QWORD PTR [rax+r12]
	mov	rax, QWORD PTR 32[r15]
	mov	rax, QWORD PTR [rax+rbp]
	mov	rax, QWORD PTR [rax+r14]
	mov	ecx, DWORD PTR [rax+rdi]
.L11:
	mov	rdx, QWORD PTR 48[r15]
	mov	rax, QWORD PTR [rdx+r13]
	movsx	rdi, DWORD PTR [rax+rbx*4]
	mov	rax, QWORD PTR 16[rsp]
	sub	rax, rsi
	imul	rax, rdi
	mov	rdi, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR [rdx+rdi]
	mov	rdi, QWORD PTR 24[rsp]
	movsx	rdx, DWORD PTR [rdx+rbx*4]
	sub	rdi, rsi
	imul	rdx, rdi
	sub	rax, rdx
	movsx	rdx, ecx
	add	ecx, ecx
	lea	rax, [rdx+rax*2]
	movsx	rcx, ecx
	xor	edx, edx
	div	rcx
	mov	ecx, ebx
	test	rbx, rbx
	jne	.L20
	mov	edx, DWORD PTR 64[rsp]
.L7:
	test	ecx, ecx
	mov	esi, 8
	sete	cl
	imul	eax, edx
	mov	edx, 4096
	movzx	ecx, cl
	add	ecx, DWORD PTR 48[rsp]
	sal	esi, cl
	movsx	rdi, eax
	sar	eax, 31
	imul	rdi, rdi, 1374389535
	sar	rdi, 37
	sub	edi, eax
	sal	edi, 2
	call	av_clip@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR [rcx]
	mov	r13, rbp
	mov	rbp, r14
	add	QWORD PTR 56[rsp], 4
	mov	r14, r12
	mov	rax, QWORD PTR [rax+r13]
	mov	rax, QWORD PTR [rax+rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR 56[rsp]
	cmp	rax, 12
	je	.L21
	mov	rax, QWORD PTR 8[r15]
	mov	rcx, QWORD PTR 16[r15]
	mov	edx, 8
	mov	rax, QWORD PTR [rax+r14]
	jmp	.L14
.L19:
	sub	esi, ecx
	sal	rdi, 2
	mov	r12d, esi
	jmp	.L5
.L21:
	mov	eax, DWORD PTR 68[rsp]
	add	QWORD PTR 72[rsp], 1
	lea	edx, 1[rax]
	cmp	eax, 2
	je	.L1
	mov	rax, QWORD PTR 8[r15]
	mov	DWORD PTR 68[rsp], edx
	mov	rax, QWORD PTR [rax+r12]
	jmp	.L2
.L1:
	add	rsp, 88
	.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
.L3:
	.cfi_restore_state
	mov	r12d, ecx
	xor	r10d, r10d
	mov	edi, 4
	xor	r9d, r9d
	neg	r12d
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	init_dequantizer, .-init_dequantizer
	.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_vp3.c_init_dequantizer.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_dequantizer, %function
init_dequantizer:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, [r0, #4]
	ldr	r3, [r0]
	ldr	lr, [r2, r1, lsl #2]
	sub	sp, sp, #36
	ldr	r3, [r3, lr, lsl #2]
	mov	r10, r0
	str	r3, [sp, #16]
	mov	r3, #1
	lsl	fp, r1, #2
	str	r3, [sp, #28]
.L2:
	mov	r7, #0
	ldr	r1, [sp, #28]
	mov	r2, r7
	add	r8, r1, r1, lsl #1
	mov	r6, r8
	lsl	r3, r1, #2
	sub	r9, r3, #4
	sub	r3, r1, #1
	str	r3, [sp, #20]
	ldr	r3, [r10, #8]
.L15:
	ldr	r1, [r10, #12]
	ldr	r2, [r3, r2]
	ldr	r1, [r1, r9]
	ldr	r3, [r10, #16]
	ldr	r4, [r1, r7]
	ldr	r2, [r2, lr, lsl #2]
	ldr	r3, [r3, r9]
	cmp	r4, #0
	str	r2, [sp, #24]
	ldr	r2, [r3, r7]
	ble	.L22
	ldr	r0, [r2]
	cmp	r0, lr
	mov	r5, r0
	movcc	r3, #0
	bcc	.L6
	b	.L23
.L7:
	add	r5, r0, r1
	cmp	r5, lr
	bcs	.L24
	mov	r0, r5
.L6:
	mov	ip, r3
	add	r3, r3, #1
	cmp	r4, r3
	ldr	r1, [r2, #4]!
	lsl	r8, r3, #2
	bne	.L7
	mov	r5, r0
	add	r3, ip, #2
	sub	r2, r0, r1
	lsl	r3, r3, #2
	str	r2, [sp, #8]
.L4:
	ldr	r2, [r10, #20]
	mov	r4, #0
	ldr	r2, [r2, r9]
	str	r8, [sp, #12]
	ldr	r2, [r2, r7]
	ldr	r0, [r2, r3]
	ldr	r3, [r2, r8]
	lsl	r2, r0, #2
	lsl	r3, r3, #2
	str	r3, [sp]
	str	r2, [sp, #4]
	mov	r3, lr
	b	.L12
.L26:
	ldr	r1, [r10, #36]
	sub	r2, r0, r6
	cmp	r1, #1
	ble	.L25
	ldr	r3, [sp, #16]
	ldr	r1, .L28
	mul	r3, r2, r3
	mov	r2, r3
	smull	r3, r1, r2, r1
	asr	r0, r2, #31
	rsb	r0, r0, r1, asr #5
	add	r0, r0, r6
	lsl	r0, r0, #2
.L10:
	ldr	r2, [r10, #28]
	ldr	r1, [r10, #32]
	ldr	ip, [r2, fp]
	ldr	r1, [r1, r8]
	ldr	ip, [ip, r9]
	add	r4, r4, #1
	ldr	r3, [ip, r7]
	cmp	r4, #64
	str	r0, [r3, r1, lsl #2]
	beq	.L11
	ldr	r2, [r10, #16]
	ldr	r3, [r10, #4]
	ldr	r2, [r2, r9]
	ldr	r1, [sp, #12]
	ldr	r2, [r2, r7]
	ldr	r3, [r3, fp]
	ldr	r1, [r2, r1]
.L12:
	ldr	r2, [r10, #24]
	ldr	lr, [sp, #4]
	ldr	ip, [sp]
	sub	r0, r5, r3
	ldr	ip, [r2, ip]
	ldr	r2, [r2, lr]
	ldr	lr, [sp, #8]
	ldr	ip, [ip, r4, lsl #2]
	ldr	r2, [r2, r4, lsl #2]
	sub	r3, lr, r3
	mul	r0, ip, r0
	mul	r3, r2, r3
	sub	r0, r0, r3
	add	r0, r1, r0, lsl #1
	lsl	r1, r1, #1
	bl	__aeabi_uidiv
	cmp	r4, #0
	lsl	r8, r4, #2
	bne	.L26
	ldr	r2, [sp, #24]
.L8:
	mul	r0, r2, r0
	ldr	r1, [sp, #20]
	ldr	r2, .L28
	cmp	r4, #0
	addeq	r1, r1, #1
	smull	r3, r2, r0, r2
	mov	r3, #8
	asr	r0, r0, #31
	rsb	r0, r0, r2, asr #5
	lsl	r1, r3, r1
	mov	r2, #4096
	lsl	r0, r0, #2
	bl	av_clip
	b	.L10
.L25:
	ldr	r2, [sp, #16]
	b	.L8
.L11:
	ldr	r2, [r2]
	ldr	r2, [r2, r9]
	ldr	r2, [r2, r7]
	add	r7, r7, #4
	ldr	r2, [r2]
	cmp	r7, #12
	str	r2, [r3]
	beq	.L27
	ldmib	r10, {r1, r3}
	mov	r2, #4
	ldr	lr, [r1, fp]
	b	.L15
.L24:
	add	r3, ip, #2
	lsl	r3, r3, #2
	str	r0, [sp, #8]
	b	.L4
.L27:
	ldr	r3, [sp, #28]
	cmp	r3, #2
	add	r3, r3, #1
	strne	r3, [sp, #28]
	ldrne	r3, [r10, #4]
	ldrne	lr, [r3, fp]
	bne	.L2
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	mov	r5, #0
	ldr	r1, [r2]
	mov	r8, r5
	rsb	r3, r1, #0
	str	r3, [sp, #8]
	mov	r3, #4
	b	.L4
.L23:
	mov	r3, #0
	mov	r1, r0
	mov	r8, r3
	str	r3, [sp, #8]
	mov	r3, #4
	b	.L4
.L29:
	.align	2
.L28:
	.word	1374389535
	.size	init_dequantizer, .-init_dequantizer
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
