	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_fix_long_p_mvs              ## -- Begin function ff_fix_long_p_mvs
	.p2align	4, 0x90
_ff_fix_long_p_mvs:                     ## @ff_fix_long_p_mvs
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	(%rdi), %r15d
	movq	8(%rdi), %rax
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_av_assert0
	movq	16(%r14), %rax
	movq	_FMT_MPEG1@GOTPCREL(%rip), %rcx
	movl	$8, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	cmpq	$0, 80(%r14)
	sete	%al
	leal	8(,%rax,8), %ebx
LBB0_2:
	movl	%r15d, %ecx
	shll	%cl, %ebx
	cmpl	$16, %ebx
	jg	LBB0_4
## %bb.3:
	movl	$1, %r15d
	movl	$1, %edi
	callq	_av_assert0
	jmp	LBB0_7
LBB0_4:
	xorl	%edi, %edi
	cmpq	$0, 80(%r14)
	sete	%dil
	callq	_av_assert0
	movl	$1, %r15d
	cmpl	$257, %ebx                      ## imm = 0x101
	jb	LBB0_7
## %bb.5:
	movq	24(%r14), %rax
	movq	_AV_CODEC_ID_MPEG2VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	72(%r14), %rax
	movq	(%rax), %rax
	movq	_FF_COMPLIANCE_NORMAL@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	setl	%r15b
LBB0_7:
	movl	%r15d, %edi
	callq	_av_assert0
	movq	88(%r14), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %ebx
	movl	%ebx, %r13d
	cmovgl	%ecx, %r13d
	movq	72(%r14), %rdx
	testl	%ecx, %ecx
	cmovel	%ebx, %r13d
	movq	_AV_CODEC_FLAG_4MV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rdx)
	je	LBB0_37
## %bb.8:
	movl	36(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_37
## %bb.9:
	movl	32(%r14), %eax
	leal	(%rax,%rax), %edx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edx
	negl	%edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	44(%r14), %edi
	xorl	%edx, %edx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	_CANDIDATE_MB_TYPE_INTER4V@GOTPCREL(%rip), %r9
	xorl	%esi, %esi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	36(%r14), %ecx
	movl	-68(%rbp), %esi                 ## 4-byte Reload
LBB0_36:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	addq	%rdx, -64(%rbp)                 ## 8-byte Folded Spill
	addq	%rdx, %rax
	cmpl	%ecx, %esi
	jge	LBB0_37
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	testl	%edi, %edi
	jle	LBB0_36
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	-64(%rbp), %rcx                 ## 4-byte Folded Reload
	shlq	$3, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	40(%r14), %ecx
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	imull	%esi, %ecx
	movslq	%ecx, %rcx
	shlq	$2, %rcx
	movq	48(%r14), %rdx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	addq	%rcx, %rdx
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	(%r9), %edi
	notl	%edi
	andl	(%rdx,%rcx,2), %edi
	orl	%r12d, %edi
	movl	%edi, (%rdx,%rcx,2)
	movq	64(%r14), %rdi
	addq	-56(%rbp), %rdi                 ## 8-byte Folded Reload
	movl	%r12d, (%rdi,%rcx,2)
LBB0_33:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	44(%r14), %edi
LBB0_34:                                ##   in Loop: Header=BB0_12 Depth=2
	incl	%esi
	addq	$2, %rcx
	cmpl	%edi, %esi
	jge	LBB0_35
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdx,%rcx,2), %r10d
	movl	(%r9), %r11d
	testl	%r10d, %r11d
	je	LBB0_34
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, %rdi
	movq	56(%r14), %rdi
	movq	(%rdi), %r8
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	addq	%r8, %rdi
	movq	(%rdi,%rcx,8), %rdi
	movl	(%rdi), %r15d
	cmpl	%r13d, %r15d
	jge	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	jl	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	4(%rdi), %edi
	cmpl	%r13d, %edi
	jge	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	-44(%rbp), %edi                 ## 4-byte Folded Reload
	jge	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=2
	notl	%r11d
	andl	%r11d, %r10d
	orl	%r12d, %r10d
	movl	%r10d, (%rdx,%rcx,2)
	movq	64(%r14), %rdi
	addq	-56(%rbp), %rdi                 ## 8-byte Folded Reload
	movl	%r12d, (%rdi,%rcx,2)
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addl	%ecx, %edi
	incl	%edi
	movslq	%edi, %rdi
	movq	(%r8,%rdi,8), %rdi
	movl	(%rdi), %ebx
	cmpl	%r13d, %ebx
	jge	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jl	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	4(%rdi), %edi
	cmpl	%r13d, %edi
	jge	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	-44(%rbp), %edi                 ## 4-byte Folded Reload
	jge	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	(%r9), %edi
	notl	%edi
	andl	(%rdx,%rcx,2), %edi
	orl	%r12d, %edi
	movl	%edi, (%rdx,%rcx,2)
	movq	64(%r14), %rdi
	addq	-56(%rbp), %rdi                 ## 8-byte Folded Reload
	movl	%r12d, (%rdi,%rcx,2)
