	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subframe_count_exact
_subframe_count_exact:                  ## @subframe_count_exact
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	48(%rsi), %rax
	leal	8(%rax), %ecx
	testq	%rax, %rax
	movl	$8, %ebx
	cmovnel	%ecx, %ebx
	movq	(%rsi), %rax
	movq	_FLAC_SUBFRAME_CONSTANT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	addl	8(%r15), %ebx
	jmp	LBB0_10
LBB0_2:
	movq	_FLAC_SUBFRAME_VERBATIM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	8(%r15), %eax
	imull	(%rdi), %eax
	addl	%ebx, %eax
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_4:
	movl	8(%r15), %r12d
	imull	%edx, %r12d
	addl	%ebx, %r12d
	movq	_FLAC_SUBFRAME_LPC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movl	4(%rdi), %eax
	imull	%edx, %eax
	addl	%eax, %r12d
	addl	$9, %r12d
LBB0_6:
	movl	24(%r15), %ecx
	movl	(%rdi), %eax
	sarl	%cl, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addl	$6, %r12d
	cmpl	$31, %ecx
	jne	LBB0_8
## %bb.7:
	movl	%r12d, %ebx
	jmp	LBB0_10
LBB0_8:
	movl	$1, %eax
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	cmpl	$2, %esi
	cmovll	%eax, %esi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r14d
	movq	32(%r15), %rax
	movl	(%rax,%r13,4), %eax
	addl	40(%r15), %r12d
	movslq	%edx, %rcx
	leaq	(,%rcx,4), %rdi
	addq	16(%r15), %rdi
	movl	%r14d, %esi
	subl	%ecx, %esi
	movl	%eax, %edx
	callq	_rice_count_exact
	movq	%rax, %rbx
	addl	%r12d, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(%r14,%rax), %esi
	callq	_FFMIN
	incq	%r13
	movl	%ebx, %r12d
	movl	%r14d, %edx
	cmpq	%r13, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_9
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAC_SUBFRAME_CONSTANT,8,3     ## @FLAC_SUBFRAME_CONSTANT
	.comm	_FLAC_SUBFRAME_VERBATIM,8,3     ## @FLAC_SUBFRAME_VERBATIM
	.comm	_FLAC_SUBFRAME_LPC,8,3          ## @FLAC_SUBFRAME_LPC
	.no_dead_strip	_subframe_count_exact
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subframe_count_exact
_subframe_count_exact:                  ; @subframe_count_exact
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	ldr	x8, [x1, #48]
	add	w9, w8, #8
	cmp	x8, #0
	mov	w8, #8
	csel	w8, w8, w9, eq
	ldr	x9, [x1]
Lloh0:
	adrp	x10, _FLAC_SUBFRAME_CONSTANT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FLAC_SUBFRAME_CONSTANT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x19, #8]
	add	w21, w9, w8
	b	LBB0_9
LBB0_2:
	mov	x20, x0
Lloh3:
	adrp	x10, _FLAC_SUBFRAME_VERBATIM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FLAC_SUBFRAME_VERBATIM@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	ldr	w9, [x20]
	ldr	w10, [x19, #8]
	madd	w21, w10, w9, w8
	b	LBB0_9
LBB0_4:
	ldr	w10, [x19, #8]
	madd	w8, w10, w2, w8
Lloh6:
	adrp	x10, _FLAC_SUBFRAME_LPC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FLAC_SUBFRAME_LPC@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
	ldr	w9, [x20, #4]
	madd	w8, w9, w2, w8
	add	w8, w8, #9
LBB0_6:
	ldr	w9, [x19, #24]
	add	w21, w8, #6
	cmp	w9, #31
	b.eq	LBB0_9
; %bb.7:
	mov	x22, #0
	ldr	w8, [x20]
	asr	w23, w8, w9
	mov	w8, #1
	lsl	w8, w8, w9
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	lsl	x24, x8, #2
	mov	x0, x23
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	w8, [x8, x22]
	mov	x25, x0
	ldr	w9, [x19, #40]
	add	w21, w21, w9
	ldr	x9, [x19, #16]
	add	x0, x9, w2, sxtw #2
	sub	w1, w25, w2
	mov	x2, x8
	bl	_rice_count_exact
	add	w21, w21, w0
	ldr	w0, [x20]
	add	w1, w25, w23
	bl	_FFMIN
	add	x22, x22, #4
	mov	x2, x25
	cmp	x24, x22
	b.ne	LBB0_8
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAC_SUBFRAME_CONSTANT,8,3     ; @FLAC_SUBFRAME_CONSTANT
	.comm	_FLAC_SUBFRAME_VERBATIM,8,3     ; @FLAC_SUBFRAME_VERBATIM
	.comm	_FLAC_SUBFRAME_LPC,8,3          ; @FLAC_SUBFRAME_LPC
	.no_dead_strip	_subframe_count_exact
.subsections_via_symbols
