	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp6_block_variance
_vp6_block_variance:                    ## @vp6_block_variance
	.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
	addl	%esi, %esi
	movslq	%esi, %rdx
	leaq	(%rdi,%rdx,4), %rsi
	leaq	(%rsi,%rdx,4), %rbx
	movl	(%rdi), %r12d
	movl	8(%rdi), %eax
	leal	(%rax,%r12), %ecx
	movl	16(%rdi), %r15d
	movl	24(%rdi), %r14d
	movl	(%rdi,%rdx,4), %r11d
	movl	8(%rdi,%rdx,4), %r10d
	movl	16(%rdi,%rdx,4), %r13d
	movl	24(%rdi,%rdx,4), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	(%rsi,%rdx,4), %edi
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movd	%r14d, %xmm0
	pinsrd	$1, %r15d, %xmm0
	pinsrd	$2, %eax, %xmm0
	movl	8(%rsi,%rdx,4), %eax
	pinsrd	$3, %r12d, %xmm0
	movl	16(%rsi,%rdx,4), %edi
	movl	24(%rsi,%rdx,4), %esi
	movl	(%rbx,%rdx,4), %r8d
	movl	8(%rbx,%rdx,4), %r9d
	movl	16(%rbx,%rdx,4), %r12d
	movl	24(%rbx,%rdx,4), %edx
	addl	%r15d, %ecx
	addl	%r14d, %ecx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movd	%r14d, %xmm1
	pinsrd	$1, %r13d, %xmm1
	pinsrd	$2, %r10d, %xmm1
	pinsrd	$3, %r11d, %xmm1
	addl	%r11d, %ecx
	addl	%r10d, %ecx
	addl	%r13d, %ecx
	movd	%esi, %xmm2
	pinsrd	$1, %edi, %xmm2
	pinsrd	$2, %eax, %xmm2
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	pinsrd	$3, %ebx, %xmm2
	addl	%r14d, %ecx
	addl	%ebx, %ecx
	addl	%eax, %ecx
	addl	%edi, %ecx
	addl	%esi, %ecx
	movd	%edx, %xmm3
	pinsrd	$1, %r12d, %xmm3
	pinsrd	$2, %r9d, %xmm3
	pinsrd	$3, %r8d, %xmm3
	addl	%r8d, %ecx
	addl	%r9d, %ecx
	addl	%r12d, %ecx
	pmulld	%xmm2, %xmm2
	pmulld	%xmm1, %xmm1
	pmulld	%xmm3, %xmm3
	paddd	%xmm1, %xmm3
	pmulld	%xmm0, %xmm0
	paddd	%xmm2, %xmm0
	paddd	%xmm3, %xmm0
	addl	%edx, %ecx
	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, %eax
	shll	$4, %eax
	imull	%ecx, %ecx
	subl	%ecx, %eax
	sarl	$8, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vp6_block_variance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp6_block_variance
_vp6_block_variance:                    ; @vp6_block_variance
	.cfi_startproc
; %bb.0:
	lsl	w8, w1, #1
	ldr	w9, [x0]
	mul	w10, w9, w9
	ldr	w11, [x0, #8]
	madd	w10, w11, w11, w10
	ldr	w12, [x0, #16]
	add	w9, w11, w9
	add	w9, w12, w9
	madd	w10, w12, w12, w10
	ldr	w11, [x0, #24]
	madd	w10, w11, w11, w10
	sbfiz	x8, x8, #2, #32
	add	x12, x0, x8
	add	x13, x12, x8
	ldr	w14, [x12]
	add	w9, w11, w9
	add	w9, w14, w9
	madd	w10, w14, w14, w10
	ldr	w11, [x12, #8]
	madd	w10, w11, w11, w10
	ldr	w14, [x12, #16]
	add	w9, w11, w9
	add	w9, w14, w9
	madd	w10, w14, w14, w10
	ldr	w11, [x12, #24]
	madd	w10, w11, w11, w10
	ldr	w12, [x13]
	add	w9, w11, w9
	add	w9, w12, w9
	madd	w10, w12, w12, w10
	ldr	w11, [x13, #8]
	madd	w10, w11, w11, w10
	ldr	w12, [x13, #16]
	add	w9, w11, w9
	add	w9, w12, w9
	madd	w10, w12, w12, w10
	ldr	w11, [x13, #24]
	madd	w10, w11, w11, w10
	add	x8, x13, x8
	ldr	w12, [x8]
	add	w9, w11, w9
	add	w9, w12, w9
	madd	w10, w12, w12, w10
	ldr	w11, [x8, #8]
	madd	w10, w11, w11, w10
	ldr	w12, [x8, #16]
	add	w9, w11, w9
	add	w9, w12, w9
	madd	w10, w12, w12, w10
	ldr	w8, [x8, #24]
	add	w9, w8, w9
	madd	w8, w8, w8, w10
	lsl	w8, w8, #4
	msub	w8, w9, w9, w8
	asr	w0, w8, #8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vp6_block_variance
.subsections_via_symbols
