	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function motion_compensation
_motion_compensation:                   ## @motion_compensation
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
                                        ## kill: def $ecx killed $ecx def $rcx
	movslq	%esi, %r14
	movq	(%rdi), %r8
	addq	%r14, %r8
	movl	$-1, %eax
	js	LBB0_11
## %bb.1:
	movslq	%ecx, %rbx
	addq	%r8, %rbx
	movq	56(%rdi), %rsi
	cmpq	(%rsi), %rbx
	jg	LBB0_11
## %bb.2:
	movslq	%edx, %r15
	addq	8(%rdi), %r15
	js	LBB0_11
## %bb.3:
	movslq	%r13d, %rbx
	addq	%r15, %rbx
	cmpq	8(%rsi), %rbx
	jg	LBB0_11
## %bb.4:
	movq	24(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.5:
	movq	32(%rdi), %r11
	movq	40(%rdi), %r10
	movq	%r11, %rsi
	movq	%rbx, %r9
	testq	%r10, %r10
	je	LBB0_7
## %bb.6:
	movq	48(%rdi), %rsi
	movq	%r10, %r9
LBB0_7:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	jle	LBB0_11
## %bb.8:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	16(%rdi), %r10d
	leaq	(%r11,%r14,4), %r11
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leal	(%r14,%r14,2), %esi
	movslq	%esi, %rsi
	leaq	(%rbx,%rsi,4), %rsi
	movl	%r10d, %ecx
	imull	%edx, %ecx
	movslq	%ecx, %rcx
	leaq	(%r11,%rcx,4), %rbx
	movl	20(%rdi), %ecx
	imull	%ecx, %edx
	movslq	%edx, %rdx
	leaq	(%rsi,%rdx,4), %r12
	movq	%r8, %rdx
	shlq	$32, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	sarq	$30, %rdx
	addq	%rdx, %r9
	imull	%r15d, %ecx
	movslq	%ecx, %rdx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r9,%rdx,4), %r14
	movslq	%r8d, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	imull	%r15d, %r10d
	movslq	%r10d, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %r15
	leal	(%rdx,%rdx,2), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memmove
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_memmove
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	16(%rcx), %rax
	leaq	(%rbx,%rax,4), %rbx
	leaq	(%r15,%rax,4), %r15
	movslq	20(%rcx), %rax
	leaq	(%r12,%rax,4), %r12
	leaq	(%r14,%rax,4), %r14
	decl	%r13d
	jne	LBB0_9
## %bb.10:
	xorl	%eax, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_motion_compensation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function motion_compensation
_motion_compensation:                   ; @motion_compensation
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x10, w1
	ldr	x8, [x0]
	adds	x8, x8, x10
	b.mi	LBB0_7
; %bb.1:
	mov	x20, x3
	mov	x21, x0
	add	x9, x8, w3, sxtw
	ldr	x11, [x0, #56]
	ldr	x12, [x11]
	cmp	x9, x12
	b.gt	LBB0_7
; %bb.2:
	ldr	x9, [x21, #8]
	adds	x9, x9, w2, sxtw
	b.mi	LBB0_7
; %bb.3:
	mov	x19, x4
	add	x12, x9, w4, sxtw
	ldr	x11, [x11, #8]
	cmp	x12, x11
	b.gt	LBB0_7
; %bb.4:
	ldr	x13, [x21, #24]
	cbz	x13, LBB0_7
; %bb.5:
	ldp	x14, x12, [x21, #32]
	cbz	x12, LBB0_9
; %bb.6:
	ldr	x11, [x21, #48]
	cmp	w19, #1
	b.ge	LBB0_10
	b	LBB0_12
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x11, x14
	mov	x12, x13
	cmp	w19, #1
	b.lt	LBB0_12
LBB0_10:
	mov	w15, #12
	ldp	w16, w17, [x21, #16]
	add	x14, x14, x10, lsl #2
	mul	w0, w16, w2
	add	x22, x14, w0, sxtw #2
	madd	x10, x10, x15, x13
	mul	w13, w17, w2
	add	x23, x10, w13, sxtw #2
	add	w10, w8, w8, lsl #1
	lsl	x10, x10, #32
	add	x10, x12, x10, asr #30
	mul	w12, w17, w9
	add	x24, x10, w12, sxtw #2
	lsl	x8, x8, #32
	add	x8, x11, x8, asr #30
	mul	w9, w16, w9
	add	x25, x8, w9, sxtw #2
	add	w26, w20, w20, lsl #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x25
	mov	x2, x20
	bl	_memmove
	mov	x0, x23
	mov	x1, x24
	mov	x2, x26
	bl	_memmove
	ldpsw	x8, x9, [x21, #16]
	lsl	x8, x8, #2
	add	x22, x22, x8
	add	x25, x25, x8
	lsl	x8, x9, #2
	add	x23, x23, x8
	add	x24, x24, x8
	subs	w19, w19, #1
	b.ne	LBB0_11
LBB0_12:
	mov	w0, #0
	b	LBB0_8
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_motion_compensation
.subsections_via_symbols
