	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_plane
_decode_plane:                          ## @decode_plane
	.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
	movl	%r9d, -80(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	72(%rdi), %esi
	movq	8(%rdi), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_compute_cmask
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	cmpq	$0, 64(%r12)
	je	LBB0_13
## %bb.1:
	cmpl	$0, (%r12)
	jle	LBB0_54
## %bb.2:
	movslq	%r14d, %r15
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r13
	xorl	%r14d, %r14d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -104(%rbp)                ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	48(%r12), %rax
	movq	56(%r12), %rcx
	movq	(%rcx,%r15,8), %rcx
	movl	(%rcx,%rbx,4), %esi
	movq	(%rax,%r15,8), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r13, %rdi
	callq	_init_get_bits8_le
	testl	%eax, %eax
	js	LBB0_55
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r12), %rax
	movq	40(%r12), %rcx
	movq	(%rcx,%r15,8), %rcx
	movl	(%rcx,%rbx,4), %esi
	movq	(%rax,%r15,8), %rax
	movl	(%rax,%rbx,4), %edx
	leaq	-44(%rbp), %rdi
	callq	_init_get_bits8_le
	testl	%eax, %eax
	js	LBB0_55
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	imull	-80(%rbp), %eax                 ## 4-byte Folded Reload
	cltd
	idivl	(%r12)
	movl	%eax, %ebx
	andl	-76(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	imull	%ecx, %r14d
	movslq	%r14d, %rax
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%rax,4), %r12
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	imull	%ecx, %ebx
	movslq	%ebx, %rax
	leaq	(%rdx,%rax,4), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	subq	%r12, %rax
	sarq	$2, %rax
	leaq	7(%rax), %rcx
	addq	$14, %rax
	testq	%rcx, %rcx
	cmovnsq	%rcx, %rax
	sarq	$3, %rax
	leaq	(%rax,%rax,2), %r15
	movq	%r13, %rdi
	callq	_get_bits_left
	cltq
	cmpq	%rax, %r15
	jg	LBB0_39
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ebx, %r14d
	jl	LBB0_7
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movslq	(%r12), %rax
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rax, %rbx
	movq	-104(%rbp), %r15                ## 8-byte Reload
	jl	LBB0_3
	jmp	LBB0_54
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=2
	movq	$0, (%r12)
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	addq	$32, %r12
	cmpq	-88(%rbp), %r12                 ## 8-byte Folded Reload
	jae	LBB0_12
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_get_bits_le
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	%eax, %r14d
	leal	8(,%r14,8), %ebx
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	callq	_get_bits_left
	cmpl	%eax, %ebx
	jg	LBB0_39
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	%r14d, %r15d
	incl	%r15d
	movb	$7, %cl
	subb	%r14b, %cl
	movl	$128, %ebx
	shrl	%cl, %ebx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_get_bits_le
	movl	%eax, %edx
	notl	%edx
	andl	%ebx, %edx
	movq	%r13, %rsi
	movb	$8, %r13b
	subb	%r14b, %r13b
	movl	%r13d, %ecx
	shll	%cl, %edx
	subl	%ebx, %eax
	addl	%edx, %eax
	movl	%eax, (%r12)
	movq	%rsi, %r14
	movq	%rsi, %rdi
	movl	%r15d, %esi
	callq	_get_bits_le
	movl	%eax, %edx
	notl	%edx
	andl	%ebx, %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	subl	%ebx, %eax
	addl	%edx, %eax
	movl	%eax, 4(%r12)
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_get_bits_le
	movl	%eax, %edx
	notl	%edx
	andl	%ebx, %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	subl	%ebx, %eax
	addl	%edx, %eax
	movl	%eax, 8(%r12)
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_get_bits_le
	movl	%eax, %edx
	notl	%edx
	andl	%ebx, %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	subl	%ebx, %eax
	addl	%edx, %eax
	movl	%eax, 12(%r12)
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_get_bits_le
	movl	%eax, %edx
	notl	%edx
	andl	%ebx, %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	subl	%ebx, %eax
	addl	%edx, %eax
	movl	%eax, 16(%r12)
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_get_bits_le
	movl	%eax, %edx
	notl	%edx
	andl	%ebx, %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	subl	%ebx, %eax
	addl	%edx, %eax
	movl	%eax, 20(%r12)
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_get_bits_le
	movl	%eax, %edx
	notl	%edx
	andl	%ebx, %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	subl	%ebx, %eax
	addl	%edx, %eax
	movl	%eax, 24(%r12)
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_get_bits_le
	movl	%eax, %edx
	notl	%edx
	andl	%ebx, %edx
	movl	%r13d, %ecx
	leaq	-48(%rbp), %r13
	shll	%cl, %edx
	subl	%ebx, %eax
	addl	%edx, %eax
	movl	%eax, 28(%r12)
	jmp	LBB0_11
