	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tm2_decode_blocks
_tm2_decode_blocks:                     ## @tm2_decode_blocks
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	80(%rdi), %r15
	movslq	(%r15), %rcx
	movl	4(%r15), %r12d
	movq	%rcx, %rax
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r14d
	sarl	$2, %r14d
	movl	%r12d, %ebx
	sarl	$2, %ebx
	movq	_TM2_NUM_STREAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_2
## %bb.1:
	movq	104(%rdi), %rdi
	shlq	$3, %rsi
	callq	___bzero
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_2:
	movq	(%rdi), %rax
	movq	_TM2_TYPE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ebx, %r8d
	imull	%r14d, %r8d
	cmpl	%r8d, %ecx
	jge	LBB0_5
## %bb.3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_4:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_41
LBB0_5:
	movl	%ebx, %r13d
	movl	100(%rdi), %edi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %ebx
	andl	$-16, %ebx
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	96(%rax), %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	cmpl	$4, %r12d
	jl	LBB0_23
## %bb.6:
	cmpl	$2, %r14d
	movl	$1, %eax
	cmovll	%eax, %r14d
	cmpl	$2, %r13d
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	cmovll	%eax, %r13d
	movl	%r13d, -80(%rbp)                ## 4-byte Spill
	leaq	LJTI0_0(%rip), %rbx
	xorl	%r13d, %r13d
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	92(%r15), %edi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	88(%r15), %edi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	cmpl	$4, -88(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_21
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r12d, %r12d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_tm2_update_block
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	cmpq	$0, 72(%r15)
	jne	LBB0_4
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=2
	incl	%r12d
	cmpl	%r12d, %r14d
	je	LBB0_22
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_TM2_TYPE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_GET_TOK
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$6, %ecx
	ja	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movslq	(%rbx,%rcx,4), %rax
	addq	%rbx, %rax
	jmpq	*%rax
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_tm2_still_block
	jmp	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	80(%r15), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	cmpq	$0, 72(%r15)
	je	LBB0_20
	jmp	LBB0_4
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_tm2_null_res_block
	cmpq	$0, 72(%r15)
	je	LBB0_20
	jmp	LBB0_4
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_tm2_motion_block
	jmp	LBB0_12
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_tm2_med_res_block
	cmpq	$0, 72(%r15)
	je	LBB0_20
	jmp	LBB0_4
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_tm2_low_res_block
	cmpq	$0, 72(%r15)
	je	LBB0_20
	jmp	LBB0_4
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_tm2_hi_res_block
	cmpq	$0, 72(%r15)
	je	LBB0_20
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%r13d
	cmpl	-80(%rbp), %r13d                ## 4-byte Folded Reload
	jne	LBB0_7
LBB0_23:
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	testl	%esi, %esi
	jle	LBB0_40
## %bb.24:
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%edx, %eax
	sarl	%eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	(%rcx), %r13
	xorl	%ecx, %ecx
	cmpq	$0, 64(%r15)
	sete	%cl
	movq	40(%r15,%rcx,8), %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	8(%r15,%rcx,8), %rdi
	movq	24(%r15,%rcx,8), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leal	-1(%rsi), %ecx
	movl	%ecx, -100(%rbp)                ## 4-byte Spill
	leal	-1(%rax), %ecx
	movslq	%ecx, %rcx
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	cltq
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	incl	%eax
	cltq
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	%edx, %eax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	xorl	%edx, %edx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movslq	56(%r14), %rdx
	movq	%rdx, %rax
	shlq	$2, %rax
	movq	%rdi, %r15
	movq	%rbx, %rdi
	subq	%rax, %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movslq	56(%r14), %rdx
	movq	%rdx, %rax
	shlq	$3, %rax
	movq	%rbx, %rdi
	subq	%rax, %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movslq	56(%r14), %rdx
	movq	%rdx, %rax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rax
	movq	%rbx, %rdi
	subq	%rax, %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movslq	56(%r14), %rdx
	movq	%rdx, %rax
	shlq	$4, %rax
	movq	%rbx, %rdi
	subq	%rax, %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %rdi
	movl	56(%r14), %r12d
LBB0_26:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movslq	%r12d, %rax
	leaq	(%rdi,%rax,4), %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	(%rax), %rax
	leaq	(%r13,%rax,4), %r13
	incl	%edx
	cmpl	-128(%rbp), %edx                ## 4-byte Folded Reload
	je	LBB0_40
LBB0_27:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_29 Depth 2
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	jle	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi,%r15,4), %r12d
	movl	%r15d, %eax
	andl	$-2, %eax
	addq	%rax, %rax
	movl	(%rcx,%rax), %edi
	addl	%r12d, %edi
	movl	(%rdx,%rax), %ebx
	addl	%r12d, %ebx
	callq	_av_clip_uint8
	movl	%r14d, %ecx
	movl	%eax, (%r13,%rcx,4)
	movl	%r12d, %edi
	callq	_av_clip_uint8
	leal	1(%r14), %ecx
	movl	%eax, (%r13,%rcx,4)
	movl	%ebx, %edi
	callq	_av_clip_uint8
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	leal	2(%r14), %ecx
	movl	%eax, (%r13,%rcx,4)
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	incq	%r15
	addl	$3, %r14d
	cmpq	%r15, -160(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_29
LBB0_30:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	leaq	-16(%rdi), %rbx
	movd	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, -16(%rdi)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	-4(%rdi,%rcx,4), %eax
	movl	%eax, (%rdi,%rcx,4)
	movl	%eax, 4(%rdi,%rcx,4)
	movl	%eax, 8(%rdi,%rcx,4)
	movl	%eax, 12(%rdi,%rcx,4)
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, %edx
	je	LBB0_25
## %bb.31:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpl	-100(%rbp), %edx                ## 4-byte Folded Reload
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movslq	56(%r14), %rdx
	movq	%rdi, %r15
	leaq	(%rbx,%rdx,4), %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movslq	56(%r14), %rdx
	leaq	(%rbx,%rdx,8), %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movslq	56(%r14), %rdx
	leaq	(%rdx,%rdx,2), %rax
	leaq	(%rbx,%rax,4), %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movslq	56(%r14), %rdx
	movq	%rdx, %rdi
	shlq	$4, %rdi
	addq	%rbx, %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %rdi
LBB0_33:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	56(%rbx), %r12d
	testb	$1, %dl
	je	LBB0_26
## %bb.34:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	movl	%eax, -4(%rcx)
	leaq	-8(%rcx), %r14
	movl	%eax, -8(%rcx)
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %eax
	movl	%eax, -4(%r15)
	leaq	-8(%r15), %r13
	movl	%eax, -8(%r15)
	movq	-152(%rbp), %r9                 ## 8-byte Reload
	movl	(%rcx,%r9,4), %eax
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	movl	%eax, (%rcx,%rsi,4)
	movq	-136(%rbp), %r8                 ## 8-byte Reload
	movl	%eax, (%rcx,%r8,4)
	movl	(%r15,%r9,4), %eax
	movl	%eax, (%r15,%rsi,4)
	movl	%eax, (%r15,%r8,4)
	cmpl	$1, %edx
	jne	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movslq	60(%rbx), %rdx
	movq	%rdx, %rax
	shlq	$2, %rax
	movq	%r14, %rdi
	subq	%rax, %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movslq	60(%rbx), %rdx
	movq	%rdx, %rax
	shlq	$2, %rax
	movq	%r13, %rdi
	subq	%rax, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movslq	60(%rbx), %rdx
	movq	%rdx, %rax
	shlq	$3, %rax
	movq	%r14, %rdi
	subq	%rax, %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movslq	60(%rbx), %rdx
	movq	%rdx, %rax
	addq	%rdx, %rax
	negq	%rax
	jmp	LBB0_38
LBB0_36:                                ##   in Loop: Header=BB0_27 Depth=1
	cmpl	-100(%rbp), %edx                ## 4-byte Folded Reload
	jne	LBB0_39
## %bb.37:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movslq	60(%rbx), %rdx
	leaq	(%r14,%rdx,4), %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movslq	60(%rbx), %rdx
	leaq	(,%rdx,4), %rdi
	addq	%r13, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movslq	60(%rbx), %rdx
	leaq	(%r14,%rdx,8), %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movslq	60(%rbx), %rdx
	movq	%rdx, %rax
	addq	%rdx, %rax
LBB0_38:                                ##   in Loop: Header=BB0_27 Depth=1
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
LBB0_39:                                ##   in Loop: Header=BB0_27 Depth=1
	movslq	60(%rbx), %rax
	leaq	(%rcx,%rax,4), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%rax,4), %r15
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_26
LBB0_40:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
LBB0_41:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_TM2_NUM_STREAMS,4,2            ## @TM2_NUM_STREAMS
	.comm	_TM2_TYPE,8,3                   ## @TM2_TYPE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Got %i tokens for %i blocks\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Skipping unknown block type %i\n"

	.no_dead_strip	_tm2_decode_blocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tm2_decode_blocks
