	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function accumulate_fit
_accumulate_fit:                        ## @accumulate_fit
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, %r15
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movq	%r8, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movl	%r13d, (%r15)
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movl	%r14d, 4(%r15)
	leal	-1(%r12), %eax
	cmpl	%r12d, %r14d
	cmovll	%r14d, %eax
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -96(%rbp)                ## 16-byte Spill
	movl	$0, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -80(%rbp)                ## 16-byte Spill
	cmpl	%r13d, %eax
	jge	LBB0_1
LBB0_7:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movaps	-96(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, 8(%rax)
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 24(%rax)
	movl	%r12d, 28(%rax)
	movaps	-80(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, 32(%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 48(%rax)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 52(%rax)
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movslq	%eax, %r15
	movslq	%r13d, %r14
	incq	%r15
	leaq	(,%r14,4), %r13
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -96(%rbp)                ## 16-byte Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -80(%rbp)                ## 16-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %ecx
	imull	%r14d, %ecx
	movl	%eax, %edx
	imull	%eax, %edx
	movd	%r14d, %xmm0
	pinsrd	$1, %eax, %xmm0
	pinsrd	$2, %ecx, %xmm0
	pinsrd	$3, %edx, %xmm0
	movdqa	-80(%rbp), %xmm1                ## 16-byte Reload
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, -80(%rbp)                ## 16-byte Spill
	imull	%r14d, %eax
	addl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	incl	-48(%rbp)                       ## 4-byte Folded Spill
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	addq	$4, %r13
	cmpq	%r14, %r15
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r13), %rdi
	callq	_vorbis_dBquant
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movss	(%rcx,%r14,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	16(%rbp), %rcx
	addss	(%rcx), %xmm0
	ucomiss	(%rbx,%r14,4), %xmm0
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %ecx
	imull	%r14d, %ecx
	movl	%eax, %edx
	imull	%eax, %edx
	movd	%r14d, %xmm0
	pinsrd	$1, %eax, %xmm0
	pinsrd	$2, %ecx, %xmm0
	pinsrd	$3, %edx, %xmm0
	movdqa	-96(%rbp), %xmm1                ## 16-byte Reload
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, -96(%rbp)                ## 16-byte Spill
	imull	%r14d, %eax
	addl	%eax, -52(%rbp)                 ## 4-byte Folded Spill
	incl	%r12d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_accumulate_fit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function accumulate_fit
_accumulate_fit:                        ; @accumulate_fit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	str	x6, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x5
	mov	x19, x4
	mov	x25, x3
	mov	x22, x2
	mov	x21, x1
	mov	x24, x0
	mov	x0, x4
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	stp	w22, w25, [x19]
	sub	w8, w20, #1
	cmp	w25, w20
	csel	w8, w25, w8, lt
	cmp	w8, w22
	b.ge	LBB0_3
; %bb.1:
	mov	w26, #0
	stp	xzr, xzr, [sp, #32]             ; 16-byte Folded Spill
	mov	w20, #0
	stp	xzr, xzr, [sp, #48]             ; 16-byte Folded Spill
	movi.2d	v0, #0000000000000000
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
LBB0_2:
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	stp	w26, w8, [x19, #8]
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	stp	w9, w8, [x19, #16]
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	stp	w8, w20, [x19, #24]
	ldr	w9, [sp, #48]                   ; 4-byte Folded Reload
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	stp	w9, w8, [x19, #32]
	ldr	w9, [sp, #56]                   ; 4-byte Folded Reload
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	stp	w9, w8, [x19, #40]
	ldr	q0, [sp, #16]                   ; 16-byte Folded Reload
	str	d0, [x19, #48]
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_3:
	mov	x27, #0
	mov	x28, #0
	stp	xzr, xzr, [sp, #48]             ; 16-byte Folded Spill
	mov	w20, #0
	stp	xzr, xzr, [sp, #32]             ; 16-byte Folded Spill
	mov	w26, #0
	sxtw	x8, w8
	sbfiz	x9, x22, #2, #32
	movi.2d	v0, #0000000000000000
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
	add	x23, x21, x9
	add	x24, x24, x9
	sxtw	x21, w22
	sub	x8, x8, x21
	add	x25, x8, #1
	mov	w22, w22
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w11, [sp, #48]                  ; 4-byte Folded Reload
	add	w11, w10, w11
	ldr	w10, [sp, #52]                  ; 4-byte Folded Reload
	add	w10, w0, w10
	stp	w11, w10, [sp, #48]             ; 8-byte Folded Spill
	ldr	w10, [sp, #56]                  ; 4-byte Folded Reload
	madd	w10, w9, w9, w10
	ldr	w9, [sp, #60]                   ; 4-byte Folded Reload
	madd	w9, w0, w0, w9
	stp	w10, w9, [sp, #56]              ; 8-byte Folded Spill
	mul	w8, w0, w8
	movi.2s	v0, #1
	mov.s	v0[0], w8
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
	add.2s	v1, v0, v1
	str	q1, [sp, #16]                   ; 16-byte Folded Spill
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x28, x28, #1
	add	x27, x27, #4
	cmp	x25, x28
	b.eq	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x24, x27
	bl	_vorbis_dBquant
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x21, x28
	lsl	x8, x28, #2
	ldr	s0, [x23, x8]
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	ldr	s1, [x10]
	fadd	s0, s0, s1
	ldr	s1, [x24, x8]
	add	x8, x22, x28
	add	w10, w22, w28
	fcmp	s0, s1
	b.lt	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w26, w10, w26
	ldr	w10, [sp, #32]                  ; 4-byte Folded Reload
	add	w10, w0, w10
	str	w10, [sp, #32]                  ; 4-byte Folded Spill
	ldr	w10, [sp, #36]                  ; 4-byte Folded Reload
	madd	w10, w9, w9, w10
	ldr	w9, [sp, #40]                   ; 4-byte Folded Reload
	madd	w9, w0, w0, w9
	stp	w10, w9, [sp, #36]              ; 8-byte Folded Spill
	add	w20, w20, #1
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	madd	w9, w0, w8, w9
	str	w9, [sp, #44]                   ; 4-byte Folded Spill
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_accumulate_fit
.subsections_via_symbols
