	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flic_read_header
_flic_read_header:                      ## @flic_read_header
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r14
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movq	8(%rdi), %r15
	movq	_FLIC_HEADER_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_FLIC_PREAMBLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	$0, 8(%r15)
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_avio_read
	cmpl	(%r12), %eax
	jne	LBB0_1
## %bb.3:
	leaq	4(%r13), %rdi
	callq	_AV_RL16
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %r14
	addq	$16, %r13
	movq	%r13, %rdi
	callq	_AV_RL32
	movq	%rax, %rbx
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.4:
	movq	_FLIC_DEFAULT_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	movq	-104(%rbp), %r12                ## 8-byte Reload
	je	LBB0_6
## %bb.7:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	movl	8(%rax), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 60(%rcx)
	movq	_AV_CODEC_ID_FLIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rcx)
	movq	$0, 48(%rcx)
	movq	%r14, %r13
	leaq	8(%r14), %rdi
	callq	_AV_RL16
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	leaq	10(%r14), %rdi
	callq	_AV_RL16
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	movl	%eax, 4(%rdi)
	cmpl	$0, (%rdi)
	je	LBB0_9
## %bb.8:
	testl	%eax, %eax
	jne	LBB0_10
LBB0_9:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movabsq	$2061584302720, %rax            ## imm = 0x1E000000280
	movq	%rax, (%rdi)
LBB0_10:
	movq	_FLIC_HEADER_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_ff_alloc_extradata
	testq	%rax, %rax
	je	LBB0_11
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	28(%rax), %edi
	movl	(%rbx), %edx
	movq	%r13, %rsi
	callq	_memcpy
	movq	_FLIC_PREAMBLE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_avio_read
	cmpl	(%rbx), %eax
	jne	LBB0_12
## %bb.13:
	negl	%eax
	movq	_SEEK_CUR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_avio_seek
	movq	%r12, %rdi
	addq	$4, %rdi
	callq	_AV_RL16
	movq	_FLIC_TFTD_CHUNK_AUDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.16:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_AV_RL16
	movq	_FLIC_CHUNK_MAGIC_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.19:
	movq	_FLIC_FILE_MAGIC_1@GOTPCREL(%rip), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_21
## %bb.20:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$64, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$70, %ecx
	jmp	LBB0_24
