	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function pvq_band_cost
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x3e000000                      ## float 0.125
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_pvq_band_cost:                         ## @pvq_band_cost
	.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	$3640, %rsp                     ## imm = 0xE38
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movss	%xmm0, -3612(%rbp)              ## 4-byte Spill
	movq	%r8, -3680(%rbp)                ## 8-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r8
	movq	%rsi, %r14
	movq	%rdi, -3608(%rbp)               ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movb	(%rsi), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	movq	%rax, -3584(%rbp)               ## 8-byte Spill
	movb	4(%rsi), %cl
	movq	_ff_celt_freq_range@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, -3572(%rbp)               ## 4-byte Spill
	movslq	%ebx, %rdi
	movl	(%rax,%rdi,4), %ebx
	shll	%cl, %ebx
	movq	48(%rsi), %rax
	movq	(%rax), %rsi
	movq	_ff_celt_freq_bands@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdi, -3672(%rbp)               ## 8-byte Spill
	movl	(%rdx,%rdi,4), %edx
	shll	%cl, %edx
	movq	8(%rax), %rax
	movq	%rax, -3640(%rbp)               ## 8-byte Spill
	movslq	%edx, %r13
	movq	%rsi, -3656(%rbp)               ## 8-byte Spill
	leaq	(%rsi,%r13,4), %r12
	movl	8(%r14), %r15d
	movq	%r8, -3600(%rbp)                ## 8-byte Spill
	movq	%r8, %rdi
	callq	_OPUS_RC_CHECKPOINT_SPAWN
	movq	%rbx, -3632(%rbp)               ## 8-byte Spill
	leal	(,%rbx,4), %ebx
	leaq	-1456(%rbp), %rdi
	movq	%r12, -3664(%rbp)               ## 8-byte Spill
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	xorl	%ecx, %ecx
	leaq	-752(%rbp), %r12
	movq	%r13, -3648(%rbp)               ## 8-byte Spill
	movq	-3640(%rbp), %rax               ## 8-byte Reload
	leaq	(%rax,%r13,4), %rax
	movq	%rax, -3624(%rbp)               ## 8-byte Spill
	cmpl	$2, %r15d
	movl	$0, %eax
	movq	%rax, -3592(%rbp)               ## 8-byte Spill
	cmovneq	%rcx, %r12
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movq	-3624(%rbp), %rsi               ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
LBB0_2:
	movl	16(%r14), %r13d
	movl	20(%r14), %ebx
	movq	-3600(%rbp), %rdi               ## 8-byte Reload
	callq	_opus_rc_tell_frac
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	notl	%eax
	leal	(%rax,%r13,8), %eax
	movl	%eax, 12(%r14)
	movl	24(%r14), %esi
	subl	-3572(%rbp), %esi               ## 4-byte Folded Reload
	jle	LBB0_4
## %bb.3:
	movl	28(%r14), %ebx
	movl	$3, %edi
	callq	_FFMIN
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	12(%r14), %edi
	incl	%edi
	movq	32(%r14), %rcx
	movq	-3672(%rbp), %rdx               ## 8-byte Reload
	addl	(%rcx,%rdx,4), %eax
	movl	%eax, %esi
	callq	_FFMIN
	movl	%eax, %edi
	movl	$14, %esi
	callq	_av_clip_uintp2
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -3592(%rbp)               ## 8-byte Spill
LBB0_4:
	movq	-3584(%rbp), %r13               ## 8-byte Reload
	notl	%r13d
	cmpq	$0, 40(%r14)
	movq	-3608(%rbp), %rdi               ## 8-byte Reload
	movq	(%rdi), %r10
	je	LBB0_6
