	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tgv_decode_inter
_tgv_decode_inter:                      ## @tgv_decode_inter
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rcx, %rax
	subq	%rdx, %rax
	cmpq	$47, %rax
	jle	LBB0_1
## %bb.2:
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_AV_RL16
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	8(%r12), %rdi
	callq	_AV_RL16
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	leaq	16(%r12), %rdi
	callq	_AV_RL16
	movl	%eax, %r15d
	leaq	24(%r12), %rdi
	callq	_AV_RL16
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_MIN_CACHE_BITS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jg	LBB0_4
## %bb.5:
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	cmpl	(%r14), %r8d
	jle	LBB0_7
## %bb.6:
	leaq	8(%r14), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$8, %edx
	callq	_av_reallocp_array
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovnsl	%r8d, %ecx
	movl	%ecx, (%r14)
	js	LBB0_39
LBB0_7:
	cmpl	16(%r14), %r15d
	jle	LBB0_9
## %bb.8:
	leaq	24(%r14), %rdi
	movl	%r15d, %esi
	shll	$4, %esi
	callq	_av_reallocp
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovnsl	%r15d, %ecx
	movl	%ecx, 16(%r14)
	js	LBB0_39
LBB0_9:
	addq	$48, %r12
	leal	(%r8,%r8,4), %eax
	leal	31(,%rax,4), %edx
	andl	$-32, %edx
	movq	%rbx, %rax
	subq	%r12, %rax
	sarq	$2, %rax
	movl	%edx, %edi
	sarl	$3, %edi
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %esi
	shll	$4, %esi
	leal	(%rsi,%r15,8), %ecx
	addl	%edi, %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rax
	jl	LBB0_1
## %bb.10:
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movl	%edi, -104(%rbp)                ## 4-byte Spill
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movl	%r13d, -88(%rbp)                ## 4-byte Spill
	leaq	-68(%rbp), %rdi
	movq	%r8, %rbx
	movq	%r12, %rsi
	callq	_init_get_bits
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.11:
	movl	-80(%rbp), %r13d                ## 4-byte Reload
	xorl	%r15d, %r15d
	leaq	-68(%rbp), %rbx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_get_sbits
	movq	8(%r14), %rcx
	movq	(%rcx,%r15,8), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_get_sbits
	movq	8(%r14), %rcx
	movq	(%rcx,%r15,8), %rcx
	movl	%eax, 4(%rcx)
	incq	%r15
	cmpq	%r15, %r13
	jne	LBB0_12
