	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function avs_decode_frame
LCPI0_0:
	.long	197379                          ## 0x30303
	.long	197379                          ## 0x30303
	.long	197379                          ## 0x30303
	.long	197379                          ## 0x30303
LCPI0_1:
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.long	4278190080                      ## 0xff000000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_avs_decode_frame:                      ## @avs_decode_frame
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	(%rcx), %r14
	movl	8(%rcx), %r12d
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movl	$0, -80(%rbp)
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ff_reget_buffer
	testl	%eax, %eax
	js	LBB0_49
## %bb.1:
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	$0, (%rbx)
	cmpl	$3, %r12d
	jle	LBB0_2
## %bb.3:
	movslq	%r12d, %r10
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rax
	movq	(%rcx), %rdx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movl	(%rax), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %eax
	leaq	16(%r14), %rdi
	movq	_AVS_PALETTE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_4
## %bb.5:
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %r15
	movq	%r10, %rbx
	callq	_AV_RL16
	movl	%eax, %r13d
	leaq	24(%r14), %rdi
	callq	_AV_RL16
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$255, %r13d
	jg	LBB0_2
## %bb.6:
	leal	(%rax,%r13), %ecx
	cmpl	$256, %ecx                      ## imm = 0x100
	jg	LBB0_2
## %bb.7:
	movq	%rbx, %r10
	leaq	-16(,%rbx,4), %rdx
	sarq	$2, %rdx
	leal	(%rax,%rax,2), %esi
	addl	$8, %esi
	movslq	%esi, %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_2
## %bb.8:
	leaq	32(%r14), %rsi
	testl	%eax, %eax
	jle	LBB0_9
## %bb.10:
	movslq	%r13d, %rax
	movslq	%ecx, %rcx
	leaq	1(%rax), %rdx
	cmpq	%rcx, %rdx
	movq	%rcx, %r8
	cmovgq	%rdx, %r8
	subq	%rax, %r8
	cmpq	$4, %r8
	jb	LBB0_11
## %bb.12:
	leaq	(%r15,%rax,4), %r9
	cmpq	%rcx, %rdx
	cmovleq	%rcx, %rdx
	leaq	(%rdx,%rdx,2), %rdi
	leaq	(%rax,%rax,2), %rbx
	subq	%rbx, %rdi
	leaq	(%r14,%rdi,4), %rdi
	addq	$32, %rdi
	cmpq	%rdi, %r9
	jae	LBB0_14
## %bb.13:
	leaq	(%r15,%rdx,4), %rdx
	cmpq	%rdx, %rsi
	jae	LBB0_14
LBB0_11:
	movq	%rsi, %rdx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %esi
	movl	4(%rdx), %edi
	shll	$18, %esi
	shll	$10, %edi
	orl	%esi, %edi
	movl	8(%rdx), %esi
	shll	$2, %esi
	orl	%edi, %esi
	movl	%esi, %edi
	shrl	$6, %edi
	andl	$197379, %edi                   ## imm = 0x30303
	orl	%esi, %edi
	orl	$-16777216, %edi                ## imm = 0xFF000000
	movl	%edi, (%r15,%rax,4)
	incq	%rax
	addq	$12, %rdx
	cmpq	%rcx, %rax
	jl	LBB0_17
	jmp	LBB0_18
LBB0_4:
	movq	%r14, %rdx