_tm2_decode_blocks:                     ; @tm2_decode_blocks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	mov	x20, x1
	mov	x22, x0
	ldr	x21, [x0, #80]
	ldp	w8, w9, [x21]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	str	x8, [sp, #96]                   ; 8-byte Folded Spill
	asr	w23, w8, #2
	str	w9, [sp, #92]                   ; 4-byte Folded Spill
	asr	w19, w9, #2
Lloh0:
	adrp	x8, _TM2_NUM_STREAMS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TM2_NUM_STREAMS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x0, [x22, #104]
	lsl	x1, x8, #3
	bl	_bzero
LBB0_2:
Lloh3:
	adrp	x25, _TM2_TYPE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _TM2_TYPE@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x25]
	ldr	w3, [x8, x9, lsl #2]
	mul	w8, w19, w23
	cmp	w3, w8
	b.ge	LBB0_5
; %bb.3:
Lloh5:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_av_log
LBB0_4:
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_41
LBB0_5:
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	and	x27, x8, #0xffffffff
	ldr	w0, [x22, #100]
	lsl	w8, w27, #2
	and	w21, w8, #0xfffffff0
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	stur	x22, [x29, #-88]                ; 8-byte Folded Spill
	ldr	w0, [x22, #96]
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	ldr	w8, [sp, #92]                   ; 4-byte Folded Reload
	cmp	w8, #4
	b.lt	LBB0_22
; %bb.6:
	mov	w22, #0
	cmp	w23, #1
	csinc	w21, w23, wzr, gt
	cmp	w19, #1
	csinc	w26, w19, wzr, gt
	mov	w8, #1
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
Lloh13:
	adrp	x23, l_.str.1@PAGE
Lloh14:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh15:
	adrp	x28, lJTI0_0@PAGE
Lloh16:
	add	x28, x28, lJTI0_0@PAGEOFF
	ldur	x19, [x29, #-88]                ; 8-byte Folded Reload
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w22, w22, #1
	cmp	w22, w26
	b.eq	LBB0_23
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	w0, [x19, #92]
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w0, [x19, #88]
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	cmp	w8, #4
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w24, #0
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x3, x22
	bl	_tm2_update_block
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	str	wzr, [sp, #40]                  ; 4-byte Folded Spill
	ldr	x8, [x19, #72]
	cbnz	x8, LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	w24, w24, #1
	cmp	w21, w24
	b.eq	LBB0_7
LBB0_13:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [x25]
	mov	x0, x19
	bl	_GET_TOK
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	adr	x9, LBB0_10
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x3, x22
	bl	_tm2_still_block
	b	LBB0_11
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x3, x0
	ldr	x0, [x19, #80]
Lloh17:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x2, x23
	bl	_av_log
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_12
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x3, x22
	bl	_tm2_null_res_block
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_12
	b	LBB0_4
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x3, x22
	bl	_tm2_motion_block
	b	LBB0_11
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x3, x22
	bl	_tm2_med_res_block
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_12
	b	LBB0_4
LBB0_20:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x3, x22
	bl	_tm2_low_res_block
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_12
	b	LBB0_4
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x3, x22
	bl	_tm2_hi_res_block
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_12
	b	LBB0_4
LBB0_22:
	mov	w8, #1
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
	ldur	x19, [x29, #-88]                ; 8-byte Folded Reload
LBB0_23:
	ldr	w8, [sp, #92]                   ; 4-byte Folded Reload
	subs	w8, w8, #1
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	b.lt	LBB0_40
; %bb.24:
	mov	w28, #0
	ldr	x8, [x19, #64]
	mov	w9, #40
	mov	w10, #48
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	x21, [x19, x8]
	mov	w8, #24
	mov	w9, #32
	csel	x8, x9, x8, eq
	ldr	x23, [x19, x8]
	ldr	x11, [sp, #96]                  ; 8-byte Folded Reload
	asr	w8, w11, #1
	mov	w9, #8
	mov	w10, #16
	csel	x9, x10, x9, eq
	ldr	x26, [x19, x9]
	sub	w9, w11, #1
	sxtw	x9, w9
	str	x9, [sp, #72]                   ; 8-byte Folded Spill
	ldr	x9, [x20, #8]
	add	w10, w11, #1
	sxtw	x10, w10
	str	x10, [sp, #64]                  ; 8-byte Folded Spill
	add	w10, w27, #2
	sxtw	x10, w10
	str	x10, [sp, #56]                  ; 8-byte Folded Spill
	add	w10, w27, #3
	sxtw	x10, w10
	sxtw	x8, w8
	ldr	x25, [x9]
	sub	x9, x8, #1
	lsl	x10, x10, #2
	str	x10, [sp, #48]                  ; 8-byte Folded Spill
	lsl	x10, x9, #2
	add	x9, x8, #1
	lsl	x8, x8, #2
	stp	x8, x10, [sp, #24]              ; 16-byte Folded Spill
	lsl	x8, x9, #2
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	str	x20, [sp, #80]                  ; 8-byte Folded Spill
	b	LBB0_27
LBB0_25:                                ;   in Loop: Header=BB0_27 Depth=1
	ldur	x19, [x29, #-88]                ; 8-byte Folded Reload
	ldrsw	x2, [x19, #56]
	sub	x0, x22, x2, lsl #2
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldrsw	x2, [x19, #56]
	sub	x0, x22, x2, lsl #3
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldrsw	x2, [x19, #56]
	mov	w8, #12
	msub	x0, x2, x8, x22
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldrsw	x2, [x19, #56]
	sub	x0, x22, x2, lsl #4
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldr	w19, [x19, #56]
	ldr	x20, [sp, #80]                  ; 8-byte Folded Reload
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	add	x26, x26, w19, sxtw #2
	ldr	x8, [x20]
	ldrsw	x8, [x8]
	add	x25, x25, x8, lsl #2
	add	w28, w28, #1
	ldr	w8, [sp, #92]                   ; 4-byte Folded Reload
	cmp	w28, w8
	b.eq	LBB0_40
LBB0_27:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
	cmp	w27, #1
	b.lt	LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	w19, #0
	mov	x24, #0
LBB0_29:                                ;   Parent Loop BB0_27 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w22, [x26, x24, lsl #2]
	ubfx	x8, x24, #1, #31
	lsl	x8, x8, #2
	ldr	w20, [x23, x8]
	ldr	w8, [x21, x8]
	add	w0, w8, w22
	bl	_av_clip_uint8
	str	w0, [x25, w19, uxtw #2]
	mov	x0, x22
	bl	_av_clip_uint8
	add	w8, w19, #1
	str	w0, [x25, w8, uxtw #2]
	add	w0, w20, w22
	bl	_av_clip_uint8
	add	w8, w19, #2
	str	w0, [x25, w8, uxtw #2]
	add	x24, x24, #1
	add	w19, w19, #3
	cmp	x27, x24
	b.ne	LBB0_29
LBB0_30:                                ;   in Loop: Header=BB0_27 Depth=1
	mov	x8, x26
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ld1r.4s	{ v0 }, [x8], x9
	mov	x22, x26
	str	q0, [x22, #-16]!
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	ldr	w9, [x26, x9, lsl #2]
	ldr	x10, [sp, #96]                  ; 8-byte Folded Reload
	str	w9, [x26, x10, lsl #2]
	ldr	x10, [sp, #64]                  ; 8-byte Folded Reload
	str	w9, [x26, x10, lsl #2]
	ldr	x10, [sp, #56]                  ; 8-byte Folded Reload
	str	w9, [x26, x10, lsl #2]
	str	w9, [x8]
	cbz	w28, LBB0_25
; %bb.31:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w28, w8
	ldur	x19, [x29, #-88]                ; 8-byte Folded Reload
	b.ne	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_27 Depth=1
	ldrsw	x2, [x19, #56]
	add	x0, x22, x2, lsl #2
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldrsw	x2, [x19, #56]
	add	x0, x22, x2, lsl #3
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldr	w2, [x19, #56]
	add	w8, w2, w2, lsl #1
	add	x0, x22, w8, sxtw #2
	mov	x1, x22
	bl	_memcpy
	ldrsw	x2, [x19, #56]
	add	x0, x22, x2, lsl #4
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
LBB0_33:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	w19, [x19, #56]
	ldr	x20, [sp, #80]                  ; 8-byte Folded Reload
	tbz	w28, #0, LBB0_26
; %bb.34:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w8, [x23]
	stur	w8, [x23, #-4]
	mov	x24, x23
	str	w8, [x24, #-8]!
	ldr	w8, [x21]
	stur	w8, [x21, #-4]
	mov	x22, x21
	str	w8, [x22, #-8]!
	ldp	x10, x9, [sp, #24]              ; 16-byte Folded Reload
	ldr	w8, [x23, x9]
	str	w8, [x23, x10]
	ldr	x11, [sp, #16]                  ; 8-byte Folded Reload
	str	w8, [x23, x11]
	ldr	w8, [x21, x9]
	str	w8, [x21, x10]
	str	w8, [x21, x11]
	cmp	w28, #1
	b.ne	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_27 Depth=1
	ldur	x20, [x29, #-88]                ; 8-byte Folded Reload
	ldrsw	x2, [x20, #60]
	sub	x0, x24, x2, lsl #2
	mov	x1, x24
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldrsw	x2, [x20, #60]
	sub	x0, x22, x2, lsl #2
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldrsw	x2, [x20, #60]
	sub	x0, x24, x2, lsl #3
	mov	x1, x24
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldrsw	x2, [x20, #60]
	neg	x8, x2, lsl #1
	b	LBB0_38
LBB0_36:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w28, w8
	b.ne	LBB0_39
; %bb.37:                               ;   in Loop: Header=BB0_27 Depth=1
	ldur	x20, [x29, #-88]                ; 8-byte Folded Reload
	ldrsw	x2, [x20, #60]
	add	x0, x24, x2, lsl #2
	mov	x1, x24
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldrsw	x2, [x20, #60]
	add	x0, x22, x2, lsl #2
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldrsw	x2, [x20, #60]
	add	x0, x24, x2, lsl #3
	mov	x1, x24
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldrsw	x2, [x20, #60]
	lsl	x8, x2, #1
                                        ; kill: def $w2 killed $w2 killed $x2 def $x2
LBB0_38:                                ;   in Loop: Header=BB0_27 Depth=1
	add	x0, x22, x8, lsl #2
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldr	x20, [sp, #80]                  ; 8-byte Folded Reload
LBB0_39:                                ;   in Loop: Header=BB0_27 Depth=1
	ldur	x8, [x29, #-88]                 ; 8-byte Folded Reload
	ldrsw	x8, [x8, #60]
	lsl	x8, x8, #2
	add	x23, x23, x8
	add	x21, x21, x8
	b	LBB0_26
LBB0_40:
	ldr	w0, [sp, #40]                   ; 4-byte Folded Reload
LBB0_41:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_15-LBB0_10)>>2
	.byte	(LBB0_17-LBB0_10)>>2
	.byte	(LBB0_18-LBB0_10)>>2
	.byte	(LBB0_19-LBB0_10)>>2
	.byte	(LBB0_20-LBB0_10)>>2
	.byte	(LBB0_21-LBB0_10)>>2
                                        ; -- End function
	.comm	_TM2_NUM_STREAMS,4,2            ; @TM2_NUM_STREAMS
	.comm	_TM2_TYPE,8,3                   ; @TM2_TYPE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Got %i tokens for %i blocks\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Skipping unknown block type %i\n"

	.no_dead_strip	_tm2_decode_blocks
.subsections_via_symbols
