	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function residual_interp
LCPI0_0:
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_residual_interp:                       ## @residual_interp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%edx, %edx
	je	LBB0_4
## %bb.1:
	jle	LBB0_8
## %bb.2:
	movq	_PITCH_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %r8
	leaq	(%rdi,%r8,4), %r9
	movl	%edx, %r10d
	cmpl	$8, %edx
	jb	LBB0_3
## %bb.9:
	leaq	(,%r10,4), %rax
	subq	%r9, %rax
	addq	%rsi, %rax
	cmpq	$32, %rax
	jae	LBB0_11
LBB0_3:
	xorl	%ebx, %ebx
LBB0_17:
	movq	%rbx, %rax
	notq	%rax
	testb	$1, %r10b
	je	LBB0_19
## %bb.18:
	movq	%rbx, %rcx
	subq	%r10, %rcx
	movl	(%r9,%rcx,4), %ecx
	leal	(%rcx,%rcx,2), %ecx
	sarl	$2, %ecx
	movl	%ecx, (%rsi,%rbx,4)
	orq	$1, %rbx
LBB0_19:
	addq	%r10, %rax
	je	LBB0_22
## %bb.20:
	subq	%r10, %r8
	leaq	(%rdi,%r8,4), %rax
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rbx,4), %ecx
	leal	(%rcx,%rcx,2), %ecx
	sarl	$2, %ecx
	movl	%ecx, (%rsi,%rbx,4)
	movl	4(%rax,%rbx,4), %ecx
	leal	(%rcx,%rcx,2), %ecx
	sarl	$2, %ecx
	movl	%ecx, 4(%rsi,%rbx,4)
	addq	$2, %rbx
	cmpq	%rbx, %r10
	jne	LBB0_21
	jmp	LBB0_22
LBB0_4:
	movq	_FRAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	imull	$521, (%r8), %edx               ## imm = 0x209
	addl	$259, %edx                      ## imm = 0x103
	movl	%edx, (%r8)
	imull	%ecx, %edx
	sarl	$15, %edx
	movl	%edx, (%rsi,%rbx,4)
	incq	%rbx
	movslq	(%rax), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_6
LBB0_7:
	movq	_PITCH_MAX@GOTPCREL(%rip), %rax
	addl	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_8:
	movslq	%edx, %r10
LBB0_22:
	leaq	(%rsi,%r10,4), %rdi
	movq	_FRAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%edx, %eax
	shll	$2, %edx
	shll	$2, %eax
	movl	%edx, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_av_memcpy_backptr              ## TAILCALL
LBB0_11:
	movl	%r10d, %ebx
	andl	$-8, %ebx
	leaq	-8(%rbx), %rax
	movq	%rax, %r11
	shrq	$3, %r11
	incq	%r11
	testq	%rax, %rax
	je	LBB0_23
## %bb.12:
	movq	%r11, %rcx
	andq	$-2, %rcx
	movq	%r8, %rax
	subq	%r10, %rax
	leaq	(%rdi,%rax,4), %r14
	addq	$48, %r14
	xorl	%eax, %eax
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [3,3,3,3]
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-48(%r14,%rax,4), %xmm1
	movdqu	-32(%r14,%rax,4), %xmm2
	pmulld	%xmm0, %xmm1
	pmulld	%xmm0, %xmm2
	psrad	$2, %xmm1
	psrad	$2, %xmm2
	movdqu	%xmm1, (%rsi,%rax,4)
	movdqu	%xmm2, 16(%rsi,%rax,4)
	movdqu	-16(%r14,%rax,4), %xmm1
	movdqu	(%r14,%rax,4), %xmm2
	pmulld	%xmm0, %xmm1
	pmulld	%xmm0, %xmm2
	psrad	$2, %xmm1
	psrad	$2, %xmm2
	movdqu	%xmm1, 32(%rsi,%rax,4)
	movdqu	%xmm2, 48(%rsi,%rax,4)
	addq	$16, %rax
	addq	$-2, %rcx
	jne	LBB0_13
## %bb.14:
	testb	$1, %r11b
	je	LBB0_16
