	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmc_motion
_gmc_motion:                            ## @gmc_motion
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, %r9
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movq	%rdi, %r13
	movq	16(%rdi), %rax
	movq	(%rax), %rcx
	movq	24(%rdi), %rax
	movl	32(%rdi), %edx
	movq	(%rax), %rsi
	movq	8(%rax), %rdi
	movl	(%rsi), %ebx
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	4(%rsi), %esi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %eax
	imull	%ebx, %eax
	movl	36(%r13), %ebx
	movl	%ebx, %r12d
	imull	%esi, %r12d
	addl	%eax, %r12d
	shll	$4, %r12d
	addl	(%rcx), %r12d
	movl	(%rdi), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %esi
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	imull	%eax, %edx
	imull	%esi, %ebx
	addl	%edx, %ebx
	shll	$4, %ebx
	addl	4(%rcx), %ebx
	movl	(%r13), %ecx
	leal	1(%rcx), %r10d
	movq	%r10, -96(%rbp)                 ## 8-byte Spill
	addl	%ecx, %ecx
	orb	$1, %cl
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %edx
	movslq	%edx, %r15
	movq	%r15, %r11
	subq	48(%r13), %r11
	movl	4(%r13), %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	8(%r13), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movq	(%r8), %rsi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	40(%r13), %eax
	movl	44(%r13), %r14d
	movq	%r9, %rdi
	movl	$16, %ecx
	movl	%r12d, %r8d
	movl	%ebx, %r9d
	pushq	%r14
	pushq	%rax
	pushq	%r11
	pushq	%r10
	pushq	-136(%rbp)                      ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	callq	*56(%r13)
	addq	$64, %rsp
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	addq	$32, %rdi
	movq	24(%r13), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rdx
	movl	(%rcx), %r11d
	movl	4(%rcx), %r10d
	leal	(%r12,%r11,8), %r8d
	movl	(%rdx), %eax
	movl	4(%rdx), %r14d
	leal	(%rbx,%rax,8), %r9d
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	subq	48(%r13), %rbx
	movl	40(%r13), %r15d
	movl	44(%r13), %r12d
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	$16, %ecx
	pushq	%r12
	pushq	%r15
	pushq	%rbx
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	pushq	%rax
	pushq	%r10
	pushq	%r11
	callq	*56(%r13)
	addq	$64, %rsp
	movq	_CONFIG_GRAY@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	64(%r13), %rax
	movq	_AV_CODEC_FLAG_GRAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.3:
	addq	$104, %rsp
	jmp	LBB0_4
LBB0_2:
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
	movq	8(%rax), %rdx
	movl	32(%r13), %esi
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movl	(%rax), %edi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %ebx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %eax
	imull	%edi, %eax
	movl	36(%r13), %r14d
	movl	%r14d, %r12d
	imull	%ebx, %r12d
	addl	%eax, %r12d
	shll	$3, %r12d
	addl	(%rdx), %r12d
	movl	(%rcx), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	4(%rcx), %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	imull	%eax, %esi
	imull	%ecx, %r14d
	addl	%esi, %r14d
	shll	$3, %r14d
	addl	4(%rdx), %r14d
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	8(%r15), %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rax
	subq	48(%r13), %rax
	movl	40(%r13), %r10d
	incl	%r10d
	sarl	%r10d
	movl	44(%r13), %r11d
	incl	%r11d
	sarl	%r11d
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	$8, %ecx
	movl	%r12d, %r8d
	movl	%r14d, %r9d
	pushq	%r11
	pushq	%r10
	pushq	%rax
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	*56(%r13)
	addq	$64, %rsp
	movq	16(%r15), %rsi
	movq	24(%r13), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rdx
	movl	(%rcx), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rcx), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %r15d
	movl	4(%rdx), %r11d
	subq	48(%r13), %rbx
	movl	40(%r13), %eax
	incl	%eax
	sarl	%eax
	movl	44(%r13), %r10d
	incl	%r10d
	sarl	%r10d
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	$8, %ecx
	movl	%r12d, %r8d
	movl	%r14d, %r9d
	pushq	%r10
	pushq	%rax
	pushq	%rbx
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	%r11
	pushq	%r15
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	*56(%r13)
	addq	$168, %rsp
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_GRAY,8,3                ## @CONFIG_GRAY
	.comm	_AV_CODEC_FLAG_GRAY,4,2         ## @AV_CODEC_FLAG_GRAY
	.no_dead_strip	_gmc_motion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmc_motion
