	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function ff_aac_is_encoding_err
LCPI0_0:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_aac_is_encoding_err
	.p2align	4, 0x90
_ff_aac_is_encoding_err:                ## @ff_aac_is_encoding_err
	.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	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movss	%xmm1, -52(%rbp)                ## 4-byte Spill
	movaps	%xmm0, %xmm1
                                        ## kill: def $r8d killed $r8d def $r8
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	(%rdx), %r13
	xorl	%eax, %eax
	cmpl	$0, 16(%rbp)
	sete	%al
	movq	(%r13,%rax,8), %rcx
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	movq	48(%r13,%rax,8), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	%rdi, %rax
	movq	(%rsi), %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 12(%rdi)
	movups	%xmm0, (%rdi)
	xorps	%xmm0, %xmm0
	ucomiss	%xmm1, %xmm0
	jae	LBB0_21
## %bb.1:
	ucomiss	%xmm2, %xmm0
	jae	LBB0_21
## %bb.2:
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	movslq	%r8d, %rcx
	movq	32(%r13), %rax
	movq	%rcx, -224(%rbp)                ## 8-byte Spill
	cmpl	$0, (%rax,%rcx,4)
	movss	%xmm2, -124(%rbp)               ## 4-byte Spill
	jle	LBB0_3
## %bb.4:
	movq	%rsi, %r14
	leaq	1024(%rbx), %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	leaq	2048(%rbx), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	3072(%rbx), %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movl	%r8d, %eax
	shll	$4, %eax
	addl	%r9d, %eax
	cltq
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2ssl	24(%rbp), %xmm0
	movss	%xmm0, -136(%rbp)               ## 4-byte Spill
	movss	-52(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	divss	%xmm1, %xmm0
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	movslq	%r9d, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	divss	%xmm2, %xmm1
	movl	%r8d, %eax
	shll	$7, %eax
	addl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	movss	%xmm1, -88(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	sqrtss	%xmm1, %xmm0
	movss	%xmm0, -132(%rbp)               ## 4-byte Spill
	xorps	%xmm5, %xmm5
	xorps	%xmm4, %xmm4
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%r14, -144(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	xorps	%xmm1, %xmm1
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movss	-76(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	movss	-56(%rbp), %xmm5                ## 4-byte Reload
                                        ## xmm5 = mem[0],zero,zero,zero
	movq	-168(%rbp), %rsi                ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rcx, %xmm0
	xorps	%xmm2, %xmm2
	cvtsi2ss	%rdi, %xmm2
	xorps	%xmm3, %xmm3
	cvtsi2ss	%rax, %xmm3
	addss	%xmm0, %xmm5
	addss	%xmm2, %xmm5
	addss	%xmm3, %xmm4
	movss	12(%r14), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	divss	-84(%rbp), %xmm0                ## 4-byte Folded Reload
	mulss	%xmm1, %xmm0
	addss	%xmm0, %xmm4
	incq	%rsi
	movq	32(%r13), %rax
	movq	-224(%rbp), %rcx                ## 8-byte Reload
	movslq	(%rax,%rcx,4), %rax
	subl	$-128, -72(%rbp)                ## 4-byte Folded Spill
	cmpq	%rax, %rsi
	jge	LBB0_20
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	movss	%xmm5, -56(%rbp)                ## 4-byte Spill
	movss	%xmm4, -76(%rbp)                ## 4-byte Spill
	movq	24(%r14), %rax
	movslq	8(%r14), %rcx
	movq	(%rax,%rcx,8), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rax,%rcx,8), %rax
	movq	%rax, -208(%rbp)                ## 8-byte Spill
	movq	%rsi, -168(%rbp)                ## 8-byte Spill
	leal	(%rsi,%r8), %r12d
	movl	%r12d, %eax
	shll	$4, %eax
	movq	-112(%rbp), %r15                ## 8-byte Reload
	addl	%r15d, %eax
	movslq	%eax, %r14
	movq	16(%r13), %rax
	movq	-176(%rbp), %rcx                ## 8-byte Reload
	movl	(%rax,%rcx,4), %esi
	addl	$-4, %esi
	movl	$1, %edi
	callq	_FFMAX
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movss	-52(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_pos_pow34
	movl	%eax, -128(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movss	(%rax,%r14,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	%r14, -200(%rbp)                ## 8-byte Spill
	movq	-208(%rbp), %rax                ## 8-byte Reload
	movss	(%rax,%r14,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_FFMIN
	movss	%xmm0, -84(%rbp)                ## 4-byte Spill
	movq	40(%r13), %rax
	movl	(%rax,%r15,4), %edx
	shll	$7, %r12d
	addl	-68(%rbp), %r12d                ## 4-byte Folded Reload
	movslq	%r12d, %r15
	movq	-144(%rbp), %r14                ## 8-byte Reload
	testl	%edx, %edx
	jle	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movslq	-72(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r12
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	xorl	%r14d, %r14d
	movss	-88(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	mulss	%xmm0, %xmm2
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movss	%xmm2, (%rax,%r14,4)
	incq	%r14
	movq	40(%r13), %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movslq	(%rax,%rcx,4), %rdx
	cmpq	%rdx, %r14
	jge	LBB0_10
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	(%r15,%r14,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	-136(%rbp), %xmm2               ## 4-byte Folded Reload
	addss	(%r12,%r14,4), %xmm2
	ucomiss	LCPI0_0(%rip), %xmm1
	movss	-132(%rbp), %xmm0               ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movaps	%xmm1, %xmm0
	movss	%xmm2, -48(%rbp)                ## 4-byte Spill
	callq	_sqrt
	movss	-48(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movss	-88(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-144(%rbp), %r14                ## 8-byte Reload
	movq	-104(%rbp), %r15                ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-160(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%r15,4), %rsi
	movq	%rsi, -232(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	*16(%r14)
	movq	-152(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%r15,4), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	40(%r13), %rax
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movl	(%rax,%r15,4), %edx
	movq	-192(%rbp), %rdi                ## 8-byte Reload
	callq	*16(%r14)
	movq	40(%r13), %rax
	movl	(%rax,%r15,4), %edx
	movq	-184(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	callq	*16(%r14)
	movq	40(%r13), %rax
	movl	(%rax,%r15,4), %esi
	movl	$1, %edi
	movq	%r12, %rdx
	callq	_find_max_val
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	callq	_find_min_book
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movq	40(%r13), %rax
	movl	(%rax,%r15,4), %ecx
	movq	16(%r13), %rax
	movq	24(%r13), %rdx
	movq	-176(%rbp), %r12                ## 8-byte Reload
	movl	(%rax,%r12,4), %r8d
	movl	(%rdx,%r12,4), %r9d
	movss	12(%r14), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-200(%rbp), %rdx                ## 8-byte Reload
	divss	(%rax,%rdx,4), %xmm0
	movq	_INFINITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorps	%xmm1, %xmm1
	movups	%xmm1, 8(%rsp)
	movl	%eax, (%rsp)
	movl	$0, 24(%rsp)
	movq	%r14, %rdi
	movq	-232(%rbp), %rsi                ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_quantize_band_cost
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	88(%r13), %rax
	movl	(%rax,%r15,4), %ecx
	movq	64(%r13), %rax
	movq	72(%r13), %rdx
	movl	(%rax,%r12,4), %r8d
	movl	(%rdx,%r12,4), %r9d
	movss	12(%r14), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movq	-208(%rbp), %rax                ## 8-byte Reload
	movq	-200(%rbp), %rdx                ## 8-byte Reload
	divss	(%rax,%rdx,4), %xmm0
	movq	_INFINITY@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	xorps	%xmm1, %xmm1
	movups	%xmm1, 8(%rsp)
	movl	%eax, (%rsp)
	movl	$0, 24(%rsp)
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-192(%rbp), %rdx                ## 8-byte Reload
	callq	_quantize_band_cost
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	40(%r13), %rax
	movl	(%rax,%r15,4), %ecx
	movss	12(%r14), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	divss	-84(%rbp), %xmm0                ## 4-byte Folded Reload
	movl	(%r12), %eax
	xorps	%xmm1, %xmm1
	movups	%xmm1, 8(%rsp)
	movl	%eax, (%rsp)
	movl	$0, 24(%rsp)
	movq	%r14, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movq	-184(%rbp), %rdx                ## 8-byte Reload
	movl	-80(%rbp), %r8d                 ## 4-byte Reload
	movl	-104(%rbp), %r9d                ## 4-byte Reload
	callq	_quantize_band_cost
	movq	40(%r13), %rcx
	movl	(%rcx,%r15,4), %ecx
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-128(%rbp), %edx                ## 4-byte Reload
	imull	24(%rbp), %edx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%edx, %xmm0
	cmpl	$1, %ecx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	xorps	%xmm1, %xmm1
	xorl	%edx, %edx
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movss	-56(%rbp), %xmm5                ## 4-byte Reload
                                        ## xmm5 = mem[0],zero,zero,zero
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, %esi
	andl	$-2, %esi
	xorps	%xmm1, %xmm1
	xorl	%edx, %edx
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movss	-56(%rbp), %xmm5                ## 4-byte Reload
                                        ## xmm5 = mem[0],zero,zero,zero
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	3072(%rbx,%rdx,4), %xmm2        ## xmm2 = mem[0],zero,zero,zero
	movss	(%rbx,%rdx,4), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	movss	4(%rbx,%rdx,4), %xmm4           ## xmm4 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm3
	mulss	%xmm3, %xmm3
	addss	%xmm1, %xmm3
	movss	1024(%rbx,%rdx,4), %xmm1        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	subss	%xmm2, %xmm1
	mulss	%xmm1, %xmm1
	addss	%xmm3, %xmm1
	movss	3076(%rbx,%rdx,4), %xmm2        ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm4
	mulss	%xmm4, %xmm4
	addss	%xmm1, %xmm4
	movss	1028(%rbx,%rdx,4), %xmm1        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	subss	%xmm2, %xmm1
	mulss	%xmm1, %xmm1
	addss	%xmm4, %xmm1
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	$1, %cl
	movss	-76(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	movq	-168(%rbp), %rsi                ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movss	(%rbx,%rdx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movss	3072(%rbx,%rdx,4), %xmm3        ## xmm3 = mem[0],zero,zero,zero
	subss	%xmm3, %xmm2
	mulss	%xmm2, %xmm2
	addss	%xmm1, %xmm2
	movss	1024(%rbx,%rdx,4), %xmm1        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm0
	subss	%xmm0, %xmm1
	mulss	%xmm1, %xmm1
	addss	%xmm2, %xmm1
	jmp	LBB0_19
LBB0_3:
	xorps	%xmm4, %xmm4
	xorps	%xmm5, %xmm5
LBB0_20:
	xorl	%eax, %eax
	ucomiss	%xmm4, %xmm5
	setae	%al
	movq	-216(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%rcx, %rax
	movl	24(%rbp), %ecx
	movl	%ecx, 4(%rax)
	movaps	%xmm4, %xmm0
	subss	%xmm5, %xmm0
	movss	%xmm0, 8(%rax)
	movss	%xmm5, 12(%rax)
	movss	%xmm4, 16(%rax)
	movss	-124(%rbp), %xmm0               ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 20(%rax)
LBB0_21:
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INFINITY,4,2                   ## @INFINITY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_aac_is_encoding_err         ; -- Begin function ff_aac_is_encoding_err
	.p2align	2
_ff_aac_is_encoding_err:                ; @ff_aac_is_encoding_err
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	d15, d14, [sp, #176]            ; 16-byte Folded Spill
	stp	d13, d12, [sp, #192]            ; 16-byte Folded Spill
	stp	d11, d10, [sp, #208]            ; 16-byte Folded Spill
	stp	d9, d8, [sp, #224]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #240]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #256]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	.cfi_offset b14, -152
	.cfi_offset b15, -160
	str	w6, [sp, #28]                   ; 4-byte Folded Spill
                                        ; kill: def $w4 killed $w4 def $x4
                                        ; kill: def $w3 killed $w3 def $x3
	str	w2, [sp, #56]                   ; 4-byte Folded Spill
	cmp	w5, #0
	cset	w9, eq
	ldr	x25, [x1]
	ldr	x11, [x25, w9, uxtw #3]
	mov	w10, #48
	mov	w9, #56
	csel	x9, x9, x10, eq
	ldr	x9, [x25, x9]
	stp	x9, x11, [sp, #72]              ; 16-byte Folded Spill
	ldr	x9, [x0]
	stp	xzr, xzr, [x8, #8]
	str	xzr, [x8]
	str	wzr, [x8, #24]
	fcmp	s0, #0.0
	b.ls	LBB0_16
; %bb.1:
	fcmp	s2, #0.0
	b.ls	LBB0_16
; %bb.2:
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x8, [x25, #32]
	ldr	w8, [x8, w3, sxtw #2]
	cmp	w8, #1
	str	s2, [sp, #24]                   ; 4-byte Folded Spill
	b.lt	LBB0_14
; %bb.3:
	mov	x23, x0
	mov	x10, #0
	add	x11, x9, #1024
	add	x26, x9, #2048
	str	x9, [sp, #64]                   ; 8-byte Folded Spill
	add	x8, x9, #3072
	stp	x8, x3, [sp, #40]               ; 16-byte Folded Spill
	sxtw	x8, w3
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	add	w8, w4, w3, lsl #4
	sxtw	x8, w8
	stp	x8, x11, [sp, #144]             ; 16-byte Folded Spill
	fdiv	s9, s1, s0
	sxtw	x24, w4
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	scvtf	s13, w8
	fdiv	s0, s0, s2
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	add	w22, w8, w3, lsl #7
	movi	d12, #0000000000000000
	movi	d14, #0000000000000000
	str	s0, [sp, #12]                   ; 4-byte Folded Spill
	fsqrt	s15, s0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	movi	d0, #0000000000000000
	ldr	x3, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x10, [sp, #136]                 ; 8-byte Folded Reload
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	scvtf	s1, x20
	fadd	s1, s12, s1
	scvtf	s2, x21
	scvtf	s3, x0
	fadd	s12, s1, s2
	fadd	s1, s14, s3
	ldr	s2, [x23, #12]
	fdiv	s2, s2, s11
	fmul	s0, s0, s2
	fadd	s14, s1, s0
	add	x10, x10, #1
	ldr	x8, [x25, #32]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	ldrsw	x8, [x8, x9, lsl #2]
	ldr	x22, [sp, #128]                 ; 8-byte Folded Reload
	add	w22, w22, #128
	cmp	x10, x8
	b.ge	LBB0_15
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x8, [x23, #24]
	ldrsw	x9, [x23, #8]
	add	x8, x8, x9, lsl #3
	str	x10, [sp, #136]                 ; 8-byte Folded Spill
	add	w20, w10, w3
	add	x19, x24, w20, sxtw #4
	ldp	x27, x21, [x8]
	ldr	x8, [x25, #16]
	ldr	x9, [sp, #144]                  ; 8-byte Folded Reload
	ldr	w8, [x8, x9, lsl #2]
	sub	w1, w8, #4
	mov	w0, #1
	bl	_FFMAX
	stur	w0, [x29, #-156]                ; 4-byte Folded Spill
	fmov	s0, s9
	bl	_pos_pow34
	str	w0, [sp, #60]                   ; 4-byte Folded Spill
	lsl	x8, x19, #2
	stp	x27, x8, [sp, #104]             ; 16-byte Folded Spill
	ldr	s0, [x27, x8]
	str	x21, [sp, #120]                 ; 8-byte Folded Spill
	ldr	s1, [x21, x8]
	bl	_FFMIN
	fmov	s11, s0
	ldr	x8, [x25, #40]
	ldr	w2, [x8, x24, lsl #2]
	cmp	w2, #1
	str	x22, [sp, #128]                 ; 8-byte Folded Spill
	b.lt	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, #0
	sbfiz	x8, x22, #2, #32
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	add	x22, x9, x8
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	add	x27, x9, x8
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x8, x21, #2
	ldr	s10, [x22, x8]
	ldr	s8, [x27, x8]
	fcmp	s15, s15
	fmov	s0, s15
	b.vs	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_8 Depth=2
	fmadd	s1, s13, s8, s10
	fmul	s0, s1, s0
	str	s0, [x26, x21, lsl #2]
	add	x21, x21, #1
	ldr	x8, [x25, #40]
	ldrsw	x2, [x8, x24, lsl #2]
	cmp	x21, x2
	b.lt	LBB0_8
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	s0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_sqrt
	b	LBB0_9
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	add	w8, w8, w20, lsl #7
	sxtw	x8, w8
	ldr	x9, [x23, #16]
	lsl	x21, x8, #2
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	add	x20, x8, x21
	ldr	x22, [sp, #64]                  ; 8-byte Folded Reload
	mov	x0, x22
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	blr	x9
	ldr	x8, [x23, #16]
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	add	x1, x9, x21
	str	x1, [sp, #96]                   ; 8-byte Folded Spill
	ldr	x9, [x25, #40]
	lsl	x27, x24, #2
	ldr	w2, [x9, x27]
	ldr	x0, [sp, #152]                  ; 8-byte Folded Reload
	blr	x8
	ldr	x8, [x23, #16]
	ldr	x9, [x25, #40]
	ldr	w2, [x9, x27]
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
	mov	x0, x19
	mov	x1, x26
	blr	x8
	ldr	x8, [x25, #40]
	ldr	w1, [x8, x27]
	mov	w0, #1
	mov	x2, x19
	bl	_find_max_val
	ldur	w0, [x29, #-156]                ; 4-byte Folded Reload
	bl	_find_min_book
	str	w0, [sp, #92]                   ; 4-byte Folded Spill
	ldr	x8, [x25, #40]
	ldr	w3, [x8, x27]
	ldr	x8, [sp, #144]                  ; 8-byte Folded Reload
	lsl	x21, x8, #2
	ldp	x8, x9, [x25, #16]
	ldr	w4, [x8, x21]
	ldr	w5, [x9, x21]
	ldr	s0, [x23, #12]
	ldp	x8, x28, [sp, #104]             ; 16-byte Folded Reload
	ldr	s1, [x8, x28]
Lloh0:
	adrp	x8, _INFINITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INFINITY@GOTPAGEOFF]
Lloh2:
	ldr	w6, [x8]
	fdiv	s0, s0, s1
	str	wzr, [sp, #8]
	str	xzr, [sp]
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	mov	x7, #0
	bl	_quantize_band_cost
	mov	x20, x0
	ldr	x8, [x25, #88]
	ldr	w3, [x8, x27]
	ldp	x8, x9, [x25, #64]
	ldr	w4, [x8, x21]
	ldr	w5, [x9, x21]
	ldr	s0, [x23, #12]
	ldr	x8, [sp, #120]                  ; 8-byte Folded Reload
	ldr	s1, [x8, x28]
Lloh3:
	adrp	x22, _INFINITY@GOTPAGE
Lloh4:
	ldr	x22, [x22, _INFINITY@GOTPAGEOFF]
	ldr	w6, [x22]
	fdiv	s0, s0, s1
	str	wzr, [sp, #8]
	str	xzr, [sp]
	mov	x0, x23
	ldr	x1, [sp, #96]                   ; 8-byte Folded Reload
	ldr	x2, [sp, #152]                  ; 8-byte Folded Reload
	mov	x7, #0
	bl	_quantize_band_cost
	mov	x21, x0
	ldr	x8, [x25, #40]
	ldr	w3, [x8, x27]
	ldr	s0, [x23, #12]
	ldr	w6, [x22]
	fdiv	s0, s0, s11
	str	wzr, [sp, #8]
	str	xzr, [sp]
	mov	x0, x23
	mov	x1, x26
	mov	x2, x19
	ldur	w4, [x29, #-156]                ; 4-byte Folded Reload
	ldr	w5, [sp, #92]                   ; 4-byte Folded Reload
	mov	x7, #0
	bl	_quantize_band_cost
	ldr	x8, [x25, #40]
	ldr	w8, [x8, x27]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	ldr	w10, [sp, #60]                  ; 4-byte Folded Reload
	mul	w9, w10, w9
	scvtf	s1, w9
	movi	d0, #0000000000000000
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	ldr	x3, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x10, [sp, #136]                 ; 8-byte Folded Reload
LBB0_13:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s2, [x9]
	ldr	s3, [x9, #3072]
	fsub	s2, s2, s3
	fmadd	s0, s2, s2, s0
	ldr	s2, [x9, #1024]
	fmsub	s2, s3, s1, s2
	fmadd	s0, s2, s2, s0
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_13
	b	LBB0_5
LBB0_14:
	movi	d14, #0000000000000000
	movi	d12, #0000000000000000
LBB0_15:
	fcmp	s14, s12
	cset	w10, ls
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	stp	w10, w8, [x9]
	fsub	s0, s14, s12
	str	s0, [x9, #8]
	str	s12, [x9, #12]
	str	s14, [x9, #16]
	ldr	s0, [sp, #24]                   ; 4-byte Folded Reload
	str	s0, [x9, #20]
LBB0_16:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #272]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #256]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #240]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #224]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #208]            ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #192]            ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INFINITY,4,2                   ; @INFINITY
.subsections_via_symbols
