	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmv_decode_inter
_cmv_decode_inter:                      ## @cmv_decode_inter
	.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
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r8
	movl	4(%r8), %eax
	cmpl	$4, %eax
	jl	LBB0_20
## %bb.1:
	movl	(%r8), %r11d
	imull	%r11d, %eax
	leal	15(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$4, %ecx
	movslq	%ecx, %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	subq	%rcx, %r13
	sarq	$2, %r13
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	xorl	%esi, %esi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	cmpl	$4, %r11d
	jl	LBB0_18
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r8), %r11d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	$4, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$4, %r11d
	jl	LBB0_18
LBB0_2:
	movslq	%esi, %rbx
	cmpq	%rbx, %r13
	movq	%rbx, %rax
	cmovgq	%r13, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	leal	(,%rdx,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rbx,4), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	imull	-56(%rbp), %esi                 ## 4-byte Folded Reload
	movslq	%esi, %rax
	addq	%rax, %r13
	leaq	(%r14,%r13), %rdi
	leaq	4(%r15), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movslq	(%rax), %rdi
	addq	%r14, %rdi
	addq	%r13, %rdi
	leaq	20(%r15), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%rbx), %rax
	movslq	(%rax), %rax
	leaq	(%r14,%rax,2), %rdi
	addq	%r13, %rdi
	leaq	36(%r15), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%rbx), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,2), %rdi
	addq	%r14, %rdi
	addq	%r13, %rdi
	leaq	52(%r15), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	addq	$68, %r15
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movq	(%rdi), %r8
	movl	(%r8), %r11d
	leal	3(%r11), %eax
	testl	%r11d, %r11d
	cmovnsl	%r11d, %eax
	sarl	$2, %eax
	cltq
	addq	$4, %r14
	cmpq	%rax, %r12
	jge	LBB0_17
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r12), %rax
	cmpq	%rax, %r13
	jle	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r12,4), %eax
	cmpl	$255, %eax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movq	(%rax), %r13
	movl	(%rcx), %esi
	leaq	64(%r15), %rax
	cmpq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	jae	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$255, (%r15)
	je	LBB0_9
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	-88(%rbp), %r15                 ## 8-byte Folded Reload
	jae	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rdi), %r9
	movq	8(%r9), %rcx
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %eax
	movl	%eax, %r10d
	sarl	$4, %r10d
	addl	$-7, %r10d
	andl	$15, %eax
	addl	$-7, %eax
	movq	(%r9), %rcx
	movl	(%rcx), %ecx
	movl	4(%r8), %ebx
	movq	%r13, %rdi
	movl	%r14d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	pushq	%rax
	callq	_cmv_motcomp
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	addq	$32, %rsp
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rdi), %rcx
	movq	8(%rcx), %rdx
	movq	(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ebx
	sarl	$4, %ebx
	addl	$-7, %ebx
	andl	$15, %eax
	addl	$-7, %eax
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rsi
	movq	8(%rdi), %r9
	movq	(%rsi), %rdi
	movl	(%r9), %esi
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	movl	4(%r8), %r10d
	movl	%r14d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r10
	pushq	%r11
	pushq	%rbx
	pushq	%rax
	callq	_cmv_motcomp
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	addq	$32, %rsp
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_16:
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:
	addq	%r12, %rbx
	movq	%rbx, %rsi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	incl	%edx
	movl	4(%r8), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	cmpl	%ecx, %edx
	jl	LBB0_19
LBB0_20:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cmv_decode_inter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmv_decode_inter
_cmv_decode_inter:                      ; @cmv_decode_inter
	.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
	str	x2, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x8, [x0]
	ldr	w11, [x8, #4]
	cmp	w11, #4
	b.lt	LBB0_20
; %bb.1:
	mov	x19, x3
	mov	x21, x1
	mov	x22, x0
	mov	w24, #0
	mov	w13, #0
	mov	w10, #0
	ldr	w9, [x8]
	mul	w11, w11, w9
	add	w12, w11, #15
	cmp	w11, #0
	csel	w11, w12, w11, lt
	asr	w11, w11, #4
	ldr	x12, [sp, #16]                  ; 8-byte Folded Reload
	add	x27, x12, w11, sxtw #2
	sub	x11, x3, x12
	asr	x11, x11, #2
	str	x11, [sp, #8]                   ; 8-byte Folded Spill
	cmp	w9, #4
	b.lt	LBB0_18
LBB0_2:
	mov	x23, #0
	mov	x28, #0
	str	w13, [sp, #40]                  ; 4-byte Folded Spill
	lsl	w26, w13, #2
	sxtw	x13, w10
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	cmp	x11, x13
	csel	x12, x11, x13, gt
	ldr	x11, [sp, #16]                  ; 8-byte Folded Reload
	add	x25, x11, w10, sxtw #2
	stp	x13, x12, [sp, #24]             ; 16-byte Folded Spill
	sub	x20, x13, x12
	str	w26, [sp, #44]                  ; 4-byte Folded Spill
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mul	w8, w24, w1
	mov	x26, x19
	mov	x19, x24
	add	x24, x0, w8, sxtw
	add	x0, x24, x23
	add	x1, x27, #4
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x21, #8]
	ldrsw	x8, [x8]
	add	x8, x23, x8
	add	x0, x24, x8
	add	x1, x27, #20
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x21, #8]
	ldrsw	x8, [x8]
	add	x8, x23, x8, lsl #1
	add	x0, x24, x8
	add	x1, x27, #36
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x21, #8]
	ldrsw	x8, [x8]
	add	x8, x8, x8, lsl #1
	add	x8, x23, x8
	add	x0, x24, x8
	mov	x24, x19
	mov	x19, x26
	ldr	w26, [sp, #44]                  ; 4-byte Folded Reload
	add	x1, x27, #52
	mov	w2, #4
	bl	_memcpy
	add	x27, x27, #68
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x28, x28, #1
	ldr	x8, [x22]
	ldr	w9, [x8]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w10, w10, w9, lt
	asr	w10, w10, #2
	add	x23, x23, #4
	cmp	x28, w10, sxtw
	b.ge	LBB0_16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmn	x20, x28
	b.eq	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x25, x23]
	cmp	w11, #255
	b.ne	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x10, x11, [x21]
	ldr	x0, [x10]
	ldr	w1, [x11]
	add	x10, x27, #64
	cmp	x10, x19
	b.hs	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x27]
	cmp	w10, #255
	b.eq	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x27, x19
	b.hs	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x22, #16]
	ldr	x11, [x10, #8]
	ldr	x2, [x11]
	cbz	x2, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x27]
	asr	w12, w11, #4
	sub	w7, w12, #7
	and	w11, w11, #0xf
	sub	w6, w11, #7
	ldr	x10, [x10]
	ldr	w3, [x10]
	ldr	w8, [x8, #4]
	stp	w9, w8, [sp]
	mov	x4, x23
	mov	x5, x26
	bl	_cmv_motcomp
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #4
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x22, #8]
	ldr	x12, [x10, #8]
	ldr	x2, [x12]
	cbz	x2, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	asr	w12, w11, #4
	sub	w7, w12, #7
	and	w11, w11, #0xf
	sub	w6, w11, #7
	ldp	x11, x12, [x21]
	ldr	x0, [x11]
	ldr	w1, [x12]
	ldr	x10, [x10]
	ldr	w3, [x10]
	ldr	w8, [x8, #4]
	stp	w9, w8, [sp]
	mov	x4, x23
	mov	x5, x26
	bl	_cmv_motcomp
	b	LBB0_4
LBB0_15:
	ldr	w13, [sp, #40]                  ; 4-byte Folded Reload
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	b	LBB0_17
LBB0_16:
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x10, x9, x28
	ldr	w13, [sp, #40]                  ; 4-byte Folded Reload
LBB0_17:
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	add	w13, w13, #1
	ldr	w9, [x8, #4]
	add	w11, w9, #3
	cmp	w9, #0
	csel	w9, w11, w9, lt
	cmp	w13, w9, asr #2
	b.ge	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w9, [x8]
	add	w24, w24, #4
	cmp	w9, #4
	b.ge	LBB0_2
	b	LBB0_18
LBB0_20:
	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	_cmv_decode_inter
.subsections_via_symbols
