	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function film_read_header
_film_read_header:                      ## @film_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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r14
	movq	24(%rdi), %r13
	movq	$0, 72(%r13)
	leaq	-304(%rbp), %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_avio_read
	cmpl	$16, %eax
	jne	LBB0_1
## %bb.3:
	leaq	-300(%rbp), %rdi
	callq	_AV_RB32
	movl	%eax, %r15d
	leaq	-296(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_AV_RB32
	movl	%eax, (%r13)
	leaq	-304(%rbp), %rsi
	movq	%r14, %rdi
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movl	$32, %edx
	callq	_avio_read
	cmpl	$32, %eax
	jne	LBB0_1
## %bb.7:
	leaq	-280(%rbp), %rdi
	callq	_AV_RB16
	movl	%eax, 16(%r13)
	movzbl	-283(%rbp), %ecx
	movl	%ecx, 20(%r13)
	movzbl	-282(%rbp), %eax
	movl	%eax, 24(%r13)
	cmpb	$2, -281(%rbp)
	jne	LBB0_10
## %bb.8:
	testb	%cl, %cl
	je	LBB0_15
## %bb.9:
	movq	_AV_CODEC_ID_ADPCM_ADX@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_4:
	movl	$20, %edx
	callq	_avio_read
	cmpl	$20, %eax
	jne	LBB0_1
## %bb.5:
	movq	_AV_CODEC_ID_PCM_S8@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movabsq	$4294989346, %rax               ## imm = 0x100005622
	movq	%rax, 16(%r13)
	movl	$8, 24(%r13)
	jmp	LBB0_17
LBB0_10:
	testb	%cl, %cl
	je	LBB0_15
## %bb.11:
	cmpb	$16, %al
	je	LBB0_14
## %bb.12:
	cmpb	$8, %al
	jne	LBB0_15
## %bb.13:
	movq	_AV_CODEC_ID_PCM_S8_PLANAR@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
LBB0_17:
	leaq	-304(%rbp), %rdi
	callq	_AV_RB32
	movq	_FDSC_TAG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_18
## %bb.19:
	movq	%rbx, %rdi
	callq	_AV_RB32
	movq	_CVID_TAG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_21
## %bb.20:
	movq	_AV_CODEC_ID_CINEPAK@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_21:
	movq	%rbx, %rdi
	callq	_AV_RB32
	movq	_RAW_TAG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_22
## %bb.23:
	movq	_AV_CODEC_ID_RAWVIDEO@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_22:
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %rax
LBB0_24:
	movq	(%rax), %rax
	movq	%rax, 32(%r13)
	testq	%rax, %rax
	je	LBB0_30
## %bb.25:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_26
## %bb.27:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	%rax, 40(%r13)
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	32(%r13), %rax
	movq	%rax, 8(%rcx)
	movl	$0, 16(%rcx)
	leaq	-288(%rbp), %rdi
	callq	_AV_RB32
	movq	16(%rbx), %rcx
	movl	%eax, 20(%rcx)
	leaq	-292(%rbp), %rdi
	callq	_AV_RB32
	movq	16(%rbx), %rcx
	movl	%eax, 24(%rcx)
	movq	32(%r13), %rax
	movq	_AV_CODEC_ID_RAWVIDEO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	leaq	-296(%rbp), %rbx
	jne	LBB0_30
## %bb.28:
	movb	-284(%rbp), %al
	cmpb	$24, %al
	jne	LBB0_70
## %bb.29:
	movq	_AV_PIX_FMT_RGB24@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rcx)
LBB0_30:
	cmpq	$0, 8(%r13)
	je	LBB0_36
## %bb.31:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_26
## %bb.32:
	movq	(%rax), %rcx
	movq	%rcx, 48(%r13)
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	16(%rax), %rcx
	movq	%rdx, (%rcx)
	movq	8(%r13), %rdi
	movq	%rdi, 8(%rcx)
	movl	$1, 16(%rcx)
	movl	20(%r13), %edx
	movzbl	%dl, %esi
	movb	%sil, 28(%rcx)
	movl	16(%r13), %edx
	movl	%edx, 32(%rcx)
	movq	_AV_CODEC_ID_ADPCM_ADX@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rdi
	jne	LBB0_34
