	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function quantize_lpc_coefs
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_quantize_lpc_coefs:                    ## @quantize_lpc_coefs
	.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, %r14d
	movq	%rcx, %rax
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, %r12
	movl	24(%rbp), %edi
	movl	16(%rbp), %r15d
	leal	-1(%rdx), %ecx
	movl	$-1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	testl	%esi, %esi
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, -96(%rbp)                 ## 4-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	jle	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	xorpd	%xmm0, %xmm0
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movsd	(%r12,%r13,8), %xmm0            ## xmm0 = mem[0],zero
	callq	_fabs
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%eax, %edi
	callq	_FFMAX
	incq	%r13
	cmpq	%r13, %rbx
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorpd	%xmm0, %xmm0
LBB0_4:
	movl	$1, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	cvtsi2sd	%eax, %xmm2
	mulsd	%xmm0, %xmm2
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm2, %xmm1
	jbe	LBB0_5
## %bb.25:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	-96(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	shll	$3, %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_5:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	notl	%eax
	cvtsi2sd	%eax, %xmm6
	incl	%r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r15d
	movl	$1, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	xorps	%xmm7, %xmm7
	cvtsi2sd	%eax, %xmm7
	movapd	%xmm0, %xmm1
	mulsd	%xmm7, %xmm1
	ucomisd	%xmm6, %xmm1
	jbe	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r14d, %r15d
	jg	LBB0_6
LBB0_8:
	testl	%r15d, %r15d
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_21
## %bb.9:
	ucomisd	%xmm6, %xmm0
	jbe	LBB0_21
## %bb.10:
	testl	%ebx, %ebx
	jle	LBB0_24
## %bb.11:
	movapd	%xmm6, %xmm8
	divsd	%xmm0, %xmm8
	movl	%ebx, %eax
	cmpl	$4, %ebx
	jae	LBB0_13
## %bb.12:
	xorl	%ecx, %ecx
	jmp	LBB0_20
LBB0_13:
	movl	%eax, %ecx
	andl	$-4, %ecx
	movddup	%xmm8, %xmm1                    ## xmm1 = xmm8[0,0]
	leaq	-4(%rcx), %rdx
	movq	%rdx, %rsi
	shrq	$2, %rsi
	incq	%rsi
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.15:
	movq	%rsi, %rdi
	andq	$-2, %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movupd	(%r12,%rdx,8), %xmm2
	movupd	16(%r12,%rdx,8), %xmm3
	movupd	32(%r12,%rdx,8), %xmm4
	movupd	48(%r12,%rdx,8), %xmm5
	mulpd	%xmm1, %xmm2
	mulpd	%xmm1, %xmm3
	movupd	%xmm2, (%r12,%rdx,8)
	movupd	%xmm3, 16(%r12,%rdx,8)
	mulpd	%xmm1, %xmm4
	mulpd	%xmm1, %xmm5
	movupd	%xmm4, 32(%r12,%rdx,8)
	movupd	%xmm5, 48(%r12,%rdx,8)
	addq	$8, %rdx
	addq	$-2, %rdi
	jne	LBB0_16
## %bb.17:
	testb	$1, %sil
	je	LBB0_19
LBB0_18:
	movupd	(%r12,%rdx,8), %xmm2
	movupd	16(%r12,%rdx,8), %xmm3
	mulpd	%xmm1, %xmm2
	mulpd	%xmm1, %xmm3
	movupd	%xmm2, (%r12,%rdx,8)
	movupd	%xmm3, 16(%r12,%rdx,8)
LBB0_19:
	cmpq	%rax, %rcx
	je	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movsd	(%r12,%rcx,8), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm8, %xmm1
	movsd	%xmm1, (%r12,%rcx,8)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_20
LBB0_21:
	movapd	%xmm6, -96(%rbp)                ## 16-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_24
