	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function magy_decode_slice
_magy_decode_slice:                     ## @magy_decode_slice
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	96(%r15), %rsi
	cmpl	$0, 4(%r15)
	jle	LBB0_45
## %bb.1:
	movl	(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movslq	%edx, %r14
	movq	%rax, -144(%rbp)                ## 8-byte Spill
                                        ## kill: def $eax killed $eax killed $rax
	notl	%eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	shlq	$4, %r14
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%r14, -168(%rbp)                ## 8-byte Spill
	movq	%rbx, -160(%rbp)                ## 8-byte Spill
	movl	%edx, -132(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
LBB0_43:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-160(%rbp), %rdi                ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_avpriv_request_sample
LBB0_44:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-128(%rbp), %r12                ## 8-byte Reload
	incq	%r12
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movslq	4(%r15), %rax
	cmpq	%rax, %r12
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	movl	-132(%rbp), %edx                ## 4-byte Reload
	movq	-168(%rbp), %r14                ## 8-byte Reload
	jge	LBB0_45
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##       Child Loop BB0_16 Depth 3
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##     Child Loop BB0_27 Depth 2
                                        ##     Child Loop BB0_32 Depth 2
                                        ##       Child Loop BB0_34 Depth 3
                                        ##     Child Loop BB0_42 Depth 2
	movq	%rsi, %r13
	movl	8(%r15), %edi
	movl	(%rbx), %esi
	movl	%edi, %eax
	imull	%edx, %eax
	subl	%eax, %esi
	callq	_FFMIN
	movq	80(%r15), %rcx
	movl	(%rcx,%r12,4), %esi
	movl	%eax, %edi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %edi
	movq	88(%r15), %rax
	movl	(%rax,%r12,4), %esi
	callq	_AV_CEIL_RSHIFT
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	8(%r15), %edi
	movq	80(%r15), %rax
	movl	(%rax,%r12,4), %esi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, %ebx
	movq	(%r13), %rax
	movslq	(%rax,%r12,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	64(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	8(%rax,%r14), %rsi
	addq	72(%r15), %rsi
	movl	(%rax,%r14), %edx
	leaq	-136(%rbp), %r14
	movq	%r14, %rdi
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_50
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	8(%r13), %rdx
	imull	-132(%rbp), %ebx                ## 4-byte Folded Reload
	imull	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	movslq	%ebx, %rcx
	shlq	$2, %rcx
	movq	(%rdx,%r12,8), %r13
	addq	%rcx, %r13
	testb	$1, %r15b
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	jle	LBB0_20
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_get_bits_left
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %ecx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	imull	%edx, %ecx
	shll	$3, %ecx
	cmpl	%ecx, %eax
	jl	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%esi, %esi
	jle	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	incl	%r15d
	addq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	cmpl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_20
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_16 Depth 3
	testl	%edx, %edx
	leaq	-136(%rbp), %r14
	jle	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_14 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, (%r13,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_16
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=2
	incl	%r12d
	addq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_20
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	testl	%edx, %edx
	jle	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leaq	-136(%rbp), %r15
	movq	%r15, %rdi
	callq	_get_bits_left
	testl	%eax, %eax
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	56(%rax), %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	(%rax,%rcx,8), %edx
	movl	4(%rax,%rcx,8), %esi
	movq	%r15, %rdi
	movl	$3, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_10
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=3
	movl	$255, %ecx
	subl	%eax, %ecx
	movl	%ecx, (%r13,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_8
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	imull	-60(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	-96(%rbp), %eax                 ## 4-byte Reload
	cmpl	$128, %eax
	je	LBB0_38
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %eax
	je	LBB0_28
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %eax
	jne	LBB0_43
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	addq	(%rax,%rcx,8), %rbx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%rdx, %r15
	callq	*32(%r14)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rbx,%rdx,4), %rbx
	cmpl	$0, -144(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	*32(%r14)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rbx,%rdx,4), %rbx
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -60(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_44
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	-92(%rbp), %eax                 ## 4-byte Folded Reload
	shlq	$2, %rdx
	movslq	-88(%rbp), %r14                 ## 4-byte Folded Reload
	shlq	$2, %r14
	negq	%r14
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx,%r14), %ecx
	movq	%rdx, %r12
	movq	%rbx, %rdi
	movl	%eax, %r15d
	movq	%rbx, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	callq	*32(%rax)
	movq	%r12, %rdx
	movl	%r15d, %eax
	addq	%r12, %rbx
	decl	%eax
	jne	LBB0_27
	jmp	LBB0_44
LBB0_38:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	addq	(%rax,%rcx,8), %rbx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%rdx, %r15
	callq	*32(%r14)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rbx,%rdx,4), %rbx
	cmpl	$0, -144(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	*32(%r14)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rbx,%rdx,4), %rbx
LBB0_40:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	(%rbx), %eax
	movl	%eax, -64(%rbp)
	movl	%eax, -100(%rbp)
	cmpl	%ecx, -60(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_44
## %bb.41:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	-88(%rbp), %r14                 ## 4-byte Folded Reload
	addl	-92(%rbp), %ecx                 ## 4-byte Folded Reload
	leaq	(,%rdx,4), %r15
	shlq	$2, %r14
	negq	%r14
	.p2align	4, 0x90
LBB0_42:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, %r12d
	leaq	(%rbx,%r14), %rsi
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	leaq	-64(%rbp), %r8
	leaq	-100(%rbp), %r9
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	callq	*24(%rax)
	movl	%r12d, %ecx
	movl	(%rbx), %eax
	movl	%eax, -64(%rbp)
	movl	%eax, -100(%rbp)
	addq	%r15, %rbx
	decl	%ecx
	jne	LBB0_42
	jmp	LBB0_44
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	addq	(%rax,%rcx,8), %rbx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%rdx, %r15
	callq	*32(%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rbx
	cmpl	$0, -144(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	*32(%r14)
	leaq	(%rbx,%r12,4), %rbx
LBB0_30:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	movl	$32, %esi
	callq	_FFMIN
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	cmpl	%esi, -60(%rbp)                 ## 4-byte Folded Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jge	LBB0_44
## %bb.31:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r8d
	movl	%edi, %eax
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %ecx
	negl	%ecx
	movslq	%ecx, %r9
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addl	$-32, %ecx
	movl	%ecx, -148(%rbp)                ## 4-byte Spill
	movslq	%edx, %rcx
	movl	%r8d, %r15d
	shlq	$2, %rcx
	movq	%rbx, %r13
	subq	%rcx, %r13
	addq	$4, %r13
	shlq	$2, %rdi
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %r12d
	imull	%eax, %r12d
	decq	%r15
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%r8d, -96(%rbp)                 ## 4-byte Spill
	movq	%r9, -120(%rbp)                 ## 8-byte Spill
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_32 Depth=2
	addq	%rdi, %rbx
	incl	%r14d
	addq	%rdi, %r13
	cmpl	%esi, %r14d
	je	LBB0_44
LBB0_32:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_34 Depth 3
	movl	(%rbx), %eax
	addl	(%rbx,%r9,4), %eax
	movl	%eax, -64(%rbp)
	movl	%eax, (%rbx)
	cmpl	$2, %r8d
	jl	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=2
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_32 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r13,%rax,4), %ecx
	leal	(%r12,%rax), %edx
	movslq	%edx, %rdx
	movl	(%rbx,%rdx,4), %edx
	movl	%edx, -100(%rbp)
	subl	%edx, %ecx
	addl	4(%rbx,%rax,4), %ecx
	addl	-64(%rbp), %ecx
	movl	%ecx, -64(%rbp)
	movl	%ecx, 4(%rbx,%rax,4)
	incq	%rax
	cmpq	%rax, %r15
	jne	LBB0_34
LBB0_35:                                ##   in Loop: Header=BB0_32 Depth=2
	cmpl	$33, -80(%rbp)                  ## 4-byte Folded Reload
	jl	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_32 Depth=2
	leaq	128(%rbx), %rdi
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	movl	-148(%rbp), %edx                ## 4-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	callq	*40(%rax)
	movq	-120(%rbp), %r9                 ## 8-byte Reload
	movl	-96(%rbp), %r8d                 ## 4-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_37
LBB0_10:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_50
LBB0_45:
	xorl	%eax, %eax
	cmpq	$0, 48(%r15)
	je	LBB0_50
## %bb.46:
	movq	%rsi, %r12
	movl	8(%r15), %edi
	movl	(%rbx), %esi
	movl	%edi, %eax
	imull	%edx, %eax
	subl	%eax, %esi
	movl	%edx, %r13d
	callq	_FFMIN
	testl	%eax, %eax
	jle	LBB0_49
## %bb.47:
	movl	%eax, %edi
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movl	%r13d, %esi
	movslq	8(%rax), %r13
	movslq	8(%r15), %rdx
	movslq	%esi, %rsi
	imulq	%rdx, %rsi
	imulq	%rsi, %r13
	shlq	$2, %r13
	addq	16(%rcx), %r13
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movslq	4(%rax), %rbx
	movslq	%esi, %rdx
	imulq	%rdx, %rbx
	shlq	$2, %rbx
	addq	8(%rcx), %rbx
	movslq	(%rax), %r15
	imulq	%rdx, %r15
	shlq	$2, %r15
	addq	(%rcx), %r15
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_48:                                ## =>This Inner Loop Header: Depth=1
	movl	%edi, -80(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	*16(%r12)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	*16(%r12)
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movslq	(%rax), %rcx
	leaq	(%r15,%rcx,4), %r15
	movslq	4(%rax), %rcx
	leaq	(%rbx,%rcx,4), %rbx
	movslq	8(%rax), %rax
	leaq	(%r13,%rax,4), %r13
	decl	%edi
	jne	LBB0_48
LBB0_49:
	xorl	%eax, %eax
LBB0_50:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown prediction: %d"

	.no_dead_strip	_magy_decode_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function magy_decode_slice
_magy_decode_slice:                     ; @magy_decode_slice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x27, x2
	mov	x20, x0
	ldr	x28, [x0, #8]
	ldr	x25, [x28, #96]
	ldr	w8, [x28, #4]
	cmp	w8, #1
	b.lt	LBB0_45
; %bb.1:
	mov	x21, #0
	ldr	w8, [x28]
	add	w9, w8, #1
	str	w9, [sp, #56]                   ; 4-byte Folded Spill
	sxtw	x26, w27
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mvn	w8, w8
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	stp	x27, x20, [sp, #24]             ; 16-byte Folded Spill
	str	x25, [sp, #48]                  ; 8-byte Folded Spill
	str	x26, [sp, #16]                  ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_avpriv_request_sample
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [sp, #72]                  ; 8-byte Folded Reload
	add	x21, x21, #1
	ldrsw	x8, [x28, #4]
	cmp	x21, x8
	ldr	x25, [sp, #48]                  ; 8-byte Folded Reload
	ldp	x27, x20, [sp, #24]             ; 16-byte Folded Reload
	ldr	x26, [sp, #16]                  ; 8-byte Folded Reload
	b.ge	LBB0_45
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
                                        ;     Child Loop BB0_16 Depth 2
                                        ;       Child Loop BB0_18 Depth 3
                                        ;     Child Loop BB0_28 Depth 2
                                        ;     Child Loop BB0_39 Depth 2
                                        ;       Child Loop BB0_41 Depth 3
                                        ;     Child Loop BB0_33 Depth 2
	ldr	w0, [x28, #8]
	ldr	w8, [x20]
	msub	w1, w0, w27, w8
	bl	_FFMIN
	ldr	x8, [x28, #80]
	lsl	x19, x21, #2
	ldr	w1, [x8, x19]
	bl	_AV_CEIL_RSHIFT
	mov	x23, x0
	ldr	w0, [x20, #4]
	ldr	x8, [x28, #88]
	ldr	w1, [x8, x19]
	bl	_AV_CEIL_RSHIFT
	mov	x22, x0
	ldr	w0, [x28, #8]
	ldr	x8, [x28, #80]
	ldr	w1, [x8, x19]
	bl	_AV_CEIL_RSHIFT
	mov	x24, x0
	ldr	x8, [x25]
	ldrsw	x19, [x8, x19]
	ldp	x9, x8, [x28, #64]
	ldr	x9, [x9, x21, lsl #3]
	add	x9, x9, x26, lsl #4
	ldr	x10, [x9, #8]
	add	x1, x10, x8
	ldr	w2, [x9]
	sub	x0, x29, #84
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_50
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x0, x29, #84
	mov	w1, #8
	bl	_get_bits
	mov	x26, x0
	sub	x0, x29, #84
	mov	w1, #8
	bl	_get_bits
	mov	x20, x0
	ldr	x8, [x25, #8]
	ldr	x8, [x8, x21, lsl #3]
	mul	w9, w24, w27
	mul	w27, w9, w19
	add	x24, x8, w27, sxtw #2
	str	x21, [sp, #72]                  ; 8-byte Folded Spill
	str	w0, [sp, #60]                   ; 4-byte Folded Spill
	tbnz	w26, #0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, #1
	b.lt	LBB0_21
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w20, #0
	mov	w8, w22
	lsl	x9, x19, #2
	str	x9, [sp, #64]                   ; 8-byte Folded Spill
	lsl	x26, x8, #2
	b	LBB0_16
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x0, x29, #84
	bl	_get_bits_left
	mul	w8, w23, w22
	cmp	w0, w8, lsl #3
	b.lt	LBB0_44
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, #1
	b.lt	LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w20, #0
	mov	w8, w22
	lsl	x21, x19, #2
	lsl	x26, x8, #2
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	w20, w20, #1
	add	x24, x24, x21
	cmp	w20, w23
	b.eq	LBB0_21
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
	cmp	w22, #1
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x25, #0
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_12 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	sub	x0, x29, #84
	mov	w1, #8
	bl	_get_bits
	str	w0, [x24, x25]
	add	x25, x25, #4
	cmp	x26, x25
	b.ne	LBB0_14
	b	LBB0_11
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	w20, w20, #1
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	x24, x24, x8
	cmp	w20, w23
	b.eq	LBB0_21
LBB0_16:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_18 Depth 3
	cmp	w22, #1
	ldr	x25, [sp, #72]                  ; 8-byte Folded Reload
	b.lt	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x21, #0
LBB0_18:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_16 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	sub	x0, x29, #84
	bl	_get_bits_left
	cmp	w0, #0
	b.le	LBB0_44
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=3
	ldr	x8, [x28, #56]
	add	x8, x8, x25, lsl #3
	ldp	w2, w1, [x8]
	sub	x0, x29, #84
	mov	w3, #3
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_44
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=3
	mov	w8, #255
	sub	w8, w8, w0
	str	w8, [x24, x21]
	add	x21, x21, #4
	cmp	x26, x21
	b.ne	LBB0_18
	b	LBB0_15
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w8, w2, [sp, #56]               ; 8-byte Folded Reload
	mul	w8, w19, w8
	str	w8, [sp, #64]                   ; 4-byte Folded Spill
	sxtw	x8, w27
	cmp	w2, #128
	b.eq	LBB0_29
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w2, #130
	b.eq	LBB0_34
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w2, #129
	b.ne	LBB0_2
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x9, [x9, #8]
	ldr	x10, [sp, #72]                  ; 8-byte Folded Reload
	ldr	x9, [x9, x10, lsl #3]
	add	x25, x9, x8, lsl #2
	ldr	x8, [x28, #32]
	mov	x0, x25
	mov	x1, x25
	mov	x2, x22
	mov	w3, #0
	blr	x8
	add	x25, x25, x19, lsl #2
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28, #32]
	mov	x0, x25
	mov	x1, x25
	mov	x2, x22
	mov	w3, #0
	blr	x8
	add	x25, x25, x19, lsl #2
LBB0_26:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	cmp	w8, w23
	b.ge	LBB0_3
; %bb.27:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	add	w20, w9, w23
	lsl	x19, x19, #2
	ldr	w9, [sp, #64]                   ; 4-byte Folded Reload
	sub	x21, x8, w9, sxtw #2
LBB0_28:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x28, #32]
	ldr	w3, [x25, x21]
	mov	x0, x25
	mov	x1, x25
	mov	x2, x22
	blr	x8
	add	x25, x25, x19
	subs	w20, w20, #1
	b.ne	LBB0_28
	b	LBB0_3
LBB0_29:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x9, [x9, #8]
	ldr	x10, [sp, #72]                  ; 8-byte Folded Reload
	ldr	x9, [x9, x10, lsl #3]
	add	x25, x9, x8, lsl #2
	ldr	x8, [x28, #32]
	mov	x0, x25
	mov	x1, x25
	mov	x2, x22
	mov	w3, #0
	blr	x8
	add	x25, x25, x19, lsl #2
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28, #32]
	mov	x0, x25
	mov	x1, x25
	mov	x2, x22
	mov	w3, #0
	blr	x8
	add	x25, x25, x19, lsl #2
LBB0_31:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	stp	w8, w8, [sp, #84]
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	cmp	w8, w23
	b.ge	LBB0_3
; %bb.32:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	add	w20, w9, w23
	lsl	x19, x19, #2
	ldr	w9, [sp, #64]                   ; 4-byte Folded Reload
	sub	x21, x8, w9, sxtw #2
LBB0_33:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x28, #24]
	add	x1, x25, x21
	add	x4, sp, #88
	add	x5, sp, #84
	mov	x0, x25
	mov	x2, x25
	mov	x3, x22
	blr	x8
	ldr	w8, [x25]
	stp	w8, w8, [sp, #84]
	add	x25, x25, x19
	subs	w20, w20, #1
	b.ne	LBB0_33
	b	LBB0_3
LBB0_34:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x9, [x9, #8]
	ldr	x10, [sp, #72]                  ; 8-byte Folded Reload
	ldr	x9, [x9, x10, lsl #3]
	add	x25, x9, x8, lsl #2
	ldr	x8, [x28, #32]
	mov	x0, x25
	mov	x1, x25
	mov	x2, x22
	mov	w3, #0
	blr	x8
	add	x25, x25, x19, lsl #2
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28, #32]
	mov	x0, x25
	mov	x1, x25
	mov	x2, x22
	mov	w3, #0
	blr	x8
	add	x25, x25, x19, lsl #2
LBB0_36:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	w1, #32
	bl	_FFMIN
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	cmp	w8, w23
	b.ge	LBB0_3
; %bb.37:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [sp, #64]                   ; 4-byte Folded Reload
	neg	w8, w9
	sxtw	x13, w8
	sub	w8, w22, #32
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	mov	w24, w0
	lsl	x20, x19, #2
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	mul	w19, w8, w19
	ldr	w21, [sp, #56]                  ; 4-byte Folded Reload
	sub	x26, x25, w9, sxtw #2
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	b	LBB0_39
LBB0_38:                                ;   in Loop: Header=BB0_39 Depth=2
	add	x25, x25, x20
	add	w21, w21, #1
	add	x26, x26, x20
	cmp	w21, w23
	b.eq	LBB0_3
LBB0_39:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_41 Depth 3
	ldr	w8, [x25, x13, lsl #2]
	ldr	w9, [x25]
	add	w8, w9, w8
	str	w8, [sp, #88]
	str	w8, [x25]
	cmp	w0, #2
	b.lt	LBB0_42
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=2
	mov	w8, #1
LBB0_41:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_39 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	lsl	x9, x8, #2
	ldr	w10, [x26, x9]
	add	w11, w19, w8
	sub	w11, w11, #1
	ldr	w11, [x25, w11, sxtw #2]
	str	w11, [sp, #84]
	ldr	w12, [x25, x9]
	sub	w10, w10, w11
	add	w10, w10, w12
	ldr	w11, [sp, #88]
	add	w10, w10, w11
	str	w10, [sp, #88]
	str	w10, [x25, x9]
	add	x8, x8, #1
	cmp	x24, x8
	b.ne	LBB0_41
LBB0_42:                                ;   in Loop: Header=BB0_39 Depth=2
	cmp	w22, #33
	b.lt	LBB0_38
; %bb.43:                               ;   in Loop: Header=BB0_39 Depth=2
	ldr	x8, [x28, #40]
	add	x0, x25, #128
	ldp	w2, w1, [sp, #60]               ; 8-byte Folded Reload
	mov	x27, x22
	mov	x22, x28
	mov	x28, x23
	mov	x23, x13
	blr	x8
	mov	x13, x23
	mov	x23, x28
	mov	x28, x22
	mov	x22, x27
	ldr	w0, [sp, #44]                   ; 4-byte Folded Reload
	b	LBB0_38
LBB0_44:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_50
LBB0_45:
	ldr	x8, [x28, #48]
	cbz	x8, LBB0_49
; %bb.46:
	ldr	w0, [x28, #8]
	ldr	w8, [x20]
	msub	w1, w0, w27, w8
	bl	_FFMIN
	cmp	w0, #1
	b.lt	LBB0_49
; %bb.47:
	mov	x21, x0
	ldr	w20, [x20, #4]
	ldp	x9, x8, [x25]
	ldr	x10, [x8, #16]
	ldr	w11, [x9, #8]
	ldr	w12, [x28, #8]
	mul	w12, w12, w27
	mul	w11, w11, w12
	add	x19, x10, w11, sxtw #2
	ldp	w9, w10, [x9]
	mul	w10, w10, w12
	ldp	x8, x11, [x8]
	add	x22, x11, w10, sxtw #2
	mul	w9, w9, w12
	add	x23, x8, w9, sxtw #2
LBB0_48:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28, #16]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	blr	x8
	ldr	x8, [x28, #16]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	blr	x8
	ldr	x8, [x25]
	ldpsw	x9, x10, [x8]
	add	x23, x23, x9, lsl #2
	add	x22, x22, x10, lsl #2
	ldrsw	x8, [x8, #8]
	add	x19, x19, x8, lsl #2
	subs	w21, w21, #1
	b.ne	LBB0_48
LBB0_49:
	mov	w0, #0
LBB0_50:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown prediction: %d"

	.no_dead_strip	_magy_decode_slice
.subsections_via_symbols
