	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ff_msmpeg4_encode_motion
LCPI0_0:
	.long	4294967233                      ## 0xffffffc1
	.long	4294967233                      ## 0xffffffc1
	.space	4
	.space	4
LCPI0_1:
	.long	64                              ## 0x40
	.long	64                              ## 0x40
	.space	4
	.space	4
LCPI0_2:
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.space	4
	.space	4
LCPI0_3:
	.long	4294967232                      ## 0xffffffc0
	.long	4294967232                      ## 0xffffffc0
	.space	4
	.space	4
LCPI0_4:
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_msmpeg4_encode_motion
	.p2align	4, 0x90
_ff_msmpeg4_encode_motion:              ## @ff_msmpeg4_encode_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
	movd	%esi, %xmm2
	pinsrd	$1, %edx, %xmm2
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = <4294967233,4294967233,u,u>
	pcmpgtd	%xmm2, %xmm1
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = <64,64,u,u>
	paddd	%xmm2, %xmm3
	movdqa	%xmm2, %xmm0
	pcmpgtd	LCPI0_2(%rip), %xmm0
	movdqa	LCPI0_3(%rip), %xmm4            ## xmm4 = <4294967232,4294967232,u,u>
	paddd	%xmm2, %xmm4
	blendvps	%xmm0, %xmm4, %xmm2
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm3, %xmm2
	movq	%rdi, %r12
	paddd	LCPI0_4(%rip), %xmm2
	movq	_ff_mv_tables@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	(%rdi), %rbx
	shlq	$5, %rbx
	movd	%xmm2, %r15d
	movl	%r15d, %eax
	shll	$6, %eax
	pextrd	$1, %xmm2, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	orl	%ecx, %eax
	cltq
	movq	(%r13,%rbx), %rcx
	movq	8(%r13,%rbx), %rdx
	movslq	(%rcx,%rax,4), %r14
	addq	$8, %r12
	movl	(%rdx,%r14,4), %esi
	movq	16(%r13,%rbx), %rax
	movl	(%rax,%r14,4), %edx
	movq	%r12, %rdi
	callq	_put_bits
	cmpl	24(%r13,%rbx), %r14d
	jne	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movl	$6, %esi
	movl	%r15d, %edx
	callq	_put_bits
	movq	%r12, %rdi
	movl	$6, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_bits                       ## TAILCALL
LBB0_1:
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_msmpeg4_encode_motion       ; -- Begin function ff_msmpeg4_encode_motion
	.p2align	2
_ff_msmpeg4_encode_motion:              ; @ff_msmpeg4_encode_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, x0
	fmov	s0, w1
	mov.s	v0[1], w2
	mvni.2s	v1, #62
	cmgt.2s	v1, v1, v0
	movi.2s	v2, #64
	add.2s	v2, v0, v2
	movi.2s	v3, #63
	cmgt.2s	v3, v0, v3
	mvni.2s	v4, #63
	add.2s	v4, v0, v4
	bit.8b	v0, v4, v3
	bit.8b	v0, v2, v1
	movi.2s	v1, #32
	add.2s	v0, v0, v1
Lloh0:
	adrp	x8, _ff_mv_tables@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_mv_tables@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19], #8
	add	x22, x8, x9, lsl #5
	mov.s	w20, v0[1]
	fmov	w21, s0
	orr	w8, w20, w21, lsl #6
	ldp	x9, x10, [x22]
	ldrsw	x23, [x9, w8, sxtw #2]
	lsl	x8, x23, #2
	ldr	w1, [x10, x8]
	ldr	x9, [x22, #16]
	ldr	w2, [x9, x8]
	mov	x0, x19
	bl	_put_bits
	ldr	w8, [x22, #24]
	cmp	w23, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #6
	mov	x2, x21
	bl	_put_bits
	mov	x0, x19
	mov	w1, #6
	mov	x2, x20
	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
	b	_put_bits
LBB0_2:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_mv_tables,8,3               ; @ff_mv_tables
.subsections_via_symbols