LBB0_23:                                ##   in Loop: Header=BB0_12 Depth=2
	leal	(%rax,%rcx), %edi
	movslq	%edi, %rdi
	movq	(%r8,%rdi,8), %rdi
	movl	(%rdi), %ebx
	cmpl	%r13d, %ebx
	jge	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jl	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	4(%rdi), %edi
	cmpl	%r13d, %edi
	jge	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	-44(%rbp), %edi                 ## 4-byte Folded Reload
	jge	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	(%r9), %edi
	notl	%edi
	andl	(%rdx,%rcx,2), %edi
	orl	%r12d, %edi
	movl	%edi, (%rdx,%rcx,2)
	movq	64(%r14), %rdi
	addq	-56(%rbp), %rdi                 ## 8-byte Folded Reload
	movl	%r12d, (%rdi,%rcx,2)
LBB0_28:                                ##   in Loop: Header=BB0_12 Depth=2
	leal	(%rax,%rcx), %edi
	incl	%edi
	movslq	%edi, %rdi
	movq	(%r8,%rdi,8), %rdi
	movl	(%rdi), %ebx
	cmpl	%r13d, %ebx
	jge	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jl	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	4(%rdi), %edi
	cmpl	%r13d, %edi
	jge	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	-44(%rbp), %edi                 ## 4-byte Folded Reload
	jge	LBB0_33
	jmp	LBB0_32
LBB0_37:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_P,8,3          ## @AV_PICTURE_TYPE_P
	.comm	_FMT_MPEG1,8,3                  ## @FMT_MPEG1
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ## @AV_CODEC_ID_MPEG2VIDEO
	.comm	_FF_COMPLIANCE_NORMAL,8,3       ## @FF_COMPLIANCE_NORMAL
	.comm	_AV_CODEC_FLAG_4MV,4,2          ## @AV_CODEC_FLAG_4MV
	.comm	_CANDIDATE_MB_TYPE_INTER4V,4,2  ## @CANDIDATE_MB_TYPE_INTER4V
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_fix_long_p_mvs              ; -- Begin function ff_fix_long_p_mvs
	.p2align	2
