	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_dca_vlc_calc_alloc_bits     ## -- Begin function ff_dca_vlc_calc_alloc_bits
	.p2align	4, 0x90
_ff_dca_vlc_calc_alloc_bits:            ## @ff_dca_vlc_calc_alloc_bits
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	_bitalloc_12_bits@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdx,8), %r9
	leaq	-1(%rsi), %rax
	movl	%esi, %r8d
	andl	$3, %r8d
	cmpq	$3, %rax
	jae	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_4:
	andq	$-4, %rsi
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rdi,%rdx,4), %rcx
	addl	-8(%r9,%rcx,8), %eax
	movslq	4(%rdi,%rdx,4), %rcx
	addl	-8(%r9,%rcx,8), %eax
	movslq	8(%rdi,%rdx,4), %rcx
	addl	-8(%r9,%rcx,8), %eax
	movslq	12(%rdi,%rdx,4), %rcx
	addl	-8(%r9,%rcx,8), %eax
	addq	$4, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_5
LBB0_6:
	testq	%r8, %r8
	je	LBB0_9
## %bb.7:
	leaq	(%rdi,%rdx,4), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rdx,%rsi,4), %rcx
	addl	-8(%r9,%rcx,8), %eax
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_8
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bitalloc_12_bits,8,3           ## @bitalloc_12_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_dca_vlc_calc_alloc_bits     ; -- Begin function ff_dca_vlc_calc_alloc_bits
	.p2align	2
_ff_dca_vlc_calc_alloc_bits:            ; @ff_dca_vlc_calc_alloc_bits
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _bitalloc_12_bits@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bitalloc_12_bits@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8, x2, lsl #3]
	cmp	x1, #4
	b.hs	LBB0_4
; %bb.2:
	mov	w8, #0
	mov	x10, #0
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	mov	w12, #0
	mov	w13, #0
	mov	w11, #0
	mov	w8, #0
	and	x10, x1, #0xfffffffffffffffc
	add	x14, x0, #8
	mov	x15, x10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldpsw	x16, x17, [x14, #-8]
	ldpsw	x2, x3, [x14], #16
	add	x16, x9, x16, lsl #3
	add	x17, x9, x17, lsl #3
	add	x2, x9, x2, lsl #3
	add	x3, x9, x3, lsl #3
	ldur	w16, [x16, #-8]
	ldur	w17, [x17, #-8]
	ldur	w2, [x2, #-8]
	add	w12, w12, w16
	add	w13, w13, w17
	ldur	w16, [x3, #-8]
	add	w11, w11, w2
	add	w8, w8, w16
	subs	x15, x15, #4
	b.ne	LBB0_5
; %bb.6:
	add	w12, w13, w12
	add	w11, w11, w12
	add	w8, w8, w11
	cmp	x10, x1
	b.eq	LBB0_9
LBB0_7:
	sub	x11, x1, x10
	add	x10, x0, x10, lsl #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x12, [x10], #4
	add	x12, x9, x12, lsl #3
	ldur	w12, [x12, #-8]
	add	w8, w8, w12
	subs	x11, x11, #1
	b.ne	LBB0_8
LBB0_9:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_bitalloc_12_bits,8,3           ; @bitalloc_12_bits
.subsections_via_symbols
