	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLAC__lpc_quantize_coefficients ## -- Begin function FLAC__lpc_quantize_coefficients
	.p2align	4, 0x90
_FLAC__lpc_quantize_coefficients:       ## @FLAC__lpc_quantize_coefficients
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %r14
	xorl	%edi, %edi
	movl	%edx, %ebx
	addl	$-1, %ebx
	setb	%dil
	callq	_FLAC__ASSERT
	movq	_FLAC__MIN_QLP_COEFF_PRECISION@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r13d, (%rax)
	setbe	%dil
	callq	_FLAC__ASSERT
	movl	$1, %edx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %ecx
	shll	%cl, %edx
	movl	$2, %eax
	testl	%r12d, %r12d
	je	LBB0_29
## %bb.1:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	movl	%r12d, %ecx
	leaq	-1(%rcx), %rax
	movl	%ecx, %r15d
	andl	$3, %r15d
	cmpq	$3, %rax
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	jae	LBB0_3
## %bb.2:
	xorpd	%xmm1, %xmm1
	xorl	%r12d, %r12d
	jmp	LBB0_5
LBB0_3:
	movq	%rcx, %r13
                                        ## kill: def $r13d killed $r13d killed $r13 def $r13
	andl	$-4, %r13d
	xorpd	%xmm1, %xmm1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	movl	(%r14,%r12,4), %edi
	callq	_fabs
	maxsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	4(%r14,%r12,4), %edi
	callq	_fabs
	maxsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	8(%r14,%r12,4), %edi
	callq	_fabs
	maxsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	12(%r14,%r12,4), %edi
	callq	_fabs
	movapd	%xmm0, %xmm1
	maxsd	-48(%rbp), %xmm1                ## 8-byte Folded Reload
	addq	$4, %r12
	cmpq	%r12, %r13
	jne	LBB0_4
LBB0_5:
	movapd	%xmm1, %xmm0
	testq	%r15, %r15
	je	LBB0_8
## %bb.6:
	leaq	(%r14,%r12,4), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	movl	(%r12,%rbx,4), %edi
	callq	_fabs
	maxsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	incq	%rbx
	movapd	%xmm0, %xmm1
	cmpq	%rbx, %r15
	jne	LBB0_7
LBB0_8:
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movl	$2, %eax
	jae	LBB0_29
## %bb.9:
	movq	_FLAC__SUBFRAME_LPC_QLP_SHIFT_LEN@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	decb	%cl
	movl	$-1, %r15d
	shll	%cl, %r15d
	movl	%r15d, %ebx
	notl	%ebx
	leaq	-72(%rbp), %rdi
	callq	_frexp
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	subl	-72(%rbp), %ecx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	%ecx, (%r12)
	cmpl	%ebx, %ecx
	jle	LBB0_19
## %bb.10:
	movl	%ebx, (%r12)
	movl	%ebx, %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_19:
	cmpl	%r15d, %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jge	LBB0_11
## %bb.20:
	movl	$1, %eax
	jmp	LBB0_29
LBB0_11:
	movl	%eax, %r15d
	negl	%r15d
	leal	-1(%rax), %ebx
	testl	%ecx, %ecx
	js	LBB0_21
## %bb.12:
	movl	(%r14), %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	callq	_lround
	cmpl	%r15d, %eax
	movl	%r15d, %ecx
	cmovgl	%eax, %ecx
	cmpl	%eax, -64(%rbp)                 ## 4-byte Folded Reload
	cmovlel	%ebx, %ecx
	movl	%ecx, (%r13)
	xorl	%eax, %eax
	cmpl	$1, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_29
## %bb.13:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	$1, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%ecx, (%r13,%rbx,4)
	incq	%rbx
	cmpq	%rbx, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_28
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movzbl	(%r12), %ecx
	movl	(%r14,%rbx,4), %eax
	shll	%cl, %eax
	subsd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	callq	_lround
	movl	%eax, %ecx
	cmpl	%r15d, %eax
	jg	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%r15d, %ecx
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%eax, -64(%rbp)                 ## 4-byte Folded Reload
	jg	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_18
LBB0_21:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	negb	%cl
	movl	$1, %r12d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
	xorpd	%xmm1, %xmm1
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movl	%ecx, (%r13,%rbx,4)
	incq	%rbx
	cmpq	%rbx, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_27
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %eax
	cltd
	idivl	%r12d
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	callq	_lround
	movl	%eax, %ecx
	cmpl	%r15d, %eax
	jg	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	%r15d, %ecx
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=1
	cmpl	%eax, -64(%rbp)                 ## 4-byte Folded Reload
	jg	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_26
