	.file	"extr_dcahuff.c_ff_dca_vlc_calc_alloc_bits.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ff_dca_vlc_calc_alloc_bits
	.type	ff_dca_vlc_calc_alloc_bits, @function
ff_dca_vlc_calc_alloc_bits:
.LFB0:
	.cfi_startproc
	endbr64
	test	rsi, rsi
	je	.L4
	mov	rax, QWORD PTR bitalloc_12_bits[rip]
	xor	r8d, r8d
	mov	rcx, QWORD PTR [rax+rdx*8]
	lea	rdx, [rdi+rsi*4]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR [rdi]
	add	rdi, 4
	sub	eax, 1
	cdqe
	add	r8d, DWORD PTR [rcx+rax*8]
	cmp	rdx, rdi
	jne	.L3
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	xor	r8d, r8d
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	ff_dca_vlc_calc_alloc_bits, .-ff_dca_vlc_calc_alloc_bits
	.comm	bitalloc_12_bits,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_dcahuff.c_ff_dca_vlc_calc_alloc_bits.c"
	.text
	.align	2
	.global	ff_dca_vlc_calc_alloc_bits
	.syntax unified
	.arm
	.fpu softvfp
	.type	ff_dca_vlc_calc_alloc_bits, %function
ff_dca_vlc_calc_alloc_bits:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	cmp	r1, #0
	mov	ip, r0
	beq	.L4
	mov	r0, #0
	ldr	r3, .L8
	sub	ip, ip, #4
	ldr	r3, [r3]
	add	r1, ip, r1, lsl #2
	ldr	r2, [r3, r2, lsl #2]
.L3:
	ldr	r3, [ip, #4]!
	sub	r3, r3, #1
	ldr	r3, [r2, r3, lsl #2]
	cmp	r1, ip
	add	r0, r0, r3
	bne	.L3
	bx	lr
.L4:
	mov	r0, r1
	bx	lr
.L9:
	.align	2
.L8:
	.word	bitalloc_12_bits
	.size	ff_dca_vlc_calc_alloc_bits, .-ff_dca_vlc_calc_alloc_bits
	.comm	bitalloc_12_bits,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