## %bb.5:
	movq	-3592(%rbp), %rcx               ## 8-byte Reload
	movl	%ecx, %ebx
	shrl	$31, %ebx
	addl	%ecx, %ebx
	sarl	%ebx
	movl	(%r14), %ecx
	movq	%rcx, -3584(%rbp)               ## 8-byte Spill
	movl	4(%r14), %eax
	movq	%rax, -3592(%rbp)               ## 8-byte Spill
	subq	$8, %rsp
	leaq	-1456(%rbp), %r8
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	%r14, %rsi
	movq	-3600(%rbp), %rdx               ## 8-byte Reload
	movl	-3572(%rbp), %ecx               ## 4-byte Reload
	xorl	%r9d, %r9d
	pushq	%r13
	leaq	-2160(%rbp), %r11
	pushq	%r11
	pushq	$0
	leaq	-2864(%rbp), %rax
	pushq	%rax
	pushq	-3592(%rbp)                     ## 8-byte Folded Reload
	pushq	$0
	pushq	-3584(%rbp)                     ## 8-byte Folded Reload
	pushq	%rbx
	movq	%r13, -3584(%rbp)               ## 8-byte Spill
	movq	-3632(%rbp), %r13               ## 8-byte Reload
	pushq	%r13
	callq	*%r10
	addq	$80, %rsp
	movl	(%r14), %r10d
	movl	4(%r14), %r11d
	subq	$8, %rsp
	movq	-3608(%rbp), %rdi               ## 8-byte Reload
	movq	%r14, %rsi
	movq	-3600(%rbp), %rdx               ## 8-byte Reload
	movl	-3572(%rbp), %ecx               ## 4-byte Reload
	movq	%r12, %r8
	xorl	%r9d, %r9d
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	pushq	-3584(%rbp)                     ## 8-byte Folded Reload
	leaq	-2160(%rbp), %rax
	pushq	%rax
	pushq	$0
	leaq	-3568(%rbp), %rax
	pushq	%rax
	pushq	%r11
	pushq	$0
	pushq	%r10
	pushq	%rbx
	pushq	%r13
	callq	*(%rdi)
	jmp	LBB0_7
LBB0_6:
	movl	(%r14), %r11d
	movl	4(%r14), %ebx
	subq	$8, %rsp
	movq	%r13, %rax
	leaq	-2864(%rbp), %r13
	leaq	-1456(%rbp), %r8
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	%r14, %rsi
	movq	-3600(%rbp), %rdx               ## 8-byte Reload
	movl	-3572(%rbp), %ecx               ## 4-byte Reload
	movq	%r12, %r9
	pushq	%rax
	leaq	-2160(%rbp), %rax
	pushq	%rax
	pushq	$0
	pushq	%r13
	pushq	%rbx
	pushq	$0
	pushq	%r11
	pushq	-3592(%rbp)                     ## 8-byte Folded Reload
	movq	-3632(%rbp), %r13               ## 8-byte Reload
	pushq	%r13
	callq	*%r10
LBB0_7:
	addq	$80, %rsp
	testl	%r13d, %r13d
	jle	LBB0_8
## %bb.9:
	movl	%r13d, %ecx
	cmpl	$1, %r13d
	jne	LBB0_11
## %bb.10:
	xorps	%xmm0, %xmm0
	xorl	%eax, %eax
	xorps	%xmm2, %xmm2
LBB0_17:
	movaps	%xmm0, %xmm1
	testb	$1, %cl
	je	LBB0_20
## %bb.18:
	movss	-1456(%rbp,%rax,4), %xmm1       ## xmm1 = mem[0],zero,zero,zero
	movq	-3664(%rbp), %rcx               ## 8-byte Reload
	subss	(%rcx,%rax,4), %xmm1
	mulss	%xmm1, %xmm1
	addss	%xmm0, %xmm1
	cmpl	$2, %r15d
	jne	LBB0_20
