	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ac3_bit_alloc_calc_mask     ## -- Begin function ff_ac3_bit_alloc_calc_mask
	.p2align	4, 0x90
_ff_ac3_bit_alloc_calc_mask:            ## @ff_ac3_bit_alloc_calc_mask
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -76(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r13d
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AC3_CRITICAL_BANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	movq	_ff_ac3_bin_to_band_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movslq	(%rax,%rcx,4), %rcx
	decl	%ebx
	movl	(%rax,%rbx,4), %eax
	testq	%rcx, %rcx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.2:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	12(%rdi), %ebx
	movl	16(%rdi), %r12d
	shll	$8, %ebx
	addl	$768, %ebx                      ## imm = 0x300
	shll	$8, %r12d
	addl	$768, %r12d                     ## imm = 0x300
	movl	%ecx, %r13d
	jmp	LBB0_24
LBB0_3:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_49
LBB0_4:
	incl	%eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	(%r14), %esi
	movl	4(%r14), %edx
	xorl	%edi, %edi
	movl	$384, %ecx                      ## imm = 0x180
	callq	_calc_lowcomp1
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r14), %ecx
	subl	%eax, %ecx
	subl	%r13d, %ecx
	movl	%ecx, (%r12)
	movl	4(%r14), %esi
	movl	8(%r14), %edx
	movl	%eax, %edi
	movl	$384, %ecx                      ## imm = 0x180
	callq	_calc_lowcomp1
                                        ## kill: def $eax killed $eax def $rax
	movl	4(%r14), %ecx
	subl	%eax, %ecx
	subl	%r13d, %ecx
	movl	%ecx, 4(%r12)
	movl	8(%r14), %esi
	movl	12(%r14), %edx
	movl	%eax, %edi
	movl	$384, %ecx                      ## imm = 0x180
	callq	_calc_lowcomp1
	movl	%eax, %edi
	movq	%r12, %r15
	movl	8(%r14), %r12d
	movl	%r12d, %ebx
	subl	%r13d, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	%ebx, %ecx
	subl	%edi, %ecx
	movl	%ecx, 8(%r15)
	movl	$3, %ecx
	cmpl	12(%r14), %r12d
	jle	LBB0_13
## %bb.5:
	movl	12(%r14), %esi
	movl	16(%r14), %edx
	movl	$384, %ecx                      ## imm = 0x180
	callq	_calc_lowcomp1
	movl	%eax, %edi
	movl	12(%r14), %r12d
	movl	%r12d, %ebx
	subl	%r13d, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	%ebx, %ecx
	subl	%edi, %ecx
	movl	%ecx, 12(%r15)
	movl	$4, %ecx
	cmpl	16(%r14), %r12d
	jle	LBB0_13
## %bb.6:
	movl	16(%r14), %esi
	movl	20(%r14), %edx
	movl	$384, %ecx                      ## imm = 0x180
	callq	_calc_lowcomp1
	movl	%eax, %edi
	movl	16(%r14), %r12d
	movl	%r12d, %ebx
	subl	%r13d, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	%ebx, %ecx
	subl	%edi, %ecx
	movl	%ecx, 16(%r15)
	movl	$5, %ecx
	cmpl	20(%r14), %r12d
	jle	LBB0_13
## %bb.7:
	movl	20(%r14), %esi
	movl	24(%r14), %edx
	movl	$384, %ecx                      ## imm = 0x180
	callq	_calc_lowcomp1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	20(%r14), %r12d
	movl	%r12d, %ebx
	subl	%r13d, %ebx
	movl	(%rdx), %esi
	movl	%ebx, %ecx
	movl	%eax, %edi
	subl	%eax, %ecx
	movl	%ecx, 20(%r15)
	movl	$6, %ecx
	cmpl	24(%r14), %r12d
	jle	LBB0_13
