	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fic_decode_frame
_fic_decode_frame:                      ## @fic_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	(%rcx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	(%r12), %r14d
	movq	32(%r12), %rsi
	xorl	%edx, %edx
	callq	_ff_reget_buffer
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_FIC_HEADER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$4, %eax
	cmpl	%eax, 8(%r13)
	jge	LBB0_7
## %bb.2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_3:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_4:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_6
LBB0_7:
	movq	_fic_header@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	$7, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_9:
	cmpl	$0, 68(%r15)
	je	LBB0_13
## %bb.10:
	cmpq	$0, 16(%r12)
	je	LBB0_16
LBB0_11:
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	movq	16(%r12), %rsi
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_5
## %bb.12:
	movl	8(%r13), %r15d
	jmp	LBB0_6
LBB0_13:
	movslq	52(%r15), %rcx
	movq	%rcx, %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.14:
	cmpl	$0, 92(%r15)
	jne	LBB0_19
## %bb.15:
	movq	_fic_qmat_lq@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_16:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_3
LBB0_18:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_3
LBB0_19:
	movq	_fic_qmat_hq@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	movl	%eax, 52(%r12)
	leaq	96(%r15), %rdi
	callq	_AV_RB24
	movl	%eax, %ecx
	movl	8(%r13), %r8d
	movq	_FIC_HEADER_SIZE@GOTPCREL(%rip), %rax
	subl	(%rax), %r8d
	cmpl	%r8d, %ecx
	jle	LBB0_22
## %bb.21:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_4
LBB0_22:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_28
## %bb.23:
	leaq	148(%r15), %rdi
	callq	_AV_RL16
	testl	%eax, %eax
	je	LBB0_28
## %bb.24:
	leaq	156(%r15), %rdi
	callq	_AV_RL16
	testl	%eax, %eax
	je	LBB0_28
## %bb.25:
	testl	%r14d, %r14d
	jne	LBB0_29
## %bb.26:
	cmpl	$31, -44(%rbp)                  ## 4-byte Folded Reload
	jg	LBB0_29
## %bb.27:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_28:
	movl	$1, %r14d
LBB0_29:
	leaq	132(%r15), %rdi
	callq	_AV_RL16
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	140(%r15), %rdi
	callq	_AV_RL16
	movl	%r14d, %edx
	movl	%eax, %r14d
	testl	%edx, %edx
	jne	LBB0_38
## %bb.30:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	(%rbx), %eax
	jg	LBB0_32
## %bb.31:
	cmpl	4(%rbx), %r14d
	jle	LBB0_33
LBB0_32:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%rbx, %rdi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_37
LBB0_33:
	leaq	148(%r15), %rdi
	callq	_AV_RL16
	cmpl	$32, %eax
	jne	LBB0_36
## %bb.34:
	leaq	156(%r15), %rdi
	callq	_AV_RL16
	cmpl	$32, %eax
	jne	LBB0_36
## %bb.35:
	movslq	8(%r13), %rax
	movq	_CURSOR_OFFSET@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	$4, %rcx
	xorl	%edx, %edx
	cmpq	%rax, %rcx
	seta	%dl
	jmp	LBB0_38
LBB0_36:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_37:
	movl	$1, %edx
LBB0_38:
	movl	%r14d, -92(%rbp)                ## 4-byte Spill
	movl	%edx, -96(%rbp)                 ## 4-byte Spill
	movl	8(%r12), %ecx
	movl	%ecx, %eax
	andl	$-16, %eax
	cltd
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	idivl	%r15d
	movl	%eax, 4(%r12)
	testb	$15, %al
	je	LBB0_40
## %bb.39:
	addl	$-16, %eax
	movl	%eax, %edi
	movl	$16, %esi
	callq	_FFALIGN
	movl	%eax, 4(%r12)
	movl	8(%r12), %ecx
LBB0_40:
	movq	_FIC_HEADER_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %r8
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rax
	movl	8(%r13), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addl	%esi, %eax
	addl	%r8d, %eax
	subl	%eax, %edi
	movl	12(%r12), %eax
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	imull	%edx, %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %edi
	jle	LBB0_51