## %bb.19:
	movss	(%r12,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	-3624(%rbp), %rcx               ## 8-byte Reload
	subss	(%rcx,%rax,4), %xmm0
	mulss	%xmm0, %xmm0
	addss	%xmm0, %xmm2
	jmp	LBB0_20
LBB0_8:
	xorps	%xmm2, %xmm2
	xorps	%xmm1, %xmm1
LBB0_20:
	movss	%xmm1, -3584(%rbp)              ## 4-byte Spill
	movss	%xmm2, -3572(%rbp)              ## 4-byte Spill
	movq	-3600(%rbp), %rbx               ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_OPUS_RC_CHECKPOINT_BITS
	mulss	LCPI0_1(%rip), %xmm0
	movq	-3680(%rbp), %rax               ## 8-byte Reload
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm0, -3608(%rbp)              ## 4-byte Spill
	addss	%xmm0, %xmm1
	movss	%xmm1, (%rax)
	movq	%rbx, %rdi
	callq	_OPUS_RC_CHECKPOINT_ROLLBACK
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movss	-3584(%rbp), %xmm0              ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	sqrtss	%xmm0, %xmm1
	movss	-3572(%rbp), %xmm0              ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	sqrtss	%xmm0, %xmm0
	addss	%xmm1, %xmm0
	mulss	-3612(%rbp), %xmm0              ## 4-byte Folded Reload
	mulss	-3608(%rbp), %xmm0              ## 4-byte Folded Reload
	addq	$3640, %rsp                     ## imm = 0xE38
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%ecx, %edx
	andl	$-2, %edx
	movq	-3656(%rbp), %rax               ## 8-byte Reload
	movq	-3648(%rbp), %rdi               ## 8-byte Reload
	leaq	(%rax,%rdi,4), %rsi
	addq	$4, %rsi
	movq	-3640(%rbp), %rax               ## 8-byte Reload
	leaq	(%rax,%rdi,4), %rdi
	addq	$4, %rdi
	xorps	%xmm0, %xmm0
	xorl	%eax, %eax
	xorps	%xmm2, %xmm2
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movss	-1456(%rbp,%rax,4), %xmm1       ## xmm1 = mem[0],zero,zero,zero
	subss	-4(%rsi,%rax,4), %xmm1
	mulss	%xmm1, %xmm1
	addss	%xmm1, %xmm0
	movss	-1452(%rbp,%rax,4), %xmm1       ## xmm1 = mem[0],zero,zero,zero
	subss	(%rsi,%rax,4), %xmm1
	mulss	%xmm1, %xmm1
	addss	%xmm1, %xmm0
	addq	$2, %rax
	cmpq	%rax, %rdx
	je	LBB0_17
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$2, %r15d
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movss	(%r12,%rax,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	subss	-4(%rdi,%rax,4), %xmm1
	mulss	%xmm1, %xmm1
	addss	%xmm1, %xmm2
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$2, %r15d
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movss	4(%r12,%rax,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	subss	(%rdi,%rax,4), %xmm1
	mulss	%xmm1, %xmm1
	addss	%xmm1, %xmm2
	jmp	LBB0_16
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_celt_freq_range,8,3         ## @ff_celt_freq_range
	.comm	_ff_celt_freq_bands,8,3         ## @ff_celt_freq_bands
	.no_dead_strip	_pvq_band_cost
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvq_band_cost
_pvq_band_cost:                         ; @pvq_band_cost
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	sub	sp, sp, #3616
	stp	x0, x4, [sp, #56]               ; 16-byte Folded Spill
	mov	x25, x3
	fmov	s8, s0
	mov	x26, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-128]
Lloh3:
	adrp	x8, _ff_celt_freq_range@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ff_celt_freq_range@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sbfiz	x9, x25, #2, #32
	ldr	w8, [x8, x9]
	ldp	w27, w10, [x1]
	lsl	w21, w8, w10
Lloh6:
	adrp	x8, _ff_celt_freq_bands@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ff_celt_freq_bands@GOTPAGEOFF]
	ldr	x11, [x1, #48]
Lloh8:
	ldr	x8, [x8]
	ldr	w8, [x8, x9]
	lsl	w8, w8, w10
	sbfiz	x23, x8, #2, #32
	ldp	x8, x24, [x11]
	add	x22, x8, x23
	ldr	w20, [x1, #8]
	add	x8, sp, #2192
	add	x19, x8, #704
	str	x2, [sp, #72]                   ; 8-byte Folded Spill
	mov	x0, x2
	bl	_OPUS_RC_CHECKPOINT_SPAWN
	lsl	w28, w21, #2
	add	x0, sp, #2192
	mov	x1, x22
	mov	x2, x28
	bl	_memcpy
	add	x23, x24, x23
	cmp	w20, #2
	csel	x24, x19, xzr, eq
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x28
	bl	_memcpy
LBB0_2:
	mov	w8, #-1
	lsl	w28, w8, w27
	ldp	w19, w27, [x26, #16]
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	bl	_opus_rc_tell_frac
	add	w8, w0, w27
	mvn	w8, w8
	add	w8, w8, w19, lsl #3
	str	w8, [x26, #12]
	ldr	w8, [x26, #24]
	subs	w1, w8, w25
	b.le	LBB0_4
; %bb.3:
	sxtw	x19, w25
	ldr	w27, [x26, #28]
	mov	w0, #3
	bl	_FFMIN
	sdiv	w8, w27, w0
	ldr	w9, [x26, #12]
	add	w0, w9, #1
	ldr	x9, [x26, #32]
	ldr	w9, [x9, x19, lsl #2]
	add	w1, w9, w8
	bl	_FFMIN
	mov	w1, #14
	bl	_av_clip_uintp2
	mov	x7, x0
	b	LBB0_5
LBB0_4:
	mov	w7, #0
LBB0_5:
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	mvn	w27, w28
	ldr	x9, [x26, #40]
	ldr	x8, [x0]
	cbz	x9, LBB0_7
; %bb.6:
	cmp	w7, #0
	cinc	w9, w7, lt
	asr	w7, w9, #1
	str	w7, [sp, #56]                   ; 4-byte Folded Spill
	ldp	w9, w10, [x26]
	str	w27, [sp, #48]
	add	x11, sp, #1488
	str	x11, [sp, #40]
	str	wzr, [sp, #32]
	add	x11, sp, #784
	str	x11, [sp, #24]
	add	x4, sp, #2192
	fmov	s0, #1.00000000
	str	w10, [sp, #16]
	str	xzr, [sp, #8]
	str	w9, [sp]
	mov	x28, x25
	mov	x25, x0
	mov	x1, x26
	ldr	x19, [sp, #72]                  ; 8-byte Folded Reload
	mov	x2, x19
	mov	x3, x28
	mov	x5, #0
	mov	x6, x21
	blr	x8
	ldr	x8, [x25]
	ldp	w9, w10, [x26]
	str	w27, [sp, #48]
	add	x11, sp, #1488
	str	x11, [sp, #40]
	str	wzr, [sp, #32]
	add	x11, sp, #80
	str	x11, [sp, #24]
	fmov	s0, #1.00000000
	str	w10, [sp, #16]
	str	xzr, [sp, #8]
	str	w9, [sp]
	mov	x0, x25
	mov	x1, x26
	mov	x2, x19
	mov	x3, x28
	mov	x4, x24
	mov	x5, #0
	mov	x6, x21
	ldr	w7, [sp, #56]                   ; 4-byte Folded Reload
	b	LBB0_8
LBB0_7:
	ldp	w9, w10, [x26]
	str	w27, [sp, #48]
	add	x11, sp, #1488
	str	x11, [sp, #40]
	str	wzr, [sp, #32]
	add	x11, sp, #784
	str	x11, [sp, #24]
	add	x4, sp, #2192
	fmov	s0, #1.00000000
	str	w10, [sp, #16]
	str	xzr, [sp, #8]
	str	w9, [sp]
	mov	x1, x26
	ldr	x2, [sp, #72]                   ; 8-byte Folded Reload
	mov	x3, x25
	mov	x5, x24
	mov	x6, x21
LBB0_8:
	blr	x8
	cmp	w21, #1
	b.lt	LBB0_13
; %bb.9:
	movi	d9, #0000000000000000
	add	x8, sp, #2192
	movi	d10, #0000000000000000
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	s0, [x8], #4
	ldr	s1, [x22], #4
	fsub	s0, s0, s1
	add	x23, x23, #4
	fmadd	s9, s0, s0, s9
	add	x24, x24, #4
	subs	x21, x21, #1
	b.eq	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	cmp	w20, #2
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	s0, [x24]
	ldr	s1, [x23]
	fsub	s0, s0, s1
	fmadd	s10, s0, s0, s10
	b	LBB0_10
LBB0_13:
	movi	d10, #0000000000000000
	movi	d9, #0000000000000000
LBB0_14:
	ldr	x19, [sp, #72]                  ; 8-byte Folded Reload
	mov	x0, x19
	bl	_OPUS_RC_CHECKPOINT_BITS
	fmov	s1, #0.12500000
	fmul	s11, s0, s1
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldr	s0, [x8]
	fadd	s0, s0, s11
	str	s0, [x8]
	mov	x0, x19
	bl	_OPUS_RC_CHECKPOINT_ROLLBACK
	ldur	x8, [x29, #-128]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	fsqrt	s0, s9
	fsqrt	s1, s10
	fadd	s0, s1, s0
	fmul	s0, s0, s8
	fmul	s0, s0, s11
	add	sp, sp, #3616
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_celt_freq_range,8,3         ; @ff_celt_freq_range
	.comm	_ff_celt_freq_bands,8,3         ; @ff_celt_freq_bands
	.no_dead_strip	_pvq_band_cost
.subsections_via_symbols