## %bb.8:
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_51
## %bb.9:
	movl	24(%r14), %r12d
	movl	%r12d, %ebx
	subl	(%rdx), %r12d
	subl	%r13d, %ebx
	movl	%ebx, %eax
	movl	%edi, %r14d
	subl	%edi, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 24(%rcx)
	movl	$7, %r15d
	jmp	LBB0_15
LBB0_13:
	movl	%edi, %r14d
LBB0_14:
	movl	%ecx, %r15d
	subl	%esi, %r12d
LBB0_15:
	movl	$22, %r13d
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	$22, %esi
	callq	_FFMIN
	cmpl	%eax, %r15d
	jge	LBB0_22
## %bb.16:
	movl	%r15d, %r15d
	movl	%eax, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_19 Depth=1
	leaq	1(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13,%r15,4), %esi
	movl	4(%r13,%r15,4), %edx
	movl	%r14d, %edi
	movl	%r15d, %ecx
	callq	_calc_lowcomp
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
	subl	4(%rax), %ebx
	movl	(%r13,%r15,4), %esi
	subl	-120(%rbp), %esi                ## 4-byte Folded Reload
	movq	%r13, %r14
	movq	%rax, %r13
	movl	%ebx, %edi
	callq	_FFMAX
	subl	8(%r13), %r12d
	movl	%eax, %ebx
	movl	(%r14,%r15,4), %esi
	subl	(%r13), %esi
	movl	%r12d, %edi
	callq	_FFMAX
	movl	%eax, %r12d
	movl	%ebx, %edi
	movl	-96(%rbp), %r14d                ## 4-byte Reload
	subl	%r14d, %edi
	movl	%eax, %esi
	callq	_FFMAX
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r15,4)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %r15
	cmpq	-128(%rbp), %rax                ## 8-byte Folded Reload
	je	LBB0_23
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	movq	-112(%rbp), %r13                ## 8-byte Reload
	je	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpq	$6, %r15
	jne	LBB0_17
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	$7, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, -96(%rbp)                ## 4-byte Spill
	jmp	LBB0_18