LBB0_19:
	movq	_AVS_VIDEO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.20:
	movl	(%rdx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.21:
	movq	%r15, %rsi
	movq	%rdi, -144(%rbp)                ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	leaq	(%r14,%r10,4), %rdi
	movb	$1, %cl
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	$3, %ebx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movl	$3, %r15d
	jmpq	*%rax
LBB0_22:
	movl	$2, %r15d
	jmp	LBB0_24
LBB0_23:
	movl	$2, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$2, %ebx
LBB0_24:
	movq	%rdi, %rcx
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	subq	%rdx, %rcx
	sarq	$2, %rcx
	movl	%r15d, %eax
	imull	%ebx, %eax
	shll	$8, %eax
	cmpq	%rax, %rcx
	jl	LBB0_2
## %bb.25:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rax,4), %r14
	movw	$318, %ax                       ## imm = 0x13E
	xorl	%edx, %edx
	divw	%r15w
                                        ## kill: def $ax killed $ax def $eax
	addl	$7, %eax
	movzwl	%ax, %ecx
	shrl	$3, %ecx
	movb	$-58, %al
	movzbl	%al, %eax
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	divb	%bl
	movzbl	%al, %ebx
	imull	%ecx, %ebx
	movq	%rdi, -160(%rbp)                ## 8-byte Spill
	movq	%rdi, %rax
	subq	%r14, %rax
	sarq	$2, %rax
	cmpq	%rbx, %rax
	jl	LBB0_2
## %bb.26:
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	leal	(,%rbx,8), %edx
	leaq	-80(%rbp), %rdi
	movq	%r14, %rsi
	callq	_init_get_bits
	leaq	(%r14,%rbx,4), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_29
LBB0_27:
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, 24(%rcx)
	movl	$1, (%rcx)
	movq	%rdi, %rax
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	subq	%rcx, %rax
	cmpq	$9216, %rax                     ## imm = 0x2400
	jge	LBB0_28
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_49:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rsi, %rdx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_18:
	movl	4(%rdx), %eax
	leaq	16(%rdx), %rdi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_28:
	movq	%rdi, -160(%rbp)                ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	leaq	9216(%rcx), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	$3, %r15d
	movb	$1, %r13b
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$3, %ecx
LBB0_29:
	movl	%ecx, %eax
	imull	%r15d, %eax
	movl	%r15d, %r12d
	leaq	(%r12,%r12), %rdx
	movq	%rdx, -152(%rbp)                ## 8-byte Spill
	leaq	(%r12,%r12), %rdx
	incq	%rdx
	movq	%rdx, -168(%rbp)                ## 8-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	imull	%ecx, %edx
	movq	%rdx, -176(%rbp)                ## 8-byte Spill
	addl	%ecx, %ecx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movl	%eax, %eax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	leaq	-80(%rbp), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
	movl	%ebx, -88(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_31
LBB0_41:                                ##   in Loop: Header=BB0_31 Depth=2
	addq	$4, %rbx
	addq	%r12, %r15
	cmpq	$318, %r15                      ## imm = 0x13E
	jae	LBB0_42
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_30 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testb	%r13b, %r13b
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	%r14, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	jne	LBB0_33
## %bb.43:                              ##   in Loop: Header=BB0_31 Depth=2
	addq	%r12, %r15
	cmpq	$318, %r15                      ## imm = 0x13E
	jb	LBB0_31
	jmp	LBB0_44
LBB0_33:                                ##   in Loop: Header=BB0_31 Depth=2
	movq	-160(%rbp), %rax                ## 8-byte Reload
	subq	%rbx, %rax
	cmpq	$3, %rax
	jle	LBB0_2
## %bb.34:                              ##   in Loop: Header=BB0_31 Depth=2
	movslq	(%rbx), %rcx
	imulq	-184(%rbp), %rcx                ## 8-byte Folded Reload
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rax
	movl	(%rdx,%rcx,4), %ecx
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	addl	%r15d, %edx
	movslq	%edx, %rdx
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movl	%ecx, (%rsi,%rdx,4)
	movl	(%rax,%r12,4), %ecx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addl	%r15d, %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rsi,%rdx,4)
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	movl	(%rax,%rcx,4), %ecx
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	addl	%r15d, %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rsi,%rdx,4)
LBB0_36:                                ##   in Loop: Header=BB0_31 Depth=2
	movl	4(%rax), %ecx
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	addl	%r15d, %edx
	incl	%edx
	movslq	%edx, %rdx
	movl	%ecx, (%rsi,%rdx,4)
	movl	4(%rax,%r12,4), %ecx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addl	%r15d, %edx
	incl	%edx
	movslq	%edx, %rdx
	movl	%ecx, (%rsi,%rdx,4)
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	movl	(%rax,%rcx,4), %ecx
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	addl	%r15d, %edx
	incl	%edx
	movslq	%edx, %rdx
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movl	%ecx, (%rsi,%rdx,4)
LBB0_38:                                ##   in Loop: Header=BB0_31 Depth=2
	cmpl	$2, %r12d
	je	LBB0_41