_gmc_motion:                            ; @gmc_motion
	.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
	mov	x22, x4
	stp	x2, x3, [sp, #32]               ; 16-byte Folded Spill
	mov	x26, x1
	mov	x21, x0
	ldp	w8, w24, [x0]
	ldr	w20, [x0, #8]
	ldr	x25, [x4]
	ldp	x9, x10, [x0, #16]
	ldr	x9, [x9]
	ldp	x11, x10, [x10]
	ldp	w6, w7, [x11]
	ldp	w11, w12, [x0, #32]
	mul	w13, w11, w6
	madd	w13, w12, w7, w13
	ldp	w14, w9, [x9]
	add	w27, w14, w13, lsl #4
	ldp	w13, w10, [x10]
	mul	w11, w13, w11
	madd	w11, w10, w12, w11
	add	w28, w9, w11, lsl #4
	add	w19, w8, #1
	mov	w9, #1
	mov	w11, #1
	bfi	w11, w8, #1, #31
	lsl	w8, w9, w11
	sxtw	x23, w8
	ldp	x9, x8, [x0, #48]
	sub	x9, x23, x9
	ldp	w11, w12, [x0, #40]
	stp	w11, w12, [sp, #24]
	stp	w10, w19, [sp, #4]
	str	w13, [sp]
	str	x9, [sp, #16]
	mov	x0, x1
	mov	x1, x25
	mov	x2, x24
	mov	w3, #16
	mov	x4, x27
	mov	x5, x28
	blr	x8
	add	x0, x26, #32
	ldr	x8, [x21, #24]
	ldp	x9, x8, [x8]
	ldp	w6, w7, [x9]
	add	w4, w27, w6, lsl #3
	ldp	w9, w8, [x8]
	add	w5, w28, w9, lsl #3
	ldp	x11, x10, [x21, #48]
	sub	x11, x23, x11
	ldp	w12, w13, [x21, #40]
	stp	w12, w13, [sp, #24]
	str	x11, [sp, #16]
	stp	w8, w19, [sp, #4]
	str	w9, [sp]
	mov	x1, x25
	mov	x2, x24
	mov	w3, #16
	blr	x10
Lloh0:
	adrp	x8, _CONFIG_GRAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_GRAY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x21, #64]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AV_CODEC_FLAG_GRAY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_FLAG_GRAY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
LBB0_2:
	ldp	x8, x9, [x21, #16]
	ldr	x8, [x8, #8]
	ldp	x10, x9, [x9]
	ldp	w6, w7, [x10]
	ldp	w10, w11, [x21, #32]
	mul	w12, w10, w6
	madd	w12, w11, w7, w12
	ldp	w13, w8, [x8]
	add	w24, w13, w12, lsl #3
	ldp	w12, w9, [x9]
	mul	w10, w12, w10
	madd	w10, w9, w11, w10
	add	w25, w8, w10, lsl #3
	ldr	x1, [x22, #8]
	ldp	x10, x8, [x21, #48]
	sub	x10, x23, x10
	ldp	w11, w13, [x21, #40]
	add	w11, w11, #1
	asr	w11, w11, #1
	add	w13, w13, #1
	asr	w13, w13, #1
	stp	w11, w13, [sp, #24]
	str	x10, [sp, #16]
	stp	w9, w19, [sp, #4]
	str	w12, [sp]
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	mov	x2, x20
	mov	w3, #8
	mov	x4, x24
	mov	x5, x25
	blr	x8
	ldr	x1, [x22, #16]
	ldr	x8, [x21, #24]
	ldp	x9, x8, [x8]
	ldp	w6, w7, [x9]
	ldp	w9, w8, [x8]
	ldp	x11, x10, [x21, #48]
	sub	x11, x23, x11
	ldp	w12, w13, [x21, #40]
	add	w12, w12, #1
	asr	w12, w12, #1
	add	w13, w13, #1
	asr	w13, w13, #1
	stp	w12, w13, [sp, #24]
	str	x11, [sp, #16]
	stp	w8, w19, [sp, #4]
	str	w9, [sp]
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	mov	x2, x20
	mov	w3, #8
	mov	x4, x24
	mov	x5, x25
	blr	x10
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_GRAY,8,3                ; @CONFIG_GRAY
	.comm	_AV_CODEC_FLAG_GRAY,4,2         ; @AV_CODEC_FLAG_GRAY
	.no_dead_strip	_gmc_motion
.subsections_via_symbols