## %bb.41:
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	leaq	40(%r12), %r14
	leaq	48(%r12), %rsi
                                        ## kill: def $r15d killed $r15d killed $r15
	shll	$5, %r15d
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_av_fast_malloc
	cmpl	$0, 48(%r12)
	je	LBB0_57
## %bb.42:
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	(%r14), %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_52
## %bb.43:
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r13
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%r13, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rdx
	shlq	$4, %rdx
	addq	%rax, %rdx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	leal	-1(%rcx), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$8, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_45
LBB0_44:                                ##   in Loop: Header=BB0_45 Depth=1
	incq	%r15
	addq	$16, %r13
	addq	$16, %r14
	cmpq	%r15, -72(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_52
LBB0_45:                                ## =>This Inner Loop Header: Depth=1
	movq	_FIC_HEADER_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	callq	_AV_RB32
	movl	%eax, %edx
	movl	4(%r12), %ebx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%r15, %rcx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_47
## %bb.46:                              ##   in Loop: Header=BB0_45 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %edi
	movl	%ebx, %eax
	imull	%ecx, %eax
	subl	%eax, %edi
	movl	$16, %esi
	callq	_FFALIGN
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_48
LBB0_47:                                ##   in Loop: Header=BB0_45 Depth=1
	movq	_FIC_HEADER_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	16(,%rax,4), %rdi
	addq	%r13, %rdi
	callq	_AV_RB32
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %ecx
	movl	%ebx, %eax
	cmpl	%esi, %ecx
	jb	LBB0_4
LBB0_48:                                ##   in Loop: Header=BB0_45 Depth=1
	movl	%ecx, %edx
	subl	%esi, %edx
	jb	LBB0_44
## %bb.49:                              ##   in Loop: Header=BB0_45 Depth=1
	cmpl	-60(%rbp), %ecx                 ## 4-byte Folded Reload
	ja	LBB0_44
## %bb.50:                              ##   in Loop: Header=BB0_45 Depth=1
	imull	%r15d, %ebx
	movl	%esi, %ecx
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	leaq	(%rsi,%rcx,4), %rcx
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	(%rsi), %rsi
	movq	%rcx, -16(%rsi,%r14,2)
	movl	%edx, -8(%rsi,%r14,2)
	movl	%eax, -4(%rsi,%r14,2)
	movl	%ebx, (%rsi,%r14,2)
	jmp	LBB0_44
LBB0_51:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
	jmp	LBB0_3
LBB0_52:
	movq	_fic_decode_slice@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx), %rdx
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	$32, %r9d
	callq	*8(%r14)
	testl	%eax, %eax
	js	LBB0_5
## %bb.53:
	movq	32(%r12), %rax
	movl	$1, (%rax)
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_60
## %bb.54:
	movq	(%rbx), %rcx
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	shlq	$5, %rdx
	xorl	%esi, %esi
LBB0_55:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%rcx,%rsi)
	jne	LBB0_59
## %bb.56:                              ##   in Loop: Header=BB0_55 Depth=1
	addq	$32, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_55
	jmp	LBB0_60
LBB0_5:
	movl	%eax, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_57:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.9(%rip), %rdx
	movq	%rbx, %rdi
	jmp	LBB0_65
LBB0_59:
	movl	$0, (%rax)
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
LBB0_60:
	leaq	16(%r12), %rdi
	callq	_av_frame_free
	movq	32(%r12), %rdi
	callq	_av_frame_clone
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	movq	-120(%rbp), %r13                ## 8-byte Reload
	je	LBB0_64
## %bb.61:
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ff_reget_buffer
	testl	%eax, %eax
	js	LBB0_66