_ff_fix_long_p_mvs:                     ; @ff_fix_long_p_mvs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w21, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_av_assert0
	ldr	x9, [x20, #16]
Lloh3:
	adrp	x8, _FMT_MPEG1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FMT_MPEG1@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
	mov	w8, #8
	cmp	x9, x10
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x20, #80]
	cmp	x9, #0
	mov	w9, #16
	csel	w8, w9, w8, eq
LBB0_2:
	lsl	w22, w8, w21
	cmp	w22, #16
	b.gt	LBB0_4
; %bb.3:
	mov	w21, #1
	mov	w0, #1
	bl	_av_assert0
	b	LBB0_8
LBB0_4:
	ldr	x8, [x20, #80]
	cmp	x8, #0
	cset	w0, eq
	bl	_av_assert0
	cmp	w22, #257
	b.lo	LBB0_7
; %bb.5:
	ldr	x8, [x20, #24]
Lloh6:
	adrp	x9, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x20, #72]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _FF_COMPLIANCE_NORMAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FF_COMPLIANCE_NORMAL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w21, lt
	b	LBB0_8
LBB0_7:
	mov	w21, #1
LBB0_8:
	mov	x0, x21
	bl	_av_assert0
	ldr	x8, [x20, #88]
	ldr	w8, [x8]
	cmp	w22, w8
	ccmp	w8, #0, #4, gt
	csel	w8, w8, w22, ne
	ldr	x9, [x20, #72]
	ldr	w9, [x9, #8]
Lloh12:
	adrp	x10, _AV_CODEC_FLAG_4MV@GOTPAGE
Lloh13:
	ldr	x10, [x10, _AV_CODEC_FLAG_4MV@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_30
; %bb.9:
	ldr	w15, [x20, #36]
	cmp	w15, #1
	b.lt	LBB0_30
; %bb.10:
	mov	w9, #0
	mov	w10, #0
	ldr	w11, [x20, #32]
	lsl	w12, w11, #1
	neg	w13, w8
	ldr	w2, [x20, #44]
Lloh15:
	adrp	x14, _CANDIDATE_MB_TYPE_INTER4V@GOTPAGE
Lloh16:
	ldr	x14, [x14, _CANDIDATE_MB_TYPE_INTER4V@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w15, [x20, #36]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w10, w10, #1
	add	w9, w9, w12
	cmp	w10, w15
	b.ge	LBB0_30
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	cmp	w2, #1
	b.lt	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x15, #0
	sbfiz	x16, x9, #3, #32
	ldr	w17, [x20, #40]
	ldr	x0, [x20, #48]
	mul	w17, w17, w10
	sbfiz	x17, x17, #2, #32
	add	x0, x0, x17
	mov	x1, x9
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	w3, [x14]
	ldr	w4, [x0, x2]
	bic	w3, w4, w3
	orr	w3, w3, w19
	str	w3, [x0, x2]
	ldr	x3, [x20, #64]
	add	x3, x3, x17
	str	w19, [x3, x2]
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	w2, [x20, #44]
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x15, x15, #1
	add	x16, x16, #16
	add	w1, w1, #2
	cmp	w15, w2
	b.ge	LBB0_11
LBB0_18:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w4, [x0, x15, lsl #2]
	ldr	w5, [x14]
	tst	w5, w4
	b.eq	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x2, [x20, #56]
	ldr	x3, [x2]
	ldr	x6, [x3, x16]
	ldr	w7, [x6]
	lsl	x2, x15, #2
	cmp	w7, w8
	b.ge	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w6, [x6, #4]
	cmp	w7, w13
	ccmp	w6, w8, #0, ge
	ccmp	w6, w13, #8, lt
	b.ge	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=2
	bic	w4, w4, w5
	orr	w4, w4, w19
	str	w4, [x0, x2]
	ldr	x4, [x20, #64]
	add	x4, x4, x17
	str	w19, [x4, x2]
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=2
	add	w4, w1, #1
	ldr	x4, [x3, w4, sxtw #3]
	ldr	w5, [x4]
	cmp	w5, w8
	b.ge	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w4, [x4, #4]
	cmp	w5, w13
	ccmp	w4, w8, #0, ge
	ccmp	w4, w13, #8, lt
	b.ge	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	w4, [x14]
	ldr	w5, [x0, x2]
	bic	w4, w5, w4
	orr	w4, w4, w19
	str	w4, [x0, x2]
	ldr	x4, [x20, #64]
	add	x4, x4, x17
	str	w19, [x4, x2]
LBB0_25:                                ;   in Loop: Header=BB0_18 Depth=2
	add	w4, w11, w1
	ldr	x4, [x3, w4, sxtw #3]
	ldr	w5, [x4]
	cmp	w5, w8
	b.ge	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w4, [x4, #4]
	cmp	w5, w13
	ccmp	w4, w8, #0, ge
	ccmp	w4, w13, #8, lt
	b.ge	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	w4, [x14]
	ldr	w5, [x0, x2]
	bic	w4, w5, w4
	orr	w4, w4, w19
	str	w4, [x0, x2]
	ldr	x4, [x20, #64]
	add	x4, x4, x17
	str	w19, [x4, x2]
LBB0_28:                                ;   in Loop: Header=BB0_18 Depth=2
	add	w4, w11, w1
	add	w4, w4, #1
	ldr	x3, [x3, w4, sxtw #3]
	ldr	w4, [x3]
	cmp	w4, w8
	b.ge	LBB0_15
; %bb.29:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w3, [x3, #4]
	cmp	w4, w13
	ccmp	w3, w8, #0, ge
	ccmp	w3, w13, #8, lt
	b.lt	LBB0_15
	b	LBB0_16
LBB0_30:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PICTURE_TYPE_P,8,3          ; @AV_PICTURE_TYPE_P
	.comm	_FMT_MPEG1,8,3                  ; @FMT_MPEG1
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ; @AV_CODEC_ID_MPEG2VIDEO
	.comm	_FF_COMPLIANCE_NORMAL,8,3       ; @FF_COMPLIANCE_NORMAL
	.comm	_AV_CODEC_FLAG_4MV,4,2          ; @AV_CODEC_FLAG_4MV
	.comm	_CANDIDATE_MB_TYPE_INTER4V,4,2  ; @CANDIDATE_MB_TYPE_INTER4V
.subsections_via_symbols