## %bb.33:
	leal	(%rsi,%rsi), %edi
	leal	(%rdi,%rdi,8), %edi
	movq	_AVSTREAM_PARSE_FULL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	movl	%ebx, 24(%rax)
	movl	$4, %eax
	jmp	LBB0_35
LBB0_34:
	movl	24(%r13), %eax
	movl	%eax, %ebx
	imull	%esi, %ebx
	leal	7(%rbx), %edi
	testl	%ebx, %ebx
	cmovnsl	%ebx, %edi
	sarl	$3, %edi
LBB0_35:
	movl	%eax, 36(%rcx)
	movl	%edi, 40(%rcx)
	imull	%esi, %edx
	imull	%eax, %edx
	movl	%edx, 44(%rcx)
	leaq	-296(%rbp), %rbx
LBB0_36:
	leaq	-304(%rbp), %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_avio_read
	cmpl	$16, %eax
	jne	LBB0_1
## %bb.37:
	leaq	-304(%rbp), %rdi
	callq	_AV_RB32
	movq	_STAB_TAG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_18
## %bb.38:
	movl	%r15d, -332(%rbp)               ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_AV_RB32
	movl	%eax, 56(%r13)
	leaq	-292(%rbp), %rdi
	callq	_AV_RB32
	movl	%eax, 60(%r13)
	movslq	%eax, %rcx
	movq	_UINT_MAX@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	shrq	$2, %rdx
	movl	$-1, %r15d
	cmpq	%rcx, %rdx
	jbe	LBB0_68
## %bb.39:
	movl	%eax, %edi
	movl	$4, %esi
	callq	_av_malloc_array
	movq	%rax, 72(%r13)
	testq	%rax, %rax
	je	LBB0_26
## %bb.40:
	cmpl	$0, (%r12)
	jle	LBB0_43
## %bb.41:
	leaq	56(%r13), %rax
	movq	%rax, -328(%rbp)                ## 8-byte Spill
	leaq	16(%r13), %rbx
	xorl	%r15d, %r15d
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %rdi
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rbx, %rax
	cmoveq	-328(%rbp), %rax                ## 8-byte Folded Reload
	movl	$64, %esi
	movl	$33, %ecx
	cmovel	%ecx, %esi
	movl	(%rax), %ecx
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	incq	%r15
	movslq	(%r12), %rax
	cmpq	%rax, %r15
	jl	LBB0_42
LBB0_43:
	cmpl	$0, 60(%r13)
	jle	LBB0_44
## %bb.45:
	xorl	%r15d, %r15d
	leaq	-304(%rbp), %rbx
	xorl	%ecx, %ecx
	movl	$0, -308(%rbp)                  ## 4-byte Folded Spill
	xorl	%edi, %edi
	jmp	LBB0_46
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r15d
LBB0_68:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_71
## %bb.69:
	movl	%r15d, %eax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_68
LBB0_26:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_61:                                ##   in Loop: Header=BB0_46 Depth=1
	movl	-328(%rbp), %edi                ## 4-byte Reload
LBB0_62:                                ##   in Loop: Header=BB0_46 Depth=1
	leaq	-304(%rbp), %rbx
	movq	-320(%rbp), %rcx                ## 8-byte Reload
	incq	%rcx
	movslq	60(%r13), %rax
	addq	$24, %r15
	cmpq	%rax, %rcx
	jge	LBB0_63