LBB0_27:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
LBB0_28:
	xorl	%eax, %eax
LBB0_29:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAC__MIN_QLP_COEFF_PRECISION,4,2 ## @FLAC__MIN_QLP_COEFF_PRECISION
	.comm	_FLAC__SUBFRAME_LPC_QLP_SHIFT_LEN,4,2 ## @FLAC__SUBFRAME_LPC_QLP_SHIFT_LEN
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLAC__lpc_quantize_coefficients ; -- Begin function FLAC__lpc_quantize_coefficients
	.p2align	2
_FLAC__lpc_quantize_coefficients:       ; @FLAC__lpc_quantize_coefficients
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.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
	str	x4, [sp]                        ; 8-byte Folded Spill
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	subs	w27, w2, #1
	cset	w0, hs
	bl	_FLAC__ASSERT
Lloh0:
	adrp	x8, _FLAC__MIN_QLP_COEFF_PRECISION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAC__MIN_QLP_COEFF_PRECISION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w23
	cset	w0, ls
	bl	_FLAC__ASSERT
	cbz	w22, LBB0_6
; %bb.1:
	mov	x28, #0
	mov	w8, #1
	lsl	w23, w8, w27
	neg	w24, w23
	sub	w25, w23, #1
	mov	w26, w22
	lsl	x19, x26, #2
	movi	d8, #0000000000000000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, x28]
	bl	_fabs
	fcmp	d0, d8
	fcsel	d8, d0, d8, gt
	add	x28, x28, #4
	cmp	x19, x28
	b.ne	LBB0_2
; %bb.3:
	fcmp	d8, #0.0
	b.ls	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _FLAC__SUBFRAME_LPC_QLP_SHIFT_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLAC__SUBFRAME_LPC_QLP_SHIFT_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w8, w8, #1
	mov	w9, #-1
	lsl	w28, w9, w8
	mvn	w19, w28
	add	x0, sp, #12
	fmov	d0, d8
	bl	_frexp
	ldr	w8, [sp, #12]
	sub	w8, w27, w8
	cmp	w8, w19
	ldr	x13, [sp]                       ; 8-byte Folded Reload
	str	w8, [x13]
	b.le	LBB0_8
; %bb.5:
	str	w19, [x13]
	mov	x8, x19
	b	LBB0_10
LBB0_6:
	mov	w0, #2
LBB0_7:
	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
	add	sp, sp, #128
	ret
LBB0_8:
	cmp	w8, w28
	b.ge	LBB0_10
; %bb.9:
	mov	w0, #1
	b	LBB0_7
LBB0_10:
	tbnz	w8, #31, LBB0_15
; %bb.11:
	ldr	w9, [x21]
	lsl	w8, w9, w8
	scvtf	d0, w8
	fcvtas	x8, d0
	cmp	w8, w24
	csel	w9, w8, w24, gt
	cmp	w23, w8
	csel	w11, w9, w25, gt
	str	w11, [x20]
	cmp	w22, #1
	b.eq	LBB0_14
; %bb.12:
	sub	x8, x26, #1
	add	x9, x20, #4
	add	x10, x21, #4
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	scvtf	d1, w11
	fsub	d0, d0, d1
	ldr	w11, [x13]
	ldr	w12, [x10], #4
	lsl	w11, w12, w11
	scvtf	d1, w11
	fadd	d0, d0, d1
	fcvtas	x11, d0
	cmp	w11, w24
	csel	w12, w11, w24, gt
	cmp	w23, w11
	csel	w11, w12, w25, gt
	str	w11, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_13
LBB0_14:
	mov	w0, #0
	b	LBB0_7
LBB0_15:
	neg	w8, w8
	mov	w9, #1
	lsl	w8, w9, w8
	movi	d0, #0000000000000000
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x21], #4
	sdiv	w9, w9, w8
	scvtf	d1, w9
	fadd	d0, d0, d1
	fcvtas	x9, d0
	cmp	w9, w24
	csel	w10, w9, w24, gt
	cmp	w23, w9
	csel	w9, w10, w25, gt
	scvtf	d1, w9
	fsub	d0, d0, d1
	str	w9, [x20], #4
	subs	x26, x26, #1
	b.ne	LBB0_16
; %bb.17:
	mov	w0, #0
	str	wzr, [x13]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAC__MIN_QLP_COEFF_PRECISION,4,2 ; @FLAC__MIN_QLP_COEFF_PRECISION
	.comm	_FLAC__SUBFRAME_LPC_QLP_SHIFT_LEN,4,2 ; @FLAC__SUBFRAME_LPC_QLP_SHIFT_LEN
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
