	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_lpc
_apply_lpc:                             ## @apply_lpc
	.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, %eax
	movq	%rdi, %r12
	movb	8(%rdi), %cl
	decb	%cl
	movl	$1, %edi
	shll	%cl, %edi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, %edi
	movl	%eax, %ecx
	shll	%cl, %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	cmpl	$2, %edx
	jl	LBB0_14
## %bb.1:
	movq	(%r12), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r14
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	notl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-4(%r14), %r15
	movl	$1, %r13d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	-56(%rbp), %edi                 ## 4-byte Folded Reload
	movb	8(%r12), %cl
	sarl	%cl, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_FFMIN
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, (%rcx,%r13,4)
	incq	%r13
	addq	$4, %r15
	addq	$4, %r14
	cmpq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	movl	12(%r12), %edi
	movl	%r13d, %esi
	callq	_FFMIN
	movl	$0, %edi
	testl	%eax, %eax
	jle	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rcx
	movl	%eax, %edx
	cmpl	$4, %eax
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	xorl	%edi, %edi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %eax
	andl	$-4, %eax
	leaq	16(%rcx), %rsi
	movq	%rax, %rdi
	negq	%rdi
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-16(%rsi), %xmm2
	movdqu	(%rsi), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	movq	(%r15,%rbx,4), %xmm4            ## xmm4 = mem[0],zero
	pshufd	$225, %xmm4, %xmm4              ## xmm4 = xmm4[1,0,2,3]
	pmulld	%xmm2, %xmm4
	paddd	%xmm4, %xmm0
	movq	-8(%r15,%rbx,4), %xmm2          ## xmm2 = mem[0],zero
	pshufd	$225, %xmm2, %xmm2              ## xmm2 = xmm2[1,0,2,3]
	pmulld	%xmm3, %xmm2
	paddd	%xmm2, %xmm1
	addq	$32, %rsi
	addq	$-4, %rbx
	cmpq	%rbx, %rdi
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edi
	cmpq	%rdx, %rax
	je	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(,%rax,4), %rbx
	movq	%r14, %rsi
	subq	%rbx, %rsi
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rsi), %ebx
	imull	(%rcx,%rax,8), %ebx
	addl	%ebx, %edi
	incq	%rax
	addq	$-4, %rsi
	cmpq	%rax, %rdx
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%edi, %edi
	jns	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, %edi
	decl	%edi
	movb	8(%r12), %cl
	sarl	%cl, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_FFMAX
	jmp	LBB0_13
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_apply_lpc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_lpc
_apply_lpc:                             ; @apply_lpc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -88
	.cfi_offset w28, -96
	cmp	w2, #2
	b.lt	LBB0_15
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x23, [x8, w1, sxtw #3]
	ldr	w8, [x0, #8]
	sub	w8, w8, #1
	mov	w9, #1
	lsl	w24, w9, w8
	mov	w8, #-1
	lsl	w20, w8, w3
	mvn	w21, w20
	mov	w25, w2
	sub	x26, x23, #12
	mov	w22, #1
	mov	x27, x23
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w11, #0
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w11, w24
	ldr	w9, [x19, #8]
	asr	w0, w8, w9
	mov	x1, x21
	bl	_FFMIN
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	lsl	x8, x22, #2
	ldr	w9, [x23, x8]
	add	w9, w9, w0
	str	w9, [x23, x8]
	add	x22, x22, #1
	add	x26, x26, #4
	add	x27, x27, #4
	cmp	x22, x25
	b.eq	LBB0_15
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	ldr	w0, [x19, #12]
	mov	x1, x22
	bl	_FFMIN
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #16]
	mov	w8, w0
	cmp	w0, #8
	b.hs	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x10, #0
	mov	w11, #0
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	and	x10, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
	add	x11, x9, #32
	mov	x12, x26
	mov	x13, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	ldp	d17, d16, [x12]
	rev64.2s	v16, v16
	rev64.2s	v17, v17
	ldp	d19, d18, [x12, #-16]
	rev64.2s	v18, v18
	rev64.2s	v19, v19
	mla.2s	v0, v16, v4
	mla.2s	v1, v17, v5
	mla.2s	v2, v18, v6
	mla.2s	v3, v19, v7
	sub	x12, x12, #32
	sub	x13, x13, #8
	cbnz	x13, LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w11, s0
	cmp	x10, x8
	b.eq	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
	sub	x10, x27, x10, lsl #2
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x9], #8
	ldr	w13, [x10], #-4
	madd	w11, w13, w12, w11
	subs	x8, x8, #1
	b.ne	LBB0_12
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	tbz	w11, #31, LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w11, w24
	sub	w8, w8, #1
	ldr	w9, [x19, #8]
	asr	w0, w8, w9
	mov	x1, x20
	bl	_FFMAX
	b	LBB0_4
LBB0_15:
	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	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_apply_lpc
.subsections_via_symbols