## %bb.39:                              ##   in Loop: Header=BB0_31 Depth=2
	movl	8(%rax), %ecx
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	addl	%r15d, %edx
	addl	$2, %edx
	movslq	%edx, %rdx
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movl	%ecx, (%rsi,%rdx,4)
	movl	8(%rax,%r12,4), %ecx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addl	%r15d, %edx
	addl	$2, %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rsi,%rdx,4)
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	movl	8(%rax,%rcx,4), %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	addl	%r15d, %ecx
	addl	$2, %ecx
	movslq	%ecx, %rcx
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movl	-88(%rbp), %ebx                 ## 4-byte Reload
LBB0_45:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	%r14, %rdi
	callq	_align_get_bits
LBB0_46:                                ##   in Loop: Header=BB0_30 Depth=1
	addl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	-176(%rbp), %rax                ## 8-byte Reload
	addq	%rax, -136(%rbp)                ## 8-byte Folded Spill
	addq	%rax, -72(%rbp)                 ## 8-byte Folded Spill
	addq	%rax, -120(%rbp)                ## 8-byte Folded Spill
	cmpl	$198, %ebx
	jb	LBB0_30
	jmp	LBB0_47
LBB0_42:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	testb	%r13b, %r13b
	movl	-88(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_45
	jmp	LBB0_46
LBB0_47:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_49
## %bb.48:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_49
LBB0_14:
	movq	%r8, %rdi
	andq	$-4, %rdi
	addq	%rdi, %rax
	leaq	(%rdi,%rdi,2), %rdx
	leaq	(%rsi,%rdx,4), %rdx
	xorl	%ebx, %ebx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [197379,197379,197379,197379]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [4278190080,4278190080,4278190080,4278190080]
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi), %xmm2
	movdqu	16(%rsi), %xmm3
	movups	32(%rsi), %xmm4
	movdqa	%xmm3, %xmm5
	pblendw	$12, %xmm2, %xmm5               ## xmm5 = xmm5[0,1],xmm2[2,3],xmm5[4,5,6,7]
	pshufd	$238, %xmm2, %xmm6              ## xmm6 = xmm2[2,3,2,3]
	shufps	$236, %xmm3, %xmm2              ## xmm2 = xmm2[0,3],xmm3[2,3]
	insertps	$112, %xmm4, %xmm2              ## xmm2 = xmm2[0,1,2],xmm4[1]
	pshufd	$170, %xmm4, %xmm7              ## xmm7 = xmm4[2,2,2,2]
	pshufd	$241, %xmm5, %xmm5              ## xmm5 = xmm5[1,0,3,3]
	pblendw	$192, %xmm7, %xmm5              ## xmm5 = xmm5[0,1,2,3,4,5],xmm7[6,7]
	pblendw	$12, %xmm3, %xmm6               ## xmm6 = xmm6[0,1],xmm3[2,3],xmm6[4,5,6,7]
	shufps	$196, %xmm4, %xmm6              ## xmm6 = xmm6[0,1],xmm4[0,3]
	pslld	$18, %xmm2
	pslld	$10, %xmm5
	por	%xmm2, %xmm5
	pslld	$2, %xmm6
	por	%xmm5, %xmm6
	movdqa	%xmm6, %xmm2
	psrld	$6, %xmm2
	pand	%xmm0, %xmm2
	por	%xmm6, %xmm2
	por	%xmm1, %xmm2
	movdqu	%xmm2, (%r9,%rbx,4)
	addq	$4, %rbx
	addq	$48, %rsi
	cmpq	%rbx, %rdi
	jne	LBB0_15
