	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ulti_decode_frame
LCPI0_0:
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ulti_decode_frame:                     ## @ulti_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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -240(%rbp)                ## 8-byte Spill
	movq	%rsi, -248(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rcx), %rbx
	movl	8(%rcx), %r14d
	movq	(%rdi), %r15
	movl	24(%r15), %esi
	movq	%rdi, -224(%rbp)                ## 8-byte Spill
	xorl	%edx, %edx
	callq	_ff_reget_buffer
	testl	%eax, %eax
	js	LBB0_52
## %bb.1:
	leaq	28(%r15), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_bytestream2_init
	cmpl	$0, (%r15)
	jle	LBB0_51
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movl	$0, -148(%rbp)                  ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	movl	$0, -156(%rbp)                  ## 4-byte Folded Spill
	movl	%r14d, -228(%rbp)               ## 4-byte Spill
	movq	%r15, -176(%rbp)                ## 8-byte Spill
	movq	%r12, -144(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-168(%rbp), %rax                ## 8-byte Reload
	incl	%eax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	addl	$8, %r13d
	movq	-184(%rbp), %rdx                ## 8-byte Reload
	leal	8(%rdx), %ecx
	xorl	%eax, %eax
	movq	-176(%rbp), %r15                ## 8-byte Reload
	cmpl	8(%r15), %r13d
	cmovgel	%eax, %r13d
	cmovll	%edx, %ecx
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -184(%rbp)                ## 8-byte Spill
	movl	-228(%rbp), %r14d               ## 4-byte Reload
	movq	-144(%rbp), %r12                ## 8-byte Reload
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ebx
	movq	-168(%rbp), %rax                ## 8-byte Reload
	cmpl	(%r15), %eax
	jge	LBB0_51
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_46 Depth 2
	movq	-184(%rbp), %rax                ## 8-byte Reload
	cmpl	4(%r15), %eax
	jge	LBB0_51
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_bytestream2_get_bytes_left
	testl	%eax, %eax
	jle	LBB0_53
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_bytestream2_get_byteu
	movl	%eax, %ecx
	andl	$248, %eax
	cmpl	$112, %eax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	-112(%rcx), %esi
	cmpl	$4, %esi
	ja	LBB0_40
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rsi,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_bytestream2_get_byte
	cmpl	$2, %eax
	movl	%eax, -156(%rbp)                ## 4-byte Spill
	jl	LBB0_50
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ecx
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-224(%rbp), %rdi                ## 8-byte Reload
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	orl	-148(%rbp), %ebx                ## 4-byte Folded Reload
	setne	-129(%rbp)                      ## 1-byte Folded Spill
	movl	$0, %eax
	movq	%rcx, %r14
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, %eax
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_bytestream2_get_byte
                                        ## kill: def $eax killed $eax def $rax
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movl	$6, %r15d
	xorl	%r12d, %r12d
	movq	%r13, -208(%rbp)                ## 8-byte Spill
	movq	%r14, -200(%rbp)                ## 8-byte Spill
	jmp	LBB0_22
LBB0_16:                                ##   in Loop: Header=BB0_22 Depth=2
	movl	%eax, -56(%rbp)
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_22 Depth=2
	movl	%eax, -52(%rbp)
LBB0_18:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movl	24(%rax), %edi
	movl	%r14d, %esi
	movl	%r13d, %edx
	leaq	-64(%rbp), %rcx
	movq	-192(%rbp), %r8                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movq	%r9, -216(%rbp)                 ## 8-byte Spill
LBB0_19:                                ##   in Loop: Header=BB0_22 Depth=2
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_ulti_grad
LBB0_20:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	-208(%rbp), %r13                ## 8-byte Reload
	movq	-200(%rbp), %r14                ## 8-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_22 Depth=2
	incq	%r12
	addl	$-2, %r15d
	cmpq	$4, %r12
	je	LBB0_3
LBB0_22:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %ebx
	movl	%r15d, %ecx
	sarl	%cl, %ebx
	andl	$3, %ebx
	je	LBB0_21
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	cmpb	$0, -129(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	callq	_bytestream2_get_byte
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
LBB0_25:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	_block_coords@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,8), %r14d
	addl	%r13d, %r14d
	movl	4(%rax,%r12,8), %r13d
	addl	-184(%rbp), %r13d               ## 4-byte Folded Reload
	cmpl	$3, %ebx
	je	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_22 Depth=2
	cmpl	$2, %ebx
	je	LBB0_33
## %bb.27:                              ##   in Loop: Header=BB0_22 Depth=2
	cmpl	$1, %ebx
	movq	-216(%rbp), %r9                 ## 8-byte Reload
	jne	LBB0_18
## %bb.28:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	callq	_bytestream2_get_byte
                                        ## kill: def $eax killed $eax def $rax
	movq	_angle_by_index@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %edx
	shrl	$6, %edx
	andl	$3, %edx
	movl	(%rcx,%rdx,4), %r9d
	andl	$63, %eax
	movl	%eax, -64(%rbp)
	movl	%eax, -60(%rbp)
	testl	%r9d, %r9d
	je	LBB0_16
## %bb.29:                              ##   in Loop: Header=BB0_22 Depth=2
	leal	1(%rax), %ecx
	cmpl	$63, %eax
	cmovel	%eax, %ecx
	movl	%ecx, -56(%rbp)
	movl	%ecx, %eax
	jmp	LBB0_17
LBB0_30:                                ##   in Loop: Header=BB0_22 Depth=2
	cmpl	$0, -156(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_35
## %bb.31:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$11, %eax
	jle	LBB0_53
## %bb.32:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	%rbx, %rdi
	callq	_bytestream2_get_be24u
	movl	%eax, %ecx
	shrl	$18, %ecx
	movl	%eax, %edx
	shrl	$12, %edx
	movl	%eax, %esi
	shrl	$6, %esi
	movd	%ecx, %xmm0
	pinsrd	$1, %edx, %xmm0
	pinsrd	$2, %esi, %xmm0
	pinsrd	$3, %eax, %xmm0
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [63,63,63,63]
	pand	%xmm1, %xmm0
	movdqa	%xmm0, -128(%rbp)
	movq	%rbx, %rdi
	callq	_bytestream2_get_be24u
	movl	%eax, %ecx
	shrl	$18, %ecx
	movl	%eax, %edx
	shrl	$12, %edx
	movl	%eax, %esi
	shrl	$6, %esi
	movd	%ecx, %xmm0
	pinsrd	$1, %edx, %xmm0
	pinsrd	$2, %esi, %xmm0
	pinsrd	$3, %eax, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	movdqa	%xmm0, -112(%rbp)
	movq	%rbx, %rdi
	callq	_bytestream2_get_be24u
	movl	%eax, %ecx
	shrl	$18, %ecx
	movl	%eax, %edx
	shrl	$12, %edx
	movl	%eax, %esi
	shrl	$6, %esi
	movd	%ecx, %xmm0
	pinsrd	$1, %edx, %xmm0
	pinsrd	$2, %esi, %xmm0
	pinsrd	$3, %eax, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	movdqa	%xmm0, -96(%rbp)
	movq	%rbx, %rdi
	callq	_bytestream2_get_be24u
	movl	%eax, %ecx
	shrl	$18, %ecx
	movl	%eax, %edx
	shrl	$12, %edx
	movl	%eax, %esi
	shrl	$6, %esi
	movd	%ecx, %xmm0
	pinsrd	$1, %edx, %xmm0
	pinsrd	$2, %esi, %xmm0
	pinsrd	$3, %eax, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	movdqa	%xmm0, -80(%rbp)
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movl	24(%rax), %edi
	movl	%r14d, %esi
	movl	%r13d, %edx
	leaq	-128(%rbp), %rcx
	movq	-192(%rbp), %r8                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_ulti_convert_yuv
	jmp	LBB0_20
LBB0_33:                                ##   in Loop: Header=BB0_22 Depth=2
	cmpl	$0, -156(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_38
## %bb.34:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	callq	_bytestream2_get_be24
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	shrl	$18, %ecx
	andl	$63, %ecx
	movl	%ecx, -64(%rbp)
	movl	%eax, %ecx
	shrl	$12, %ecx
	andl	$63, %ecx
	movl	%ecx, -60(%rbp)
	movl	%eax, %ecx
	shrl	$6, %ecx
	andl	$63, %ecx
	movl	%ecx, -56(%rbp)
	andl	$63, %eax
	movl	$16, %r9d
	jmp	LBB0_17
LBB0_35:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$4, %eax
	jl	LBB0_53
## %bb.36:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	%rbx, %rdi
	callq	_bytestream2_get_byteu
	testb	$-128, %al
	jne	LBB0_39
## %bb.37:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	%rbx, %rdi
	movl	%eax, -152(%rbp)                ## 4-byte Spill
	callq	_bytestream2_get_byteu
	movl	%eax, -232(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_bytestream2_get_byteu
	andl	$63, %eax
	movl	%eax, -64(%rbp)
	movq	%rbx, %rdi
	callq	_bytestream2_get_byteu
                                        ## kill: def $eax killed $eax def $rax
	andl	$63, %eax
	movl	%eax, -60(%rbp)
	movq	-176(%rbp), %rcx                ## 8-byte Reload
	movl	24(%rcx), %edi
	movl	-64(%rbp), %r9d
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	-152(%rbp), %ecx                ## 4-byte Reload
	movl	-232(%rbp), %r8d                ## 4-byte Reload
	pushq	-192(%rbp)                      ## 8-byte Folded Reload
	pushq	%rax
	callq	_ulti_pattern
	addq	$16, %rsp
	jmp	LBB0_20
LBB0_38:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	callq	_bytestream2_get_be16
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %r9d
	shrl	$12, %r9d
	andl	$15, %r9d
	shll	$2, %eax
	andl	$16380, %eax                    ## imm = 0x3FFC
	movq	-176(%rbp), %rcx                ## 8-byte Reload
	movq	16(%rcx), %rcx
	movl	(%rcx,%rax,4), %edx
	movl	%edx, -64(%rbp)
	leal	1(%rax), %edx
	movl	(%rcx,%rdx,4), %edx
	movl	%edx, -60(%rbp)
	leal	2(%rax), %edx
	movl	(%rcx,%rdx,4), %edx
	movl	%edx, -56(%rbp)
	orl	$3, %eax
	movl	(%rcx,%rax,4), %eax
	jmp	LBB0_17
LBB0_39:                                ##   in Loop: Header=BB0_22 Depth=2
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$7, %ecx
	movq	%rcx, -216(%rbp)                ## 8-byte Spill
	shll	$8, %eax
	movl	%eax, -152(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_bytestream2_get_byteu
	addl	-152(%rbp), %eax                ## 4-byte Folded Reload
	movl	%eax, %ecx
	shrl	$6, %ecx
	andl	$63, %ecx
	movl	%ecx, -64(%rbp)
	andl	$63, %eax
	movl	%eax, -60(%rbp)
	movq	%rbx, %rdi
	callq	_bytestream2_get_byteu
	andl	$63, %eax
	movl	%eax, -56(%rbp)
	movq	%rbx, %rdi
	callq	_bytestream2_get_byteu
	andl	$63, %eax
	movl	%eax, -52(%rbp)
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movl	24(%rax), %edi
	movl	%r14d, %esi
	movl	%r13d, %edx
	leaq	-64(%rbp), %rcx
	movq	-192(%rbp), %r8                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movq	-216(%rbp), %r9                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_40:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-224(%rbp), %rdi                ## 8-byte Reload
	leaq	L_.str.1(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
LBB0_41:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_av_log
	movl	%ebx, %eax
	jmp	LBB0_4
LBB0_42:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	cmpl	$0, -148(%rbp)                  ## 4-byte Folded Reload
	sete	%al
	movl	%eax, -148(%rbp)                ## 4-byte Spill
	movl	%ebx, %eax
	jmp	LBB0_4
LBB0_43:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_bytestream2_get_byte
                                        ## kill: def $eax killed $eax def $rax
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	addl	%eax, %ecx
	cmpl	(%r15), %ecx
	jge	LBB0_50
## %bb.44:                              ##   in Loop: Header=BB0_5 Depth=1
	leal	(%r13,%rax,8), %r13d
	movl	8(%r15), %eax
	cmpl	%eax, %r13d
	jl	LBB0_48
## %bb.45:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-184(%rbp), %rdx                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_46:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	subl	%eax, %r13d
	addl	$8, %edx
	cmpl	%eax, %r13d
	jge	LBB0_46
## %bb.47:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
LBB0_48:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, %eax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
LBB0_50:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %eax
	jmp	LBB0_4
LBB0_51:
	movq	-240(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	movl	24(%r15), %esi
	movq	-248(%rbp), %rdi                ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	cmovsl	%eax, %r14d
	jmp	LBB0_54
LBB0_52:
	movl	%eax, %r14d
	jmp	LBB0_54
LBB0_53:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-224(%rbp), %rdi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_54:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_56
## %bb.55:
	movl	%r14d, %eax
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_56:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
.set L0_0_set_51, LBB0_51-LJTI0_0
.set L0_0_set_43, LBB0_43-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_4
	.long	L0_0_set_42
	.long	L0_0_set_51
	.long	L0_0_set_43
	.end_data_region
                                        ## -- End function
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning: modifier must be 0 or 1, got %i\n"

L_.str.1:                               ## @.str.1
	.asciz	"warning: unknown escape 0x%02X\n"

	.comm	_block_coords,8,3               ## @block_coords
	.comm	_angle_by_index,8,3             ## @angle_by_index
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Insufficient data\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_ulti_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ulti_decode_frame
lCPI0_0:
	.long	4294967278                      ; 0xffffffee
	.long	4294967284                      ; 0xfffffff4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ulti_decode_frame:                     ; @ulti_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	d9, d8, [sp, #192]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-112]
	ldr	x21, [x3]
	ldr	w20, [x3, #8]
	ldr	x26, [x0]
	ldr	w1, [x26, #24]
	mov	w2, #0
	bl	_ff_reget_buffer
	tbnz	w0, #31, LBB0_50
; %bb.1:
	stp	x23, x22, [sp, #8]              ; 16-byte Folded Spill
	str	x19, [sp, #32]                  ; 8-byte Folded Spill
	add	x22, x26, #28
	mov	x0, x22
	mov	x1, x21
	str	w20, [sp, #28]                  ; 4-byte Folded Spill
	mov	x2, x20
	bl	_bytestream2_init
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_48
; %bb.2:
	mov	w21, #0
	mov	w24, #0
	mov	w20, #0
	str	wzr, [sp, #48]                  ; 4-byte Folded Spill
	mov	w19, #0
	mov	w28, #0
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	movi.2s	v9, #63
	stp	x26, x22, [sp, #72]             ; 16-byte Folded Spill
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #0
	ldr	w20, [sp, #52]                  ; 4-byte Folded Reload
	add	w20, w20, #1
	add	w9, w21, #8
	ldp	x26, x22, [sp, #72]             ; 16-byte Folded Reload
	ldr	w10, [x26, #8]
	add	w11, w24, #8
	cmp	w9, w10
	csel	w21, w9, wzr, lt
	csel	w24, w24, w11, lt
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x26]
	mov	x19, x8
	cmp	w20, w9
	b.ge	LBB0_48
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
                                        ;     Child Loop BB0_45 Depth 2
	ldr	w8, [x26, #4]
	cmp	w24, w8
	b.ge	LBB0_48
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_bytestream2_get_bytes_left
	cmp	w0, #1
	b.lt	LBB0_49
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_bytestream2_get_byteu
	mov	x27, x0
	and	w8, w0, #0xf8
	cmp	w8, #112
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w9, w27, #112
	cmp	w9, #4
	b.hi	LBB0_40
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #1
Lloh5:
	adrp	x12, lJTI0_0@PAGE
Lloh6:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrh	w11, [x12, x9, lsl #1]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_bytestream2_get_byte
	mov	x28, x0
	cmp	w0, #2
	b.lt	LBB0_47
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh7:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	str	x28, [sp]
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_41
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [sp, #92]                  ; 4-byte Folded Spill
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	orr	w8, w8, w19
	cmp	w8, #0
	cset	w9, ne
	str	w9, [sp, #68]                   ; 4-byte Folded Spill
	str	w20, [sp, #52]                  ; 4-byte Folded Spill
	cbnz	w8, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	w27, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	bl	_bytestream2_get_byte
	str	w0, [sp, #92]                   ; 4-byte Folded Spill
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x19, #0
	mov	w26, #0
	mov	w20, #6
	str	x28, [sp, #56]                  ; 8-byte Folded Spill
	b	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_21 Depth=2
	stur	w8, [x29, #-120]
LBB0_17:                                ;   in Loop: Header=BB0_21 Depth=2
	stur	w8, [x29, #-116]
LBB0_18:                                ;   in Loop: Header=BB0_21 Depth=2
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	ldr	w0, [x8, #24]
	sub	x3, x29, #128
	mov	x1, x21
	mov	x2, x24
	ldr	w4, [sp, #92]                   ; 4-byte Folded Reload
	mov	x5, x26
	bl	_ulti_grad
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=2
	mov	x24, x23
	mov	x21, x25
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=2
	sub	w20, w20, #2
	add	x19, x19, #8
	cmp	x19, #32
	b.eq	LBB0_3
LBB0_21:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	asr	w8, w27, w20
	ands	w22, w8, #0x3
	b.eq	LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	w8, [sp, #68]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	bl	_bytestream2_get_byte
	str	w0, [sp, #92]                   ; 4-byte Folded Spill
LBB0_24:                                ;   in Loop: Header=BB0_21 Depth=2
Lloh12:
	adrp	x8, _block_coords@GOTPAGE
Lloh13:
	ldr	x8, [x8, _block_coords@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x8, x8, x19
	ldp	w9, w8, [x8]
	mov	x25, x21
	add	w21, w9, w21
	mov	x23, x24
	add	w24, w8, w24
	cmp	w22, #3
	b.eq	LBB0_29
; %bb.25:                               ;   in Loop: Header=BB0_21 Depth=2
	cmp	w22, #2
	b.eq	LBB0_32
; %bb.26:                               ;   in Loop: Header=BB0_21 Depth=2
	cmp	w22, #1
	b.ne	LBB0_18
; %bb.27:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	bl	_bytestream2_get_byte
Lloh15:
	adrp	x8, _angle_by_index@GOTPAGE
Lloh16:
	ldr	x8, [x8, _angle_by_index@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ubfx	w9, w0, #6, #2
	ldr	w26, [x8, w9, uxtw #2]
	and	w8, w0, #0x3f
	stp	w8, w8, [x29, #-128]
	cbz	w26, LBB0_16
; %bb.28:                               ;   in Loop: Header=BB0_21 Depth=2
	cmp	w8, #63
	cinc	w8, w8, ne
	b	LBB0_16
LBB0_29:                                ;   in Loop: Header=BB0_21 Depth=2
	cbz	w28, LBB0_34
; %bb.30:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	x22, [sp, #80]                  ; 8-byte Folded Reload
	mov	x0, x22
	bl	_bytestream2_get_bytes_left
	cmp	w0, #11
	b.le	LBB0_49
; %bb.31:                               ;   in Loop: Header=BB0_21 Depth=2
	mov	x0, x22
	bl	_bytestream2_get_be24u
	dup.2s	v0, w0
	ushl.2s	v0, v0, v8
	and.8b	v0, v0, v9
	str	d0, [sp, #96]
	ubfx	w8, w0, #6, #6
	and	w9, w0, #0x3f
	stp	w8, w9, [sp, #104]
	mov	x0, x22
	bl	_bytestream2_get_be24u
	dup.2s	v0, w0
	ushl.2s	v0, v0, v8
	and.8b	v0, v0, v9
	str	d0, [sp, #112]
	ubfx	w8, w0, #6, #6
	and	w9, w0, #0x3f
	stp	w8, w9, [sp, #120]
	mov	x0, x22
	bl	_bytestream2_get_be24u
	dup.2s	v0, w0
	ushl.2s	v0, v0, v8
	and.8b	v0, v0, v9
	str	d0, [sp, #128]
	ubfx	w8, w0, #6, #6
	and	w9, w0, #0x3f
	stp	w8, w9, [sp, #136]
	mov	x0, x22
	bl	_bytestream2_get_be24u
	dup.2s	v0, w0
	ushl.2s	v0, v0, v8
	and.8b	v0, v0, v9
	str	d0, [sp, #144]
	ubfx	w8, w0, #6, #6
	and	w9, w0, #0x3f
	stp	w8, w9, [sp, #152]
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	ldr	w0, [x8, #24]
	add	x3, sp, #96
	mov	x1, x21
	mov	x2, x24
	ldr	w4, [sp, #92]                   ; 4-byte Folded Reload
	bl	_ulti_convert_yuv
	b	LBB0_19
LBB0_32:                                ;   in Loop: Header=BB0_21 Depth=2
	cbz	w28, LBB0_37
; %bb.33:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	bl	_bytestream2_get_be24
	dup.2s	v0, w0
	ushl.2s	v0, v0, v8
	and.8b	v0, v0, v9
	stur	d0, [x29, #-128]
	ubfx	w8, w0, #6, #6
	stur	w8, [x29, #-120]
	and	w8, w0, #0x3f
	mov	w26, #16
	b	LBB0_17
LBB0_34:                                ;   in Loop: Header=BB0_21 Depth=2
	ldr	x28, [sp, #80]                  ; 8-byte Folded Reload
	mov	x0, x28
	bl	_bytestream2_get_bytes_left
	cmp	w0, #4
	b.lt	LBB0_49
; %bb.35:                               ;   in Loop: Header=BB0_21 Depth=2
	mov	x0, x28
	bl	_bytestream2_get_byteu
	mov	x22, x0
	tbnz	w0, #7, LBB0_38
; %bb.36:                               ;   in Loop: Header=BB0_21 Depth=2
	mov	x0, x28
	bl	_bytestream2_get_byteu
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	mov	x0, x28
	bl	_bytestream2_get_byteu
	and	w8, w0, #0x3f
	stur	w8, [x29, #-128]
	mov	x0, x28
	bl	_bytestream2_get_byteu
	and	w6, w0, #0x3f
	stur	w6, [x29, #-124]
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	ldr	w0, [x8, #24]
	ldur	w5, [x29, #-128]
	mov	x1, x21
	mov	x2, x24
	mov	x3, x22
	ldr	w4, [sp, #44]                   ; 4-byte Folded Reload
	ldr	w7, [sp, #92]                   ; 4-byte Folded Reload
	bl	_ulti_pattern
	b	LBB0_39
LBB0_37:                                ;   in Loop: Header=BB0_21 Depth=2
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	bl	_bytestream2_get_be16
	ubfiz	w8, w0, #2, #12
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	ldr	x9, [x9, #16]
	ldr	w8, [x9, w8, uxtw #2]
	stur	w8, [x29, #-128]
	mov	w8, #1
	bfi	w8, w0, #2, #12
	ldr	w8, [x9, w8, uxtw #2]
	stur	w8, [x29, #-124]
	mov	w8, #2
	bfi	w8, w0, #2, #12
	ldr	w8, [x9, w8, uxtw #2]
	ubfx	w26, w0, #12, #4
	stur	w8, [x29, #-120]
	mov	w8, #3
	bfi	w8, w0, #2, #12
	ldr	w8, [x9, w8, uxtw #2]
	b	LBB0_17
LBB0_38:                                ;   in Loop: Header=BB0_21 Depth=2
	ubfx	w26, w22, #4, #3
	mov	x0, x28
	bl	_bytestream2_get_byteu
	add	w8, w0, w22, lsl #8
	ubfx	w9, w8, #6, #6
	and	w8, w8, #0x3f
	stp	w9, w8, [x29, #-128]
	mov	x0, x28
	bl	_bytestream2_get_byteu
	and	w8, w0, #0x3f
	stur	w8, [x29, #-120]
	mov	x0, x28
	bl	_bytestream2_get_byteu
	and	w8, w0, #0x3f
	stur	w8, [x29, #-116]
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	ldr	w0, [x8, #24]
	sub	x3, x29, #128
	mov	x1, x21
	mov	x2, x24
	ldr	w4, [sp, #92]                   ; 4-byte Folded Reload
	mov	x5, x26
	bl	_ulti_grad
LBB0_39:                                ;   in Loop: Header=BB0_21 Depth=2
	mov	x24, x23
	mov	x21, x25
	ldr	x28, [sp, #56]                  ; 8-byte Folded Reload
	b	LBB0_20
LBB0_40:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh18:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	str	x27, [sp]
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_41:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_av_log
	mov	x8, x19
	b	LBB0_4
LBB0_42:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	cmp	w8, #0
	cset	w8, eq
	str	w8, [sp, #48]                   ; 4-byte Folded Spill
	mov	x8, x19
	b	LBB0_4
LBB0_43:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_bytestream2_get_byte
	ldr	w9, [x26]
	add	w8, w0, w20
	cmp	w8, w9
	b.ge	LBB0_47
; %bb.44:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, w0, lsl #3
	ldr	w9, [x26, #8]
	cmp	w21, w9
	b.lt	LBB0_46
LBB0_45:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w24, w24, #8
	sub	w21, w21, w9
	cmp	w21, w9
	b.ge	LBB0_45
LBB0_46:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x8
LBB0_47:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x19
	b	LBB0_4
LBB0_48:
	mov	w8, #1
	ldp	x9, x0, [sp, #8]                ; 16-byte Folded Reload
	str	w8, [x9]
	ldr	w1, [x26, #24]
	bl	_av_frame_ref
	cmp	w0, #0
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	csel	w0, w0, w8, lt
	b	LBB0_50
LBB0_49:
Lloh23:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str.2@PAGE
Lloh27:
	add	x2, x2, l_.str.2@PAGEOFF
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_av_log
Lloh28:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
LBB0_50:
	ldur	x8, [x29, #-112]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_52
; %bb.51:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #192]              ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_52:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_10-LBB0_4)>>2
	.short	(LBB0_4-LBB0_4)>>2
	.short	(LBB0_42-LBB0_4)>>2
	.short	(LBB0_48-LBB0_4)>>2
	.short	(LBB0_43-LBB0_4)>>2
                                        ; -- End function
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning: modifier must be 0 or 1, got %i\n"

l_.str.1:                               ; @.str.1
	.asciz	"warning: unknown escape 0x%02X\n"

	.comm	_block_coords,8,3               ; @block_coords
	.comm	_angle_by_index,8,3             ; @angle_by_index
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Insufficient data\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_ulti_decode_frame
.subsections_via_symbols