LBB0_12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_6
## %bb.15:
	movq	%rax, %r15
	movl	8(%rax), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r12, %rdi
	callq	_AV_RL32
	movq	(%r15), %rdx
	movl	%eax, 8(%rdx)
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 60(%rdx)
	movq	_AV_CODEC_ID_PCM_U8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%rdx)
	movq	$0, 48(%rdx)
	movq	_FLIC_TFTD_SAMPLE_RATE@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movl	%ecx, 12(%rdx)
	movl	$1, 16(%rdx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rsi
	movl	12(%rsi), %esi
	shll	$3, %esi
	movl	%esi, 20(%rdx)
	movl	$8, 24(%rdx)
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 40(%rdx)
	movq	$0, 32(%rdx)
	movl	$64, %esi
	movl	%eax, %edx
	callq	_avpriv_set_pts_info
	movl	(%r14), %ecx
	movq	%r15, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	jmp	LBB0_26
LBB0_17:
	movq	_FLIC_MC_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	$70, %ecx
	callq	_avpriv_set_pts_info
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_avio_seek
	movq	(%rbx), %rdi
	addq	$28, %rdi
	callq	_av_freep
	movq	(%rbx), %rdi
	movl	$12, %esi
	callq	_ff_alloc_extradata
	testq	%rax, %rax
	jne	LBB0_6
## %bb.18:
	movq	(%rbx), %rax
	movl	28(%rax), %edi
	movq	%r13, %rsi
	movl	$12, %edx
	callq	_memcpy
	xorl	%ebx, %ebx
	jmp	LBB0_26
LBB0_21:
	movq	_FLIC_FILE_MAGIC_2@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_23
## %bb.22:
	movq	_FLIC_FILE_MAGIC_3@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	je	LBB0_23
## %bb.25:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_26
LBB0_23:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$64, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$1000, %ecx                     ## imm = 0x3E8
LBB0_24:
	callq	_avpriv_set_pts_info
	xorl	%ebx, %ebx
	jmp	LBB0_26
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FLIC_HEADER_SIZE,4,2           ## @FLIC_HEADER_SIZE
	.comm	_FLIC_PREAMBLE_SIZE,4,2         ## @FLIC_PREAMBLE_SIZE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_FLIC_DEFAULT_SPEED,4,2         ## @FLIC_DEFAULT_SPEED
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_FLIC,4,2           ## @AV_CODEC_ID_FLIC
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"File with no specified width/height. Trying 640x480.\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Failed to peek at preamble\n"

	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_FLIC_TFTD_CHUNK_AUDIO,8,3      ## @FLIC_TFTD_CHUNK_AUDIO
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_PCM_U8,4,2         ## @AV_CODEC_ID_PCM_U8
	.comm	_FLIC_TFTD_SAMPLE_RATE,4,2      ## @FLIC_TFTD_SAMPLE_RATE
	.comm	_AV_CH_LAYOUT_MONO,4,2          ## @AV_CH_LAYOUT_MONO
	.comm	_FLIC_CHUNK_MAGIC_1,8,3         ## @FLIC_CHUNK_MAGIC_1
	.comm	_FLIC_MC_SPEED,4,2              ## @FLIC_MC_SPEED
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_FLIC_FILE_MAGIC_1,4,2          ## @FLIC_FILE_MAGIC_1
	.comm	_FLIC_FILE_MAGIC_2,4,2          ## @FLIC_FILE_MAGIC_2
	.comm	_FLIC_FILE_MAGIC_3,4,2          ## @FLIC_FILE_MAGIC_3
L_.str.2:                               ## @.str.2
	.asciz	"Invalid or unsupported magic chunk in file\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_flic_read_header
.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 flic_read_header
lCPI0_0:
	.long	640                             ; 0x280
	.long	480                             ; 0x1e0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_flic_read_header:                      ; @flic_read_header
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	x22, x27, [x0]
Lloh3:
	adrp	x24, _FLIC_HEADER_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _FLIC_HEADER_SIZE@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x9, x2
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh7:
	adrp	x28, _FLIC_PREAMBLE_SIZE@GOTPAGE
Lloh8:
	ldr	x28, [x28, _FLIC_PREAMBLE_SIZE@GOTPAGEOFF]
	ldr	w8, [x28]
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	str	xzr, [x27, #8]
	mov	x0, x22
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_avio_read
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.1:
	add	x0, x21, #4
	bl	_AV_RL16
	mov	x25, x0
	add	x26, x21, #16
	mov	x0, x26
	bl	_AV_RL32
Lloh11:
	adrp	x8, _FLIC_DEFAULT_SPEED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FLIC_DEFAULT_SPEED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w8, w8, w0, eq
	stur	w8, [x29, #-92]                 ; 4-byte Folded Spill
	mov	x0, x20
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	ldr	w8, [x0, #8]
	str	w8, [x27, #4]
Lloh14:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _AV_CODEC_ID_FLIC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AV_CODEC_ID_FLIC@GOTPAGEOFF]
	ldr	x10, [x0]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x10, #56]
	str	xzr, [x10, #48]
	add	x0, x21, #8
	bl	_AV_RL16
	ldr	x8, [x19]
	str	w0, [x8]
	add	x0, x21, #10
	bl	_AV_RL16
	mov	x8, x0
	ldr	x0, [x19]
	str	w8, [x0, #4]
	ldr	w9, [x0]
	cbz	w9, LBB0_4
; %bb.3:
	cbnz	w8, LBB0_5
LBB0_4:
Lloh20:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
	ldr	x0, [x19]
Lloh25:
	adrp	x8, lCPI0_0@PAGE
Lloh26:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
LBB0_5:
	ldr	w1, [x24]
	bl	_ff_alloc_extradata
	cbz	x0, LBB0_7
LBB0_6:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
	ldr	x8, [x19]
	ldr	w0, [x8, #28]
	ldr	w2, [x24]
	mov	x1, x21
	bl	_memcpy
	ldr	w2, [x28]
	mov	x0, x22
	mov	x1, x23
	bl	_avio_read
	ldr	w8, [x28]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.8:
	neg	w1, w0
Lloh29:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_avio_seek
	add	x0, x23, #4
	bl	_AV_RL16
Lloh32:
	adrp	x8, _FLIC_TFTD_CHUNK_AUDIO@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FLIC_TFTD_CHUNK_AUDIO@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.9:
	mov	x0, x26
	bl	_AV_RL16
Lloh35:
	adrp	x8, _FLIC_CHUNK_MAGIC_1@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FLIC_CHUNK_MAGIC_1@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_19
; %bb.10:
Lloh38:
	adrp	x8, _FLIC_FILE_MAGIC_1@GOTPAGE
Lloh39:
	ldr	x8, [x8, _FLIC_FILE_MAGIC_1@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	cmp	w8, w25
	b.ne	LBB0_21
; %bb.11:
	mov	x0, x19
	mov	w1, #64
	ldur	w2, [x29, #-92]                 ; 4-byte Folded Reload
	mov	w3, #70
	b	LBB0_25
LBB0_12:
Lloh41:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x2, l_.str.1@PAGE
Lloh45:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_13:
Lloh46:
	adrp	x8, _EIO@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh48:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh49:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.16:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	x0, x20
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_6
; %bb.18:
	mov	x20, x0
	ldr	w8, [x0, #8]
	str	w8, [x27]
	mov	x0, x23
	bl	_AV_RL32
	mov	x2, x0
	ldr	x8, [x20]
Lloh51:
	adrp	x9, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh52:
	ldr	x9, [x9, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
Lloh54:
	adrp	x10, _AV_CODEC_ID_PCM_U8@GOTPAGE
Lloh55:
	ldr	x10, [x10, _AV_CODEC_ID_PCM_U8@GOTPAGEOFF]
Lloh56:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #56]
	str	xzr, [x8, #48]
Lloh57:
	adrp	x21, _FLIC_TFTD_SAMPLE_RATE@GOTPAGE
Lloh58:
	ldr	x21, [x21, _FLIC_TFTD_SAMPLE_RATE@GOTPAGEOFF]
	ldr	w3, [x21]
	stp	w2, w3, [x8, #8]
	mov	w9, #1
	ldr	x10, [x19]
	ldr	w10, [x10, #12]
	lsl	w10, w10, #3
	stp	w9, w10, [x8, #16]
	mov	w9, #8
	str	w9, [x8, #24]
Lloh59:
	adrp	x9, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh60:
	ldr	x9, [x9, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	str	w9, [x8, #40]
	str	xzr, [x8, #32]
	mov	x0, x19
	mov	w1, #64
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_avpriv_set_pts_info
	ldr	w3, [x21]
	mov	x0, x20
	mov	w1, #64
	mov	w2, #1
	b	LBB0_25
LBB0_19:
Lloh62:
	adrp	x8, _FLIC_MC_SPEED@GOTPAGE
Lloh63:
	ldr	x8, [x8, _FLIC_MC_SPEED@GOTPAGEOFF]
Lloh64:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #64
	mov	w3, #70
	bl	_avpriv_set_pts_info
Lloh65:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh66:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh67:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #12
	bl	_avio_seek
	ldr	x8, [x19]
	add	x0, x8, #28
	bl	_av_freep
	ldr	x0, [x19]
	mov	w1, #12
	bl	_ff_alloc_extradata
	cbnz	x0, LBB0_6
; %bb.20:
	ldr	x8, [x19]
	ldr	w0, [x8, #28]
	mov	x1, x21
	mov	w2, #12
	bl	_memcpy
	mov	w0, #0
	b	LBB0_15
LBB0_21:
Lloh68:
	adrp	x8, _FLIC_FILE_MAGIC_2@GOTPAGE
Lloh69:
	ldr	x8, [x8, _FLIC_FILE_MAGIC_2@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	cmp	w8, w25
	b.eq	LBB0_24
; %bb.22:
Lloh71:
	adrp	x8, _FLIC_FILE_MAGIC_3@GOTPAGE
Lloh72:
	ldr	x8, [x8, _FLIC_FILE_MAGIC_3@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
	cmp	w8, w25
	b.eq	LBB0_24
; %bb.23:
Lloh74:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh75:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh76:
	ldr	w1, [x8]
Lloh77:
	adrp	x2, l_.str.2@PAGE
Lloh78:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh79:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh80:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh81:
	ldr	w0, [x8]
	b	LBB0_15
LBB0_24:
	mov	x0, x19
	mov	w1, #64
	ldur	w2, [x29, #-92]                 ; 4-byte Folded Reload
	mov	w3, #1000
LBB0_25:
	bl	_avpriv_set_pts_info
	mov	w0, #0
	b	LBB0_15
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdr	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.comm	_FLIC_HEADER_SIZE,4,2           ; @FLIC_HEADER_SIZE
	.comm	_FLIC_PREAMBLE_SIZE,4,2         ; @FLIC_PREAMBLE_SIZE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_FLIC_DEFAULT_SPEED,4,2         ; @FLIC_DEFAULT_SPEED
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_FLIC,4,2           ; @AV_CODEC_ID_FLIC
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"File with no specified width/height. Trying 640x480.\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Failed to peek at preamble\n"

	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_FLIC_TFTD_CHUNK_AUDIO,8,3      ; @FLIC_TFTD_CHUNK_AUDIO
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_PCM_U8,4,2         ; @AV_CODEC_ID_PCM_U8
	.comm	_FLIC_TFTD_SAMPLE_RATE,4,2      ; @FLIC_TFTD_SAMPLE_RATE
	.comm	_AV_CH_LAYOUT_MONO,4,2          ; @AV_CH_LAYOUT_MONO
	.comm	_FLIC_CHUNK_MAGIC_1,8,3         ; @FLIC_CHUNK_MAGIC_1
	.comm	_FLIC_MC_SPEED,4,2              ; @FLIC_MC_SPEED
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_FLIC_FILE_MAGIC_1,4,2          ; @FLIC_FILE_MAGIC_1
	.comm	_FLIC_FILE_MAGIC_2,4,2          ; @FLIC_FILE_MAGIC_2
	.comm	_FLIC_FILE_MAGIC_3,4,2          ; @FLIC_FILE_MAGIC_3
l_.str.2:                               ; @.str.2
	.asciz	"Invalid or unsupported magic chunk in file\n"

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