## %bb.16:
	cmpq	%rdi, %r8
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_17
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
LJTI0_0:
	.long	L0_0_set_24
	.long	L0_0_set_22
	.long	L0_0_set_23
	.long	L0_0_set_27
	.end_data_region
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_P,4,2          ## @AV_PICTURE_TYPE_P
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AVS_PALETTE,4,2                ## @AVS_PALETTE
	.comm	_AVS_VIDEO,4,2                  ## @AVS_VIDEO
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.no_dead_strip	_avs_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avs_decode_frame
_avs_decode_frame:                      ; @avs_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x21, x2
	mov	x26, x1
	ldr	x24, [x3]
	ldr	w19, [x3, #8]
	ldr	x8, [x0]
	ldr	x22, [x8]
	stur	wzr, [x29, #-88]
	mov	x1, x22
	mov	w2, #0
	bl	_ff_reget_buffer
	tbnz	w0, #31, LBB0_45
; %bb.1:
Lloh0:
	adrp	x8, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22, #24]
	str	wzr, [x22]
	cmp	w19, #3
	b.le	LBB0_24
; %bb.2:
	sxtw	x27, w19
	ldp	x8, x9, [x22, #8]
	ldr	x10, [x8]
	stur	x10, [x29, #-96]                ; 8-byte Folded Spill
	ldr	w25, [x9]
	ldr	w9, [x24, #4]
	add	x0, x24, #16
Lloh3:
	adrp	x10, _AVS_PALETTE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AVS_PALETTE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_14
; %bb.3:
	ldr	x20, [x8, #8]
	bl	_AV_RL16
	mov	x23, x0
	add	x0, x24, #24
	bl	_AV_RL16
	cmp	w23, #255
	b.gt	LBB0_24
; %bb.4:
	add	w9, w0, w23
	cmp	w9, #256
	b.gt	LBB0_24
; %bb.5:
	lsl	x8, x27, #2
	sub	x8, x8, #16
	add	w10, w0, w0, lsl #1
	add	w10, w10, #8
	sxtw	x10, w10
	cmp	x10, x8, asr #2
	b.gt	LBB0_24
; %bb.6:
	add	x8, x24, #32
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.7:
	sxtw	x13, w23
	sxtw	x9, w9
	add	x11, x13, #1
	cmp	x11, x9
	csinc	x10, x9, x13, le
	sub	x10, x10, x13
	cmp	x10, #16
	b.lo	LBB0_12
; %bb.8:
	lsl	x12, x13, #2
	cmp	x11, x9
	csinc	x11, x9, x13, le
	add	x14, x20, x11, lsl #2
	add	x11, x11, x11, lsl #1
	sub	x15, x13, x12
	add	x11, x11, x15
	add	x11, x24, x11, lsl #2
	add	x11, x11, #32
	add	x12, x20, x12
	cmp	x12, x11
	ccmp	x8, x14, #2, lo
	b.lo	LBB0_12
; %bb.9:
	and	x11, x10, #0xfffffffffffffff0
	add	x12, x11, x13
	mov	w14, #12
	madd	x8, x11, x14, x8
	add	x13, x20, x13, lsl #2
	add	x13, x13, #32
	add	x14, x24, #128
	mov	w15, #771
	movk	w15, #3, lsl #16
	dup.4s	v0, w15
	mov	x15, x11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	x16, x14, #96
	sub	x17, x14, #48
	ld3.4s	{ v1, v2, v3 }, [x16]
	ld3.4s	{ v4, v5, v6 }, [x17]
	mov	x16, x14
	ld3.4s	{ v16, v17, v18 }, [x16], #48
	ld3.4s	{ v19, v20, v21 }, [x16]
	shl.4s	v7, v1, #18
	shl.4s	v22, v4, #18
	shl.4s	v23, v16, #18
	shl.4s	v24, v19, #18
	shl.4s	v25, v2, #10
	shl.4s	v26, v5, #10
	shl.4s	v27, v17, #10
	shl.4s	v28, v20, #10
	orr.16b	v7, v25, v7
	orr.16b	v22, v26, v22
	orr.16b	v23, v27, v23
	orr.16b	v24, v28, v24
	shl.4s	v1, v3, #2
	shl.4s	v2, v6, #2
	shl.4s	v3, v18, #2
	shl.4s	v4, v21, #2
	orr.16b	v1, v7, v1
	orr.16b	v2, v22, v2
	orr.16b	v3, v23, v3
	orr.16b	v4, v24, v4
	ushr.4s	v5, v1, #6
	ushr.4s	v6, v2, #6
	ushr.4s	v7, v3, #6
	ushr.4s	v16, v4, #6
	and.16b	v5, v5, v0
	and.16b	v6, v6, v0
	and.16b	v7, v7, v0
	and.16b	v16, v16, v0
	orr.16b	v1, v1, v5
	orr.16b	v2, v2, v6
	orr.16b	v3, v3, v7
	orr.16b	v4, v4, v16
	orr.4s	v1, #255, lsl #24
	orr.4s	v2, #255, lsl #24
	orr.4s	v3, #255, lsl #24
	stp	q1, q2, [x13, #-32]
	orr.4s	v4, #255, lsl #24
	stp	q3, q4, [x13], #64
	add	x14, x14, #192
	subs	x15, x15, #16
	b.ne	LBB0_10
; %bb.11:
	mov	x13, x12
	cmp	x10, x11
	b.eq	LBB0_13
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	w10, w11, [x8]
	lsl	w11, w11, #10
	orr	w10, w11, w10, lsl #18
	ldr	w11, [x8, #8]
	orr	w10, w10, w11, lsl #2
	lsr	w11, w10, #6
	and	w11, w11, #0x3030303
	orr	w10, w10, w11
	orr	w10, w10, #0xff000000
	str	w10, [x20, x13, lsl #2]
	add	x13, x13, #1
	add	x8, x8, #12
	cmp	x13, x9
	b.lt	LBB0_12
LBB0_13:
	ldr	w9, [x8, #4]
	add	x0, x8, #16
	b	LBB0_15
LBB0_14:
	mov	x8, x24
LBB0_15:
Lloh6:
	adrp	x10, _AVS_VIDEO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AVS_VIDEO@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_24
; %bb.16:
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_24
; %bb.17:
	add	x12, x24, x27, lsl #2
	mov	w9, #1
	stur	w9, [x29, #-100]                ; 4-byte Folded Spill
	mov	w23, #3
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_18
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	mov	w28, #3
	br	x10
LBB0_18:
	mov	w28, #3
	mov	w8, #1
	stur	w8, [x29, #-100]                ; 4-byte Folded Spill
	mov	w23, #2
	b	LBB0_20
LBB0_19:
	stur	wzr, [x29, #-100]               ; 4-byte Folded Spill
	mov	w23, #2
	mov	w28, #2
LBB0_20:
	sub	x9, x12, x0
	mul	w8, w23, w28
	lsl	w8, w8, #8
	cmp	x8, x9, asr #2
	b.gt	LBB0_24
; %bb.21:
	add	x24, x0, x8, lsl #2
	mov	w8, #318
	udiv	w8, w8, w23
	add	w8, w8, #7
	lsr	w8, w8, #3
	mov	w9, #198
	udiv	w9, w9, w28
	mul	w20, w8, w9
	sub	x8, x12, x24
	cmp	x20, x8, asr #2
	b.gt	LBB0_24
; %bb.22:
	stp	x0, x12, [sp, #88]              ; 16-byte Folded Spill
	stp	x21, x26, [sp, #8]              ; 16-byte Folded Spill
	lsl	w2, w20, #3
	sub	x0, x29, #88
	mov	x1, x24
	bl	_init_get_bits
	mov	w21, #0
	add	x24, x24, x20, lsl #2
	b	LBB0_26
LBB0_23:
Lloh11:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x22, #24]
	mov	w8, #1
	str	w8, [x22]
	mov	w8, #9216
	sub	x9, x12, x0
	cmp	x9, x8
	b.ge	LBB0_25
LBB0_24:
Lloh14:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
	b	LBB0_46
LBB0_25:
	stp	x0, x12, [sp, #88]              ; 16-byte Folded Spill
	stp	x21, x26, [sp, #8]              ; 16-byte Folded Spill
	mov	w8, #9216
	add	x24, x0, x8
	mov	w23, #3
	mov	w21, #1
	mov	w8, #1
	stur	w8, [x29, #-100]                ; 4-byte Folded Spill
	mov	w28, #3
LBB0_26:
	mov	x20, #0
	mov	w27, #0
	mul	w8, w28, w23
	str	w8, [sp, #84]                   ; 4-byte Folded Spill
	lsl	w8, w23, #1
	mov	w23, w23
	add	x9, x23, #1
	str	x9, [sp, #72]                   ; 8-byte Folded Spill
	orr	x10, x8, #0x1
	add	x9, x23, #2
	stp	x9, x10, [sp, #32]              ; 16-byte Folded Spill
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	add	x8, x8, #2
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	str	w28, [sp, #68]                  ; 4-byte Folded Spill
	mul	w8, w28, w25
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	lsl	w28, w25, #1
LBB0_27:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
	mov	x26, #0
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=2
	add	x24, x24, #4
	add	x26, x23, x26
	cmp	x26, #318
	b.hs	LBB0_40
LBB0_29:                                ;   Parent Loop BB0_27 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tbnz	w21, #0, LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	sub	x0, x29, #88
	bl	_get_bits1
	cbnz	x0, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=2
	add	x26, x26, x23
	cmp	x26, #318
	b.lo	LBB0_29
	b	LBB0_41
LBB0_32:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	sub	x8, x8, x24
	cmp	x8, #3
	b.le	LBB0_24
; %bb.33:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	w8, [x24]
	ldr	w9, [sp, #84]                   ; 4-byte Folded Reload
	mul	w8, w9, w8
	ldr	x9, [sp, #88]                   ; 8-byte Folded Reload
	add	x8, x9, w8, sxtw #2
	ldr	w9, [x8]
	add	w10, w20, w26
	ldur	x12, [x29, #-96]                ; 8-byte Folded Reload
	str	w9, [x12, w10, sxtw #2]
	ldr	w9, [x8, x23, lsl #2]
	mov	x11, x25
	add	w10, w11, w26
	str	w9, [x12, w10, sxtw #2]
	ldur	w13, [x29, #-100]               ; 4-byte Folded Reload
	cbz	w13, LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldr	w9, [x8, x9, lsl #2]
	add	w10, w28, w26
	str	w9, [x12, w10, sxtw #2]
LBB0_35:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	w9, [x8, #4]
	add	w10, w20, w26
	add	w10, w10, #1
	str	w9, [x12, w10, sxtw #2]
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	ldr	w9, [x8, x9, lsl #2]
	add	w10, w11, w26
	add	w10, w10, #1
	str	w9, [x12, w10, sxtw #2]
	cbz	w13, LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w9, [x8, x9, lsl #2]
	add	w10, w28, w26
	add	w10, w10, #1
	str	w9, [x12, w10, sxtw #2]
LBB0_37:                                ;   in Loop: Header=BB0_29 Depth=2
	cmp	w23, #2
	b.eq	LBB0_28
; %bb.38:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	w9, [x8, #8]
	add	w10, w20, w26
	add	w10, w10, #2
	str	w9, [x12, w10, sxtw #2]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w9, [x8, x9, lsl #2]
	add	w10, w11, w26
	add	w10, w10, #2
	str	w9, [x12, w10, sxtw #2]
	cbz	w13, LBB0_28
; %bb.39:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w8, [x8, x9, lsl #2]
	add	w9, w28, w26
	add	w9, w9, #2
	str	w8, [x12, w9, sxtw #2]
	b	LBB0_28
LBB0_40:                                ;   in Loop: Header=BB0_27 Depth=1
	tbnz	w21, #0, LBB0_42
LBB0_41:                                ;   in Loop: Header=BB0_27 Depth=1
	sub	x0, x29, #88
	bl	_align_get_bits
LBB0_42:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	w8, [sp, #68]                   ; 4-byte Folded Reload
	add	w27, w27, w8
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x20, x20, x8
	add	x25, x25, x8
	add	x28, x28, x8
	cmp	w27, #198
	b.lo	LBB0_27
; %bb.43:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x22
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_45
; %bb.44:
	mov	w8, #1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
	b	LBB0_46
LBB0_45:
	mov	x19, x0
LBB0_46:
	mov	x0, x19
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_20-LBB0_18)>>2
	.byte	(LBB0_18-LBB0_18)>>2
	.byte	(LBB0_19-LBB0_18)>>2
	.byte	(LBB0_23-LBB0_18)>>2
                                        ; -- End function
	.comm	_AV_PICTURE_TYPE_P,4,2          ; @AV_PICTURE_TYPE_P
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AVS_PALETTE,4,2                ; @AVS_PALETTE
	.comm	_AVS_VIDEO,4,2                  ; @AVS_VIDEO
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.no_dead_strip	_avs_decode_frame
.subsections_via_symbols