LBB0_15:
	movq	%rax, %rcx
	subq	%r10, %rcx
	movdqu	(%r9,%rcx,4), %xmm0
	movdqu	16(%r9,%rcx,4), %xmm1
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [3,3,3,3]
	pmulld	%xmm2, %xmm0
	pmulld	%xmm2, %xmm1
	psrad	$2, %xmm0
	psrad	$2, %xmm1
	movdqu	%xmm0, (%rsi,%rax,4)
	movdqu	%xmm1, 16(%rsi,%rax,4)
LBB0_16:
	cmpq	%r10, %rbx
	je	LBB0_22
	jmp	LBB0_17
LBB0_23:
	xorl	%eax, %eax
	testb	$1, %r11b
	jne	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_PITCH_MAX,4,2                  ## @PITCH_MAX
	.comm	_FRAME_LEN,4,2                  ## @FRAME_LEN
	.no_dead_strip	_residual_interp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function residual_interp
_residual_interp:                       ; @residual_interp
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
	cbz	w2, LBB0_7
; %bb.1:
	cmp	w2, #0
	b.le	LBB0_11
; %bb.2:
Lloh0:
	adrp	x8, _PITCH_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PITCH_MAX@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x8]
	mov	w8, w2
	cmp	w2, #16
	b.lo	LBB0_4
; %bb.3:
	add	x10, x0, x9, lsl #2
	lsl	x11, x8, #2
	sub	x10, x11, x10
	add	x10, x1, x10
	cmp	x10, #64
	b.hs	LBB0_12
LBB0_4:
	mov	x10, #0
LBB0_5:
	add	x9, x0, x9, lsl #2
	sub	x11, x10, x8
	add	x10, x1, x10, lsl #2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9, x11, lsl #2]
	add	w12, w12, w12, lsl #1
	asr	w12, w12, #2
	str	w12, [x10], #4
	adds	x11, x11, #1
	b.lo	LBB0_6
	b	LBB0_15
LBB0_7:
Lloh3:
	adrp	x8, _FRAME_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FRAME_LEN@GOTPAGEOFF]
	ldr	w11, [x8]
	cmp	w11, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x9, #0
	mov	w10, #521
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x4]
	mul	w11, w11, w10
	add	w11, w11, #259
	str	w11, [x4]
	mul	w11, w11, w3
	asr	w11, w11, #15
	str	w11, [x1, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x11, [x8]
	cmp	x9, x11
	b.lt	LBB0_9
LBB0_10:
Lloh5:
	adrp	x8, _PITCH_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PITCH_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w8, w8, w11
	lsl	w2, w8, #2
	mov	w1, #0
	b	_memset
LBB0_11:
	sxtw	x8, w2
	b	LBB0_15
LBB0_12:
	and	x10, x8, #0xfffffff0
	add	x11, x1, #32
	sub	x12, x9, x8
	add	x12, x0, x12, lsl #2
	add	x12, x12, #32
	movi.4s	v0, #3
	mov	x13, x10
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x12, #-32]
	ldp	q3, q4, [x12], #64
	mul.4s	v1, v1, v0
	mul.4s	v2, v2, v0
	mul.4s	v3, v3, v0
	mul.4s	v4, v4, v0
	sshr.4s	v1, v1, #2
	sshr.4s	v2, v2, #2
	sshr.4s	v3, v3, #2
	sshr.4s	v4, v4, #2
	stp	q1, q2, [x11, #-32]
	stp	q3, q4, [x11], #64
	subs	x13, x13, #16
	b.ne	LBB0_13
; %bb.14:
	cmp	x10, x8
	b.ne	LBB0_5
LBB0_15:
	add	x0, x1, x8, lsl #2
	lsl	w1, w2, #2
Lloh8:
	adrp	x8, _FRAME_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FRAME_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	sub	w8, w8, w2
	lsl	w2, w8, #2
	b	_av_memcpy_backptr
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PITCH_MAX,4,2                  ; @PITCH_MAX
	.comm	_FRAME_LEN,4,2                  ; @FRAME_LEN
	.no_dead_strip	_residual_interp
.subsections_via_symbols
