	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function motion_metric
_motion_metric:                         ## @motion_metric
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %r9d
	movl	4(%rsi), %r8d
	xorl	%ebx, %ebx
	cmpl	$16, %r8d
	jl	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movl	(%rax), %r14d
	movq	8(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %rax
	movq	8(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leal	15(%r9), %eax
	testl	%r9d, %r9d
	cmovnsl	%r9d, %eax
	sarl	$4, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shrq	$4, %r8
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movl	%r14d, %eax
	shll	$4, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	xorl	%esi, %esi
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	incq	%rax
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	cmpq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	je	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpl	$16, %r9d
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	jl	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ebx, %rax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %r13
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rbx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	callq	_sse_block16
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	addq	%rax, %rsi
	addq	$64, %r13
	addq	$64, %rbx
	decq	%r15
	jne	LBB0_5
	jmp	LBB0_6
LBB0_1:
	xorl	%esi, %esi
	jmp	LBB0_8
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r9d
	movl	4(%rax), %r8d
LBB0_8:
	imull	%r9d, %r8d
	cvtsi2ss	%rsi, %xmm0
	cvtsi2ss	%r8d, %xmm1
	divss	%xmm1, %xmm0
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_motion_metric
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function motion_metric
_motion_metric:                         ; @motion_metric
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldp	w11, w8, [x1]
	cmp	w8, #16
	b.lt	LBB0_6
; %bb.1:
	mov	x20, x0
	mov	w26, #0
	mov	x27, #0
	mov	x25, #0
	ldr	x9, [x1, #8]
	ldr	w21, [x9]
	ldr	x9, [x9, #8]
	str	x9, [sp, #32]                   ; 8-byte Folded Spill
	ldr	x9, [x2, #8]
	add	w10, w11, #15
	cmp	w11, #0
	csel	w10, w10, w11, lt
	asr	w10, w10, #4
	str	x10, [sp, #24]                  ; 8-byte Folded Spill
	ldr	x9, [x9, #8]
	stp	x1, x9, [sp, #8]                ; 16-byte Folded Spill
	lsr	x8, x8, #4
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	lsl	w19, w21, #4
	mov	x28, x11
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x27, #1
	add	w26, w26, w19
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x27, x8
	mov	x11, x28
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w11, #16
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sbfiz	x8, x26, #2, #32
	ldp	x9, x24, [sp, #16]              ; 16-byte Folded Reload
	add	x22, x9, x8
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	add	x23, x9, x8
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_sse_block16
	add	x25, x0, x25
	add	x22, x22, #64
	add	x23, x23, #64
	subs	x24, x24, #1
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	mov	x25, #0
	b	LBB0_8
LBB0_7:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldp	w11, w8, [x8]
LBB0_8:
	scvtf	s0, x25
	mul	w8, w8, w11
	scvtf	s1, w8
	fdiv	s0, s0, s1
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_motion_metric
.subsections_via_symbols
