	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function interpolation
_interpolation:                         ## @interpolation
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r8, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	24(%rbp), %r15
	movq	16(%rbp), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	20(%rdi), %rsi
	leal	(,%r9,8), %r12d
	movl	%r12d, %edx
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	imull	%r9d, %edx
	callq	_av_fast_malloc
	movq	(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_18
## %bb.1:
	leaq	8(%rbx), %rdi
	leaq	16(%rbx), %rsi
	movl	%r12d, %edx
	callq	_av_fast_malloc
	movq	8(%rbx), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_18
## %bb.2:
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -136(%rbp)                ## 8-byte Spill
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	leal	1(%rbx), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	$1, %r8d
	callq	_autocorrelation
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_17
## %bb.3:
	movslq	%ebx, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	leaq	8(,%rax,8), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-112(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	addq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	addq	$4, %r14
	decq	-48(%rbp)                       ## 8-byte Folded Spill
	cmpq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	movsd	%xmm0, (%r12,%r15,8)
	movsd	%xmm0, (%r12,%r13,8)
	incq	%r15
	addq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	cmpq	%r15, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14,%r15,4), %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	subl	(%rax,%rbx,4), %edi
	callq	_abs
	xorpd	%xmm0, %xmm0
	cmpq	-104(%rbp), %rax                ## 8-byte Folded Reload
	ja	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	(%r14,%r15,4), %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	subl	(%rax,%rbx,4), %edi
	callq	_abs
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movsd	(%rcx,%rax,8), %xmm0            ## xmm0 = mem[0],zero
	jmp	LBB0_7
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_9:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ecx
	negl	%ecx
	movl	%eax, %r14d
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	cmovnsl	%ecx, %r14d
	incl	%r14d
	xorl	%r13d, %r13d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=1
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rax,%r13,8)
	incq	%r13
	cmpq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_17
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	xorpd	%xmm0, %xmm0
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	%eax, %ebx
	movl	-80(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=2
	incl	%r12d
	decl	%ebx
	cmpl	%r12d, %r14d
	je	LBB0_16
LBB0_13:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15,%r13,4), %esi
	addl	%ebx, %esi
	movq	%r15, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_find_index
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	(%r15,%r13,4), %eax
	addl	%ebx, %eax
	cltq
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movsd	(%rcx,%rax,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, -104(%rbp)               ## 8-byte Spill
	movl	%r12d, %edi
	callq	_abs
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movsd	-104(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	(%rcx,%rax,8), %xmm1
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	jmp	LBB0_15
LBB0_17:
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	-136(%rbp), %r8                 ## 8-byte Reload
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_interpolation               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_interpolation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function interpolation
_interpolation:                         ; @interpolation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x25, x7
	mov	x21, x6
	mov	x20, x5
	mov	x22, x4
	mov	x28, x3
	mov	x19, x2
	str	x1, [sp, #56]                   ; 8-byte Folded Spill
	mov	x23, x0
	add	x1, x0, #20
	lsl	w27, w5, #3
	mul	w2, w27, w5
	bl	_av_fast_malloc
	ldr	x24, [x23]
	cbz	x24, LBB0_9
; %bb.1:
	add	x0, x23, #8
	add	x1, x23, #16
	mov	x2, x27
	bl	_av_fast_malloc
	ldr	x8, [x23, #8]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	cbz	x8, LBB0_9
; %bb.2:
	stp	x23, x24, [sp, #8]              ; 16-byte Folded Spill
	add	w2, w19, #1
	mov	x0, x28
	mov	x1, x19
	mov	x3, x21
	mov	w4, #1
	bl	_autocorrelation
	cmp	w20, #1
	b.lt	LBB0_17
; %bb.3:
	str	x25, [sp]                       ; 8-byte Folded Spill
	mov	x25, #0
	str	x19, [sp, #32]                  ; 8-byte Folded Spill
	sxtw	x26, w19
	mov	w19, w20
	lsl	x27, x19, #3
	add	x8, x27, #8
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x28, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x28, [sp, #48]                  ; 8-byte Folded Reload
	add	x28, x28, x8
	cmp	x25, x19
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x23, x28
	str	x28, [sp, #48]                  ; 8-byte Folded Spill
	mov	x24, x25
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	str	d0, [x28], #8
	str	d0, [x23]
	add	x24, x24, #1
	add	x23, x23, x27
	cmp	x19, x24
	b.eq	LBB0_4
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x22, x24, lsl #2]
	ldr	w9, [x22, x25, lsl #2]
	sub	w0, w8, w9
	bl	_abs
	movi	d0, #0000000000000000
	cmp	x0, x26
	b.hi	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x22, x24, lsl #2]
	ldr	w9, [x22, x25, lsl #2]
	sub	w0, w8, w9
	bl	_abs
	ldr	d0, [x21, x0, lsl #3]
	b	LBB0_6
LBB0_9:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_AVERROR
LBB0_10:
	mov	x26, #0
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	neg	w24, w9
	cmp	w9, #0
	cneg	w8, w9, mi
	add	w27, w8, #1
	ldr	x25, [sp]                       ; 8-byte Folded Reload
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldp	x9, x8, [sp, #32]               ; 16-byte Folded Reload
	str	d8, [x8, x26, lsl #3]
	add	x26, x26, #1
	cmp	x26, x19
	b.eq	LBB0_17
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	movi	d8, #0000000000000000
	tbnz	w9, #31, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x23, x9
	mov	x28, x24
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	w28, w28, #1
	sub	w23, w23, #1
	cmp	w27, w28
	b.eq	LBB0_11
LBB0_15:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x22, x26, lsl #2]
	add	w1, w23, w8
	mov	x0, x22
	mov	x2, x20
	bl	_find_index
	cbz	x0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	w8, [x22, x26, lsl #2]
	add	w8, w23, w8
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	ldr	d9, [x9, w8, sxtw #3]
	mov	x0, x28
	bl	_abs
	ldr	d0, [x21, x0, lsl #3]
	fmsub	d8, d9, d0, d8
	b	LBB0_14
LBB0_17:
	ldp	x0, x1, [sp, #8]                ; 16-byte Folded Reload
	ldr	x2, [sp, #40]                   ; 8-byte Folded Reload
	mov	x3, x20
	mov	x4, x25
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_do_interpolation
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_interpolation
.subsections_via_symbols
