	.file	"extr_g722enc.c_encode_low.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	encode_low, @function
encode_low:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	movsx	rdi, esi
	sub	rdi, QWORD PTR 8[rbx]
	call	av_clip_int16@PLT
	mov	r8, QWORD PTR low_quant[rip]
	mov	r9d, DWORD PTR [rbx]
	mov	edi, eax
	mov	edx, DWORD PTR 32[r8]
	sar	edi, 31
	xor	edi, eax
	imul	edx, r9d
	add	edi, 1
	sal	edi, 10
	cmp	edx, edi
	setl	dl
	movzx	edx, dl
	lea	edx, [rdx+rdx*8]
	movsx	rdx, edx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR [r8+rdx*4]
	mov	ecx, edx
	imul	esi, r9d
	cmp	esi, edi
	jge	.L4
	lea	ecx, 1[rdx]
	add	rdx, 1
	cmp	edx, 28
	jle	.L3
.L4:
	mov	edx, 61
	test	eax, eax
	jns	.L6
	cmp	ecx, 2
	mov	edx, 63
	mov	eax, 33
	cmovge	edx, eax
.L6:
	mov	eax, edx
	pop	rbx
	.cfi_def_cfa_offset 8
	sub	eax, ecx
	ret
	.cfi_endproc
.LFE0:
	.size	encode_low, .-encode_low
	.comm	low_quant,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_g722enc.c_encode_low.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	encode_low, %function
encode_low:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, [r0, #4]
	sub	r0, r1, r0
	bl	av_clip_int16
	ldr	r3, .L14
	ldr	lr, [r4]
	ldr	r1, [r3]
	eor	ip, r0, r0, asr #31
	ldr	r3, [r1, #32]
	add	ip, ip, #1
	mul	r3, lr, r3
	cmp	r3, ip, lsl #10
	movge	r2, #0
	movlt	r2, #9
	sub	r3, r2, #-1073741823
	lsl	ip, ip, #10
	add	r1, r1, r3, lsl #2
.L3:
	ldr	r3, [r1, #4]!
	mul	r3, lr, r3
	cmp	r3, ip
	bge	.L13
	add	r2, r2, #1
	cmp	r2, #29
	bne	.L3
	cmp	r0, #0
	blt	.L4
.L8:
	mov	r0, #61
.L5:
	sub	r0, r0, r2
	pop	{r4, pc}
.L13:
	cmp	r0, #0
	bge	.L8
	cmp	r2, #1
	movle	r0, #63
	ble	.L5
.L4:
	mov	r0, #33
	sub	r0, r0, r2
	pop	{r4, pc}
.L15:
	.align	2
.L14:
	.word	low_quant
	.size	encode_low, .-encode_low
	.comm	low_quant,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
