	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_motion_generic
_apply_motion_generic:                  ## @apply_motion_generic
	.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	%r9d, %r14d
	movl	%r8d, %r12d
	movq	%rdi, %rbx
	addl	%edx, %r12d
	addl	%esi, %ecx
	movl	(%rdi), %r9d
	js	LBB0_6
## %bb.1:
	movl	%r9d, %eax
	subl	%r14d, %eax
	cmpl	%eax, %ecx
	jg	LBB0_6
## %bb.2:
	testl	%r12d, %r12d
	js	LBB0_6
## %bb.3:
	movl	4(%rbx), %eax
	subl	%r14d, %eax
	cmpl	%eax, %r12d
	jle	LBB0_4
LBB0_6:
	movl	4(%rbx), %eax
	movl	24(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_av_log
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	8(%rbx), %rdi
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movl	%edx, %r15d
	movslq	%esi, %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r13d
	movq	16(%rbx), %rcx
	movq	(%rcx), %rdx
	movq	8(%rcx), %r9
	movl	(%rdx), %edx
	movq	(%rdi), %rcx
	movl	(%rcx), %ecx
	movl	%edx, %edi
	imull	%r15d, %edi
	movslq	%edi, %rdi
	addq	%rsi, %rdi
	addq	(%r9), %rdi
	movl	%ecx, %esi
	imull	%r12d, %esi
	movslq	%esi, %rsi
	addq	%r13, %rsi
	addq	%rax, %rsi
	movl	%r14d, %r8d
	callq	_block_copy
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx), %rdx
	movq	8(%rcx), %rsi
	movl	4(%rdx), %edx
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	4(%rcx), %ecx
	movl	%edx, %edi
	imull	%r15d, %edi
	movslq	%edi, %rdi
	addq	-48(%rbp), %rdi                 ## 8-byte Folded Reload
	addq	8(%rsi), %rdi
	movl	%ecx, %esi
	imull	%r12d, %esi
	movslq	%esi, %rsi
	addq	%r13, %rsi
	addq	8(%rax), %rsi
	movl	%r14d, %r8d
	callq	_block_copy
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx), %rdx
	movq	8(%rcx), %rsi
	movl	8(%rdx), %edx
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	8(%rcx), %ecx
	imull	%edx, %r15d
	movslq	%r15d, %rdi
	addq	-48(%rbp), %rdi                 ## 8-byte Folded Reload
	addq	16(%rsi), %rdi
	imull	%ecx, %r12d
	movslq	%r12d, %rsi
	addq	%r13, %rsi
	addq	16(%rax), %rsi
	movl	%r14d, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_block_copy                     ## TAILCALL
LBB0_5:
	movl	24(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_log                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"motion vector out of bounds: MV = (%d, %d), boundaries = (0, 0, %d, %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid decode type. Invalid header?\n"

	.no_dead_strip	_apply_motion_generic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_motion_generic
_apply_motion_generic:                  ; @apply_motion_generic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x21, x0
	add	w22, w4, w2
	ldr	w8, [x0]
	adds	w23, w3, w1
	b.mi	LBB0_4
; %bb.1:
	mov	x19, x5
	sub	w9, w8, w5
	cmp	w23, w9
	b.gt	LBB0_4
; %bb.2:
	tbnz	w22, #31, LBB0_4
; %bb.3:
	ldr	w9, [x21, #4]
	sub	w9, w9, w19
	cmp	w22, w9
	b.le	LBB0_5
LBB0_4:
	ldr	w0, [x21, #24]
Lloh0:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	ldr	w9, [x21, #4]
	stp	x8, x9, [sp, #16]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	stp	x23, x22, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	ldr	x9, [x21, #8]
	ldr	x8, [x9, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x20, x2
	sxtw	x24, w1
	ldr	x10, [x21, #16]
	ldp	x11, x10, [x10]
	ldr	w2, [x11]
	ldr	x9, [x9]
	ldr	w3, [x9]
	ldr	x9, [x10]
	mul	w10, w2, w20
	add	x10, x24, w10, sxtw
	add	x0, x10, x9
	mul	w9, w3, w22
	add	x9, x23, w9, sxtw
	add	x1, x9, x8
	mov	x4, x19
	bl	_block_copy
	ldp	x9, x8, [x21, #8]
	ldp	x10, x8, [x8]
	ldr	w2, [x10, #4]
	ldp	x10, x9, [x9]
	ldr	w3, [x10, #4]
	ldr	x8, [x8, #8]
	mul	w10, w2, w20
	add	x10, x24, w10, sxtw
	add	x0, x10, x8
	ldr	x8, [x9, #8]
	mul	w9, w3, w22
	add	x9, x23, w9, sxtw
	add	x1, x9, x8
	mov	x4, x19
	bl	_block_copy
	ldp	x9, x8, [x21, #8]
	ldp	x10, x8, [x8]
	ldr	w2, [x10, #8]
	ldp	x10, x9, [x9]
	ldr	w3, [x10, #8]
	ldr	x8, [x8, #16]
	mul	w10, w2, w20
	add	x10, x24, w10, sxtw
	add	x0, x10, x8
	ldr	x8, [x9, #16]
	mul	w9, w3, w22
	add	x9, x23, w9, sxtw
	add	x1, x9, x8
	mov	x4, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_block_copy
LBB0_7:
	ldr	w0, [x21, #24]
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_av_log
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"motion vector out of bounds: MV = (%d, %d), boundaries = (0, 0, %d, %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid decode type. Invalid header?\n"

	.no_dead_strip	_apply_motion_generic
.subsections_via_symbols
