	.file	"extr_aptx.c_aptx_invert_quantization.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aptx_invert_quantization, @function
aptx_invert_quantization:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8d, esi
	sar	esi, 31
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rcx
	xor	esi, r8d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	edi, edx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	lea	ebx, 1[rsi]
	mov	rax, QWORD PTR 8[rcx]
	movsx	rbx, ebx
	mov	esi, DWORD PTR [rax+rbx*4]
	call	MUL64@PLT
	mov	esi, 32
	mov	edi, eax
	call	rshift64_clip24@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, eax
	call	MUL64@PLT
	mov	esi, 15
	sar	eax, 19
	mov	DWORD PTR 0[rbp], eax
	mov	rax, QWORD PTR 16[r12]
	mov	edi, DWORD PTR [rax+rbx*4]
	imul	eax, DWORD PTR 8[rbp], 32620
	sal	edi, 15
	add	edi, eax
	call	rshift32@PLT
	mov	edx, DWORD PTR 24[r12]
	xor	esi, esi
	mov	edi, eax
	call	av_clip@PLT
	mov	rcx, QWORD PTR quantization_factors[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	edx, eax
	mov	DWORD PTR 8[rbp], eax
	sar	edx, 3
	and	edx, 31
	mov	edx, DWORD PTR [rcx+rdx*4]
	mov	ecx, DWORD PTR 24[r12]
	sub	ecx, eax
	sal	edx, 11
	sar	ecx, 8
	sar	edx, cl
	mov	DWORD PTR 4[rbp], edx
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	aptx_invert_quantization, .-aptx_invert_quantization
	.comm	quantization_factors,8,8
	.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_aptx.c_aptx_invert_quantization.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aptx_invert_quantization, %function
aptx_invert_quantization:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	eor	r1, r1, r1, asr #31
	mov	r6, r3
	ldr	r3, [r3, #4]
	add	r5, r1, #1
	mov	r4, r0
	ldr	r1, [r3, r5, lsl #2]
	mov	r0, r2
	bl	MUL64
	mov	r1, #32
	bl	rshift64_clip24
	mov	r1, r0
	ldr	r0, [r4, #4]
	bl	MUL64
	ldr	r2, [r4, #8]
	ldr	r1, [r6, #8]
	asr	r0, r0, #19
	rsb	r3, r2, r2, lsl #8
	rsb	r3, r2, r3, lsl #3
	str	r0, [r4]
	rsb	r2, r2, r3, lsl #2
	ldr	r0, [r1, r5, lsl #2]
	lsl	r2, r2, #2
	mov	r1, #15
	add	r0, r2, r0, lsl #15
	bl	rshift32
	mov	r1, #0
	ldr	r2, [r6, #12]
	bl	av_clip
	ldr	r2, .L4
	asr	r3, r0, #3
	ldr	r1, [r2]
	str	r0, [r4, #8]
	ldr	r2, [r6, #12]
	and	r3, r3, #31
	ldr	r3, [r1, r3, lsl #2]
	sub	r0, r2, r0
	asr	r0, r0, #8
	lsl	r3, r3, #11
	asr	r3, r3, r0
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	quantization_factors
	.size	aptx_invert_quantization, .-aptx_invert_quantization
	.comm	quantization_factors,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
