	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_msmpeg4_decode_motion       ## -- Begin function ff_msmpeg4_decode_motion
	.p2align	4, 0x90
_ff_msmpeg4_decode_motion:              ## @ff_msmpeg4_decode_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_ff_mv_tables@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	(%rdi), %r14
	leaq	8(%rdi), %r13
	shlq	$5, %r14
	movl	24(%r12,%r14), %esi
	movq	_MV_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$2, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpl	(%r12,%r14), %eax
	jne	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	movl	$6, %esi
	callq	_get_bits
	movl	%eax, %r12d
	movq	%r13, %rdi
	movl	$6, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_5
LBB0_1:
	movl	20(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %r8d
	movl	16(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movl	$-1, %eax
	jmp	LBB0_6
LBB0_4:
	movl	%eax, %eax
	movq	8(%r12,%r14), %rcx
	movq	16(%r12,%r14), %rdx
	movl	(%rcx,%rax,4), %r12d
	movl	(%rdx,%rax,4), %eax
LBB0_5:
	movl	(%r15), %ecx
	leal	(%r12,%rcx), %edx
	addl	$-32, %edx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	(%r8), %esi
	leal	(%rax,%rsi), %edi
	addl	$-32, %edi
	cmpl	$64, %edx
	leal	-96(%r12,%rcx), %ebx
	cmovll	%edx, %ebx
	cmpl	$-63, %edx
	leal	32(%r12,%rcx), %ecx
	cmovgel	%ebx, %ecx
	cmpl	$64, %edi
	leal	-96(%rax,%rsi), %edx
	cmovll	%edi, %edx
	cmpl	$-63, %edi
	leal	32(%rax,%rsi), %eax
	cmovgel	%edx, %eax
	movl	%ecx, (%r15)
	movl	%eax, (%r8)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_mv_tables,8,3               ## @ff_mv_tables
	.comm	_MV_VLC_BITS,4,2                ## @MV_VLC_BITS
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal MV code at %d %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_msmpeg4_decode_motion       ; -- Begin function ff_msmpeg4_decode_motion
	.p2align	2
_ff_msmpeg4_decode_motion:              ; @ff_msmpeg4_decode_motion
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _ff_mv_tables@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_mv_tables@GOTPAGEOFF]
	mov	x21, x0
	ldr	x23, [x21], #8
Lloh2:
	ldr	x24, [x8]
	add	x8, x24, x23, lsl #5
	ldr	w1, [x8, #24]
Lloh3:
	adrp	x8, _MV_VLC_BITS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MV_VLC_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w3, #2
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_3
; %bb.1:
	lsl	x8, x23, #5
	ldr	w8, [x24, x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x21
	mov	w1, #6
	bl	_get_bits
	mov	x22, x0
	mov	x0, x21
	mov	w1, #6
	bl	_get_bits
	mov	x8, x0
	b	LBB0_5
LBB0_3:
	ldp	w3, w0, [x22, #16]
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w4, [x22, #12]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	mov	w0, #-1
	b	LBB0_6
LBB0_4:
	add	x8, x24, x23, lsl #5
	mov	w9, w0
	lsl	x9, x9, #2
	ldp	x10, x8, [x8, #8]
	ldr	w22, [x10, x9]
	ldr	w8, [x8, x9]
LBB0_5:
	mov	w0, #0
	ldr	w9, [x20]
	add	w9, w22, w9
	sub	w10, w9, #32
	ldr	w11, [x19]
	add	w8, w8, w11
	sub	w11, w9, #96
	cmp	w10, #63
	csel	w11, w11, w10, gt
	cmn	w10, #63
	sub	w10, w8, #32
	add	w9, w9, #32
	csel	w9, w9, w11, lt
	add	w11, w8, #32
	sub	w8, w8, #96
	cmp	w10, #63
	csel	w8, w8, w10, gt
	cmn	w10, #63
	csel	w8, w11, w8, lt
	str	w9, [x20]
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_mv_tables,8,3               ; @ff_mv_tables
	.comm	_MV_VLC_BITS,4,2                ; @MV_VLC_BITS
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal MV code at %d %d\n"

.subsections_via_symbols
