	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_img_read_packet             ## -- Begin function ff_img_read_packet
	.p2align	4, 0x90
_ff_img_read_packet:                    ## @ff_img_read_packet
	.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	$1192, %rsp                     ## imm = 0x4A8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %rsi
	movl	$0, -1080(%rbp)
	movq	$0, -1088(%rbp)
	movl	$0, -1096(%rbp)
	movq	$0, -1104(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -1136(%rbp)
	movq	$0, -1120(%rbp)
	cmpq	$0, 48(%rsi)
	movq	%rsi, -1144(%rbp)               ## 8-byte Spill
	je	LBB0_8
## %bb.1:
	movq	8(%r12), %rbx
	movq	%rbx, -1136(%rbp)
	movq	%rbx, %rdi
	callq	_avio_feof
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	cmpq	$0, 64(%rax)
	je	LBB0_5
## %bb.3:
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	cmpq	$0, 48(%rax)
	je	LBB0_5
## %bb.4:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_seek
LBB0_5:
	movq	%rbx, %rdi
	callq	_avio_feof
	testq	%rax, %rax
	jne	LBB0_12
## %bb.6:
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	movl	32(%rax), %ebx
	testl	%ebx, %ebx
	movq	%r15, -1176(%rbp)               ## 8-byte Spill
	jle	LBB0_40
## %bb.7:
	movl	%ebx, -1088(%rbp)
	jmp	LBB0_46
LBB0_8:
	movq	16(%r12), %rax
	movq	(%rax), %rax
	movq	8(%rax), %r14
	cmpq	$0, 64(%rsi)
	movq	(%rsi), %rcx
	movq	8(%rsi), %rax
	je	LBB0_11
## %bb.9:
	cmpq	%rax, %rcx
	jbe	LBB0_11
## %bb.10:
	movq	16(%rsi), %rcx
	movq	%rcx, (%rsi)
LBB0_11:
	cmpq	%rax, %rcx
	jbe	LBB0_13
LBB0_12:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_100
LBB0_13:
	movq	24(%rsi), %rax
	movq	_PT_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_15
## %bb.14:
	movl	76(%rsi), %esi
	leaq	-1072(%rbp), %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_av_strlcpy
	movq	-1144(%rbp), %rsi               ## 8-byte Reload
	jmp	LBB0_18
LBB0_15:
	cmpq	$0, 88(%rsi)
	jne	LBB0_18
## %bb.16:
	movl	76(%rsi), %edx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_av_get_frame_filename
	movq	-1144(%rbp), %rsi               ## 8-byte Reload
	testq	%rax, %rax
	jns	LBB0_18
## %bb.17:
	cmpq	$2, (%rsi)
	jae	LBB0_43
LBB0_18:
	cmpq	$0, 8(%r12)
	je	LBB0_22
## %bb.19:
	movl	76(%rsi), %esi
	leaq	-1072(%rbp), %rdi
	callq	_strcmp
	movq	-1144(%rbp), %rcx               ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_22
## %bb.20:
	cmpq	$0, 64(%rcx)
	jne	LBB0_22
## %bb.21:
	cmpl	$0, 72(%rcx)
	je	LBB0_104
LBB0_22:
	movq	_AVIO_FLAG_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-1136(%rbp), %rsi
	leaq	-1072(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	callq	*(%r12)
	testq	%rax, %rax
	js	LBB0_42
## %bb.23:
	movq	-1136(%rbp), %rdi
LBB0_24:
	callq	_avio_size
	movl	%eax, %ebx
	movl	%eax, -1088(%rbp)
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	cmpl	$0, 72(%rax)
	movq	%r15, -1176(%rbp)               ## 8-byte Spill
	je	LBB0_44
## %bb.25:
	leaq	-1072(%rbp), %r15
	movq	%r15, %rdi
	callq	_strlen
	cltq
	movb	$85, -1(%rax,%r15)
	cmpq	$0, 8(%r12)
	je	LBB0_29
## %bb.26:
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	movl	76(%rax), %esi
	leaq	-1072(%rbp), %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_29
## %bb.27:
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	cmpq	$0, 64(%rax)
	jne	LBB0_29
## %bb.28:
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	cmpl	$0, 72(%rax)
	je	LBB0_105
LBB0_29:
	leaq	-1128(%rbp), %rsi
	movq	_AVIO_FLAG_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	movq	%rax, -1152(%rbp)               ## 8-byte Spill
	leaq	-1072(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	callq	*(%r12)
	movl	$0, %r13d
	testq	%rax, %rax
	js	LBB0_88
## %bb.30:
	movq	-1128(%rbp), %rdi
LBB0_31:
	callq	_avio_size
	movl	%eax, %r13d
	movl	%eax, -1084(%rbp)
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	cmpl	$0, 72(%rax)
	je	LBB0_87
## %bb.32:
	movq	%r15, %rdi
	callq	_strlen
	cltq
	movb	$86, -1(%rax,%r15)
	cmpq	$0, 8(%r12)
	je	LBB0_36
## %bb.33:
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	movl	76(%rax), %esi
	leaq	-1072(%rbp), %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_36
## %bb.34:
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	cmpq	$0, 64(%rax)
	jne	LBB0_36
## %bb.35:
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	cmpl	$0, 72(%rax)
	je	LBB0_106
LBB0_36:
	leaq	-1120(%rbp), %rsi
	movq	_AVIO_FLAG_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-1072(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	callq	*(%r12)
	testq	%rax, %rax
	js	LBB0_87
## %bb.37:
	movq	-1120(%rbp), %rdi
LBB0_38:
	callq	_avio_size
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -1152(%rbp)               ## 8-byte Spill
	movl	%eax, -1080(%rbp)
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	cmpl	$0, 72(%rax)
	je	LBB0_88
## %bb.39:
	movq	%r15, %rdi
	callq	_strlen
	cltq
	movb	$87, -1(%rax,%r15)
	jmp	LBB0_88
LBB0_40:
	movq	16(%r12), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_45
## %bb.41:
	movl	$4096, -1088(%rbp)              ## imm = 0x1000
	movl	$4096, %ebx                     ## imm = 0x1000
	jmp	LBB0_46
LBB0_42:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	leaq	-1072(%rbp), %rcx
	movq	%r12, %rdi
	callq	_av_log
LBB0_43:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r15d
	jmp	LBB0_100
LBB0_44:
	xorl	%eax, %eax
	movq	%rax, -1152(%rbp)               ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_88
LBB0_45:
	movq	8(%r12), %rdi
	callq	_avio_size
	movl	%eax, %ebx
	movl	%eax, -1088(%rbp)
LBB0_46:
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	jmp	LBB0_47
LBB0_87:
	xorl	%eax, %eax
	movq	%rax, -1152(%rbp)               ## 8-byte Spill
LBB0_88:
	movq	(%r14), %rax
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_95
## %bb.89:
	movq	%r14, -1232(%rbp)               ## 8-byte Spill
	movl	%ebx, -1164(%rbp)               ## 4-byte Spill
	movq	%r12, -1160(%rbp)               ## 8-byte Spill
	movq	%rsp, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -1200(%rbp)
	movaps	%xmm0, -1216(%rbp)
	movq	_PROBE_BUF_MIN@GOTPCREL(%rip), %r15
	movq	_AVPROBE_PADDING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	(%r15), %ebx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	movl	$0, -1168(%rbp)
	movq	-1136(%rbp), %rdi
	movl	(%r15), %edx
	movq	%rsi, %r12
	callq	_avio_read
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_99
## %bb.90:
	movq	%r14, -1224(%rbp)               ## 8-byte Spill
	movl	%r15d, %eax
	leaq	(%r12,%rax,4), %rdi
	shll	$2, %ebx
	subl	%r15d, %ebx
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	-1136(%rbp), %rdi
	movl	%r15d, %esi
	negl	%esi
	callq	_avio_skip
	movq	%r12, -1200(%rbp)
	movl	%r15d, -1216(%rbp)
	leaq	-1072(%rbp), %rax
	movq	%rax, -1208(%rbp)
	leaq	-1216(%rbp), %rdi
	leaq	-1168(%rbp), %rdx
	movl	$1, %esi
	callq	_av_probe_input_format3
	testq	%rax, %rax
	movq	-1232(%rbp), %r14               ## 8-byte Reload
	je	LBB0_94
## %bb.91:
	leaq	_ff_img_read_packet(%rip), %rcx
	cmpq	%rcx, (%rax)
	jne	LBB0_94
## %bb.92:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_94
## %bb.93:
	movq	%rax, (%r14)
LBB0_94:
	movq	-1224(%rbp), %rsp               ## 8-byte Reload
	movq	(%r14), %rax
	movq	-1160(%rbp), %r12               ## 8-byte Reload
	movl	-1164(%rbp), %ebx               ## 4-byte Reload
LBB0_95:
	movq	_AV_CODEC_ID_RAWVIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_98
## %bb.96:
	cmpl	$0, 12(%r14)
	je	LBB0_102
LBB0_98:
	movq	-1152(%rbp), %rax               ## 8-byte Reload
LBB0_47:
	addl	%ebx, %r13d
	addl	%eax, %r13d
	movq	-1176(%rbp), %rbx               ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_av_new_packet
	testl	%eax, %eax
	movq	%r12, -1160(%rbp)               ## 8-byte Spill
	js	LBB0_51
## %bb.48:
	movq	$0, 24(%rbx)
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rbx)
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	cmpl	$0, 36(%rax)
	movq	%rbx, %r13
	je	LBB0_60
## %bb.49:
	leaq	-1072(%rbp), %rdi
	leaq	-1216(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_62
## %bb.50:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_51:
	movl	%eax, %r15d
LBB0_52:
	movq	-1144(%rbp), %rax               ## 8-byte Reload
LBB0_53:
	cmpq	$0, 48(%rax)
	jne	LBB0_100
## %bb.54:
	movq	-1136(%rbp), %rax
	movq	-1160(%rbp), %rbx               ## 8-byte Reload
	cmpq	8(%rbx), %rax
	je	LBB0_56
## %bb.55:
	leaq	-1136(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ff_format_io_close
	movq	8(%rbx), %rax
LBB0_56:
	cmpq	%rax, -1128(%rbp)
	je	LBB0_58
## %bb.57:
	leaq	-1128(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ff_format_io_close
	movq	8(%rbx), %rax
LBB0_58:
	cmpq	%rax, -1120(%rbp)
	je	LBB0_100
## %bb.59:
	leaq	-1120(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ff_format_io_close
	jmp	LBB0_100
LBB0_60:
	cmpq	$0, 48(%rax)
	jne	LBB0_63
## %bb.61:
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	movl	40(%rax), %eax
	movl	%eax, (%r13)
	jmp	LBB0_64
LBB0_62:
	movl	-1208(%rbp), %edx
	movl	%edx, (%r13)
	movq	16(%r12), %rax
	movq	(%rax), %rdi
	movq	-1144(%rbp), %rbx               ## 8-byte Reload
	movl	(%rbx), %esi
	movq	_AVINDEX_KEYFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_av_add_index_entry
	cmpq	$0, 48(%rbx)
	je	LBB0_64
LBB0_63:
	movq	-1136(%rbp), %rdi
	callq	_avio_tell
	movl	%eax, 16(%r13)
LBB0_64:
	movl	$0, 4(%r13)
	leaq	-1136(%rbp), %rbx
	xorl	%r12d, %r12d
	jmp	LBB0_66
	.p2align	4, 0x90
LBB0_65:                                ##   in Loop: Header=BB0_66 Depth=1
	incq	%r12
	addq	$8, %rbx
	cmpq	$3, %r12
	je	LBB0_78
LBB0_66:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_65
## %bb.67:                              ##   in Loop: Header=BB0_66 Depth=1
	movslq	4(%r13), %rsi
	shlq	$2, %rsi
	movq	%r13, %r14
	addq	8(%r13), %rsi
	movl	-1088(%rbp,%r12,4), %r13d
	movl	%r13d, %edx
	callq	_avio_read
	movl	%eax, %r15d
	movl	%eax, -1104(%rbp,%r12,4)
	movq	-1144(%rbp), %rcx               ## 8-byte Reload
	cmpq	$0, 64(%rcx)
	je	LBB0_72
## %bb.68:                              ##   in Loop: Header=BB0_66 Depth=1
	movq	48(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_73
## %bb.69:                              ##   in Loop: Header=BB0_66 Depth=1
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jne	LBB0_73
## %bb.70:                              ##   in Loop: Header=BB0_66 Depth=1
	movq	(%rbx), %rdi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_avio_seek
	movq	-1144(%rbp), %rcx               ## 8-byte Reload
	testq	%rax, %rax
	js	LBB0_72
## %bb.71:                              ##   in Loop: Header=BB0_66 Depth=1
	movl	$0, 16(%r14)
	movq	(%rbx), %rdi
	movslq	4(%r14), %rsi
	shlq	$2, %rsi
	addq	8(%r14), %rsi
	movl	%r13d, %edx
	callq	_avio_read
	movq	-1144(%rbp), %rcx               ## 8-byte Reload
	movl	%eax, %r15d
	movl	%eax, -1104(%rbp,%r12,4)
LBB0_72:                                ##   in Loop: Header=BB0_66 Depth=1
	movq	48(%rcx), %rax
LBB0_73:                                ##   in Loop: Header=BB0_66 Depth=1
	testq	%rax, %rax
	movq	%r14, %r13
	jne	LBB0_76
## %bb.74:                              ##   in Loop: Header=BB0_66 Depth=1
	movq	(%rbx), %rax
	movq	-1160(%rbp), %rcx               ## 8-byte Reload
	cmpq	8(%rcx), %rax
	je	LBB0_76
## %bb.75:                              ##   in Loop: Header=BB0_66 Depth=1
	movq	-1160(%rbp), %rdi               ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ff_format_io_close
LBB0_76:                                ##   in Loop: Header=BB0_66 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_65
## %bb.77:                              ##   in Loop: Header=BB0_66 Depth=1
	addl	%r15d, 4(%r13)
	jmp	LBB0_65
LBB0_78:
	movl	-1104(%rbp), %r15d
	movl	-1100(%rbp), %ebx
	movl	-1096(%rbp), %r12d
	testl	%r15d, %r15d
	jle	LBB0_82
## %bb.79:
	testl	%ebx, %ebx
	js	LBB0_82
## %bb.80:
	testl	%r12d, %r12d
	js	LBB0_82
## %bb.81:
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	incl	56(%rax)
	incq	(%rax)
	incl	40(%rax)
	xorl	%r15d, %r15d
	jmp	LBB0_100
LBB0_82:
	movq	%r13, %rdi
	callq	_av_packet_unref
	testl	%r15d, %r15d
	cmovnsl	%ebx, %r15d
	js	LBB0_52
## %bb.83:
	testl	%ebx, %ebx
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	js	LBB0_53
## %bb.84:
	testl	%r12d, %r12d
	js	LBB0_86
## %bb.85:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_86:
	movl	%r12d, %r15d
	jmp	LBB0_53
LBB0_99:
	movq	%r14, %rsp
LBB0_100:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_107
## %bb.101:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_102:
	leaq	12(%r14), %rdi
	addq	$8, %r14
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_infer_size
	movq	-1152(%rbp), %rax               ## 8-byte Reload
	jmp	LBB0_47
LBB0_104:
	movq	8(%r12), %rdi
	movq	%rdi, -1136(%rbp)
	jmp	LBB0_24
LBB0_105:
	movq	8(%r12), %rdi
	movq	%rdi, -1128(%rbp)
	jmp	LBB0_31
LBB0_106:
	movq	8(%r12), %rdi
	movq	%rdi, -1120(%rbp)
	jmp	LBB0_38
LBB0_107:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_PT_NONE,8,3                    ## @PT_NONE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_AVIO_FLAG_READ,4,2             ## @AVIO_FLAG_READ
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not open file : %s\n"

	.comm	_AV_CODEC_ID_NONE,8,3           ## @AV_CODEC_ID_NONE
	.comm	_PROBE_BUF_MIN,4,2              ## @PROBE_BUF_MIN
	.comm	_AVPROBE_PADDING_SIZE,4,2       ## @AVPROBE_PADDING_SIZE
	.comm	_AV_CODEC_ID_RAWVIDEO,8,3       ## @AV_CODEC_ID_RAWVIDEO
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_AVINDEX_KEYFRAME,4,2           ## @AVINDEX_KEYFRAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_img_read_packet             ; -- Begin function ff_img_read_packet
	.p2align	2
_ff_img_read_packet:                    ; @ff_img_read_packet
	.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, #1168
	mov	x19, sp
	mov	x21, x1
	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, #-96]
	ldr	x27, [x0, #24]
	str	wzr, [x19, #120]
	str	xzr, [x19, #112]
	str	wzr, [x19, #104]
	stp	xzr, xzr, [x19, #88]
	stp	xzr, xzr, [x19, #72]
	ldr	x8, [x27, #48]
	cbz	x8, LBB0_8
; %bb.1:
	ldr	x22, [x20, #8]
	str	x22, [x19, #72]
	mov	x0, x22
	bl	_avio_feof
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x27, #64]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x27, #48]
	cbz	x8, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #0
	bl	_avio_seek
LBB0_5:
	mov	x0, x22
	bl	_avio_feof
	cbnz	x0, LBB0_11
; %bb.6:
	ldr	w22, [x27, #32]
	cmp	w22, #1
	b.lt	LBB0_39
; %bb.7:
	mov	w24, #0
	mov	w23, #0
	b	LBB0_41
LBB0_8:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x26, [x8, #8]
	ldr	x9, [x27, #64]
	ldp	x3, x8, [x27]
	cmp	x9, #0
	ccmp	x3, x8, #0, ne
	b.ls	LBB0_10
; %bb.9:
	ldr	x3, [x27, #16]
	str	x3, [x27]
LBB0_10:
	cmp	x3, x8
	b.ls	LBB0_12
LBB0_11:
Lloh6:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
	b	LBB0_95
LBB0_12:
	ldr	x8, [x27, #24]
Lloh9:
	adrp	x9, _PT_NONE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PT_NONE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	ldr	w1, [x27, #76]
	add	x0, x19, #128
	mov	w2, #1024
	bl	_av_strlcpy
	b	LBB0_17
LBB0_14:
	ldr	x8, [x27, #88]
	cbnz	x8, LBB0_17
; %bb.15:
	ldr	w2, [x27, #76]
	add	x0, x19, #128
	mov	w1, #1024
	bl	_av_get_frame_filename
	tbz	x0, #63, LBB0_17
; %bb.16:
	ldr	x8, [x27]
	cmp	x8, #2
	b.hs	LBB0_58
LBB0_17:
	ldr	x8, [x20, #8]
Lloh12:
	adrp	x24, _AVIO_FLAG_READ@GOTPAGE
Lloh13:
	ldr	x24, [x24, _AVIO_FLAG_READ@GOTPAGEOFF]
	cbz	x8, LBB0_21
; %bb.18:
	ldr	w1, [x27, #76]
	add	x0, x19, #128
	bl	_strcmp
	cbnz	w0, LBB0_21
; %bb.19:
	ldr	x8, [x27, #64]
	cbnz	x8, LBB0_21
; %bb.20:
	ldr	w8, [x27, #72]
	cbz	w8, LBB0_97
LBB0_21:
	ldr	x8, [x20]
	ldr	w3, [x24]
	add	x1, x19, #72
	add	x2, x19, #128
	mov	x0, x20
	mov	x4, #0
	blr	x8
	tbnz	x0, #63, LBB0_57
; %bb.22:
	ldr	x0, [x19, #72]
LBB0_23:
	bl	_avio_size
	mov	x22, x0
	str	w0, [x19, #112]
	ldr	w8, [x27, #72]
	cbz	w8, LBB0_56
; %bb.24:
	add	x23, x19, #128
	add	x0, x19, #128
	bl	_strlen
	add	x8, x23, w0, sxtw
	mov	w9, #85
	sturb	w9, [x8, #-1]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_28
; %bb.25:
	ldr	w1, [x27, #76]
	add	x0, x19, #128
	bl	_strcmp
	cbnz	w0, LBB0_28
; %bb.26:
	ldr	x8, [x27, #64]
	cbnz	x8, LBB0_28
; %bb.27:
	ldr	w8, [x27, #72]
	cbz	w8, LBB0_98
LBB0_28:
	ldr	x8, [x20]
	add	x9, x19, #72
	add	x1, x9, #8
	ldr	w3, [x24]
	add	x2, x19, #128
	mov	x0, x20
	mov	x4, #0
	blr	x8
	tbnz	x0, #63, LBB0_56
; %bb.29:
	ldr	x0, [x19, #80]
LBB0_30:
	bl	_avio_size
	mov	x23, x0
	str	w0, [x19, #116]
	ldr	w8, [x27, #72]
	cbz	w8, LBB0_83
; %bb.31:
	add	x25, x19, #128
	add	x0, x19, #128
	bl	_strlen
	add	x8, x25, w0, sxtw
	mov	w9, #86
	sturb	w9, [x8, #-1]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_35
; %bb.32:
	ldr	w1, [x27, #76]
	add	x0, x19, #128
	bl	_strcmp
	cbnz	w0, LBB0_35
; %bb.33:
	ldr	x8, [x27, #64]
	cbnz	x8, LBB0_35
; %bb.34:
	ldr	w8, [x27, #72]
	cbz	w8, LBB0_99
LBB0_35:
	ldr	x8, [x20]
	add	x9, x19, #72
	add	x1, x9, #16
	ldr	w3, [x24]
	add	x2, x19, #128
	mov	x0, x20
	mov	x4, #0
	blr	x8
	tbnz	x0, #63, LBB0_83
; %bb.36:
	ldr	x0, [x19, #88]
LBB0_37:
	bl	_avio_size
	mov	x24, x0
	str	w0, [x19, #120]
	ldr	w8, [x27, #72]
	cbz	w8, LBB0_84
; %bb.38:
	add	x25, x19, #128
	add	x0, x19, #128
	bl	_strlen
	add	x8, x25, w0, sxtw
	mov	w9, #87
	sturb	w9, [x8, #-1]
	b	LBB0_84
LBB0_39:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_82
; %bb.40:
	mov	w24, #0
	mov	w23, #0
	mov	w22, #4096
LBB0_41:
	str	w22, [x19, #112]
LBB0_42:
	add	w8, w23, w22
	add	w1, w8, w24
	mov	x0, x21
	bl	_av_new_packet
	tbnz	w0, #31, LBB0_46
; %bb.43:
Lloh14:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
	str	xzr, [x21, #24]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x21, #20]
	orr	w8, w9, w8
	str	w8, [x21, #20]
	ldr	w8, [x27, #36]
	cbz	w8, LBB0_54
; %bb.44:
	add	x0, x19, #128
	add	x1, x19, #32
	bl	_stat
	cbz	x0, LBB0_59
; %bb.45:
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_46:
	mov	x25, x0
LBB0_47:
	ldr	x8, [x27, #48]
	cbnz	x8, LBB0_95
; %bb.48:
	ldr	x8, [x19, #72]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.eq	LBB0_50
; %bb.49:
	add	x1, x19, #72
	mov	x0, x20
	bl	_ff_format_io_close
	ldr	x8, [x20, #8]
LBB0_50:
	add	x21, x19, #72
	ldr	x9, [x19, #80]
	cmp	x9, x8
	b.eq	LBB0_52
; %bb.51:
	add	x1, x21, #8
	mov	x0, x20
	bl	_ff_format_io_close
	ldr	x8, [x20, #8]
LBB0_52:
	ldr	x9, [x19, #88]
	cmp	x9, x8
	b.eq	LBB0_95
; %bb.53:
	add	x1, x21, #16
	mov	x0, x20
	bl	_ff_format_io_close
	b	LBB0_95
LBB0_54:
	ldr	x8, [x27, #48]
	cbnz	x8, LBB0_60
; %bb.55:
	ldr	w8, [x27, #40]
	str	w8, [x21]
	b	LBB0_61
LBB0_56:
	mov	w24, #0
	mov	w23, #0
	b	LBB0_84
LBB0_57:
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	add	x3, x19, #128
	mov	x0, x20
	bl	_av_log
LBB0_58:
Lloh25:
	adrp	x8, _EIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x25, x0
	b	LBB0_95
LBB0_59:
	ldr	w2, [x19, #40]
	str	w2, [x21]
	ldr	x8, [x20, #16]
	ldr	x0, [x8]
	ldr	w1, [x27]
Lloh28:
	adrp	x8, _AVINDEX_KEYFRAME@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AVINDEX_KEYFRAME@GOTPAGEOFF]
Lloh30:
	ldr	w5, [x8]
	mov	w3, #0
	mov	w4, #0
	bl	_av_add_index_entry
	ldr	x8, [x27, #48]
	cbz	x8, LBB0_61
LBB0_60:
	ldr	x0, [x19, #72]
	bl	_avio_tell
	str	w0, [x21, #16]
LBB0_61:
	mov	x25, #0
	str	wzr, [x21, #4]
	add	x22, x19, #72
	add	x28, x19, #112
	add	x26, x19, #96
	b	LBB0_63
LBB0_62:                                ;   in Loop: Header=BB0_63 Depth=1
	add	x25, x25, #4
	add	x22, x22, #8
	cmp	x25, #12
	b.eq	LBB0_75
LBB0_63:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	cbz	x0, LBB0_62
; %bb.64:                               ;   in Loop: Header=BB0_63 Depth=1
	ldr	x8, [x21, #8]
	ldrsw	x9, [x21, #4]
	add	x1, x8, x9, lsl #2
	ldr	w24, [x28, x25]
	mov	x2, x24
	bl	_avio_read
	mov	x23, x0
	str	w0, [x26, x25]
	ldr	x8, [x27, #64]
	cbz	x8, LBB0_69
; %bb.65:                               ;   in Loop: Header=BB0_63 Depth=1
	ldr	x8, [x27, #48]
	cbz	x8, LBB0_70
; %bb.66:                               ;   in Loop: Header=BB0_63 Depth=1
Lloh31:
	adrp	x9, _AVERROR_EOF@GOTPAGE
Lloh32:
	ldr	x9, [x9, _AVERROR_EOF@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cmp	w23, w9
	b.ne	LBB0_70
; %bb.67:                               ;   in Loop: Header=BB0_63 Depth=1
	ldr	x0, [x22]
Lloh34:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_avio_seek
	tbnz	x0, #63, LBB0_69
; %bb.68:                               ;   in Loop: Header=BB0_63 Depth=1
	str	wzr, [x21, #16]
	ldr	x0, [x22]
	ldr	x8, [x21, #8]
	ldrsw	x9, [x21, #4]
	add	x1, x8, x9, lsl #2
	mov	x2, x24
	bl	_avio_read
	mov	x23, x0
	str	w0, [x26, x25]
LBB0_69:                                ;   in Loop: Header=BB0_63 Depth=1
	ldr	x8, [x27, #48]
LBB0_70:                                ;   in Loop: Header=BB0_63 Depth=1
	cbnz	x8, LBB0_73
; %bb.71:                               ;   in Loop: Header=BB0_63 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.eq	LBB0_73
; %bb.72:                               ;   in Loop: Header=BB0_63 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_ff_format_io_close
LBB0_73:                                ;   in Loop: Header=BB0_63 Depth=1
	cmp	w23, #1
	b.lt	LBB0_62
; %bb.74:                               ;   in Loop: Header=BB0_63 Depth=1
	ldr	w8, [x21, #4]
	add	w8, w8, w23
	str	w8, [x21, #4]
	b	LBB0_62
LBB0_75:
	ldp	w24, w23, [x19, #96]
	ldr	w22, [x19, #104]
	cmp	w24, #1
	b.lt	LBB0_79
; %bb.76:
	tbnz	w23, #31, LBB0_79
; %bb.77:
	tbnz	w22, #31, LBB0_79
; %bb.78:
	mov	w25, #0
	ldr	w8, [x27, #56]
	add	w8, w8, #1
	str	w8, [x27, #56]
	ldr	x8, [x27]
	add	x8, x8, #1
	str	x8, [x27]
	ldr	w8, [x27, #40]
	add	w8, w8, #1
	str	w8, [x27, #40]
	b	LBB0_95
LBB0_79:
	mov	x0, x21
	bl	_av_packet_unref
	cmp	w24, #0
	csel	w25, w24, w23, lt
	tbnz	w24, #31, LBB0_47
; %bb.80:
	tbnz	w23, #31, LBB0_47
; %bb.81:
Lloh37:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w22, #0
	csel	w25, w22, w8, lt
	b	LBB0_47
LBB0_82:
	ldr	x0, [x20, #8]
	bl	_avio_size
	mov	x22, x0
	mov	w24, #0
	mov	w23, #0
	str	w0, [x19, #112]
	b	LBB0_42
LBB0_83:
	mov	w24, #0
LBB0_84:
	ldr	x8, [x26]
Lloh40:
	adrp	x9, _AV_CODEC_ID_NONE@GOTPAGE
Lloh41:
	ldr	x9, [x9, _AV_CODEC_ID_NONE@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_91
; %bb.85:
	mov	x8, sp
	stp	x26, x8, [x19, #8]              ; 16-byte Folded Spill
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #32]
Lloh43:
	adrp	x8, _PROBE_BUF_MIN@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PROBE_BUF_MIN@GOTPAGEOFF]
Lloh45:
	adrp	x9, _AVPROBE_PADDING_SIZE@GOTPAGE
Lloh46:
	ldr	x9, [x9, _AVPROBE_PADDING_SIZE@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh47:
	ldr	w9, [x9]
	add	w28, w9, w10
	lsl	x9, x28, #2
	add	x10, x9, #15
	and	x12, x10, #0x7fffffff0
Lloh48:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh49:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x26, x9, x12
	mov	sp, x26
	str	wzr, [x19, #28]
	ldr	x0, [x19, #72]
	ldr	w2, [x8]
	mov	x1, x26
	bl	_avio_read
	mov	x25, x0
	tbnz	w0, #31, LBB0_94
; %bb.86:
	add	x0, x26, w25, uxtw #2
	lsl	w8, w28, #2
	sub	w2, w8, w25
	mov	w1, #0
	bl	_memset
	ldr	x0, [x19, #72]
	neg	w1, w25
	bl	_avio_skip
	str	w25, [x19, #32]
	add	x8, x19, #128
	stp	x8, x26, [x19, #40]
	add	x0, x19, #32
	add	x2, x19, #28
	mov	w1, #1
	bl	_av_probe_input_format3
	ldr	x26, [x19, #8]                  ; 8-byte Folded Reload
	cbz	x0, LBB0_90
; %bb.87:
	ldr	x8, [x0]
Lloh50:
	adrp	x9, _ff_img_read_packet@PAGE
Lloh51:
	add	x9, x9, _ff_img_read_packet@PAGEOFF
	cmp	x8, x9
	b.ne	LBB0_90
; %bb.88:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_90
; %bb.89:
	str	x8, [x26]
LBB0_90:
	ldr	x8, [x19, #16]                  ; 8-byte Folded Reload
	mov	sp, x8
	ldr	x8, [x26]
LBB0_91:
Lloh52:
	adrp	x9, _AV_CODEC_ID_RAWVIDEO@GOTPAGE
Lloh53:
	ldr	x9, [x9, _AV_CODEC_ID_RAWVIDEO@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_42
; %bb.92:
	mov	x0, x26
	ldr	w8, [x0, #12]!
	cbnz	w8, LBB0_42
; %bb.93:
	add	x1, x26, #8
	mov	x2, x22
	bl	_infer_size
	b	LBB0_42
LBB0_94:
	ldr	x8, [x19, #16]                  ; 8-byte Folded Reload
	mov	sp, x8
LBB0_95:
	ldur	x8, [x29, #-96]
Lloh55:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh56:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_100
; %bb.96:
	mov	x0, x25
	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_97:
	ldr	x0, [x20, #8]
	str	x0, [x19, #72]
	b	LBB0_23
LBB0_98:
	ldr	x0, [x20, #8]
	str	x0, [x19, #80]
	b	LBB0_30
LBB0_99:
	ldr	x0, [x20, #8]
	str	x0, [x19, #88]
	b	LBB0_37
LBB0_100:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_PT_NONE,8,3                    ; @PT_NONE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_AVIO_FLAG_READ,4,2             ; @AVIO_FLAG_READ
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not open file : %s\n"

	.comm	_AV_CODEC_ID_NONE,8,3           ; @AV_CODEC_ID_NONE
	.comm	_PROBE_BUF_MIN,4,2              ; @PROBE_BUF_MIN
	.comm	_AVPROBE_PADDING_SIZE,4,2       ; @AVPROBE_PADDING_SIZE
	.comm	_AV_CODEC_ID_RAWVIDEO,8,3       ; @AV_CODEC_ID_RAWVIDEO
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_AVINDEX_KEYFRAME,4,2           ; @AVINDEX_KEYFRAME
.subsections_via_symbols