LBB0_13:
	movslq	-104(%rbp), %rax                ## 4-byte Folded Reload
	leaq	(%r12,%rax,4), %rcx
	movslq	-96(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	leaq	(%rcx,%rax,4), %rsi
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	subl	%esi, %edx
	addl	%edx, %edx
	leaq	-68(%rbp), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_init_get_bits
	cmpl	$0, -120(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_18
## %bb.14:
	movl	-120(%rbp), %r15d               ## 4-byte Reload
	xorl	%r13d, %r13d
	leaq	-68(%rbp), %r12
	.p2align	4, 0x90
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -64(%rbp)
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -60(%rbp)
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -56(%rbp)
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -52(%rbp)
	movl	$15, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_get_bits
	movl	-64(%rbp,%rax,4), %eax
	movq	24(%r14), %rcx
	movq	(%rcx,%r13,8), %rcx
	movl	%eax, (%rcx,%rbx,4)
	addq	$-1, %rbx
	jb	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	incq	%r13
	cmpq	%r15, %r13
	jne	LBB0_15
LBB0_18:
	leaq	-68(%rbp), %rdi
	callq	_get_bits_left
	movq	40(%r14), %rcx
	movq	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movdqa	%xmm0, %xmm1
	psrad	$31, %xmm1
	psrld	$30, %xmm1
	paddd	%xmm0, %xmm1
	psrad	$2, %xmm1
	movd	%xmm1, %edx
	imull	-88(%rbp), %edx                 ## 4-byte Folded Reload
	pextrd	$1, %xmm1, %esi
	imull	%edx, %esi
	cmpl	%esi, %eax
	jl	LBB0_1
## %bb.19:
	movd	%xmm0, %edx
	xorl	%eax, %eax
	cmpl	$4, %edx
	jl	LBB0_39
## %bb.20:
	pextrd	$1, %xmm0, %edx
	movl	$1, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	$2, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	$3, %r13d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	incq	%rbx
	movl	(%rcx), %eax
	leal	3(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$2, %esi
	movslq	%esi, %rsi
	addq	$4, %r15
	addq	$4, -104(%rbp)                  ## 8-byte Folded Spill
	addq	$4, -96(%rbp)                   ## 8-byte Folded Spill
	addq	$4, %r13
	xorl	%eax, %eax
	movq	%rbx, %rdi
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	cmpq	%rsi, %rbx
	jge	LBB0_39
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
	cmpl	$4, %edx
	jl	LBB0_38
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leal	(,%rax,4), %eax
	movl	%eax, -128(%rbp)                ## 4-byte Spill
	movl	$2, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_23
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	40(%r14), %rdi
LBB0_26:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_av_log
LBB0_37:                                ##   in Loop: Header=BB0_23 Depth=2
	incq	%r12
	movq	40(%r14), %rcx
	movl	4(%rcx), %edx
	leal	3(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	sarl	$2, %eax
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r12
	jge	LBB0_38
LBB0_23:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	-68(%rbp), %rdi
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	callq	_get_bits
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%eax, %ecx
	jbe	LBB0_31
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	8(%r14), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rdx
	movl	(%rdx), %eax
	leaq	(%rbx,%rax), %rcx
	addq	$-2, %rcx
	movl	4(%rdx), %r8d
	addl	-128(%rbp), %r8d                ## 4-byte Folded Reload
	testl	%ecx, %ecx
	js	LBB0_25
## %bb.27:                              ##   in Loop: Header=BB0_23 Depth=2
	addl	%ebx, %eax
	addl	$2, %eax
	movq	40(%r14), %rdi
	cmpl	4(%rdi), %eax
	jg	LBB0_26
## %bb.28:                              ##   in Loop: Header=BB0_23 Depth=2
	testl	%r8d, %r8d
	js	LBB0_26
## %bb.29:                              ##   in Loop: Header=BB0_23 Depth=2
	leal	4(%r8), %eax
	cmpl	(%rdi), %eax
	jg	LBB0_26
## %bb.30:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	32(%r14), %rax
	movl	%ecx, %ecx
	shlq	$2, %rcx
	movq	(%rax), %rdx
	addq	(%rdx), %rcx
	movq	8(%rax), %rax
	movl	(%rax), %esi
	imull	%esi, %r8d
	movslq	%r8d, %rax
	leaq	(%rcx,%rax,4), %rax
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_23 Depth=2
	subl	%ecx, %eax
	movl	%eax, %ecx
	subl	-84(%rbp), %ecx                 ## 4-byte Folded Reload
	jge	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_23 Depth=2
	shll	$4, %eax
	cltq
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_23 Depth=2
	cmpl	-120(%rbp), %ecx                ## 4-byte Folded Reload
	jge	LBB0_37
## %bb.34:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	24(%r14), %rax
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
LBB0_35:                                ##   in Loop: Header=BB0_23 Depth=2
	movl	$4, %esi
LBB0_36:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	movq	(%rdx), %rcx
	movq	8(%rdx), %rdx
	movq	(%rcx), %rcx
	movslq	%esi, %r9
	movl	(%rax), %r8d
	movslq	(%rdx), %rdi
	imulq	%r15, %rdi
	addq	%rbx, %rdi
	movl	%r8d, -8(%rcx,%rdi,4)
	movl	4(%rax), %r8d
	movslq	(%rdx), %rdi
	imulq	%r15, %rdi
	addq	%rbx, %rdi
	movl	%r8d, -4(%rcx,%rdi,4)
	movl	8(%rax), %r8d
	movslq	(%rdx), %rdi
	imulq	%r15, %rdi
	addq	%rbx, %rdi
	movl	%r8d, (%rcx,%rdi,4)
	movl	12(%rax), %r8d
	movslq	(%rdx), %rdi
	imulq	%r15, %rdi
	addq	%rbx, %rdi
	movl	%r8d, 4(%rcx,%rdi,4)
	movl	(%rax,%r9,4), %r8d
	movslq	(%rdx), %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	imulq	%rsi, %rdi
	addq	%rbx, %rdi
	movl	%r8d, -8(%rcx,%rdi,4)
	movl	4(%rax,%r9,4), %r8d
	movslq	(%rdx), %rdi
	imulq	%rsi, %rdi
	addq	%rbx, %rdi
	movl	%r8d, -4(%rcx,%rdi,4)
	movl	8(%rax,%r9,4), %r8d
	movslq	(%rdx), %rdi
	imulq	%rsi, %rdi
	addq	%rbx, %rdi
	movl	%r8d, (%rcx,%rdi,4)
	movl	12(%rax,%r9,4), %r8d
	movslq	(%rdx), %rdi
	imulq	%rsi, %rdi
	addq	%rbx, %rdi
	movl	%r8d, 4(%rcx,%rdi,4)
	movl	(%rax,%r9,8), %r8d
	movslq	(%rdx), %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	imulq	%rsi, %rdi
	addq	%rbx, %rdi
	movl	%r8d, -8(%rcx,%rdi,4)
	movl	4(%rax,%r9,8), %r8d
	movslq	(%rdx), %rdi
	imulq	%rsi, %rdi
	addq	%rbx, %rdi
	movl	%r8d, -4(%rcx,%rdi,4)
	movl	8(%rax,%r9,8), %r8d
	movslq	(%rdx), %rdi
	imulq	%rsi, %rdi
	addq	%rbx, %rdi
	movl	%r8d, (%rcx,%rdi,4)
	movl	12(%rax,%r9,8), %r8d
	movslq	(%rdx), %rdi
	imulq	%rsi, %rdi
	addq	%rbx, %rdi
	movl	%r8d, 4(%rcx,%rdi,4)
	leaq	(%r9,%r9,2), %rsi
	movl	(%rax,%rsi,4), %r8d
	movslq	(%rdx), %rdi
	imulq	%r13, %rdi
	addq	%rbx, %rdi
	movl	%r8d, -8(%rcx,%rdi,4)
	movl	4(%rax,%rsi,4), %r8d
	movslq	(%rdx), %rdi
	imulq	%r13, %rdi
	addq	%rbx, %rdi
	movl	%r8d, -4(%rcx,%rdi,4)
	movl	8(%rax,%rsi,4), %r8d
	movslq	(%rdx), %rdi
	imulq	%r13, %rdi
	addq	%rbx, %rdi
	movl	%r8d, (%rcx,%rdi,4)
	movl	12(%rax,%rsi,4), %eax
	movslq	(%rdx), %rdx
	imulq	%r13, %rdx
	addq	%rbx, %rdx
	movl	%eax, 4(%rcx,%rdx,4)
	jmp	LBB0_37
LBB0_4:
	movq	40(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_39:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_41
## %bb.40:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_MIN_CACHE_BITS,4,2             ## @MIN_CACHE_BITS
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid value for motion vector bits: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"MV %d %d out of picture\n"

	.no_dead_strip	_tgv_decode_inter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tgv_decode_inter
_tgv_decode_inter:                      ; @tgv_decode_inter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x1, [sp, #40]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	sub	x8, x3, x2
	cmp	x8, #47
	b.le	LBB0_37
; %bb.1:
	mov	x25, x3
	mov	x26, x2
	mov	x19, x0
	mov	x0, x2
	bl	_AV_RL16
	mov	x21, x0
	add	x0, x26, #8
	bl	_AV_RL16
	str	w0, [sp, #48]                   ; 4-byte Folded Spill
	add	x0, x26, #16
	bl	_AV_RL16
	mov	x24, x0
	add	x0, x26, #24
	bl	_AV_RL16
	mov	x23, x0
	cbz	w0, LBB0_36
; %bb.2:
Lloh3:
	adrp	x8, _MIN_CACHE_BITS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIN_CACHE_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w23, w8
	b.gt	LBB0_36
; %bb.3:
	ldr	w8, [x19]
	cmp	w21, w8
	b.le	LBB0_5
; %bb.4:
	add	x0, x19, #8
	mov	x1, x21
	mov	w2, #8
	bl	_av_reallocp_array
	cmp	w0, #0
	csel	w8, wzr, w21, lt
	str	w8, [x19]
	tbnz	w0, #31, LBB0_38
LBB0_5:
	ldr	w8, [x19, #16]
	cmp	w24, w8
	b.le	LBB0_7
; %bb.6:
	add	x0, x19, #24
	lsl	w1, w24, #4
	bl	_av_reallocp
	cmp	w0, #0
	csel	w8, wzr, w24, lt
	str	w8, [x19, #16]
	tbnz	w0, #31, LBB0_38
LBB0_7:
	add	x26, x26, #48
	mov	w8, #20
	orr	w9, wzr, #0x1f
	madd	w8, w21, w8, w9
	and	w2, w8, #0xffffffe0
	sub	x8, x25, x26
	asr	w20, w2, #3
	ldr	w9, [sp, #48]                   ; 4-byte Folded Reload
	lsl	w22, w9, #4
	add	w9, w22, w24, lsl #3
	add	w9, w9, w20
	sxtw	x9, w9
	cmp	x9, x8, asr #2
	b.gt	LBB0_37
; %bb.8:
	str	w24, [sp, #36]                  ; 4-byte Folded Spill
	add	x0, sp, #52
	mov	x1, x26
	bl	_init_get_bits
	cmp	w21, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x24, #0
	mov	w8, w21
	lsl	x27, x8, #3
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #52
	mov	w1, #10
	bl	_get_sbits
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x24]
	str	w0, [x8]
	add	x0, sp, #52
	mov	w1, #10
	bl	_get_sbits
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x24]
	str	w0, [x8, #4]
	add	x24, x24, #8
	cmp	x27, x24
	b.ne	LBB0_10
LBB0_11:
	add	x8, x26, w20, sxtw #2
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	add	x1, x8, w22, sxtw #2
	sub	w8, w25, w1
	lsl	w2, w8, #1
	add	x0, sp, #52
	bl	_init_get_bits
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x20, #0
	mov	w8, w8
	lsl	x22, x8, #3
	add	x24, sp, #56
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #52
	mov	w1, #8
	bl	_get_bits
	str	w0, [sp, #56]
	add	x0, sp, #52
	mov	w1, #8
	bl	_get_bits
	str	w0, [sp, #60]
	add	x0, sp, #52
	mov	w1, #8
	bl	_get_bits
	str	w0, [sp, #64]
	add	x0, sp, #52
	mov	w1, #8
	bl	_get_bits
	str	w0, [sp, #68]
	add	x0, sp, #52
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x24, x0, lsl #2]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20]
	str	w8, [x9, #60]
	add	x0, sp, #52
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x24, x0, lsl #2]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20]
	str	w8, [x9, #56]
	add	x0, sp, #52
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x24, x0, lsl #2]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20]
	str	w8, [x9, #52]
	add	x0, sp, #52
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x24, x0, lsl #2]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20]
	str	w8, [x9, #48]
	add	x0, sp, #52
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x24, x0, lsl #2]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20]
	str	w8, [x9, #44]
	add	x0, sp, #52
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x24, x0, lsl #2]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20]
	str	w8, [x9, #40]
	add	x0, sp, #52
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x24, x0, lsl #2]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20]
	str	w8, [x9, #36]
	add	x0, sp, #52
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x24, x0, lsl #2]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20]
	str	w8, [x9, #32]
	add	x0, sp, #52
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x24, x0, lsl #2]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20]
	str	w8, [x9, #28]
	add	x0, sp, #52
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x24, x0, lsl #2]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20]
	str	w8, [x9, #24]
	add	x0, sp, #52
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x24, x0, lsl #2]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20]
	str	w8, [x9, #20]
	add	x0, sp, #52
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x24, x0, lsl #2]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20]
	str	w8, [x9, #16]
	add	x0, sp, #52
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x24, x0, lsl #2]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20]
	str	w8, [x9, #12]
	add	x0, sp, #52
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x24, x0, lsl #2]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20]
	str	w8, [x9, #8]
	add	x0, sp, #52
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x24, x0, lsl #2]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20]
	str	w8, [x9, #4]
	add	x0, sp, #52
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x24, x0, lsl #2]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20]
	str	w8, [x9]
	add	x20, x20, #8
	cmp	x22, x20
	b.ne	LBB0_13
LBB0_14:
	add	x0, sp, #52
	bl	_get_bits_left
	ldr	x8, [x19, #40]
	ldp	w10, w9, [x8]
	add	w11, w10, #3
	cmp	w10, #0
	csel	w11, w11, w10, lt
	asr	w11, w11, #2
	mul	w11, w11, w23
	add	w12, w9, #3
	cmp	w9, #0
	csel	w12, w12, w9, lt
	asr	w12, w12, #2
	mul	w11, w11, w12
	cmp	w0, w11
	b.lt	LBB0_37
; %bb.15:
	cmp	w10, #4
	b.lt	LBB0_40
; %bb.16:
	mov	x27, #0
	mov	x12, #0
	mov	w26, #1
	mov	w24, #2
	mov	w25, #3
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x12, [sp, #16]                  ; 8-byte Folded Reload
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	w0, #0
	add	x12, x12, #1
	ldr	w10, [x8]
	add	w11, w10, #3
	cmp	w10, #0
	csel	w10, w11, w10, lt
	asr	w10, w10, #2
	add	x27, x27, #4
	add	x26, x26, #4
	add	x24, x24, #4
	add	x25, x25, #4
	cmp	x12, w10, sxtw
	b.ge	LBB0_38
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	cmp	w9, #4
	b.lt	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x22, #0
	str	x12, [sp, #16]                  ; 8-byte Folded Spill
	lsl	w20, w12, #2
	mov	w28, #2
	b	LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_24 Depth=2
	ldr	x0, [x19, #40]
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=2
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	str	x9, [sp]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_av_log
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=2
	add	x22, x22, #1
	ldr	x8, [x19, #40]
	ldr	w9, [x8, #4]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w10, w10, w9, lt
	asr	w10, w10, #2
	add	x28, x28, #4
	cmp	x22, w10, sxtw
	b.ge	LBB0_17
LBB0_24:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #52
	mov	x1, x23
	bl	_get_bits
	cmp	w21, w0
	b.ls	LBB0_30
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	ldr	x8, [x19, #8]
	ldr	x9, [x8, w0, uxtw #3]
	ldp	w8, w9, [x9]
	add	x10, x28, x8
	sub	x3, x10, #2
	add	w9, w9, w20
	tbnz	w3, #31, LBB0_21
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=2
	add	w8, w28, w8
	add	w8, w8, #2
	ldr	x0, [x19, #40]
	ldr	w10, [x0, #4]
	cmp	w8, w10
	b.gt	LBB0_22
; %bb.27:                               ;   in Loop: Header=BB0_24 Depth=2
	tbnz	w9, #31, LBB0_22
; %bb.28:                               ;   in Loop: Header=BB0_24 Depth=2
	add	w8, w9, #4
	ldr	w10, [x0]
	cmp	w8, w10
	b.gt	LBB0_22
; %bb.29:                               ;   in Loop: Header=BB0_24 Depth=2
	ldr	x8, [x19, #32]
	ldp	x10, x8, [x8]
	ldr	x10, [x10]
	add	x10, x10, w3, uxtw #2
	ldr	w8, [x8]
	mul	w9, w8, w9
	add	x9, x10, w9, sxtw #2
	b	LBB0_35
LBB0_30:                                ;   in Loop: Header=BB0_24 Depth=2
	sub	w9, w0, w21
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	subs	w8, w9, w8
	b.ge	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_24 Depth=2
	lsl	w8, w9, #4
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x9, x9, w8, sxtw #2
	b	LBB0_34
LBB0_32:                                ;   in Loop: Header=BB0_24 Depth=2
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w8, w9
	b.ge	LBB0_23
; %bb.33:                               ;   in Loop: Header=BB0_24 Depth=2
	ldr	x9, [x19, #24]
	ldr	x9, [x9, w8, sxtw #3]
LBB0_34:                                ;   in Loop: Header=BB0_24 Depth=2
	mov	w8, #4
LBB0_35:                                ;   in Loop: Header=BB0_24 Depth=2
	ldr	x11, [sp, #40]                  ; 8-byte Folded Reload
	ldp	x10, x11, [x11]
	ldr	x10, [x10]
	ldr	w12, [x9]
	ldrsw	x13, [x11]
	madd	x13, x27, x13, x28
	add	x13, x10, x13, lsl #2
	stur	w12, [x13, #-8]
	ldr	w12, [x9, #4]
	ldrsw	x13, [x11]
	madd	x13, x27, x13, x28
	add	x13, x10, x13, lsl #2
	stur	w12, [x13, #-4]
	ldr	w12, [x9, #8]
	ldrsw	x13, [x11]
	madd	x13, x27, x13, x28
	str	w12, [x10, x13, lsl #2]
	ldr	w12, [x9, #12]
	ldrsw	x13, [x11]
	madd	x13, x27, x13, x28
	add	x13, x10, x13, lsl #2
	str	w12, [x13, #4]
	add	x12, x9, w8, sxtw #2
	ldr	w13, [x12]
	ldrsw	x14, [x11]
	madd	x14, x26, x14, x28
	add	x14, x10, x14, lsl #2
	stur	w13, [x14, #-8]
	ldr	w13, [x12, #4]
	ldrsw	x14, [x11]
	madd	x14, x26, x14, x28
	add	x14, x10, x14, lsl #2
	stur	w13, [x14, #-4]
	ldr	w13, [x12, #8]
	ldrsw	x14, [x11]
	madd	x14, x26, x14, x28
	str	w13, [x10, x14, lsl #2]
	ldr	w12, [x12, #12]
	ldrsw	x13, [x11]
	madd	x13, x26, x13, x28
	add	x13, x10, x13, lsl #2
	str	w12, [x13, #4]
	add	x12, x9, w8, sxtw #3
	ldr	w13, [x12]
	ldrsw	x14, [x11]
	madd	x14, x24, x14, x28
	add	x14, x10, x14, lsl #2
	stur	w13, [x14, #-8]
	ldr	w13, [x12, #4]
	ldrsw	x14, [x11]
	madd	x14, x24, x14, x28
	add	x14, x10, x14, lsl #2
	stur	w13, [x14, #-4]
	ldr	w13, [x12, #8]
	ldrsw	x14, [x11]
	madd	x14, x24, x14, x28
	str	w13, [x10, x14, lsl #2]
	ldr	w12, [x12, #12]
	ldrsw	x13, [x11]
	madd	x13, x24, x13, x28
	add	x13, x10, x13, lsl #2
	str	w12, [x13, #4]
	mov	w12, #12
	smaddl	x8, w8, w12, x9
	ldr	w9, [x8]
	ldrsw	x12, [x11]
	madd	x12, x25, x12, x28
	add	x12, x10, x12, lsl #2
	stur	w9, [x12, #-8]
	ldr	w9, [x8, #4]
	ldrsw	x12, [x11]
	madd	x12, x25, x12, x28
	add	x12, x10, x12, lsl #2
	stur	w9, [x12, #-4]
	ldr	w9, [x8, #8]
	ldrsw	x12, [x11]
	madd	x12, x25, x12, x28
	str	w9, [x10, x12, lsl #2]
	ldr	w8, [x8, #12]
	ldrsw	x9, [x11]
	madd	x9, x25, x9, x28
	add	x9, x10, x9, lsl #2
	str	w8, [x9, #4]
	b	LBB0_23
LBB0_36:
	ldr	x0, [x19, #40]
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x23
	bl	_av_log
LBB0_37:
Lloh16:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
LBB0_38:
	ldr	x8, [sp, #72]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_41
; %bb.39:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_40:
	mov	w0, #0
	b	LBB0_38
LBB0_41:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_MIN_CACHE_BITS,4,2             ; @MIN_CACHE_BITS
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid value for motion vector bits: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"MV %d %d out of picture\n"

	.no_dead_strip	_tgv_decode_inter
.subsections_via_symbols
