	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function FLAC__lpc_compute_best_order
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x41efffffffe00000              ## double 4294967295
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_FLAC__lpc_compute_best_order
	.p2align	4, 0x90
_FLAC__lpc_compute_best_order:          ## @FLAC__lpc_compute_best_order
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r13
	xorl	%edi, %edi
	testl	%esi, %esi
	setne	%dil
	callq	_FLAC__ASSERT
	xorl	%edi, %edi
	testl	%r12d, %r12d
	setne	%dil
	callq	_FLAC__ASSERT
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movl	%r12d, %eax
	cvtsi2sd	%rax, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	%xmm1, -64(%rbp)                ## 8-byte Spill
	movl	%ebx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	decl	%r12d
	xorl	%r15d, %r15d
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm1, -72(%rbp)                ## 8-byte Spill
	movsd	(%r13,%r15,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	-64(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_FLAC__lpc_compute_expected_bits_per_residual_sample_with_error_scale
	movl	%r12d, %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rax, %xmm1
	movl	%r14d, %eax
	xorps	%xmm2, %xmm2
	cvtsi2sd	%rax, %xmm2
	mulsd	%xmm0, %xmm1
	addsd	%xmm2, %xmm1
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	cmoval	%r15d, %ebx
	minsd	%xmm0, %xmm1
	incq	%r15
	decl	%r12d
	addl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_3
## %bb.4:
	incl	%ebx
	jmp	LBB0_5
LBB0_1:
	movl	$1, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLAC__lpc_compute_best_order   ; -- Begin function FLAC__lpc_compute_best_order
	.p2align	2
_FLAC__lpc_compute_best_order:          ; @FLAC__lpc_compute_best_order
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	cmp	w1, #0
	cset	w0, ne
	bl	_FLAC__ASSERT
	cmp	w21, #0
	cset	w0, ne
	bl	_FLAC__ASSERT
	cbz	w22, LBB0_4
; %bb.1:
	mov	x24, #0
	mov	w23, #0
	ucvtf	d0, w21
	fmov	d1, #0.50000000
	fdiv	d8, d1, d0
	mov	w22, w22
	sub	w21, w21, #1
	mov	x8, #281474974613504
	movk	x8, #16879, lsl #48
	fmov	d9, x8
	mov	x25, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x20, x24, lsl #3]
	fmov	d1, d8
	bl	_FLAC__lpc_compute_expected_bits_per_residual_sample_with_error_scale
	ucvtf	d1, w21
	ucvtf	d2, w25
	fmadd	d0, d0, d1, d2
	fcmp	d0, d9
	csel	w23, w24, w23, mi
	fcsel	d9, d0, d9, mi
	add	x24, x24, #1
	sub	w21, w21, #1
	add	w25, w25, w19
	cmp	x22, x24
	b.ne	LBB0_2
; %bb.3:
	add	w0, w23, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	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	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
