	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alac_linear_predictor
_alac_linear_predictor:                 ## @alac_linear_predictor
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	movq	24(%r15), %rcx
	movslq	%esi, %rax
	movq	%rax, %rdx
	shlq	$4, %rdx
	movl	(%rcx,%rdx), %r13d
	movq	(%rdi,%rax,8), %r12
	cmpq	$31, %r13
	jne	LBB0_4
## %bb.1:
	movq	8(%r15), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r12)
	cmpl	$2, 16(%r15)
	jl	LBB0_23
## %bb.2:
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edx
	subl	-4(%rax,%rcx,4), %edx
	movl	%edx, (%r12,%rcx,4)
	incq	%rcx
	movslq	16(%r15), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_3
	jmp	LBB0_23
LBB0_4:
	testl	%r13d, %r13d
	jle	LBB0_23
## %bb.5:
	movl	4(%rcx,%rdx), %esi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movslq	%r13d, %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rcx,%rdx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rcx
	movq	(%rcx,%rax,8), %r8
	movl	(%r8), %eax
	movl	%eax, (%r12)
	leaq	1(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8,%rbx,4), %edi
	subl	-4(%r8,%rbx,4), %edi
	movl	20(%r15), %esi
	movq	%r8, %r14
	callq	_sign_extend
	movq	%r14, %r8
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_6
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	16(%r15), %eax
	jge	LBB0_23
