	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function residual_filter
_residual_filter:                       ## @residual_filter
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	movl	%ecx, %r14d
	movq	%r14, %rcx
	shlq	$32, %rcx
	incq	%r14
	movabsq	$-30064771072, %r15             ## imm = 0xFFFFFFF900000000
	movabsq	$-34359738368, %r12             ## imm = 0xFFFFFFF800000000
	movabsq	$-38654705664, %r13             ## imm = 0xFFFFFFF700000000
	movabsq	$-42949672960, %r11             ## imm = 0xFFFFFFF600000000
	movabsq	$-47244640256, %r8              ## imm = 0xFFFFFFF500000000
	movabsq	$-4294967296, %r9               ## imm = 0xFFFFFFFF00000000
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movabsq	$-8589934592, %rax              ## imm = 0xFFFFFFFE00000000
	leaq	(%rcx,%rax), %r10
	sarq	$30, %r10
	movl	(%rdx,%r10), %ebx
	imull	(%rsi), %ebx
	movabsq	$-12884901888, %rax             ## imm = 0xFFFFFFFD00000000
	addq	%rcx, %rax
	sarq	$30, %rax
	movl	(%rdx,%rax), %eax
	imull	4(%rsi), %eax
	addl	%ebx, %eax
	movabsq	$-17179869184, %rbx             ## imm = 0xFFFFFFFC00000000
	addq	%rcx, %rbx
	sarq	$30, %rbx
	movl	(%rdx,%rbx), %ebx
	imull	8(%rsi), %ebx
	addl	%eax, %ebx
	movabsq	$-21474836480, %rax             ## imm = 0xFFFFFFFB00000000
	addq	%rcx, %rax
	sarq	$30, %rax
	movl	(%rdx,%rax), %eax
	imull	12(%rsi), %eax
	addl	%ebx, %eax
	movabsq	$-25769803776, %rbx             ## imm = 0xFFFFFFFA00000000
	addq	%rcx, %rbx
	sarq	$30, %rbx
	movl	(%rdx,%rbx), %ebx
	imull	16(%rsi), %ebx
	addl	%eax, %ebx
	leaq	(%rcx,%r15), %rax
	sarq	$30, %rax
	movl	(%rdx,%rax), %eax
	imull	20(%rsi), %eax
	addl	%ebx, %eax
	leaq	(%rcx,%r12), %rbx
	sarq	$30, %rbx
	movl	(%rdx,%rbx), %ebx
	imull	24(%rsi), %ebx
	addl	%eax, %ebx
	leaq	(%rcx,%r13), %rax
	sarq	$30, %rax
	movl	(%rdx,%rax), %eax
	imull	28(%rsi), %eax
	addl	%ebx, %eax
	leaq	(%rcx,%r11), %rbx
	sarq	$30, %rbx
	movl	(%rdx,%rbx), %ebx
	imull	32(%rsi), %ebx
	addl	%eax, %ebx
	leaq	(%rcx,%r8), %rax
	sarq	$30, %rax
	movl	(%rdx,%rax), %eax
	imull	36(%rsi), %eax
	addl	%ebx, %eax
	addl	$2048, %eax                     ## imm = 0x800
	sarl	$12, %eax
	addl	-8(%rdx,%r14,4), %eax
	movl	%eax, -8(%rdi,%r14,4)
	addq	%r9, %rcx
	decq	%r14
	cmpq	$1, %r14
	ja	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_residual_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function residual_filter
_residual_filter:                       ; @residual_filter
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	cmp	w3, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w9, w3
	lsl	x8, x9, #32
	sub	x9, x9, #1
	mov	x10, #-8589934592
	mov	x11, #281462091808768
	movk	x11, #65535, lsl #48
	mov	x12, #-17179869184
	mov	x13, #281453501874176
	movk	x13, #65535, lsl #48
	mov	x14, #281449206906880
	movk	x14, #65535, lsl #48
	mov	x15, #281444911939584
	movk	x15, #65535, lsl #48
	mov	x16, #-34359738368
	mov	x17, #281436322004992
	movk	x17, #65535, lsl #48
	mov	x3, #281432027037696
	movk	x3, #65535, lsl #48
	mov	x4, #281427732070400
	movk	x4, #65535, lsl #48
	mov	x5, #-4294967296
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x6, x8, x10
	asr	x6, x6, #30
	ldp	w7, w19, [x1]
	add	x20, x8, x11
	ldr	w6, [x2, x6]
	asr	x20, x20, #30
	ldr	w20, [x2, x20]
	mul	w19, w20, w19
	add	x20, x8, x12
	madd	w6, w6, w7, w19
	asr	x7, x20, #30
	ldr	w7, [x2, x7]
	ldp	w19, w20, [x1, #8]
	madd	w6, w7, w19, w6
	add	x7, x8, x13
	asr	x7, x7, #30
	ldr	w7, [x2, x7]
	add	x19, x8, x14
	madd	w6, w7, w20, w6
	asr	x7, x19, #30
	ldr	w7, [x2, x7]
	ldp	w19, w20, [x1, #16]
	madd	w6, w7, w19, w6
	add	x7, x8, x15
	asr	x7, x7, #30
	ldr	w7, [x2, x7]
	add	x19, x8, x16
	madd	w6, w7, w20, w6
	asr	x7, x19, #30
	ldr	w7, [x2, x7]
	ldp	w19, w20, [x1, #24]
	madd	w6, w7, w19, w6
	add	x7, x8, x17
	asr	x7, x7, #30
	ldr	w7, [x2, x7]
	add	x19, x8, x3
	madd	w6, w7, w20, w6
	asr	x7, x19, #30
	ldr	w7, [x2, x7]
	ldp	w19, w20, [x1, #32]
	madd	w6, w7, w19, w6
	add	x7, x8, x4
	asr	x7, x7, #30
	ldr	w7, [x2, x7]
	madd	w6, w7, w20, w6
	add	w6, w6, #2048
	lsl	x7, x9, #2
	ldr	w19, [x2, x7]
	add	w6, w19, w6, asr #12
	str	w6, [x0, x7]
	add	x8, x8, x5
	add	x6, x9, #1
	sub	x9, x9, #1
	cmp	x6, #1
	b.hi	LBB0_2
LBB0_3:
	ldp	x20, x19, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_residual_filter
.subsections_via_symbols
