	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bands_dist
_bands_dist:                            ## @bands_dist
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ff_opus_rc_enc_init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_ff_celt_bitalloc
	movq	_CELT_MAX_BANDS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_1
## %bb.2:
	xorps	%xmm0, %xmm0
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movaps	%xmm0, -80(%rbp)                ## 16-byte Spill
	movl	$0, -44(%rbp)
	movl	(%r12), %edi
	movl	(%r15), %r9d
	movq	%r12, %rsi
	leaq	-48(%rbp), %rdx
	movl	%ebx, %ecx
	movq	%r14, %r8
	callq	_pvq_band_cost
	addss	-80(%rbp), %xmm0                ## 16-byte Folded Reload
	incl	%ebx
	cvttps2dq	%xmm0, %xmm0
	cvtdq2ps	%xmm0, %xmm0
	cmpl	(%r13), %ebx
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorps	%xmm0, %xmm0
LBB0_4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movss	%xmm0, (%rax)
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CELT_MAX_BANDS,4,2             ## @CELT_MAX_BANDS
	.no_dead_strip	_bands_dist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bands_dist
_bands_dist:                            ; @bands_dist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x0, sp, #12
	bl	_ff_opus_rc_enc_init
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #1
	bl	_ff_celt_bitalloc
Lloh0:
	adrp	x23, _CELT_MAX_BANDS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CELT_MAX_BANDS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w22, #0
	movi	d8, #0000000000000000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #8]
	ldr	w0, [x20]
	ldr	w5, [x21]
	add	x2, sp, #12
	add	x4, sp, #8
	mov	x1, x20
	mov	x3, x22
	bl	_pvq_band_cost
	fadd	s0, s8, s0
	add	w22, w22, #1
	fcvtzs	s0, s0
	scvtf	s8, s0
	ldr	w8, [x23]
	cmp	w22, w8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	movi	d8, #0000000000000000
LBB0_4:
	str	s8, [x19]
	mov	w0, #0
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CELT_MAX_BANDS,4,2             ; @CELT_MAX_BANDS
	.no_dead_strip	_bands_dist
.subsections_via_symbols