## %bb.22:
	movapd	LCPI0_1(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0]
	xorpd	-96(%rbp), %xmm0                ## 16-byte Folded Reload
	movapd	%xmm0, -112(%rbp)               ## 16-byte Spill
	movl	%ebx, %r14d
	xorpd	%xmm1, %xmm1
	xorl	%ebx, %ebx
	movsd	%xmm7, -56(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movsd	(%r12,%rbx,8), %xmm0            ## xmm0 = mem[0],zero
	mulsd	%xmm7, %xmm0
	subsd	%xmm0, %xmm1
	movsd	%xmm1, -64(%rbp)                ## 8-byte Spill
	movapd	%xmm1, %xmm0
	callq	_lrintf
	movl	%eax, %edi
	movapd	-112(%rbp), %xmm0               ## 16-byte Reload
	movaps	-96(%rbp), %xmm1                ## 16-byte Reload
	callq	_av_clip
	movsd	-64(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-56(%rbp), %xmm7                ## 8-byte Reload
                                        ## xmm7 = mem[0],zero
	movsd	%xmm0, (%r13,%rbx,8)
	subsd	%xmm0, %xmm1
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_23
LBB0_24:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%edx, %edx
	testb	$1, %sil
	jne	LBB0_18
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_quantize_lpc_coefs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function quantize_lpc_coefs
_quantize_lpc_coefs:                    ; @quantize_lpc_coefs
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.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
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x25, x7
	mov	x24, x6
	mov	x23, x5
	mov	x20, x4
	mov	x19, x3
	mov	x26, x2
	mov	x22, x1
	mov	x21, x0
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w27, w22
	movi	d9, #0000000000000000
	mov	x28, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x28], #8
	bl	_fabs
	fmov	d0, d9
	bl	_FFMAX
	fmov	d9, d0
	subs	x27, x27, #1
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	movi	d9, #0000000000000000
LBB0_4:
	mov	w8, #1
	lsl	w9, w8, w24
	scvtf	d0, w9
	fmul	d0, d9, d0
	fmov	d1, #1.00000000
	fcmp	d0, d1
	b.pl	LBB0_6
; %bb.5:
	str	w25, [x20]
	lsl	w2, w22, #3
	mov	x0, x19
	mov	w1, #0
	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
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	b	_memset
LBB0_6:
	sub	w9, w26, #1
	mov	w10, #-1
	lsl	w9, w10, w9
	mvn	w9, w9
	scvtf	d8, w9
	add	w24, w24, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	w24, w24, #1
	lsl	w9, w8, w24
	scvtf	d11, w9
	fmul	d0, d9, d11
	fcmp	d0, d8
	ccmp	w24, w23, #4, gt
	b.gt	LBB0_7
; %bb.8:
	cbnz	w24, LBB0_18
; %bb.9:
	fcmp	d9, d8
	b.le	LBB0_18
; %bb.10:
	cmp	w22, #1
	b.lt	LBB0_21
; %bb.11:
	mov	w8, w22
	fdiv	d0, d8, d9
	cmp	w22, #8
	b.hs	LBB0_13
; %bb.12:
	mov	x9, #0
	b	LBB0_16
LBB0_13:
	and	x9, x8, #0xfffffff8
	dup.2d	v1, v0[0]
	add	x10, x21, #32
	mov	x11, x9
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x10, #-32]
	ldp	q4, q5, [x10]
	fmul.2d	v2, v1, v2
	fmul.2d	v3, v1, v3
	fmul.2d	v4, v1, v4
	fmul.2d	v5, v5, v0[0]
	stp	q2, q3, [x10, #-32]
	stp	q4, q5, [x10], #64
	subs	x11, x11, #8
	b.ne	LBB0_14
; %bb.15:
	cmp	x9, x8
	b.eq	LBB0_18
LBB0_16:
	add	x10, x21, x9, lsl #3
	sub	x8, x8, x9
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x10]
	fmul	d1, d0, d1
	str	d1, [x10], #8
	subs	x8, x8, #1
	b.ne	LBB0_17
LBB0_18:
	cmp	w22, #1
	b.lt	LBB0_21
; %bb.19:
	fneg	d9, d8
	mov	w22, w22
	movi	d0, #0000000000000000
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x21], #8
	fmsub	d10, d1, d11, d0
	fmov	d0, d10
	bl	_lrintf
	fmov	d0, d9
	fmov	d1, d8
	bl	_av_clip
	str	d0, [x19], #8
	fsub	d0, d10, d0
	subs	x22, x22, #1
	b.ne	LBB0_20
LBB0_21:
	str	w24, [x20]
	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
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_quantize_lpc_coefs
.subsections_via_symbols