LBB0_46:                                ## =>This Inner Loop Header: Depth=1
	movl	%edi, -328(%rbp)                ## 4-byte Spill
	movq	%rcx, -320(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_avio_read
	cmpl	$16, %eax
	jne	LBB0_47
## %bb.49:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	%rbx, %rdi
	callq	_AV_RB32
	addl	-332(%rbp), %eax                ## 4-byte Folded Reload
	movq	72(%r13), %rcx
	movq	%r15, %rbx
	movl	%eax, (%rcx,%r15)
	leaq	-300(%rbp), %rdi
	callq	_AV_RB32
	movq	72(%r13), %rcx
	movl	%eax, 4(%rcx,%r15)
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	cmpl	%edx, %eax
	jg	LBB0_50
## %bb.51:                              ##   in Loop: Header=BB0_46 Depth=1
	leaq	-296(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_AV_RB32
	cmpl	$-1, %eax
	je	LBB0_52
## %bb.57:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	40(%r13), %rax
	movq	72(%r13), %rcx
	movq	%rax, 8(%rcx,%r15)
	movq	%rbx, %rdi
	callq	_AV_RB32
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	movq	72(%r13), %rcx
	movl	%eax, 16(%rcx,%r15)
	xorl	%r9d, %r9d
	cmpb	$0, -296(%rbp)
	js	LBB0_59
## %bb.58:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	_AVINDEX_KEYFRAME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
LBB0_59:                                ##   in Loop: Header=BB0_46 Depth=1
	movl	%r9d, 20(%rcx,%r15)
	incl	-308(%rbp)                      ## 4-byte Folded Spill
	cmpq	$0, 32(%r13)
	je	LBB0_61
## %bb.60:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	8(%r12), %rdx
	movq	40(%r13), %rsi
	movq	(%rdx,%rsi,8), %rdi
	movl	(%rcx,%r15), %esi
	movl	4(%rcx,%r15), %ecx
	movl	%eax, %edx
	xorl	%r8d, %r8d
	callq	_av_add_index_entry
	jmp	LBB0_61
LBB0_52:                                ##   in Loop: Header=BB0_46 Depth=1
	movq	48(%r13), %rcx
	movq	72(%r13), %rax
	movq	%rcx, 8(%rax,%r15)
	movl	-328(%rbp), %edi                ## 4-byte Reload
	movl	%edi, 16(%rax,%r15)
	movq	8(%r13), %rcx
	movq	_AV_CODEC_ID_ADPCM_ADX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_55
## %bb.53:                              ##   in Loop: Header=BB0_46 Depth=1
	movl	4(%rax,%r15), %eax
	shll	$5, %eax
	movl	20(%r13), %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,8), %ecx
	cltd
	idivl	%ecx
	addl	%eax, %edi
	jmp	LBB0_62
LBB0_55:                                ##   in Loop: Header=BB0_46 Depth=1
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_62
## %bb.56:                              ##   in Loop: Header=BB0_46 Depth=1
	movl	4(%rax,%r15), %eax
	movl	24(%r13), %ecx
	imull	20(%r13), %ecx
	leal	7(%rcx), %esi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %esi
	sarl	$3, %esi
	cltd
	idivl	%esi
	addl	%eax, %edi
	jmp	LBB0_62
LBB0_14:
	movq	_AV_CODEC_ID_PCM_S16BE_PLANAR@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_70:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	%al, %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	movl	$-1, %r15d
	jmp	LBB0_68
LBB0_44:
	xorl	%edi, %edi
	movl	$0, -308(%rbp)                  ## 4-byte Folded Spill
LBB0_63:
	cmpq	$0, 8(%r13)
	je	LBB0_65
## %bb.64:
	movq	8(%r12), %rax
	movq	48(%r13), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	%edi, 8(%rax)
LBB0_65:
	cmpq	$0, 32(%r13)
	je	LBB0_67
## %bb.66:
	movq	8(%r12), %rax
	movq	40(%r13), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	-308(%rbp), %ecx                ## 4-byte Reload
	movl	%ecx, 8(%rax)
LBB0_67:
	movq	$0, 64(%r13)
	xorl	%r15d, %r15d
	jmp	LBB0_68
LBB0_47:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r15d
	jmp	LBB0_48
LBB0_50:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_48:
	movq	%r12, %rdi
	callq	_film_read_close
	jmp	LBB0_68
LBB0_71:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_AV_CODEC_ID_PCM_S8,8,3         ## @AV_CODEC_ID_PCM_S8
	.comm	_AV_CODEC_ID_ADPCM_ADX,8,3      ## @AV_CODEC_ID_ADPCM_ADX
	.comm	_AV_CODEC_ID_PCM_S8_PLANAR,8,3  ## @AV_CODEC_ID_PCM_S8_PLANAR
	.comm	_AV_CODEC_ID_PCM_S16BE_PLANAR,8,3 ## @AV_CODEC_ID_PCM_S16BE_PLANAR
	.comm	_AV_CODEC_ID_NONE,8,3           ## @AV_CODEC_ID_NONE
	.comm	_FDSC_TAG,4,2                   ## @FDSC_TAG
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_CVID_TAG,4,2                   ## @CVID_TAG
	.comm	_AV_CODEC_ID_CINEPAK,8,3        ## @AV_CODEC_ID_CINEPAK
	.comm	_RAW_TAG,4,2                    ## @RAW_TAG
	.comm	_AV_CODEC_ID_RAWVIDEO,8,3       ## @AV_CODEC_ID_RAWVIDEO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_PIX_FMT_RGB24,4,2           ## @AV_PIX_FMT_RGB24
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"raw video is using unhandled %dbpp\n"

	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AVSTREAM_PARSE_FULL,4,2        ## @AVSTREAM_PARSE_FULL
	.comm	_STAB_TAG,4,2                   ## @STAB_TAG
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AVINDEX_KEYFRAME,4,2           ## @AVINDEX_KEYFRAME
	.no_dead_strip	_film_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 film_read_header
lCPI0_0:
	.long	22050                           ; 0x5622
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_film_read_header:                      ; @film_read_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #304]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldp	x20, x25, [x0, #16]
	str	xzr, [x25, #72]
	add	x22, sp, #16
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #16
	bl	_avio_read
	cmp	w0, #16
	b.ne	LBB0_38
; %bb.1:
	add	x21, x22, #4
	mov	x0, x21
	bl	_AV_RB32
	mov	x26, x0
	add	x23, x22, #8
	mov	x0, x23
	bl	_AV_RB32
	str	w0, [x25]
	cbz	w0, LBB0_6
; %bb.2:
	add	x22, sp, #16
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #32
	bl	_avio_read
	cmp	w0, #32
	b.ne	LBB0_38
; %bb.3:
	add	x0, x22, #24
	bl	_AV_RB16
	str	w0, [x25, #16]
	ldrb	w9, [sp, #37]
	str	w9, [x25, #20]
	ldrb	w8, [sp, #38]
	str	w8, [x25, #24]
	ldrb	w10, [sp, #39]
	cmp	w10, #2
	b.ne	LBB0_8
; %bb.4:
	cbz	w9, LBB0_12
; %bb.5:
Lloh3:
	adrp	x8, _AV_CODEC_ID_ADPCM_ADX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_CODEC_ID_ADPCM_ADX@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #20
	bl	_avio_read
	cmp	w0, #20
	b.ne	LBB0_38
; %bb.7:
Lloh5:
	adrp	x8, _AV_CODEC_ID_PCM_S8@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_CODEC_ID_PCM_S8@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x25, #8]
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x25, #16]
	mov	w8, #8
	str	w8, [x25, #24]
	b	LBB0_14
LBB0_8:
	cbz	w9, LBB0_12
; %bb.9:
	cmp	w8, #16
	b.eq	LBB0_44
; %bb.10:
	cmp	w8, #8
	b.ne	LBB0_12
; %bb.11:
Lloh10:
	adrp	x8, _AV_CODEC_ID_PCM_S8_PLANAR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_CODEC_ID_PCM_S8_PLANAR@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh12:
	adrp	x8, _AV_CODEC_ID_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_CODEC_ID_NONE@GOTPAGEOFF]
LBB0_13:
	ldr	x8, [x8]
	str	x8, [x25, #8]
LBB0_14:
	add	x0, sp, #16
	bl	_AV_RB32
Lloh14:
	adrp	x8, _FDSC_TAG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FDSC_TAG@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_42
; %bb.15:
	mov	x0, x23
	bl	_AV_RB32
Lloh17:
	adrp	x8, _CVID_TAG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CVID_TAG@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.16:
Lloh20:
	adrp	x8, _AV_CODEC_ID_CINEPAK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_CODEC_ID_CINEPAK@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
	mov	x0, x23
	bl	_AV_RB32
Lloh22:
	adrp	x8, _RAW_TAG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RAW_TAG@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _AV_CODEC_ID_NONE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _AV_CODEC_ID_NONE@GOTPAGEOFF]
Lloh27:
	adrp	x10, _AV_CODEC_ID_RAWVIDEO@GOTPAGE
Lloh28:
	ldr	x10, [x10, _AV_CODEC_ID_RAWVIDEO@GOTPAGEOFF]
	cmp	w0, w8
	csel	x8, x10, x9, eq
LBB0_18:
	ldr	x8, [x8]
	str	x8, [x25, #32]
	cbz	x8, LBB0_23
; %bb.19:
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_43
; %bb.20:
	mov	x24, x0
	ldr	x8, [x0]
	str	x8, [x25, #40]
Lloh29:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldr	x9, [x0, #16]
	str	x8, [x9]
	ldr	x8, [x25, #32]
	str	x8, [x9, #8]
	str	wzr, [x9, #16]
	add	x22, sp, #16
	add	x0, x22, #16
	bl	_AV_RB32
	ldr	x8, [x24, #16]
	str	w0, [x8, #20]
	add	x0, x22, #12
	bl	_AV_RB32
	ldr	x8, [x24, #16]
	str	w0, [x8, #24]
	ldr	x9, [x25, #32]
Lloh32:
	adrp	x10, _AV_CODEC_ID_RAWVIDEO@GOTPAGE
Lloh33:
	ldr	x10, [x10, _AV_CODEC_ID_RAWVIDEO@GOTPAGEOFF]
Lloh34:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_23
; %bb.21:
	ldrb	w3, [sp, #36]
	cmp	w3, #24
	b.ne	LBB0_45
; %bb.22:
Lloh35:
	adrp	x9, _AV_PIX_FMT_RGB24@GOTPAGE
Lloh36:
	ldr	x9, [x9, _AV_PIX_FMT_RGB24@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	str	w9, [x8, #48]
LBB0_23:
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_29
; %bb.24:
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_43
; %bb.25:
	ldr	x8, [x0]
	str	x8, [x25, #48]
Lloh38:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x8]
	ldr	x8, [x0, #16]
	str	x9, [x8]
	ldr	x11, [x25, #8]
	str	x11, [x8, #8]
	mov	w9, #1
	str	w9, [x8, #16]
	ldr	w10, [x25, #20]
	and	w9, w10, #0xff
	strb	w10, [x8, #28]
	ldr	w10, [x25, #16]
	str	w10, [x8, #32]
Lloh41:
	adrp	x12, _AV_CODEC_ID_ADPCM_ADX@GOTPAGE
Lloh42:
	ldr	x12, [x12, _AV_CODEC_ID_ADPCM_ADX@GOTPAGEOFF]
Lloh43:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_27
; %bb.26:
	add	w11, w9, w9, lsl #3
	lsl	w12, w11, #1
Lloh44:
	adrp	x11, _AVSTREAM_PARSE_FULL@GOTPAGE
Lloh45:
	ldr	x11, [x11, _AVSTREAM_PARSE_FULL@GOTPAGEOFF]
Lloh46:
	ldr	w11, [x11]
	str	w11, [x0, #24]
	mov	w11, #4
	b	LBB0_28
LBB0_27:
	ldr	w11, [x25, #24]
	mul	w12, w11, w9
	add	w13, w12, #7
	cmp	w12, #0
	csel	w12, w13, w12, lt
	asr	w12, w12, #3
LBB0_28:
	stp	w11, w12, [x8, #36]
	mul	w9, w10, w9
	mul	w9, w9, w11
	str	w9, [x8, #44]
LBB0_29:
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #16
	bl	_avio_read
	cmp	w0, #16
	b.ne	LBB0_38
; %bb.30:
	add	x22, sp, #16
	add	x0, sp, #16
	bl	_AV_RB32
Lloh47:
	adrp	x8, _STAB_TAG@GOTPAGE
Lloh48:
	ldr	x8, [x8, _STAB_TAG@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_42
; %bb.31:
	mov	x0, x23
	bl	_AV_RB32
	mov	x24, x25
	str	w0, [x24, #56]!
	add	x0, x22, #12
	bl	_AV_RB32
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x24, #4]
	sxtw	x8, w0
Lloh50:
	adrp	x9, _UINT_MAX@GOTPAGE
Lloh51:
	ldr	x9, [x9, _UINT_MAX@GOTPAGEOFF]
Lloh52:
	ldrsw	x9, [x9]
	cmp	x8, x9, lsr #2
	b.hs	LBB0_46
; %bb.32:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #4
	bl	_av_malloc_array
	str	x0, [x25, #72]
	cbz	x0, LBB0_43
; %bb.33:
	str	w26, [sp, #12]                  ; 4-byte Folded Spill
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_36
; %bb.34:
	mov	x26, #0
	add	x27, x25, #16
	mov	w28, #64
	mov	w22, #33
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x26, lsl #3]
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
Lloh53:
	adrp	x9, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh54:
	ldr	x9, [x9, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x24, x27, eq
	csel	w1, w22, w28, eq
	ldr	w3, [x8]
	mov	w2, #1
	bl	_avpriv_set_pts_info
	add	x26, x26, #1
	ldrsw	x8, [x19]
	cmp	x26, x8
	b.lt	LBB0_35
LBB0_36:
	ldr	w8, [x25, #60]
	cmp	w8, #1
	b.lt	LBB0_58
; %bb.37:
	mov	x27, #0
	mov	x28, #0
	mov	w24, #0
	mov	w26, #0
Lloh56:
	adrp	x22, _INT_MAX@GOTPAGE
Lloh57:
	ldr	x22, [x22, _INT_MAX@GOTPAGEOFF]
	b	LBB0_50
LBB0_38:
Lloh58:
	adrp	x8, _EIO@GOTPAGE
Lloh59:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_39:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
LBB0_40:
	ldur	x8, [x29, #-96]
Lloh60:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh61:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_67
; %bb.41:
	mov	x0, x20
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #320]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_42:
Lloh63:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh64:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh65:
	ldr	w20, [x8]
	b	LBB0_40
LBB0_43:
Lloh66:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh67:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_39
LBB0_44:
Lloh68:
	adrp	x8, _AV_CODEC_ID_PCM_S16BE_PLANAR@GOTPAGE
Lloh69:
	ldr	x8, [x8, _AV_CODEC_ID_PCM_S16BE_PLANAR@GOTPAGEOFF]
	b	LBB0_13
LBB0_45:
Lloh70:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh71:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh72:
	ldr	w1, [x8]
Lloh73:
	adrp	x2, l_.str@PAGE
Lloh74:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_46:
	mov	w20, #-1
	b	LBB0_40
LBB0_47:                                ;   in Loop: Header=BB0_50 Depth=1
	ldr	w8, [x9, #4]
	lsl	w8, w8, #5
	ldr	w9, [x25, #20]
	add	w9, w9, w9, lsl #3
	lsl	w9, w9, #1
LBB0_48:                                ;   in Loop: Header=BB0_50 Depth=1
	sdiv	w8, w8, w9
	add	w26, w8, w26
LBB0_49:                                ;   in Loop: Header=BB0_50 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x25, #60]
	add	x27, x27, #24
	cmp	x28, x8
	b.ge	LBB0_59
LBB0_50:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #16
	bl	_avio_read
	cmp	w0, #16
	b.ne	LBB0_64
; %bb.51:                               ;   in Loop: Header=BB0_50 Depth=1
	add	x0, sp, #16
	bl	_AV_RB32
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	w8, w0, w8
	ldr	x9, [x25, #72]
	str	w8, [x9, x27]
	mov	x0, x21
	bl	_AV_RB32
	ldr	x8, [x25, #72]
	add	x8, x8, x27
	str	w0, [x8, #4]
	ldr	w8, [x22]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	cmp	w0, w8, asr #2
	b.gt	LBB0_65
; %bb.52:                               ;   in Loop: Header=BB0_50 Depth=1
	mov	x0, x23
	bl	_AV_RB32
	cmn	w0, #1
	b.eq	LBB0_55
; %bb.53:                               ;   in Loop: Header=BB0_50 Depth=1
	ldr	x8, [x25, #40]
	ldr	x9, [x25, #72]
	add	x9, x9, x27
	str	x8, [x9, #8]
	mov	x0, x23
	bl	_AV_RB32
	and	w2, w0, #0x7fffffff
	ldr	x8, [x25, #72]
	add	x8, x8, x27
	str	w2, [x8, #16]
	ldrsb	w9, [sp, #24]
Lloh75:
	adrp	x10, _AVINDEX_KEYFRAME@GOTPAGE
Lloh76:
	ldr	x10, [x10, _AVINDEX_KEYFRAME@GOTPAGEOFF]
Lloh77:
	ldr	w10, [x10]
	bic	w5, w10, w9, asr #31
	str	w5, [x8, #20]
	add	w24, w24, #1
	ldr	x9, [x25, #32]
	cbz	x9, LBB0_49
; %bb.54:                               ;   in Loop: Header=BB0_50 Depth=1
	ldr	x9, [x19, #8]
	ldr	x10, [x25, #40]
	ldr	x0, [x9, x10, lsl #3]
	ldp	w1, w3, [x8]
	mov	w4, #0
	bl	_av_add_index_entry
	b	LBB0_49
LBB0_55:                                ;   in Loop: Header=BB0_50 Depth=1
	ldr	x10, [x25, #48]
	ldr	x8, [x25, #72]
	add	x9, x8, x27
	str	x10, [x9, #8]
	str	w26, [x9, #16]
	ldr	x10, [x25, #8]
Lloh78:
	adrp	x11, _AV_CODEC_ID_ADPCM_ADX@GOTPAGE
Lloh79:
	ldr	x11, [x11, _AV_CODEC_ID_ADPCM_ADX@GOTPAGEOFF]
Lloh80:
	ldr	x11, [x11]
	cmp	x10, x11
	b.eq	LBB0_47
; %bb.56:                               ;   in Loop: Header=BB0_50 Depth=1
Lloh81:
	adrp	x9, _AV_CODEC_ID_NONE@GOTPAGE
Lloh82:
	ldr	x9, [x9, _AV_CODEC_ID_NONE@GOTPAGEOFF]
Lloh83:
	ldr	x9, [x9]
	cmp	x10, x9
	b.eq	LBB0_49
; %bb.57:                               ;   in Loop: Header=BB0_50 Depth=1
	add	x8, x8, x27
	ldr	w8, [x8, #4]
	ldp	w9, w10, [x25, #20]
	mul	w9, w10, w9
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	b	LBB0_48
LBB0_58:
	mov	w26, #0
	mov	w24, #0
LBB0_59:
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_61
; %bb.60:
	ldr	x8, [x19, #8]
	ldr	x9, [x25, #48]
	ldr	x8, [x8, x9, lsl #3]
	str	w26, [x8, #8]
LBB0_61:
	ldr	x8, [x25, #32]
	cbz	x8, LBB0_63
; %bb.62:
	ldr	x8, [x19, #8]
	ldr	x9, [x25, #40]
	ldr	x8, [x8, x9, lsl #3]
	str	w24, [x8, #8]
LBB0_63:
	mov	w20, #0
	str	xzr, [x25, #64]
	b	LBB0_40
LBB0_64:
Lloh84:
	adrp	x8, _EIO@GOTPAGE
Lloh85:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh86:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
	b	LBB0_66
LBB0_65:
Lloh87:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh88:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh89:
	ldr	w20, [x8]
LBB0_66:
	mov	x0, x19
	bl	_film_read_close
	b	LBB0_40
LBB0_67:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_AV_CODEC_ID_PCM_S8,8,3         ; @AV_CODEC_ID_PCM_S8
	.comm	_AV_CODEC_ID_ADPCM_ADX,8,3      ; @AV_CODEC_ID_ADPCM_ADX
	.comm	_AV_CODEC_ID_PCM_S8_PLANAR,8,3  ; @AV_CODEC_ID_PCM_S8_PLANAR
	.comm	_AV_CODEC_ID_PCM_S16BE_PLANAR,8,3 ; @AV_CODEC_ID_PCM_S16BE_PLANAR
	.comm	_AV_CODEC_ID_NONE,8,3           ; @AV_CODEC_ID_NONE
	.comm	_FDSC_TAG,4,2                   ; @FDSC_TAG
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_CVID_TAG,4,2                   ; @CVID_TAG
	.comm	_AV_CODEC_ID_CINEPAK,8,3        ; @AV_CODEC_ID_CINEPAK
	.comm	_RAW_TAG,4,2                    ; @RAW_TAG
	.comm	_AV_CODEC_ID_RAWVIDEO,8,3       ; @AV_CODEC_ID_RAWVIDEO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_PIX_FMT_RGB24,4,2           ; @AV_PIX_FMT_RGB24
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"raw video is using unhandled %dbpp\n"

	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AVSTREAM_PARSE_FULL,4,2        ; @AVSTREAM_PARSE_FULL
	.comm	_STAB_TAG,4,2                   ; @STAB_TAG
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AVINDEX_KEYFRAME,4,2           ; @AVINDEX_KEYFRAME
	.no_dead_strip	_film_read_header
.subsections_via_symbols
