	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function count_frame_bits
_count_frame_bits:                      ## @count_frame_bits
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	56(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_25
## %bb.1:
	cmpq	$0, 136(%rdi)
	je	LBB0_2
## %bb.3:
	movq	(%rdi), %rax
	movq	_AC3_CHMODE_STEREO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	setg	%dl
	setl	%sil
	leal	(%rdx,%rdx), %eax
	cmpq	$0, 96(%rdi)
	leal	6(%rdx,%rdx), %ecx
	cmovel	%eax, %ecx
	leal	6(%rcx), %eax
	cmpq	$0, 88(%rdi)
	cmovel	%ecx, %eax
	addl	80(%rdi), %esi
	leal	(%rax,%rsi), %ecx
	addl	$5, %ecx
	jmp	LBB0_4
LBB0_25:
	xorl	%eax, %eax
	cmpq	$0, 120(%rdi)
	movl	$7, %ecx
	cmovel	%eax, %ecx
	cmpl	$6, 16(%rdi)
	jne	LBB0_27
## %bb.26:
	cmpq	$0, 112(%rdi)
	leal	14(%rcx), %eax
	cmovel	%ecx, %eax
	leal	14(%rax), %ecx
	cmpq	$0, 104(%rdi)
	cmovel	%eax, %ecx
	jmp	LBB0_27
LBB0_2:
	xorl	%ecx, %ecx
LBB0_4:
	cmpq	$0, 128(%rdi)
	movq	(%rdi), %rax
	je	LBB0_6
## %bb.5:
	movq	_AC3_CHMODE_STEREO@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rax
	sete	%sil
	movq	_AC3_CHMODE_2F2R@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	cmpq	(%rdx), %rax
	leal	(%rcx,%rsi,4), %ecx
	setge	%bl
	leal	(%rcx,%rbx,2), %ecx
	xorl	%edx, %edx
	cmpq	$0, 120(%rdi)
	setne	%dl
	leal	(%rcx,%rdx,8), %ecx
	addl	$7, %ecx
LBB0_6:
	movq	_AC3_CHMODE_MONO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jle	LBB0_15
## %bb.7:
	incl	%ecx
	movl	8(%rdi), %esi
	cmpl	$2, %esi
	jl	LBB0_15
## %bb.8:
	movq	64(%rdi), %r8
	leaq	-1(%rsi), %rax
	addq	$-2, %rsi
	movl	%eax, %r9d
	andl	$3, %r9d
	cmpq	$3, %rsi
	jae	LBB0_10
## %bb.9:
	movl	$1, %esi
	jmp	LBB0_12
LBB0_10:
	leaq	312(%r8), %rbx
	andq	$-4, %rax
	negq	%rax
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edx, %edx
	cmpq	$0, -192(%rbx)
	sete	%dl
	cmpq	$1, -128(%rbx)
	sbbl	%edx, %ecx
	xorl	%edx, %edx
	cmpq	$0, -64(%rbx)
	sete	%dl
	cmpq	$1, (%rbx)
	sbbl	%edx, %ecx
	addl	$8, %ecx
	addq	$256, %rbx                      ## imm = 0x100
	leaq	(%rax,%rsi), %rdx
	addq	$4, %rdx
	addq	$4, %rsi
	cmpq	$1, %rdx
	jne	LBB0_11
LBB0_12:
	testq	%r9, %r9
	je	LBB0_15
## %bb.13:
	shlq	$6, %rsi
	leaq	(%r8,%rsi), %rax
	addq	$56, %rax
	shlq	$6, %r9
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$1, (%rax,%rdx)
	sbbl	$0, %ecx
	addl	$2, %ecx
	addq	$64, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_14
LBB0_15:
	movl	12(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_27
## %bb.16:
	cmpq	$0, 72(%rdi)
	je	LBB0_17
## %bb.75:
	leal	(%rax,%rax,4), %eax
	addl	%ecx, %eax
	movl	%eax, %ecx
	jmp	LBB0_27
LBB0_17:
	movl	8(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_27
## %bb.18:
	movq	64(%rdi), %rdx
	cmpl	$8, %eax
	jae	LBB0_20
## %bb.19:
	xorl	%esi, %esi
	jmp	LBB0_23
LBB0_20:
	movl	%eax, %esi
	andl	$-8, %esi
	movd	%ecx, %xmm0
	movq	%rax, %rcx
	shlq	$6, %rcx
	andq	$-512, %rcx                     ## imm = 0xFE00
	pxor	%xmm1, %xmm1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movd	(%rdx,%rbx), %xmm2              ## xmm2 = mem[0],zero,zero,zero
	pinsrd	$1, 64(%rdx,%rbx), %xmm2
	pinsrd	$2, 128(%rdx,%rbx), %xmm2
	pinsrd	$3, 192(%rdx,%rbx), %xmm2
	movd	256(%rdx,%rbx), %xmm3           ## xmm3 = mem[0],zero,zero,zero
	pinsrd	$1, 320(%rdx,%rbx), %xmm3
	pinsrd	$2, 384(%rdx,%rbx), %xmm3
	pinsrd	$3, 448(%rdx,%rbx), %xmm3
	paddd	%xmm2, %xmm2
	paddd	%xmm2, %xmm0
	paddd	%xmm3, %xmm3
	paddd	%xmm3, %xmm1
	addq	$512, %rbx                      ## imm = 0x200
	cmpq	%rbx, %rcx
	jne	LBB0_21
## %bb.22:
	paddd	%xmm0, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %ecx
	cmpq	%rax, %rsi
	je	LBB0_27
LBB0_23:
	subq	%rsi, %rax
	shlq	$6, %rsi
	addq	%rsi, %rdx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %esi
	leal	(%rcx,%rsi,2), %ecx
	addq	$64, %rdx
	decq	%rax
	jne	LBB0_24
LBB0_27:
	movl	8(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_74
## %bb.28:
	xorl	%r11d, %r11d
	xorl	%ebx, %ebx
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	setne	%r11b
	sete	%bl
	movq	64(%rdi), %r15
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_AC3_CHMODE_STEREO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rdx
	xorl	%esi, %esi
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	cmpq	%rax, %rdx
	sete	%sil
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movl	20(%rdi), %r12d
	movq	_EXP_REUSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leal	1(%r12), %r9d
	leaq	-1(%r9), %r13
	movq	%r13, %rdx
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	andq	$-2, %r13
	negq	%r13
	xorl	%r14d, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%r11d, -48(%rbp)                ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_67:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %r11d                ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
LBB0_73:                                ##   in Loop: Header=BB0_29 Depth=1
	incq	%r14
	cmpq	%rax, %r14
	je	LBB0_74
LBB0_29:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_39 Depth 2
                                        ##     Child Loop BB0_52 Depth 2
	movq	%r14, %r8
	shlq	$6, %r8
	leaq	(%r15,%r8), %rdx
	addl	%ebx, %ecx
	cmpq	$0, 56(%r15,%r8)
	je	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	addl	%ebx, %ecx
	movl	(%rdx), %edx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	je	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_29 Depth=1
	addl	%r11d, %ecx
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_29 Depth=1
	leal	(%r12,%rcx), %edx
	incl	%ecx
	addl	-60(%rbp), %edx                 ## 4-byte Folded Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	cmpq	-120(%rbp), %rsi                ## 8-byte Folded Reload
	cmovel	%ecx, %edx
	addl	$9, %edx
	movl	%edx, %ecx
	testl	%r12d, %r12d
	jg	LBB0_38
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_29 Depth=1
	movl	(%rdx), %edx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	je	LBB0_31
## %bb.36:                              ##   in Loop: Header=BB0_29 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_37
LBB0_38:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	32(%r15,%r8), %rdx
	leaq	(%r15,%r8), %rax
	addq	$8, %rax
	movl	$1, %esi
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_39 Depth=2
	incl	%ecx
	testl	%ebx, %ebx
	je	LBB0_44
LBB0_43:                                ##   in Loop: Header=BB0_39 Depth=2
	movl	28(%rdi), %ebx
	leal	(%rcx,%rbx,8), %ecx
	addl	$2, %ecx
LBB0_44:                                ##   in Loop: Header=BB0_39 Depth=2
	incq	%rsi
	cmpq	%rsi, %r9
	je	LBB0_45
LBB0_39:                                ##   Parent Loop BB0_29 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%rdx,%rsi,8)
	je	LBB0_44
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=2
	movq	(%rax), %rbx
	movl	(%rbx,%rsi,4), %ebx
	testl	%r11d, %r11d
	je	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_39 Depth=2
	cmpl	$2, %ebx
	je	LBB0_43
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_29 Depth=1
	xorl	%esi, %esi
	movq	-104(%rbp), %rax                ## 8-byte Reload
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_29 Depth=1
	xorl	%edx, %edx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movb	$1, %sil
	jmp	LBB0_46
LBB0_35:                                ##   in Loop: Header=BB0_29 Depth=1
	addl	%r12d, %ecx
	addl	-60(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	24(%rdi), %edx
	addl	%edx, %ecx
	addl	$7, %ecx
	testl	%r12d, %r12d
	jg	LBB0_38
LBB0_37:                                ##   in Loop: Header=BB0_29 Depth=1
	xorl	%esi, %esi
LBB0_46:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	cmpq	-120(%rbp), %rdx                ## 8-byte Folded Reload
	jne	LBB0_49
## %bb.47:                              ##   in Loop: Header=BB0_29 Depth=1
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	sete	%bl
	testq	%r14, %r14
	setne	%dl
	orb	%bl, %dl
	movzbl	%dl, %edx
	addl	%edx, %ecx
	cmpq	$0, 48(%r15,%r8)
	je	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_29 Depth=1
	addl	40(%r15,%r8), %ecx
LBB0_49:                                ##   in Loop: Header=BB0_29 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_60
## %bb.50:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	32(%rdi), %r12
	addq	%r8, %r15
	addq	$32, %r15
	movl	$1, %r11d
	cmpl	$2, %r9d
	jne	LBB0_51
LBB0_57:                                ##   in Loop: Header=BB0_29 Depth=1
	testb	$1, -128(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_60
## %bb.58:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	(%r12,%r11,8), %rdx
	cmpq	%r10, (%rdx,%r14,8)
	je	LBB0_60
## %bb.59:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	(%r15), %rdx
	cmpq	$0, (%rdx,%r11,8)
	leal	6(%rcx), %edx
	cmovnel	%ecx, %edx
	addl	$2, %edx
	movl	%edx, %ecx
	.p2align	4, 0x90
LBB0_60:                                ##   in Loop: Header=BB0_29 Depth=1
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_61
## %bb.66:                              ##   in Loop: Header=BB0_29 Depth=1
	testb	%sil, %sil
	jne	LBB0_67
## %bb.68:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	16(%r15,%r8), %edx
	cmpl	$2, %edx
	movl	-48(%rbp), %r11d                ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_69
## %bb.70:                              ##   in Loop: Header=BB0_29 Depth=1
	addl	$6, %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_73
	.p2align	4, 0x90
LBB0_61:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	%rax, %r12
	movl	%esi, %edx
	leal	2(%rcx), %esi
	movl	%edx, %eax
	testb	%dl, %dl
	cmovnel	%ecx, %esi
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	cmpq	$0, 24(%r15,%r8)
	je	LBB0_62
## %bb.63:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addl	40(%rdi), %edx
	leal	(,%rdx,8), %ecx
	subl	%edx, %ecx
	addl	%esi, %ecx
	addl	$7, %ecx
	jmp	LBB0_64
	.p2align	4, 0x90
LBB0_51:                                ##   in Loop: Header=BB0_29 Depth=1
	movl	$1, %r11d
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_56:                                ##   in Loop: Header=BB0_52 Depth=2
	leaq	(%r11,%r13), %rdx
	addq	$2, %rdx
	addq	$2, %r11
	cmpq	$1, %rdx
	je	LBB0_57
LBB0_52:                                ##   Parent Loop BB0_29 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12,%r11,8), %rdx
	cmpq	%r10, (%rdx,%r14,8)
	je	LBB0_54
## %bb.53:                              ##   in Loop: Header=BB0_52 Depth=2
	movq	(%r15), %rdx
	cmpq	$0, (%rdx,%r11,8)
	leal	6(%rcx), %edx
	cmovnel	%ecx, %edx
	addl	$2, %edx
	movl	%edx, %ecx
LBB0_54:                                ##   in Loop: Header=BB0_52 Depth=2
	movq	8(%r12,%r11,8), %rdx
	cmpq	%r10, (%rdx,%r14,8)
	je	LBB0_56
## %bb.55:                              ##   in Loop: Header=BB0_52 Depth=2
	movq	(%r15), %rdx
	cmpq	$0, 8(%rdx,%r11,8)
	leal	6(%rcx), %edx
	cmovnel	%ecx, %edx
	addl	$2, %edx
	movl	%edx, %ecx
	jmp	LBB0_56
LBB0_69:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_72
LBB0_62:                                ##   in Loop: Header=BB0_29 Depth=1
	incl	%esi
	movl	%esi, %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_64:                                ##   in Loop: Header=BB0_29 Depth=1
	movl	-48(%rbp), %r11d                ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testb	%al, %al
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_71
## %bb.65:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	%r12, %rax
	movq	%rsi, %r12
	jmp	LBB0_73
LBB0_71:                                ##   in Loop: Header=BB0_29 Depth=1
	movl	16(%r15,%r8), %edx
	movq	%r12, %rax
	movq	%rsi, %r12
LBB0_72:                                ##   in Loop: Header=BB0_29 Depth=1
	leal	7(%rcx), %esi
	incl	%ecx
	testl	%edx, %edx
	cmovnel	%esi, %ecx
	jmp	LBB0_73
LBB0_74:
	addl	48(%rdi), %ecx
	movl	%ecx, 44(%rdi)
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC3_CHMODE_STEREO,8,3          ## @AC3_CHMODE_STEREO
	.comm	_AC3_CHMODE_2F2R,8,3            ## @AC3_CHMODE_2F2R
	.comm	_AC3_CHMODE_MONO,8,3            ## @AC3_CHMODE_MONO
	.comm	_EXP_REUSE,8,3                  ## @EXP_REUSE
	.no_dead_strip	_count_frame_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_frame_bits
_count_frame_bits:                      ; @count_frame_bits
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	ldr	x8, [x0, #56]
Lloh0:
	adrp	x10, _AC3_CHMODE_STEREO@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AC3_CHMODE_STEREO@GOTPAGEOFF]
	cbz	x8, LBB0_9
; %bb.1:
	ldr	x9, [x0, #136]
	cbz	x9, LBB0_3
; %bb.2:
	ldr	x9, [x0]
	ldr	x11, [x10]
	cmp	x9, x11
	cset	w9, gt
	lsl	w9, w9, #1
	mov	w11, #5
	cinc	w11, w11, lt
	ldp	x13, x12, [x0, #88]
	cmp	x12, #0
	add	w12, w9, #6
	csel	w9, w9, w12, eq
	add	w12, w9, #6
	cmp	x13, #0
	ldr	w13, [x0, #80]
	csel	w9, w9, w12, eq
	add	w11, w11, w13
	add	w9, w11, w9
LBB0_3:
	ldr	x12, [x0, #128]
	ldr	x11, [x0]
	cbz	x12, LBB0_5
; %bb.4:
	ldr	x12, [x10]
	cmp	x11, x12
	mov	w12, #5
	mov	w13, #9
	csel	w12, w13, w12, eq
	add	w9, w12, w9
Lloh2:
	adrp	x12, _AC3_CHMODE_2F2R@GOTPAGE
Lloh3:
	ldr	x12, [x12, _AC3_CHMODE_2F2R@GOTPAGEOFF]
Lloh4:
	ldr	x12, [x12]
	add	w13, w9, #2
	cmp	x11, x12
	csel	w9, w9, w13, lt
	ldr	x12, [x0, #120]
	cmp	x12, #0
	mov	w12, #10
	mov	w13, #2
	csel	w12, w13, w12, eq
	add	w9, w12, w9
LBB0_5:
Lloh5:
	adrp	x12, _AC3_CHMODE_MONO@GOTPAGE
Lloh6:
	ldr	x12, [x12, _AC3_CHMODE_MONO@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
	cmp	x11, x12
	b.le	LBB0_16
; %bb.6:
	add	w9, w9, #1
	ldr	w12, [x0, #8]
	cmp	w12, #2
	b.lt	LBB0_16
; %bb.7:
	ldr	x13, [x0, #64]
	sub	x14, x12, #1
	mov	w11, #1
	cmp	x14, #9
	b.hs	LBB0_11
; %bb.8:
	mov	w14, #1
	b	LBB0_14
LBB0_9:
	ldr	x9, [x0, #120]
	cmp	x9, #0
	mov	w9, #7
	csel	w9, wzr, w9, eq
	ldr	w11, [x0, #16]
	cmp	w11, #6
	b.ne	LBB0_27
; %bb.10:
	add	w11, w9, #14
	ldp	x13, x12, [x0, #104]
	cmp	x12, #0
	csel	w9, w9, w11, eq
	add	w11, w9, #14
	cmp	x13, #0
	csel	w9, w9, w11, eq
	b	LBB0_27
LBB0_11:
	ands	x15, x14, #0x7
	mov	w16, #8
	csel	x15, x16, x15, eq
	sub	x15, x14, x15
	add	x14, x15, #1
	movi	d0, #0000000000000000
	mov.s	v0[0], w9
	add	x9, x13, #376
	movi.2d	v1, #0000000000000000
	movi.2s	v2, #2
	movi.2s	v3, #1
	movi.2d	v4, #0000000000000000
	movi.2d	v5, #0000000000000000
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldur	q6, [x9, #-192]
	ldur	q7, [x9, #-256]
	ldur	q16, [x9, #-64]
	ldur	q17, [x9, #-128]
	ldr	q18, [x9, #64]
	ldr	q19, [x9]
	ldr	q20, [x9, #192]
	ldr	q21, [x9, #128]
	zip1.2d	v6, v7, v6
	zip1.2d	v7, v17, v16
	zip1.2d	v16, v19, v18
	zip1.2d	v17, v21, v20
	cmeq.2d	v6, v6, #0
	xtn.2s	v6, v6
	cmeq.2d	v7, v7, #0
	xtn.2s	v7, v7
	cmeq.2d	v16, v16, #0
	xtn.2s	v16, v16
	cmeq.2d	v17, v17, #0
	xtn.2s	v17, v17
	bsl.8b	v6, v3, v2
	bsl.8b	v7, v3, v2
	bsl.8b	v16, v3, v2
	bsl.8b	v17, v3, v2
	add.2s	v0, v6, v0
	add.2s	v1, v7, v1
	add.2s	v4, v16, v4
	add.2s	v5, v17, v5
	add	x9, x9, #512
	subs	x15, x15, #8
	b.ne	LBB0_12
; %bb.13:
	add.2s	v0, v1, v0
	add.2s	v0, v4, v0
	add.2s	v0, v5, v0
	addp.2s	v0, v0, v0
	fmov	w9, s0
LBB0_14:
	add	x13, x13, x14, lsl #6
	add	x13, x13, #56
	sub	x12, x12, x14
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x13], #64
	cmp	x14, #0
	cinc	w14, w11, ne
	add	w9, w14, w9
	subs	x12, x12, #1
	b.ne	LBB0_15
LBB0_16:
	ldr	w11, [x0, #12]
	cbz	w11, LBB0_27
; %bb.17:
	ldr	x12, [x0, #72]
	cbz	x12, LBB0_19
; %bb.18:
	add	w11, w11, w11, lsl #2
	add	w9, w11, w9
	b	LBB0_27
LBB0_19:
	ldr	w11, [x0, #8]
	cmp	w11, #1
	b.lt	LBB0_27
; %bb.20:
	ldr	x12, [x0, #64]
	cmp	w11, #4
	b.hs	LBB0_22
; %bb.21:
	mov	x13, #0
	b	LBB0_25
LBB0_22:
	mov	w16, #0
	mov	w15, #0
	mov	w14, #0
	and	x13, x11, #0xfffffffc
	add	x17, x12, #128
	mov	x1, x13
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldur	w2, [x17, #-128]
	ldur	w3, [x17, #-64]
	ldr	w4, [x17]
	add	w9, w9, w2, lsl #1
	ldr	w2, [x17, #64]
	add	w16, w16, w3, lsl #1
	add	w15, w15, w4, lsl #1
	add	w14, w14, w2, lsl #1
	add	x17, x17, #256
	subs	x1, x1, #4
	b.ne	LBB0_23
; %bb.24:
	add	w9, w16, w9
	add	w9, w15, w9
	add	w9, w14, w9
	cmp	x13, x11
	b.eq	LBB0_27
LBB0_25:
	add	x12, x12, x13, lsl #6
	sub	x11, x11, x13
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12], #64
	add	w9, w9, w13, lsl #1
	subs	x11, x11, #1
	b.ne	LBB0_26
LBB0_27:
	ldr	w11, [x0, #8]
	cmp	w11, #1
	b.lt	LBB0_62
; %bb.28:
	mov	x12, #0
	cmp	x8, #0
	cset	w13, eq
	cset	w14, ne
	ldr	x15, [x0, #64]
	ldr	x10, [x10]
	ldr	x16, [x0]
	cmp	x16, x10
	cset	w17, eq
	ldr	w1, [x0, #20]
Lloh8:
	adrp	x2, _EXP_REUSE@GOTPAGE
Lloh9:
	ldr	x2, [x2, _EXP_REUSE@GOTPAGEOFF]
Lloh10:
	ldr	x2, [x2]
	add	w3, w1, #1
	lsl	x4, x3, #3
	b	LBB0_31
LBB0_29:                                ;   in Loop: Header=BB0_31 Depth=1
	add	w9, w9, #6
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	add	x12, x12, #1
	cmp	x12, x11
	b.eq	LBB0_62
LBB0_31:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_41 Depth 2
                                        ;     Child Loop BB0_52 Depth 2
	add	x5, x15, x12, lsl #6
	add	w9, w9, w13
	ldr	x6, [x5, #56]
	cbz	x6, LBB0_35
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	add	w9, w9, w13
	ldr	w5, [x5]
	cbz	w5, LBB0_44
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=1
	add	w9, w9, w14
	cbz	x8, LBB0_45
; %bb.34:                               ;   in Loop: Header=BB0_31 Depth=1
	add	w6, w1, w9
	add	w6, w6, w17
	cmp	x16, x10
	csinc	w9, w6, w9, ne
	add	w9, w9, #9
	cmp	w1, #1
	b.ge	LBB0_37
	b	LBB0_46
LBB0_35:                                ;   in Loop: Header=BB0_31 Depth=1
	ldr	w5, [x5]
	cbz	w5, LBB0_44
; %bb.36:                               ;   in Loop: Header=BB0_31 Depth=1
	cmp	w1, #1
	b.lt	LBB0_46
LBB0_37:                                ;   in Loop: Header=BB0_31 Depth=1
	add	x7, x15, x12, lsl #6
	ldr	x6, [x7, #32]
	add	x7, x7, #8
	mov	w19, #1
	b	LBB0_41
LBB0_38:                                ;   in Loop: Header=BB0_41 Depth=2
	add	w9, w9, #1
	cbz	w20, LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_41 Depth=2
	ldr	w20, [x0, #28]
	add	w9, w9, w20, lsl #3
	add	w9, w9, #2
LBB0_40:                                ;   in Loop: Header=BB0_41 Depth=2
	add	x19, x19, #1
	cmp	x3, x19
	b.eq	LBB0_46
LBB0_41:                                ;   Parent Loop BB0_31 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x20, [x6, x19, lsl #3]
	cbz	x20, LBB0_40
; %bb.42:                               ;   in Loop: Header=BB0_41 Depth=2
	ldr	x20, [x7]
	ldr	w20, [x20, x19, lsl #2]
	cbz	w14, LBB0_38
; %bb.43:                               ;   in Loop: Header=BB0_41 Depth=2
	cmp	w20, #2
	b.eq	LBB0_39
	b	LBB0_38
LBB0_44:                                ;   in Loop: Header=BB0_31 Depth=1
	mov	w6, #1
	cmp	x16, x10
	b.eq	LBB0_47
	b	LBB0_49
LBB0_45:                                ;   in Loop: Header=BB0_31 Depth=1
	add	w9, w1, w9
	add	w9, w9, w17
	ldr	w6, [x0, #24]
	add	w9, w9, w6
	add	w9, w9, #7
	cmp	w1, #1
	b.ge	LBB0_37
LBB0_46:                                ;   in Loop: Header=BB0_31 Depth=1
	mov	w6, #0
	cmp	x16, x10
	b.ne	LBB0_49
LBB0_47:                                ;   in Loop: Header=BB0_31 Depth=1
	cmp	x8, #0
	ccmp	x12, #0, #0, ne
	cinc	w9, w9, ne
	add	x7, x15, x12, lsl #6
	ldr	x19, [x7, #48]
	cbz	x19, LBB0_49
; %bb.48:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	w7, [x7, #40]
	add	w9, w9, w7
LBB0_49:                                ;   in Loop: Header=BB0_31 Depth=1
	cmp	w1, #1
	b.lt	LBB0_54
; %bb.50:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	x7, [x0, #32]
	add	x19, x15, x12, lsl #6
	add	x19, x19, #32
	mov	w20, #8
	b	LBB0_52
LBB0_51:                                ;   in Loop: Header=BB0_52 Depth=2
	add	x20, x20, #8
	cmp	x4, x20
	b.eq	LBB0_54
LBB0_52:                                ;   Parent Loop BB0_31 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x21, [x7, x20]
	ldr	x21, [x21, x12, lsl #3]
	cmp	x21, x2
	b.eq	LBB0_51
; %bb.53:                               ;   in Loop: Header=BB0_52 Depth=2
	ldr	x21, [x19]
	ldr	x21, [x21, x20]
	add	w22, w9, #6
	cmp	x21, #0
	csel	w9, w22, w9, eq
	add	w9, w9, #2
	b	LBB0_51
LBB0_54:                                ;   in Loop: Header=BB0_31 Depth=1
	cbz	x8, LBB0_57
; %bb.55:                               ;   in Loop: Header=BB0_31 Depth=1
	tbnz	w6, #0, LBB0_30
; %bb.56:                               ;   in Loop: Header=BB0_31 Depth=1
	add	x5, x15, x12, lsl #6
	ldr	w5, [x5, #16]
	cmp	w5, #2
	b.eq	LBB0_29
	b	LBB0_61
LBB0_57:                                ;   in Loop: Header=BB0_31 Depth=1
	add	w7, w9, #2
	cmp	w6, #0
	csel	w9, w9, w7, ne
	add	x7, x15, x12, lsl #6
	ldr	x7, [x7, #24]
	cbz	x7, LBB0_59
; %bb.58:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	w7, [x0, #40]
	add	w5, w7, w5
	lsl	w7, w5, #3
	sub	w5, w7, w5
	add	w9, w9, w5
	add	w9, w9, #7
	tbnz	w6, #0, LBB0_30
	b	LBB0_60
LBB0_59:                                ;   in Loop: Header=BB0_31 Depth=1
	add	w9, w9, #1
	tbnz	w6, #0, LBB0_30
LBB0_60:                                ;   in Loop: Header=BB0_31 Depth=1
	add	x5, x15, x12, lsl #6
	ldr	w5, [x5, #16]
LBB0_61:                                ;   in Loop: Header=BB0_31 Depth=1
	cmp	w5, #0
	add	w5, w9, #7
	csinc	w9, w5, w9, ne
	b	LBB0_30
LBB0_62:
	ldr	w8, [x0, #48]
	add	w8, w8, w9
	str	w8, [x0, #44]
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AC3_CHMODE_STEREO,8,3          ; @AC3_CHMODE_STEREO
	.comm	_AC3_CHMODE_2F2R,8,3            ; @AC3_CHMODE_2F2R
	.comm	_AC3_CHMODE_MONO,8,3            ; @AC3_CHMODE_MONO
	.comm	_EXP_REUSE,8,3                  ; @EXP_REUSE
	.no_dead_strip	_count_frame_bits
.subsections_via_symbols