LBB0_22:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_23:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	$22, %r13d
LBB0_24:
	cmpl	%eax, %r13d
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	jg	LBB0_27
## %bb.25:
	movslq	%r13d, %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r14
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
                                        ## kill: def $r15d killed $r15d killed $r15 def $r15
	subl	%r13d, %r15d
	incl	%r15d
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	subl	4(%rdi), %ebx
	movl	(%r14,%r13,4), %esi
	subl	%edx, %esi
	movl	%ebx, %edi
	movq	%rdx, %r15
	callq	_FFMAX
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	subl	8(%rcx), %r12d
	movl	%eax, %ebx
	movl	(%r14,%r13,4), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subl	(%rax), %esi
	movl	%r12d, %edi
	callq	_FFMAX
	movl	%eax, %r12d
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_FFMAX
	movq	%r15, %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	incq	%r13
	cmpl	%r13d, -96(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_26
LBB0_27:
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	cmpl	%r13d, -104(%rbp)               ## 4-byte Folded Reload
	jle	LBB0_32
LBB0_28:
	movq	_DBA_REUSE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	movl	16(%rbp), %edx
	cmpl	%edx, (%rcx)
	je	LBB0_30
## %bb.29:
	movq	_DBA_NEW@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jne	LBB0_49
LBB0_30:
	movl	24(%rbp), %esi
	cmpl	$8, %esi
	jle	LBB0_37
LBB0_31:
	movl	$-1, %eax
	jmp	LBB0_49
LBB0_32:
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%ecx, %edx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rbx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	56(%rbp), %rax
	leaq	(%rax,%rcx,4), %r15
	notl	%r13d
	movq	%rdx, %r14
	addq	%rdx, %r13
	xorl	%r12d, %r12d
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_35 Depth=1
	shrl	$2, %esi
	addl	(%rbx,%r12,4), %esi
	movl	%esi, (%rbx,%r12,4)
LBB0_34:                                ##   in Loop: Header=BB0_35 Depth=1
	movq	_ff_ac3_hearing_threshold_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	24(%rdi), %ecx
	leal	(%r14,%r12), %edx
	sarl	%cl, %edx
	movslq	%edx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	32(%rdi), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_FFMAX
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, (%r15,%r12,4)
	incq	%r12
	movq	%r13, %rax
                                        ## kill: def $eax killed $eax killed $rax
	addl	%r12d, %eax
	je	LBB0_28
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movl	20(%rdi), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	subl	(%rax,%r12,4), %esi
	jg	LBB0_33
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	movl	(%rbx,%r12,4), %esi
	jmp	LBB0_34
LBB0_37:
	testl	%esi, %esi
	jle	LBB0_49
## %bb.38:
	movq	48(%rbp), %r8
	movq	40(%rbp), %rcx
	movq	32(%rbp), %r9
	movl	%esi, %r15d
	xorl	%edi, %edi
	movq	_AC3_CRITICAL_BANDS@GOTPCREL(%rip), %r11
	movq	56(%rbp), %r14
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_40 Depth=1
	incq	%rdi
	cmpq	%r15, %rdi
	je	LBB0_48
LBB0_40:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_44 Depth 2
	addl	(%r9,%rdi,4), %esi
	movl	(%r11), %eax
	subl	%esi, %eax
	jle	LBB0_31
## %bb.41:                              ##   in Loop: Header=BB0_40 Depth=1
	movl	(%rcx,%rdi,4), %edx
	cmpl	%eax, %edx
	jg	LBB0_31
## %bb.42:                              ##   in Loop: Header=BB0_40 Depth=1
	movl	(%r8,%rdi,4), %ebx
	xorl	%eax, %eax
	cmpl	$4, %ebx
	setge	%r10b
	testl	%edx, %edx
	jle	LBB0_39
## %bb.43:                              ##   in Loop: Header=BB0_40 Depth=1
	shll	$7, %ebx
	movb	%r10b, %al
	shll	$7, %eax
	addl	%eax, %ebx
	addl	$-512, %ebx                     ## imm = 0xFE00
	movslq	%esi, %rax
	leaq	(%r14,%rax,4), %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_44:                                ##   Parent Loop BB0_40 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	%ebx, (%rdx,%rax,4)
	incq	%rax
	cmpl	(%rcx,%rdi,4), %eax
	jl	LBB0_44
## %bb.45:                              ##   in Loop: Header=BB0_40 Depth=1
	addl	%eax, %esi
	jmp	LBB0_39
LBB0_48:
	xorl	%eax, %eax
LBB0_49:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_54
## %bb.50:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_51:
	movl	24(%r14), %esi
	movl	28(%r14), %edx
	movl	$384, %ecx                      ## imm = 0x180
	callq	_calc_lowcomp1
	movl	%eax, %edx
	movl	24(%r14), %r12d
	movl	%r12d, %ebx
	subl	%r13d, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	%ebx, %ecx
	movl	%edx, %eax
	subl	%edx, %ecx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, 24(%rdx)
	movl	$7, %ecx
	cmpl	28(%r14), %r12d
	jle	LBB0_53
## %bb.52:
	subl	%esi, %r12d
	movl	$7, %r15d
	movl	%eax, %r14d
	jmp	LBB0_15
LBB0_53:
	movl	%eax, %r14d
	jmp	LBB0_14
LBB0_54:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AC3_CRITICAL_BANDS,4,2         ## @AC3_CRITICAL_BANDS
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ff_ac3_bin_to_band_tab,8,3     ## @ff_ac3_bin_to_band_tab
	.comm	_ff_ac3_hearing_threshold_tab,8,3 ## @ff_ac3_hearing_threshold_tab
	.comm	_DBA_REUSE,4,2                  ## @DBA_REUSE
	.comm	_DBA_NEW,4,2                    ## @DBA_NEW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ac3_bit_alloc_calc_mask     ; -- Begin function ff_ac3_bit_alloc_calc_mask
	.p2align	2
_ff_ac3_bit_alloc_calc_mask:            ; @ff_ac3_bit_alloc_calc_mask
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	stur	w5, [x29, #-100]                ; 4-byte Folded Spill
	mov	x24, x4
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _AC3_CRITICAL_BANDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC3_CRITICAL_BANDS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	cmp	w3, #0
	b.le	LBB0_3
; %bb.1:
	stp	w7, w6, [x29, #-120]            ; 8-byte Folded Spill
Lloh8:
	adrp	x8, _ff_ac3_bin_to_band_tab@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ff_ac3_bin_to_band_tab@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w20, [x8, w2, sxtw #2]
	sub	w9, w3, #1
	ldr	w25, [x8, w9, uxtw #2]
	add	w22, w25, #1
	stur	x20, [x29, #-112]               ; 8-byte Folded Spill
	stur	x19, [x29, #-96]                ; 8-byte Folded Spill
	stur	w25, [x29, #-104]               ; 4-byte Folded Spill
	cbz	w20, LBB0_4
; %bb.2:
	ldp	w8, w9, [x21, #12]
	lsl	w8, w8, #8
	add	w26, w8, #768
	lsl	w8, w9, #8
	add	w28, w8, #768
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_24
LBB0_3:
Lloh11:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_46
LBB0_4:
	ldp	w1, w2, [x23]
	mov	w0, #0
	mov	w3, #384
	bl	_calc_lowcomp1
	ldp	w8, w1, [x23]
	add	w9, w0, w24
	sub	w8, w8, w9
	str	w8, [x19]
	ldr	w2, [x23, #8]
	mov	w3, #384
	bl	_calc_lowcomp1
	ldp	w8, w1, [x23, #4]
	add	w9, w0, w24
	sub	w8, w8, w9
	str	w8, [x19, #4]
	ldr	w2, [x23, #12]
	mov	w3, #384
	bl	_calc_lowcomp1
	mov	x27, x0
	ldr	w8, [x21]
	ldp	w9, w1, [x23, #8]
	sub	w26, w9, w24
	sub	w10, w26, w0
	str	w10, [x19, #8]
	cmp	w9, w1
	b.le	LBB0_10
; %bb.5:
	ldr	w2, [x23, #16]
	mov	x0, x27
	mov	w3, #384
	bl	_calc_lowcomp1
	mov	x27, x0
	ldr	w8, [x21]
	ldp	w9, w1, [x23, #12]
	sub	w26, w9, w24
	sub	w10, w26, w0
	str	w10, [x19, #12]
	cmp	w9, w1
	b.le	LBB0_11
; %bb.6:
	ldr	w2, [x23, #20]
	mov	x0, x27
	mov	w3, #384
	bl	_calc_lowcomp1
	mov	x27, x0
	ldr	w8, [x21]
	ldp	w9, w1, [x23, #16]
	sub	w26, w9, w24
	sub	w10, w26, w0
	str	w10, [x19, #16]
	cmp	w9, w1
	b.le	LBB0_12
; %bb.7:
	ldr	w2, [x23, #24]
	mov	x0, x27
	mov	w3, #384
	bl	_calc_lowcomp1
	mov	x27, x0
	ldr	w8, [x21]
	ldp	w9, w1, [x23, #20]
	sub	w26, w9, w24
	sub	w10, w26, w0
	str	w10, [x19, #20]
	cmp	w9, w1
	b.le	LBB0_13
; %bb.8:
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	cbz	w8, LBB0_14
; %bb.9:
	ldr	w8, [x21]
	sub	w28, w1, w8
	sub	w26, w1, w24
	sub	w8, w26, w27
	b	LBB0_15
LBB0_10:
	sub	w28, w9, w8
	mov	w19, #3
	b	LBB0_16
LBB0_11:
	sub	w28, w9, w8
	mov	w19, #4
	b	LBB0_16
LBB0_12:
	sub	w28, w9, w8
	mov	w19, #5
	b	LBB0_16
LBB0_13:
	sub	w28, w9, w8
	mov	w19, #6
	b	LBB0_16
LBB0_14:
	ldr	w2, [x23, #28]
	mov	x0, x27
	mov	w3, #384
	bl	_calc_lowcomp1
	mov	x27, x0
	ldr	w8, [x23, #24]
	ldr	w9, [x21]
	sub	w28, w8, w9
	sub	w26, w8, w24
	sub	w8, w26, w0
LBB0_15:
	str	w8, [x19, #24]
	mov	w19, #7
LBB0_16:
	mov	w20, #22
	mov	x0, x22
	mov	w1, #22
	bl	_FFMIN
	cmp	w19, w0
	b.ge	LBB0_24
; %bb.17:
	mov	w19, w19
	mov	w25, w0
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w1, [x23, x19, lsl #2]
	add	x20, x19, #1
	ldr	w2, [x23, x20, lsl #2]
	mov	x0, x27
	mov	x3, x19
	bl	_calc_lowcomp
	mov	x27, x0
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x21, #4]
	sub	w0, w26, w8
	lsl	x19, x19, #2
	ldr	w8, [x23, x19]
	sub	w1, w8, w24
	bl	_FFMAX
	mov	x26, x0
	ldr	w8, [x21, #8]
	sub	w0, w28, w8
	ldr	w8, [x23, x19]
	ldr	w9, [x21]
	sub	w1, w8, w9
	bl	_FFMAX
	mov	x28, x0
	sub	w0, w26, w27
	mov	x1, x28
	bl	_FFMAX
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	str	w0, [x8, x19]
	mov	x19, x20
	cmp	x20, x25
	b.eq	LBB0_23
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	cbz	w8, LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	cmp	x19, #6
	b.ne	LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	w20, #7
	b	LBB0_19
LBB0_23:
	mov	w20, #22
	ldur	w25, [x29, #-104]               ; 4-byte Folded Reload
LBB0_24:
	cmp	w20, w25
	b.gt	LBB0_27
; %bb.25:
	sbfiz	x8, x20, #2, #32
	add	x19, x23, x8
	ldur	x9, [x29, #-96]                 ; 8-byte Folded Reload
	add	x25, x9, x8
	ldur	w8, [x29, #-104]                ; 4-byte Folded Reload
	sub	w8, w8, w20
	add	w27, w8, #1
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #4]
	sub	w0, w26, w8
	ldr	w8, [x19]
	sub	w1, w8, w24
	bl	_FFMAX
	mov	x26, x0
	ldr	w8, [x21, #8]
	sub	w0, w28, w8
	ldr	w8, [x19], #4
	ldr	w9, [x21]
	sub	w1, w8, w9
	bl	_FFMAX
	mov	x28, x0
	mov	x0, x26
	mov	x1, x28
	bl	_FFMAX
	str	w0, [x25], #4
	subs	w27, w27, #1
	b.ne	LBB0_26
LBB0_27:
	ldr	x19, [x29, #40]
	ldur	x20, [x29, #-112]               ; 8-byte Folded Reload
	ldur	w8, [x29, #-104]                ; 4-byte Folded Reload
	cmp	w20, w8
	b.le	LBB0_31
LBB0_28:
Lloh14:
	adrp	x8, _DBA_REUSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DBA_REUSE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _DBA_NEW@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DBA_NEW@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	ldur	w10, [x29, #-116]               ; 4-byte Folded Reload
	cmp	w8, w10
	ccmp	w9, w10, #4, ne
	b.ne	LBB0_45
; %bb.29:
	ldur	w12, [x29, #-120]               ; 4-byte Folded Reload
	cmp	w12, #8
	b.le	LBB0_36
LBB0_30:
	mov	w0, #-1
	b	LBB0_46
LBB0_31:
	sxtw	x8, w20
	lsl	x8, x8, #2
	ldur	x9, [x29, #-96]                 ; 8-byte Folded Reload
	add	x24, x9, x8
	add	x23, x23, x8
	add	x25, x19, x8
Lloh20:
	adrp	x26, _ff_ac3_hearing_threshold_tab@GOTPAGE
Lloh21:
	ldr	x26, [x26, _ff_ac3_hearing_threshold_tab@GOTPAGEOFF]
	mov	x27, x20
	b	LBB0_34
LBB0_32:                                ;   in Loop: Header=BB0_34 Depth=1
	ldr	w9, [x24]
	add	w1, w9, w8, lsr #2
	str	w1, [x24]
LBB0_33:                                ;   in Loop: Header=BB0_34 Depth=1
	ldr	x8, [x26]
	ldr	w9, [x21, #24]
	asr	w9, w27, w9
	ldr	x8, [x8, w9, sxtw #3]
	ldr	x9, [x21, #32]
	ldr	w0, [x8, x9, lsl #2]
	bl	_FFMAX
	str	w0, [x25], #4
	add	x24, x24, #4
	add	w27, w27, #1
	add	x23, x23, #4
	cmp	w22, w27
	b.eq	LBB0_28
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #20]
	ldr	w9, [x23]
	sub	w8, w8, w9
	cmp	w8, #0
	b.gt	LBB0_32
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	ldr	w1, [x24]
	b	LBB0_33
LBB0_36:
	cmp	w12, #1
	b.lt	LBB0_45
; %bb.37:
	mov	x8, #0
	ldp	x13, x9, [x29, #24]
	mov	w10, #-512
	mov	w11, #-384
	mov	w12, w12
	ldr	x14, [x29, #16]
Lloh22:
	adrp	x2, _AC3_CRITICAL_BANDS@GOTPAGE
Lloh23:
	ldr	x2, [x2, _AC3_CRITICAL_BANDS@GOTPAGEOFF]
	b	LBB0_39
LBB0_38:                                ;   in Loop: Header=BB0_39 Depth=1
	add	x8, x8, #1
	cmp	x8, x12
	b.eq	LBB0_45
LBB0_39:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_43 Depth 2
	ldr	w15, [x14, x8, lsl #2]
	ldr	w16, [x2]
	add	w20, w15, w20
	subs	w16, w16, w20
	b.le	LBB0_30
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	ldr	w15, [x13, x8, lsl #2]
	cmp	w15, w16
	b.gt	LBB0_30
; %bb.41:                               ;   in Loop: Header=BB0_39 Depth=1
	ldr	w16, [x9, x8, lsl #2]
	cmp	w16, #3
	csel	w17, w11, w10, gt
	cmp	w15, #1
	b.lt	LBB0_38
; %bb.42:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	x15, #0
	add	w16, w17, w16, lsl #7
	add	x17, x19, w20, sxtw #2
LBB0_43:                                ;   Parent Loop BB0_39 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x0, x15, #2
	ldr	w1, [x17, x0]
	add	w1, w16, w1
	str	w1, [x17, x0]
	ldr	w0, [x13, x8, lsl #2]
	add	x15, x15, #1
	cmp	w15, w0
	b.lt	LBB0_43
; %bb.44:                               ;   in Loop: Header=BB0_39 Depth=1
	add	w20, w20, w15
	b	LBB0_38
LBB0_45:
	mov	w0, #0
LBB0_46:
	ldur	x8, [x29, #-88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_48
; %bb.47:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_48:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_AC3_CRITICAL_BANDS,4,2         ; @AC3_CRITICAL_BANDS
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ff_ac3_bin_to_band_tab,8,3     ; @ff_ac3_bin_to_band_tab
	.comm	_ff_ac3_hearing_threshold_tab,8,3 ; @ff_ac3_hearing_threshold_tab
	.comm	_DBA_REUSE,4,2                  ; @DBA_REUSE
	.comm	_DBA_NEW,4,2                    ; @DBA_NEW
.subsections_via_symbols