LBB0_13:
	movl	%r15d, -88(%rbp)                ## 4-byte Spill
	movq	16(%rbp), %r14
	leaq	-48(%rbp), %rsi
	leaq	-116(%rbp), %rdx
	movq	%r14, %rdi
	callq	_build_huff
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	8(%r12), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_39:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_55
LBB0_15:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %r12d
	movl	-116(%rbp), %ecx
	testl	%ecx, %ecx
	js	LBB0_31
## %bb.16:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_54
## %bb.17:
	movslq	-52(%rbp), %r10                 ## 4-byte Folded Reload
	movl	-88(%rbp), %r9d                 ## 4-byte Reload
	movl	%r9d, %r15d
	leaq	-1(%r15), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r13d
	andl	$3, %r13d
	andl	$-4, %r15d
	shlq	$2, %r10
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %esi
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpl	%esi, %edx
	jge	LBB0_54
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
                                        ##       Child Loop BB0_26 Depth 3
                                        ##       Child Loop BB0_29 Depth 3
	movl	%eax, %r11d
	incl	%edx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %eax
	imull	-80(%rbp), %eax                 ## 4-byte Folded Reload
	cltd
	idivl	%esi
	andl	-76(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	%eax, %r11d
	jge	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%r11d, %edx
	imull	-52(%rbp), %edx                 ## 4-byte Folded Reload
	movslq	%edx, %rdx
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	leaq	(%rsi,%rdx,4), %rdx
	movl	$128, %esi
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_22 Depth=2
	incl	%r11d
	addq	%r10, %rdx
	cmpl	%eax, %r11d
	je	LBB0_18
LBB0_22:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_26 Depth 3
                                        ##       Child Loop BB0_29 Depth 3
	testl	%r9d, %r9d
	jle	LBB0_30
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	cmpq	$3, -96(%rbp)                   ## 8-byte Folded Reload
	jae	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=2
	xorl	%ebx, %ebx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_22 Depth=2
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_20 Depth=1
                                        ##     Parent Loop BB0_22 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	(%rsi,%rcx), %r9d
	testl	%r12d, %r12d
	movl	%r9d, %edi
	cmovel	%esi, %edi
	addl	%ecx, %edi
	testl	%r12d, %r12d
	movl	%edi, %r8d
	cmovel	%esi, %r8d
	addl	%ecx, %r8d
	testl	%r12d, %r12d
	movl	%r8d, %r14d
	cmovel	%esi, %r14d
	addl	%ecx, %r14d
	testl	%r12d, %r12d
	cmovel	%ecx, %r9d
	cmovel	%ecx, %edi
	movl	%r9d, (%rdx,%rbx,4)
	movl	%edi, 4(%rdx,%rbx,4)
	cmovel	%ecx, %r8d
	cmovnel	%r14d, %esi
	cmovel	%ecx, %r14d
	movl	%r8d, 8(%rdx,%rbx,4)
	movl	%r14d, 12(%rdx,%rbx,4)
	addq	$4, %rbx
	cmpq	%rbx, %r15
	jne	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_22 Depth=2
	testq	%r13, %r13
	movl	-88(%rbp), %r9d                 ## 4-byte Reload
	je	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_22 Depth=2
	leaq	(%rdx,%rbx,4), %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_20 Depth=1
                                        ##     Parent Loop BB0_22 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	(%rsi,%rcx), %ebx
	testl	%r12d, %r12d
	cmovnel	%ebx, %esi
	cmovel	%ecx, %ebx
	movl	%ebx, (%r8,%rdi,4)
	incq	%rdi
	cmpq	%rdi, %r13
	jne	LBB0_29
	jmp	LBB0_30
LBB0_31:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	movl	-88(%rbp), %eax                 ## 4-byte Reload
	jle	LBB0_53
## %bb.32:
	leaq	1024(%r14), %rdx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movslq	-52(%rbp), %rdx                 ## 4-byte Folded Reload
	addq	$1008, %r14                     ## imm = 0x3F0
	movl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r14, -136(%rbp)                ## 8-byte Spill
LBB0_33:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_42 Depth 2
                                        ##       Child Loop BB0_44 Depth 3
	leaq	1(%rbx), %rsi
	movl	%esi, %eax
	imull	-80(%rbp), %eax                 ## 4-byte Folded Reload
	cltd
	idivl	%ecx
	movl	%eax, %r15d
	testq	%rbx, %rbx
	movq	%rsi, -152(%rbp)                ## 8-byte Spill
	movl	%edi, -104(%rbp)                ## 4-byte Spill
	je	LBB0_34
## %bb.35:                              ##   in Loop: Header=BB0_33 Depth=1
	shll	$2, %ebx
	leaq	(%r14,%rbx,4), %rdi
	callq	_AV_RL32
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	jmp	LBB0_36
LBB0_34:                                ##   in Loop: Header=BB0_33 Depth=1
	xorl	%ebx, %ebx
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
LBB0_36:                                ##   in Loop: Header=BB0_33 Depth=1
	movq	-128(%rbp), %r13                ## 8-byte Reload
	leaq	(,%rbx,4), %rdi
	addq	%r13, %rdi
	callq	_AV_RL32
	movl	%eax, %ebx
	subl	-64(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_37
## %bb.40:                              ##   in Loop: Header=BB0_33 Depth=1
	andl	-76(%rbp), %r15d                ## 4-byte Folded Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	16(%r14), %edi
	addl	%ebx, %edi
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	16(%r14), %rdi
	movslq	-64(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	(,%rax,4), %rax
	addq	%r13, %rax
	movslq	(%r14), %rsi
	shlq	$4, %rsi
	addq	%rax, %rsi
	leal	3(%rbx), %edx
	sarl	$2, %edx
	callq	*24(%r14)
	movq	16(%r14), %rsi
	shll	$3, %ebx
	leaq	-44(%rbp), %rdi
	movl	%ebx, %edx
	callq	_init_get_bits
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	movl	-104(%rbp), %r14d               ## 4-byte Reload
	cmpl	%r15d, %r14d
	jge	LBB0_50
## %bb.41:                              ##   in Loop: Header=BB0_33 Depth=1
	movl	%r14d, %eax
	imull	-52(%rbp), %eax                 ## 4-byte Folded Reload
	cltq
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r13
	movl	$128, %ebx
LBB0_42:                                ##   Parent Loop BB0_33 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_44 Depth 3
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_47
## %bb.43:                              ##   in Loop: Header=BB0_42 Depth=2
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_44:                                ##   Parent Loop BB0_33 Depth=1
                                        ##     Parent Loop BB0_42 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	-48(%rbp), %esi
	movq	_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rdi
	movl	$3, %ecx
	callq	_get_vlc2
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_45
## %bb.46:                              ##   in Loop: Header=BB0_44 Depth=3
	leal	(%rax,%rbx), %ecx
	testl	%r12d, %r12d
	cmovnel	%ecx, %ebx
	cmovel	%eax, %ecx
	movl	%ecx, (%r13,%r15,4)
	incq	%r15
	cmpq	%r15, -96(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_44
LBB0_47:                                ##   in Loop: Header=BB0_42 Depth=2
	leaq	-44(%rbp), %rdi
	callq	_get_bits_left
	testl	%eax, %eax
	js	LBB0_48
## %bb.49:                              ##   in Loop: Header=BB0_42 Depth=2
	incl	%r14d
	addq	-144(%rbp), %r13                ## 8-byte Folded Reload
	cmpl	-64(%rbp), %r14d                ## 4-byte Folded Reload
	jne	LBB0_42
LBB0_50:                                ##   in Loop: Header=BB0_33 Depth=1
	leaq	-44(%rbp), %rdi
	callq	_get_bits_left
	cmpl	$33, %eax
	movq	-136(%rbp), %r14                ## 8-byte Reload
	jl	LBB0_52
## %bb.51:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	-44(%rbp), %rdi
	callq	_get_bits_left
	movq	%rbx, %rdi
	movl	%r13d, %esi
	leaq	L_.str.4(%rip), %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_52:                                ##   in Loop: Header=BB0_33 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rcx
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movq	%rax, %rbx
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	cmpq	%rcx, %rax
	jl	LBB0_33
LBB0_53:
	leaq	-48(%rbp), %rdi
	callq	_ff_free_vlc
LBB0_54:
	xorl	%eax, %eax
LBB0_55:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_45:
	leaq	L_.str.2(%rip), %rdx
LBB0_38:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	callq	_av_log
	leaq	-48(%rbp), %rdi
	callq	_ff_free_vlc
	jmp	LBB0_39
LBB0_37:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_38
LBB0_48:
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot build Huffman codes\n"

L_.str.1:                               ## @.str.1
	.asciz	"Plane has more than one symbol yet a slice has a length of zero.\n"

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,4,2 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_VLC_BITS,4,2                   ## @VLC_BITS
L_.str.2:                               ## @.str.2
	.asciz	"Decoding error\n"

L_.str.3:                               ## @.str.3
	.asciz	"Slice decoding ran out of bits\n"

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.4:                               ## @.str.4
	.asciz	"%d bits left after decoding slice\n"

	.no_dead_strip	_decode_plane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_plane
_decode_plane:                          ; @decode_plane
	.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	x24, x7
	mov	x26, x6
	mov	x22, x5
	mov	x25, x4
	mov	x28, x3
	mov	x20, x2
	mov	x27, x1
	mov	x19, x0
	ldr	w1, [x0, #72]
	ldr	x8, [x0, #8]
	ldr	w2, [x8]
	mov	x0, x27
	bl	_compute_cmask
	mov	x21, x0
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_13
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_45
; %bb.2:
	str	w21, [sp, #76]                  ; 4-byte Folded Spill
	str	x20, [sp, #64]                  ; 8-byte Folded Spill
	mov	x26, #0
	mov	w20, #0
	sxtw	x8, w27
	lsl	x23, x8, #3
	str	x23, [sp, #56]                  ; 8-byte Folded Spill
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldp	x9, x8, [x19, #48]
	ldr	x8, [x8, x23]
	lsl	x21, x26, #2
	ldr	w1, [x8, x21]
	ldr	x8, [x9, x23]
	ldr	w2, [x8, x21]
	add	x0, sp, #88
	bl	_init_get_bits8_le
	tbnz	w0, #31, LBB0_46
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [x19, #32]
	ldr	x8, [x8, x23]
	ldr	w1, [x8, x21]
	ldr	x8, [x9, x23]
	ldr	w2, [x8, x21]
	add	x0, sp, #84
	bl	_init_get_bits8_le
	tbnz	w0, #31, LBB0_46
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	mov	x23, x22
	mul	w8, w26, w22
	mov	x27, x19
	ldr	w9, [x19]
	sdiv	w8, w8, w9
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	and	w22, w8, w9
	mul	w20, w20, w28
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	x21, x8, w20, sxtw #2
	mov	x19, x28
	mul	w24, w22, w28
	add	x28, x8, w24, sxtw #2
	sub	x8, x28, x21
	asr	x8, x8, #2
	add	x9, x8, #7
	add	x8, x8, #14
	cmp	x9, #0
	csel	x8, x8, x9, lt
	asr	x8, x8, #3
	add	x25, x8, x8, lsl #1
	add	x0, sp, #88
	bl	_get_bits_left
	cmp	x25, w0, sxtw
	b.gt	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w20, w24
	b.lt	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x27]
	mov	x20, x22
	cmp	x26, x8
	mov	x22, x23
	mov	x28, x19
	mov	x19, x27
	ldr	x23, [sp, #56]                  ; 8-byte Folded Reload
	b.lt	LBB0_3
	b	LBB0_45
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	str	xzr, [x21]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x21, x21, #32
	cmp	x21, x28
	b.hs	LBB0_7
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #88
	mov	w1, #3
	bl	_get_bits_le
	cbz	w0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x25, x0
	add	w24, w0, #1
	add	x0, sp, #84
	bl	_get_bits_left
	cmp	w0, w24, lsl #3
	b.lt	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	w8, #7
	sub	w8, w8, w25
	mov	w9, #128
	lsr	w20, w9, w8
	mov	w8, #8
	sub	w25, w8, w25
	add	x0, sp, #84
	mov	x1, x24
	bl	_get_bits_le
	bic	w8, w20, w0
	lsl	w8, w8, w25
	sub	w9, w0, w20
	add	w8, w9, w8
	str	w8, [x21]
	add	x0, sp, #84
	mov	x1, x24
	bl	_get_bits_le
	bic	w8, w20, w0
	lsl	w8, w8, w25
	sub	w9, w0, w20
	add	w8, w9, w8
	str	w8, [x21, #4]
	add	x0, sp, #84
	mov	x1, x24
	bl	_get_bits_le
	bic	w8, w20, w0
	lsl	w8, w8, w25
	sub	w9, w0, w20
	add	w8, w9, w8
	str	w8, [x21, #8]
	add	x0, sp, #84
	mov	x1, x24
	bl	_get_bits_le
	bic	w8, w20, w0
	lsl	w8, w8, w25
	sub	w9, w0, w20
	add	w8, w9, w8
	str	w8, [x21, #12]
	add	x0, sp, #84
	mov	x1, x24
	bl	_get_bits_le
	bic	w8, w20, w0
	lsl	w8, w8, w25
	sub	w9, w0, w20
	add	w8, w9, w8
	str	w8, [x21, #16]
	add	x0, sp, #84
	mov	x1, x24
	bl	_get_bits_le
	bic	w8, w20, w0
	lsl	w8, w8, w25
	sub	w9, w0, w20
	add	w8, w9, w8
	str	w8, [x21, #20]
	add	x0, sp, #84
	mov	x1, x24
	bl	_get_bits_le
	bic	w8, w20, w0
	lsl	w8, w8, w25
	sub	w9, w0, w20
	add	w8, w9, w8
	str	w8, [x21, #24]
	add	x0, sp, #84
	mov	x1, x24
	bl	_get_bits_le
	bic	w8, w20, w0
	lsl	w8, w8, w25
	sub	w9, w0, w20
	add	w8, w9, w8
	str	w8, [x21, #28]
	b	LBB0_9
LBB0_13:
	add	x1, sp, #88
	add	x2, sp, #80
	mov	x0, x26
	bl	_build_huff
	cbz	x0, LBB0_16
; %bb.14:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
LBB0_15:
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_46
LBB0_16:
	ldr	w8, [sp, #80]
	tbnz	w8, #31, LBB0_27
; %bb.17:
	ldr	w14, [x19]
	cmp	w14, #1
	b.lt	LBB0_45
; %bb.18:
	mov	w9, #0
	mov	w12, #0
	mov	w11, w25
	sbfiz	x10, x28, #2, #32
	lsl	x11, x11, #2
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	w14, [x19]
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	mov	x12, x13
	cmp	w9, w14
	b.ge	LBB0_45
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
                                        ;       Child Loop BB0_26 Depth 3
	add	w9, w9, #1
	mul	w13, w9, w22
	sdiv	w13, w13, w14
	and	w13, w13, w21
	cmp	w12, w13
	b.ge	LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	mul	w14, w12, w28
	add	x14, x20, w14, sxtw #2
	mov	w15, #128
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=2
	add	w12, w12, #1
	add	x14, x14, x10
	cmp	w12, w13
	b.eq	LBB0_19
LBB0_24:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_26 Depth 3
	cmp	w25, #1
	b.lt	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	mov	x16, #0
LBB0_26:                                ;   Parent Loop BB0_21 Depth=1
                                        ;     Parent Loop BB0_24 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	w17, w15, w8
	cmp	w24, #0
	csel	w15, w15, w17, eq
	csel	w17, w8, w17, eq
	str	w17, [x14, x16]
	add	x16, x16, #4
	cmp	x11, x16
	b.ne	LBB0_26
	b	LBB0_23
LBB0_27:
	str	x20, [sp, #64]                  ; 8-byte Folded Spill
	str	w22, [sp, #56]                  ; 4-byte Folded Spill
	ldr	w22, [x19]
	cmp	w22, #1
	b.lt	LBB0_44
; %bb.28:
	mov	x10, #0
	mov	w27, #0
	add	x8, x26, #1024
	stp	x8, x19, [sp, #40]              ; 16-byte Folded Spill
	add	x11, x26, #1008
	mov	w8, w25
	mov	x9, x28
	sbfiz	x9, x9, #2, #32
	stp	x11, x9, [sp, #8]               ; 16-byte Folded Spill
	lsl	x23, x8, #2
	str	w21, [sp, #76]                  ; 4-byte Folded Spill
	str	x28, [sp, #24]                  ; 8-byte Folded Spill
LBB0_29:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_35 Depth 2
                                        ;       Child Loop BB0_37 Depth 3
	cbz	x10, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x20, x10
	lsl	w21, w10, #2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x0, x8, w21, uxtw #2
	bl	_AV_RL32
	mov	x28, x0
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	x20, x10
	mov	x21, #0
	mov	w28, #0
LBB0_32:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
	add	x0, x19, x21, lsl #2
	bl	_AV_RL32
	subs	w26, w0, w28
	b.eq	LBB0_49
; %bb.33:                               ;   in Loop: Header=BB0_29 Depth=1
	add	x20, x20, #1
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	str	x20, [sp, #32]                  ; 8-byte Folded Spill
	mul	w8, w20, w8
	sdiv	w8, w8, w22
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	and	w21, w8, w9
	ldr	x22, [sp, #48]                  ; 8-byte Folded Reload
	ldr	w8, [x22, #16]
	add	w0, w26, w8
Lloh8:
	adrp	x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	ldp	x0, x8, [x22, #16]
	add	x9, x19, w28, sxtw #2
	ldrsw	x10, [x22]
	add	x1, x9, x10, lsl #4
	add	w9, w26, #3
	asr	w2, w9, #2
	blr	x8
	ldr	x1, [x22, #16]
	lsl	w2, w26, #3
	add	x0, sp, #84
	bl	_init_get_bits
	cmp	w27, w21
	ldr	x28, [sp, #24]                  ; 8-byte Folded Reload
Lloh11:
	adrp	x20, _VLC_BITS@GOTPAGE
Lloh12:
	ldr	x20, [x20, _VLC_BITS@GOTPAGEOFF]
	b.ge	LBB0_41
; %bb.34:                               ;   in Loop: Header=BB0_29 Depth=1
	mul	w8, w27, w28
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	add	x22, x9, w8, sxtw #2
	mov	w26, #128
LBB0_35:                                ;   Parent Loop BB0_29 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_37 Depth 3
	mov	x19, x28
	cmp	w25, #1
	b.lt	LBB0_39
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=2
	mov	x28, #0
LBB0_37:                                ;   Parent Loop BB0_29 Depth=1
                                        ;     Parent Loop BB0_35 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w1, [sp, #88]
	ldr	w2, [x20]
	add	x0, sp, #84
	mov	w3, #3
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_47
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=3
	add	w8, w0, w26
	cmp	w24, #0
	csel	w26, w26, w8, eq
	csel	w8, w0, w8, eq
	str	w8, [x22, x28]
	add	x28, x28, #4
	cmp	x23, x28
	b.ne	LBB0_37
LBB0_39:                                ;   in Loop: Header=BB0_35 Depth=2
	add	x0, sp, #84
	bl	_get_bits_left
	tbnz	w0, #31, LBB0_50
; %bb.40:                               ;   in Loop: Header=BB0_35 Depth=2
	mov	x28, x19
	add	w27, w27, #1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x22, x22, x8
	cmp	w27, w21
	b.ne	LBB0_35
LBB0_41:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x0, sp, #84
	bl	_get_bits_left
	cmp	w0, #33
	b.lt	LBB0_43
; %bb.42:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x28, [x8, #8]
Lloh13:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh15:
	ldr	w26, [x8]
	add	x0, sp, #84
	bl	_get_bits_left
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x28
	mov	x1, x26
Lloh16:
	adrp	x2, l_.str.4@PAGE
Lloh17:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_av_log
LBB0_43:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	x19, [sp, #48]                  ; 8-byte Folded Reload
	ldrsw	x22, [x19]
	mov	x27, x21
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	cmp	x10, x22
	b.lt	LBB0_29
LBB0_44:
	add	x0, sp, #88
	bl	_ff_free_vlc
LBB0_45:
	mov	w0, #0
LBB0_46:
	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
LBB0_47:
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_48:
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x0, [x8, #8]
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_av_log
	add	x0, sp, #88
	bl	_ff_free_vlc
	b	LBB0_15
LBB0_49:
Lloh23:
	adrp	x2, l_.str.1@PAGE
Lloh24:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_48
LBB0_50:
Lloh25:
	adrp	x2, l_.str.3@PAGE
Lloh26:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_48
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot build Huffman codes\n"

l_.str.1:                               ; @.str.1
	.asciz	"Plane has more than one symbol yet a slice has a length of zero.\n"

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,4,2 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_VLC_BITS,4,2                   ; @VLC_BITS
l_.str.2:                               ; @.str.2
	.asciz	"Decoding error\n"

l_.str.3:                               ; @.str.3
	.asciz	"Slice decoding ran out of bits\n"

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.4:                               ; @.str.4
	.asciz	"%d bits left after decoding slice\n"

	.no_dead_strip	_decode_plane
.subsections_via_symbols
