	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svq1_decode_motion_vector
_svq1_decode_motion_vector:             ## @svq1_decode_motion_vector
	.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, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_svq1_motion_component@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$7, %edx
	movl	$2, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_get_bits1
	movl	%ebx, %ecx
	negl	%ecx
	testq	%rax, %rax
	cmovel	%ebx, %ecx
	movslq	%ecx, %rbx
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movq	(%rax), %rdi
	movq	(%rcx), %rsi
	movq	16(%r13), %rax
	movq	(%rax), %rdx
	callq	_mid_pred
	addq	%rax, %rbx
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_sign_extend
	movq	%rax, (%r14)
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	$7, %edx
	movl	$2, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_1
## %bb.6:
	movl	%eax, %ebx
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%r15, %rdi
	callq	_get_bits1
	movl	%ebx, %ecx
	negl	%ecx
	testq	%rax, %rax
	cmovel	%ebx, %ecx
	movslq	%ecx, %rbx
	jmp	LBB0_9
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_10
LBB0_7:
	xorl	%ebx, %ebx
LBB0_9:
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movq	8(%rax), %rdi
	movq	8(%rcx), %rsi
	movq	16(%r13), %rax
	movq	8(%rax), %rdx
	callq	_mid_pred
	addq	%rax, %rbx
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_sign_extend
	movq	%rax, 8(%r14)
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_svq1_motion_component,4,2      ## @svq1_motion_component
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_svq1_decode_motion_vector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svq1_decode_motion_vector
_svq1_decode_motion_vector:             ; @svq1_decode_motion_vector
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _svq1_motion_component@GOTPAGE
Lloh1:
	ldr	x23, [x23, _svq1_motion_component@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #7
	mov	w3, #2
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	x22, x0
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_get_bits1
	cmp	x0, #0
	cneg	w8, w22, ne
	sxtw	x22, w8
	b	LBB0_4
LBB0_3:
	mov	x22, #0
LBB0_4:
	ldp	x8, x9, [x20]
	ldr	x0, [x8]
	ldr	x1, [x9]
	ldr	x8, [x20, #16]
	ldr	x2, [x8]
	bl	_mid_pred
	add	x0, x0, x22
	mov	w1, #6
	bl	_sign_extend
	str	x0, [x19]
	ldr	w1, [x23]
	mov	x0, x21
	mov	w2, #7
	mov	w3, #2
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_7
; %bb.5:
	mov	x22, x0
	cbz	w0, LBB0_8
; %bb.6:
	mov	x0, x21
	bl	_get_bits1
	cmp	x0, #0
	cneg	w8, w22, ne
	sxtw	x21, w8
	b	LBB0_9
LBB0_7:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_8:
	mov	x21, #0
LBB0_9:
	ldp	x8, x9, [x20]
	ldr	x0, [x8, #8]
	ldr	x1, [x9, #8]
	ldr	x8, [x20, #16]
	ldr	x2, [x8, #8]
	bl	_mid_pred
	add	x0, x0, x21
	mov	w1, #6
	bl	_sign_extend
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #8]
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_svq1_motion_component,4,2      ; @svq1_motion_component
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_svq1_decode_motion_vector
.subsections_via_symbols