## %bb.62:
	cmpl	$0, -96(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_11
## %bb.63:
	movl	24(%r12), %edi
	movq	_CURSOR_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	callq	_fic_draw_cursor
	jmp	LBB0_11
LBB0_64:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.10(%rip), %rdx
	movq	%r14, %rdi
LBB0_65:
	xorl	%eax, %eax
	callq	_av_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_66:
	movl	%eax, %r15d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.11(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_FIC_HEADER_SIZE,4,2            ## @FIC_HEADER_SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Frame data is too small.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_fic_header,4,2                 ## @fic_header
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Invalid FIC Header.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Initial frame is skipped\n"

L_.str.3:                               ## @.str.3
	.asciz	"Zero slices found.\n"

	.comm	_fic_qmat_hq,4,2                ## @fic_qmat_hq
	.comm	_fic_qmat_lq,4,2                ## @fic_qmat_lq
L_.str.4:                               ## @.str.4
	.asciz	"Packet is too small to contain cursor (%d vs %d bytes).\n"

L_.str.5:                               ## @.str.5
	.asciz	"Cursor data too small. Skipping cursor.\n"

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.6:                               ## @.str.6
	.asciz	"Invalid cursor position: (%d,%d). Skipping cursor.\n"

L_.str.7:                               ## @.str.7
	.asciz	"Invalid cursor size. Skipping cursor.\n"

	.comm	_CURSOR_OFFSET,4,2              ## @CURSOR_OFFSET
L_.str.8:                               ## @.str.8
	.asciz	"Not enough frame data to decode.\n"

L_.str.9:                               ## @.str.9
	.asciz	"Could not allocate slice data.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_fic_decode_slice,4,2           ## @fic_decode_slice
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ## @AV_PICTURE_TYPE_P
L_.str.10:                              ## @.str.10
	.asciz	"Could not clone frame buffer.\n"

L_.str.11:                              ## @.str.11
	.asciz	"Could not make frame writable.\n"

	.no_dead_strip	_fic_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fic_decode_frame
_fic_decode_frame:                      ; @fic_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	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x25, [x0, #16]
	ldr	x23, [x3]
	ldr	w26, [x25]
	ldr	x1, [x25, #32]
	mov	w2, #0
	bl	_ff_reget_buffer
	tbnz	w0, #31, LBB0_51
; %bb.1:
	ldr	w8, [x20, #8]
Lloh0:
	adrp	x24, _FIC_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FIC_HEADER_SIZE@GOTPAGEOFF]
	ldr	w9, [x24]
	add	w9, w9, #4
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_av_log
LBB0_4:
Lloh7:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh9:
	ldr	w27, [x8]
	b	LBB0_52
LBB0_5:
Lloh10:
	adrp	x8, _fic_header@GOTPAGE
Lloh11:
	ldr	x8, [x8, _fic_header@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x23
	mov	w2, #7
	bl	_memcmp
	cbz	x0, LBB0_7
; %bb.6:
Lloh13:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_7:
	ldr	w8, [x23, #68]
	cbz	w8, LBB0_11
; %bb.8:
	ldr	x8, [x25, #16]
	cbz	x8, LBB0_14
LBB0_9:
	mov	w8, #1
	str	w8, [x22]
	ldr	x1, [x25, #16]
	mov	x0, x21
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_51
; %bb.10:
	ldr	w27, [x20, #8]
	b	LBB0_52
LBB0_11:
	ldrsw	x27, [x23, #52]
	cbz	w27, LBB0_15
; %bb.12:
Lloh18:
	adrp	x8, _fic_qmat_hq@GOTPAGE
Lloh19:
	ldr	x8, [x8, _fic_qmat_hq@GOTPAGEOFF]
Lloh20:
	adrp	x9, _fic_qmat_lq@GOTPAGE
Lloh21:
	ldr	x9, [x9, _fic_qmat_lq@GOTPAGEOFF]
	ldr	w10, [x23, #92]
	cmp	w10, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x25, #52]
	add	x0, x23, #96
	bl	_AV_RB24
	mov	x28, x0
	ldr	w8, [x20, #8]
	ldr	w9, [x24]
	sub	w8, w8, w9
	cmp	w0, w8
	b.le	LBB0_16
; %bb.13:
Lloh22:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x9]
	stp	x28, x8, [sp]
Lloh25:
	adrp	x2, l_.str.4@PAGE
Lloh26:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_14:
Lloh27:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.2@PAGE
Lloh31:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_15:
Lloh32:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x2, l_.str.3@PAGE
Lloh36:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_16:
	and	x8, x27, #0xffffffff
	str	x8, [sp, #96]                   ; 8-byte Folded Spill
	cbz	w28, LBB0_22
; %bb.17:
	add	x0, x23, #148
	bl	_AV_RL16
	cbz	w0, LBB0_22
; %bb.18:
	add	x0, x23, #156
	bl	_AV_RL16
	cbz	w0, LBB0_22
; %bb.19:
	cbnz	w26, LBB0_23
; %bb.20:
	cmp	w28, #31
	b.gt	LBB0_23
; %bb.21:
Lloh37:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x2, l_.str.5@PAGE
Lloh41:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_22:
	mov	w26, #1
LBB0_23:
	add	x0, x23, #132
	bl	_AV_RL16
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	add	x0, x23, #140
	bl	_AV_RL16
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	cbnz	w26, LBB0_32
; %bb.24:
	ldr	w8, [x19]
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	cmp	w9, w8
	b.gt	LBB0_26
; %bb.25:
	ldr	w8, [x19, #4]
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	cmp	w9, w8
	b.le	LBB0_27
LBB0_26:
Lloh42:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	stp	x8, x9, [sp]
Lloh45:
	adrp	x2, l_.str.6@PAGE
Lloh46:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_31
LBB0_27:
	add	x0, x23, #148
	bl	_AV_RL16
	cmp	w0, #32
	b.ne	LBB0_30
; %bb.28:
	add	x0, x23, #156
	bl	_AV_RL16
	cmp	w0, #32
	b.ne	LBB0_30
; %bb.29:
	ldrsw	x8, [x20, #8]
Lloh47:
	adrp	x9, _CURSOR_OFFSET@GOTPAGE
Lloh48:
	ldr	x9, [x9, _CURSOR_OFFSET@GOTPAGEOFF]
Lloh49:
	ldrsw	x9, [x9]
	add	x9, x9, #4
	cmp	x9, x8
	cset	w26, hi
	b	LBB0_32
LBB0_30:
Lloh50:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh51:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
Lloh53:
	adrp	x2, l_.str.7@PAGE
Lloh54:
	add	x2, x2, l_.str.7@PAGEOFF
LBB0_31:
	mov	x0, x19
	bl	_av_log
	mov	w26, #1
LBB0_32:
	ldr	w8, [x25, #8]
	and	w9, w8, #0xfffffff0
	ldr	x10, [sp, #96]                  ; 8-byte Folded Reload
	sdiv	w9, w9, w10
	str	w9, [x25, #4]
	tst	w9, #0xf
	b.eq	LBB0_34
; %bb.33:
	sub	w0, w9, #16
	mov	w1, #16
	bl	_FFALIGN
	str	w0, [x25, #4]
	ldr	w8, [x25, #8]
LBB0_34:
	ldrsw	x12, [x24]
	ldr	w9, [x20, #8]
	add	w10, w28, w27, lsl #2
	add	w10, w10, w12
	sub	w11, w9, w10
	ldr	w9, [x25, #12]
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	add	w10, w8, #7
	cmp	w8, #0
	csel	w8, w10, w8, lt
	asr	w8, w8, #3
	mul	w8, w8, w9
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	cmp	w11, w8, asr #3
	b.le	LBB0_45
; %bb.35:
	str	x12, [sp, #104]                 ; 8-byte Folded Spill
	stur	w11, [x29, #-84]                ; 4-byte Folded Spill
	stur	x28, [x29, #-96]                ; 8-byte Folded Spill
	str	x27, [sp, #48]                  ; 8-byte Folded Spill
	add	x28, x25, #40
	add	x1, x25, #48
	ldr	x24, [sp, #96]                  ; 8-byte Folded Reload
	lsl	w27, w24, #5
	mov	x0, x28
	mov	x2, x27
	bl	_av_fast_malloc
	ldr	w8, [x25, #48]
	cbz	w8, LBB0_53
; %bb.36:
	str	w26, [sp, #28]                  ; 4-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	str	x28, [sp, #88]                  ; 8-byte Folded Spill
	ldr	x0, [x28]
	mov	w1, #0
	mov	x2, x27
	bl	_memset
	cmp	w24, #1
	b.lt	LBB0_46
; %bb.37:
	mov	w26, #0
	mov	x24, #0
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	add	x21, x23, w8, sxtw #2
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	add	x8, x21, x8, lsl #2
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	add	x10, x8, x9, lsl #4
	sub	w8, w9, #1
	stp	x10, x8, [sp, #72]              ; 16-byte Folded Spill
	lsl	x8, x8, #5
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	lsl	x8, x8, #5
	str	x8, [sp, #104]                  ; 8-byte Folded Spill
Lloh55:
	adrp	x28, _FIC_HEADER_SIZE@GOTPAGE
Lloh56:
	ldr	x28, [x28, _FIC_HEADER_SIZE@GOTPAGEOFF]
	b	LBB0_39
LBB0_38:                                ;   in Loop: Header=BB0_39 Depth=1
	add	x24, x24, #32
	add	w26, w26, #1
	add	x21, x21, #16
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	cmp	x8, x24
	b.eq	LBB0_46
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x28]
	add	x0, x21, x8, lsl #2
	bl	_AV_RB32
	mov	x27, x0
	ldr	w22, [x25, #4]
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	cmp	x8, x24
	b.ne	LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	ldr	w8, [x19, #4]
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	msub	w0, w22, w9, w8
	mov	w1, #16
	bl	_FFALIGN
	ldur	w10, [x29, #-84]                ; 4-byte Folded Reload
	mov	x8, x10
	b	LBB0_43
LBB0_41:                                ;   in Loop: Header=BB0_39 Depth=1
	ldrsw	x8, [x28]
	add	x8, x21, x8, lsl #2
	add	x0, x8, #16
	bl	_AV_RB32
	cmp	w0, w27
	b.lo	LBB0_4
; %bb.42:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	x8, x0
	mov	x0, x22
	ldur	w10, [x29, #-84]                ; 4-byte Folded Reload
LBB0_43:                                ;   in Loop: Header=BB0_39 Depth=1
	subs	w9, w8, w27
	ccmp	w8, w10, #2, hs
	b.hi	LBB0_38
; %bb.44:                               ;   in Loop: Header=BB0_39 Depth=1
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	x8, x8, w27, uxtw #2
	ldr	x10, [sp, #88]                  ; 8-byte Folded Reload
	ldr	x10, [x10]
	add	x10, x10, x24
	str	x8, [x10]
	mul	w8, w22, w26
	stp	w9, w0, [x10, #8]
	str	w8, [x10, #16]
	b	LBB0_38
LBB0_45:
Lloh57:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
Lloh60:
	adrp	x2, l_.str.8@PAGE
Lloh61:
	add	x2, x2, l_.str.8@PAGEOFF
	b	LBB0_3
LBB0_46:
	ldr	x8, [x19, #8]
Lloh62:
	adrp	x9, _fic_decode_slice@GOTPAGE
Lloh63:
	ldr	x9, [x9, _fic_decode_slice@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x9]
	ldr	x26, [sp, #88]                  ; 8-byte Folded Reload
	ldr	x2, [x26]
	mov	x0, x19
	mov	x3, #0
	ldr	x4, [sp, #48]                   ; 8-byte Folded Reload
                                        ; kill: def $w4 killed $w4 killed $x4
	mov	w5, #32
	blr	x8
	tbnz	w0, #31, LBB0_51
; %bb.47:
	ldr	x8, [x25, #32]
	mov	w9, #1
	str	w9, [x8]
Lloh65:
	adrp	x9, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh66:
	ldr	x9, [x9, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	str	w9, [x8, #4]
	ldr	x9, [sp, #96]                   ; 8-byte Folded Reload
	cmp	w9, #1
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldr	w24, [sp, #28]                  ; 4-byte Folded Reload
	b.lt	LBB0_55
; %bb.48:
	ldr	x10, [x26]
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	and	x9, x9, #0xffffffff
	add	x10, x10, #24
LBB0_49:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cbnz	x11, LBB0_54
; %bb.50:                               ;   in Loop: Header=BB0_49 Depth=1
	add	x10, x10, #32
	subs	x9, x9, #1
	b.ne	LBB0_49
	b	LBB0_55
LBB0_51:
	mov	x27, x0
LBB0_52:
	mov	x0, x27
	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
LBB0_53:
Lloh68:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh69:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
Lloh71:
	adrp	x2, l_.str.9@PAGE
Lloh72:
	add	x2, x2, l_.str.9@PAGEOFF
	b	LBB0_60
LBB0_54:
	str	wzr, [x8]
Lloh73:
	adrp	x9, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh74:
	ldr	x9, [x9, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	str	w9, [x8, #4]
LBB0_55:
	add	x0, x25, #16
	bl	_av_frame_free
	ldr	x0, [x25, #32]
	bl	_av_frame_clone
	str	x0, [x25, #16]
	cbz	x0, LBB0_59
; %bb.56:
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_ff_reget_buffer
	tbnz	w0, #31, LBB0_61
; %bb.57:
	cbnz	w24, LBB0_9
; %bb.58:
	ldr	w0, [x25, #24]
Lloh76:
	adrp	x8, _CURSOR_OFFSET@GOTPAGE
Lloh77:
	ldr	x8, [x8, _CURSOR_OFFSET@GOTPAGEOFF]
Lloh78:
	ldrsw	x8, [x8]
	add	x1, x23, x8, lsl #2
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	ldp	x2, x1, [sp, #56]               ; 16-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_fic_draw_cursor
	b	LBB0_9
LBB0_59:
Lloh79:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh80:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
Lloh82:
	adrp	x2, l_.str.10@PAGE
Lloh83:
	add	x2, x2, l_.str.10@PAGEOFF
LBB0_60:
	mov	x0, x19
	bl	_av_log
Lloh84:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh85:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh86:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_61:
	mov	x27, x0
Lloh87:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh88:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
Lloh90:
	adrp	x2, l_.str.11@PAGE
Lloh91:
	add	x2, x2, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_52
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.cfi_endproc
                                        ; -- End function
	.comm	_FIC_HEADER_SIZE,4,2            ; @FIC_HEADER_SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Frame data is too small.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_fic_header,4,2                 ; @fic_header
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Invalid FIC Header.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Initial frame is skipped\n"

l_.str.3:                               ; @.str.3
	.asciz	"Zero slices found.\n"

	.comm	_fic_qmat_hq,4,2                ; @fic_qmat_hq
	.comm	_fic_qmat_lq,4,2                ; @fic_qmat_lq
l_.str.4:                               ; @.str.4
	.asciz	"Packet is too small to contain cursor (%d vs %d bytes).\n"

l_.str.5:                               ; @.str.5
	.asciz	"Cursor data too small. Skipping cursor.\n"

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.6:                               ; @.str.6
	.asciz	"Invalid cursor position: (%d,%d). Skipping cursor.\n"

l_.str.7:                               ; @.str.7
	.asciz	"Invalid cursor size. Skipping cursor.\n"

	.comm	_CURSOR_OFFSET,4,2              ; @CURSOR_OFFSET
l_.str.8:                               ; @.str.8
	.asciz	"Not enough frame data to decode.\n"

l_.str.9:                               ; @.str.9
	.asciz	"Could not allocate slice data.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_fic_decode_slice,4,2           ; @fic_decode_slice
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ; @AV_PICTURE_TYPE_P
l_.str.10:                              ; @.str.10
	.asciz	"Could not clone frame buffer.\n"

l_.str.11:                              ; @.str.11
	.asciz	"Could not make frame writable.\n"

	.no_dead_strip	_fic_decode_frame
.subsections_via_symbols