## %bb.8:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movslq	-48(%rbp), %rdx                 ## 4-byte Folded Reload
	movl	%r13d, %esi
	movl	%r13d, %edi
	andl	$-8, %edi
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movd	%eax, %xmm0
	movdqa	%xmm0, -192(%rbp)               ## 16-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	-12(%r8,%rax,4), %rbx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	$16, %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	negq	%rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	leaq	(%r8,%rax,4), %r9
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, %r10
	negq	%r10
	incq	%rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rax
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movq	%rdx, %r14
	movq	%r13, -136(%rbp)                ## 8-byte Spill
	movq	%r15, -152(%rbp)                ## 8-byte Spill
	movq	%r12, -144(%rbp)                ## 8-byte Spill
	movq	%r10, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$4, %r8
	movq	-160(%rbp), %r14                ## 8-byte Reload
	incq	%r14
	movq	-152(%rbp), %r15                ## 8-byte Reload
	movslq	16(%r15), %rax
	movq	-176(%rbp), %rbx                ## 8-byte Reload
	addq	$4, %rbx
	movq	-168(%rbp), %r9                 ## 8-byte Reload
	addq	$4, %r9
	cmpq	%rax, %r14
	movq	-144(%rbp), %r12                ## 8-byte Reload
	movq	-136(%rbp), %r13                ## 8-byte Reload
	movq	-120(%rbp), %r10                ## 8-byte Reload
	jge	LBB0_23
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	movl	(%r8), %eax
	cmpl	$8, %r13d
	movq	%rbx, -176(%rbp)                ## 8-byte Spill
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%ecx, %ecx
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm1                ## xmm1 = xmm0[0,0,0,0]
	pxor	%xmm0, %xmm0
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	xorl	%edx, %edx
	movdqa	-192(%rbp), %xmm2               ## 16-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-16(%rbx,%rdx,4), %xmm3
	movdqu	(%rbx,%rdx,4), %xmm4
	pshufd	$27, %xmm4, %xmm4               ## xmm4 = xmm4[3,2,1,0]
	pshufd	$27, %xmm3, %xmm3               ## xmm3 = xmm3[3,2,1,0]
	psubd	%xmm1, %xmm4
	psubd	%xmm1, %xmm3
	movdqu	-16(%rcx), %xmm5
	pmulld	%xmm4, %xmm5
	paddd	%xmm5, %xmm2
	movdqu	(%rcx), %xmm4
	pmulld	%xmm3, %xmm4
	paddd	%xmm4, %xmm0
	addq	$-8, %rdx
	addq	$32, %rcx
	cmpq	%rdx, %rsi
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	paddd	%xmm2, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	%rsi, %rcx
	cmpq	-112(%rbp), %rsi                ## 8-byte Folded Reload
	je	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rcx,4), %rsi
	negq	%rcx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r9,%rcx,4), %edi
	subl	%eax, %edi
	imull	(%rsi), %edi
	addl	%edi, %edx
	decq	%rcx
	addq	$4, %rsi
	cmpq	%rcx, %r10
	jne	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r9, -168(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	sarl	%cl, %edx
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	(%r8,%rcx,4), %edi
	addl	%edx, %eax
	subl	%eax, %edi
	movl	20(%r15), %esi
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	callq	_sign_extend
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	%r14, -160(%rbp)                ## 8-byte Spill
	movl	%eax, (%r12,%r14,4)
	testl	%eax, %eax
	je	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %r13d
	movl	$1, %r14d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %r12d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=2
	movl	%eax, %edx
	negl	%edx
	testl	%r13d, %r13d
	cmovnsl	%eax, %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	subl	%edx, -8(%rax,%r15,4)
	imull	%ebx, %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	sarl	%cl, %edx
	movl	%r14d, %eax
	imull	%edx, %eax
	subl	%eax, %r12d
	decq	%r15
	incq	%r14
	cmpq	$1, %r15
	jle	LBB0_22
LBB0_18:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	sets	%al
	setg	%cl
	testl	%r13d, %r13d
	cmovsl	%eax, %ecx
	cmpb	$1, %cl
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	movl	(%r8), %ebx
	xorl	%eax, %eax
	subl	(%r8,%r14,4), %ebx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=2
	movl	%ebx, %edi
	callq	_FFSIGN
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_21
LBB0_23:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_alac_linear_predictor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alac_linear_predictor
_alac_linear_predictor:                 ; @alac_linear_predictor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x24, x0
	ldr	x8, [x0, #24]
	sxtw	x9, w1
	add	x8, x8, w1, sxtw #4
	ldr	w28, [x8]
	ldr	x10, [x0]
	ldr	x27, [x10, w1, sxtw #3]
	cmp	w28, #31
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x24, #8]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w9, [x8]
	str	w9, [x27]
	ldr	w9, [x24, #16]
	cmp	w9, #2
	b.lt	LBB0_24
; %bb.2:
	mov	x10, #0
	add	x9, x27, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x10, #2
	add	x12, x8, x11
	ldp	w12, w13, [x12]
	sub	w12, w13, w12
	str	w12, [x9, x11]
	ldrsw	x11, [x24, #16]
	add	x12, x10, #2
	add	x10, x10, #1
	cmp	x12, x11
	b.lt	LBB0_3
	b	LBB0_24
LBB0_4:
	sxtw	x10, w28
	str	x10, [sp, #48]                  ; 8-byte Folded Spill
	cmp	w10, #1
	b.lt	LBB0_24
; %bb.5:
	ldr	w25, [x8, #4]
	ldr	x10, [x24, #8]
	ldr	x26, [x10, x9, lsl #3]
	mov	x19, x26
	ldr	w9, [x19], #4
	ldr	x8, [x8, #8]
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	mov	x21, x27
	str	w9, [x21], #4
	add	w20, w28, #1
	mov	x22, x28
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w9, w8, [x19, #-4]
	sub	w0, w8, w9
	ldr	w1, [x24, #20]
	bl	_sign_extend
	str	w0, [x21], #4
	add	x19, x19, #4
	subs	x22, x22, #1
	b.ne	LBB0_6
; %bb.7:
	ldr	w8, [x24, #16]
	cmp	w20, w8
	b.ge	LBB0_24
; %bb.8:
	sub	w8, w25, #1
	mov	w9, #1
	lsl	w9, w9, w8
	sxtw	x23, w20
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	and	x10, x8, #0xffffffff
	stur	x10, [x29, #-96]                ; 8-byte Folded Spill
	and	x10, x8, #0xfffffff0
	stp	x10, x23, [sp, #72]             ; 16-byte Folded Spill
	movi.2d	v0, #0000000000000000
	str	w9, [sp, #44]                   ; 4-byte Folded Spill
	mov.s	v0[0], w9
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	add	x10, x9, #32
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
	lsl	x8, x8, #2
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	add	x8, x8, x26
	sub	x10, x8, #28
	sub	x22, x9, #4
	stp	x28, x27, [sp, #88]             ; 16-byte Folded Spill
	str	x24, [sp, #104]                 ; 8-byte Folded Spill
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x26, x26, #4
	add	x23, x23, #1
	ldp	x27, x24, [sp, #96]             ; 16-byte Folded Reload
	ldrsw	x8, [x24, #16]
	ldur	x10, [x29, #-88]                ; 8-byte Folded Reload
	add	x10, x10, #4
	cmp	x23, x8
	ldr	x28, [sp, #88]                  ; 8-byte Folded Reload
	b.ge	LBB0_24
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_21 Depth 2
	ldr	w8, [x26]
	cmp	w28, #16
	stur	x10, [x29, #-88]                ; 8-byte Folded Spill
	b.hs	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x12, #0
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	dup.4s	v1, w8
	movi.2d	v0, #0000000000000000
	mov	x9, x10
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x11, [sp, #72]                  ; 8-byte Folded Reload
	ldr	q2, [sp, #16]                   ; 16-byte Folded Reload
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q6, q5, [x9]
	rev64.4s	v5, v5
	ext.16b	v5, v5, v5, #8
	rev64.4s	v6, v6
	ext.16b	v6, v6, v6, #8
	ldp	q16, q7, [x9, #-32]
	rev64.4s	v7, v7
	ext.16b	v7, v7, v7, #8
	rev64.4s	v16, v16
	ext.16b	v16, v16, v16, #8
	sub.4s	v5, v5, v1
	sub.4s	v6, v6, v1
	sub.4s	v7, v7, v1
	sub.4s	v16, v16, v1
	ldp	q17, q18, [x10, #-32]
	ldp	q19, q20, [x10], #64
	mla.4s	v2, v5, v17
	mla.4s	v0, v6, v18
	mla.4s	v3, v7, v19
	mla.4s	v4, v16, v20
	sub	x9, x9, #64
	sub	x11, x11, #16
	cbnz	x11, LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	add.4s	v0, v0, v2
	add.4s	v0, v3, v0
	add.4s	v0, v4, v0
	addv.4s	s0, v0
	fmov	w9, s0
	ldr	x11, [sp, #72]                  ; 8-byte Folded Reload
	mov	x12, x11
	ldur	x10, [x29, #-96]                ; 8-byte Folded Reload
	cmp	x11, x10
	b.eq	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	lsl	x11, x12, #2
	ldp	x10, x13, [sp, #56]             ; 16-byte Folded Reload
	sub	x10, x10, x11
	add	x11, x13, x11
	ldur	x13, [x29, #-96]                ; 8-byte Folded Reload
	sub	x12, x13, x12
LBB0_16:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w13, [x26, x10]
	sub	w13, w13, w8
	ldr	w14, [x11], #4
	madd	w9, w13, w14, w9
	sub	x10, x10, #4
	subs	x12, x12, #1
	b.ne	LBB0_16
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	asr	w9, w9, w25
	ldr	x10, [sp, #80]                  ; 8-byte Folded Reload
	ldr	w10, [x26, x10, lsl #2]
	add	w8, w8, w9
	sub	w0, w10, w8
	ldr	w1, [x24, #20]
	bl	_sign_extend
	str	w0, [x27, x23, lsl #2]
	cbz	w0, LBB0_9
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x24, x0
	mov	w27, #1
	ldr	x19, [sp, #48]                  ; 8-byte Folded Reload
	mov	x20, x0
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=2
	mov	x0, x21
	bl	_FFSIGN
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=2
	cmp	w24, #0
	cneg	w8, w0, lt
	lsl	x9, x19, #2
	ldr	w10, [x22, x9]
	sub	w10, w10, w8
	str	w10, [x22, x9]
	mul	w8, w8, w21
	asr	w8, w8, w25
	msub	w20, w8, w27, w20
	add	x8, x28, #1
	add	x27, x27, #1
	mov	x19, x28
	cmp	x8, #1
	b.le	LBB0_9
LBB0_21:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w20, #0
	cset	w8, lt
	cset	w9, gt
	cmp	w24, #0
	csel	w8, w8, w9, lt
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	sub	x28, x19, #1
	ldr	w8, [x26]
	ldr	w9, [x26, x27, lsl #2]
	subs	w21, w8, w9
	b.ne	LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=2
	mov	w0, #0
	b	LBB0_20
LBB0_24:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_alac_linear_predictor
.subsections_via_symbols
