	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h261_encode_motion
_h261_encode_motion:                    ## @h261_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_1
## %bb.3:
	leal	-32(%rsi), %eax
	cmpl	$16, %esi
	cmovll	%esi, %eax
	leal	32(%rax), %ecx
	cmpl	$-16, %eax
	cmovgel	%eax, %ecx
	movl	%ecx, %ebx
	shrl	$31, %ebx
	movl	%ecx, %eax
	negl	%eax
	cmovsl	%ecx, %eax
	movq	_ff_h261_mv_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_put_bits
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	jmp	LBB0_2
LBB0_1:
	movq	_ff_h261_mv_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r14, %rdi
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_put_bits                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_h261_mv_tab,8,3             ## @ff_h261_mv_tab
	.no_dead_strip	_h261_encode_motion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h261_encode_motion
_h261_encode_motion:                    ; @h261_encode_motion
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	w1, LBB0_2
; %bb.1:
	sub	w8, w1, #32
	cmp	w1, #15
	csel	w8, w8, w1, gt
	add	w9, w8, #32
	cmn	w8, #16
	csel	w8, w9, w8, lt
	lsr	w20, w8, #31
	cmp	w8, #0
Lloh0:
	adrp	x9, _ff_h261_mv_tab@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ff_h261_mv_tab@GOTPAGEOFF]
	cneg	w8, w8, mi
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x9, w8, uxtw #3]
	ldp	w2, w1, [x8]
	mov	x0, x19
	bl	_put_bits
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ff_h261_mv_tab@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ff_h261_mv_tab@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldp	w2, w1, [x8]
	mov	x0, x19
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_put_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_h261_mv_tab,8,3             ; @ff_h261_mv_tab
	.no_dead_strip	_h261_encode_motion
.subsections_via_symbols
