	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function write_metadata
LCPI0_0:
	.quad	0x3f50000000000000              ## double 9.765625E-4
	.section	__TEXT,__literal16,16byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x4030000000000000              ## double 16
	.quad	0x4020000000000000              ## double 8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_write_metadata:                        ## @write_metadata
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	24(%rdi), %r12
	movq	_FLV_NO_DURATION_FILESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_FLV_TAG_TYPE_META@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_avio_w8
	movq	%r12, %rdi
	callq	_avio_tell
	movq	%rax, 8(%r15)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avio_wb24
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_avio_wb24
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	_AMF_DATA_TYPE_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_avio_w8
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	_AMF_DATA_TYPE_MIXEDARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_avio_w8
	movq	%r12, %rdi
	callq	_avio_tell
	xorl	%ecx, %ecx
	cmpq	$0, 152(%r15)
	setne	%cl
	xorl	%edx, %edx
	cmpq	$0, 144(%r15)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	setne	%dl
	leal	(%rdx,%rdx,4), %eax
	leal	(%rax,%rcx,4), %eax
	cmpq	$1, 184(%r15)
	sbbl	$-1, %eax
	leal	2(%rax), %esi
	movl	%r13d, %ecx
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	andl	%r14d, %ecx
	cmovnel	%eax, %esi
	movq	%r12, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_avio_wb32
	andl	%r14d, %r13d
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	%r12, %rdi
	callq	_avio_tell
	movq	%rax, 192(%r15)
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	movq	_AV_TIME_BASE@GOTPCREL(%rip), %rax
	divsd	(%rax), %xmm0
	movq	%r12, %rdi
	callq	_put_amf_double
LBB0_2:
	cmpq	$0, 152(%r15)
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	152(%r15), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movq	%r12, %rdi
	callq	_put_amf_double
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	152(%r15), %rax
	movsd	8(%rax), %xmm0                  ## xmm0 = mem[0],zero
	movq	%r12, %rdi
	callq	_put_amf_double
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	152(%r15), %rax
	movsd	16(%rax), %xmm0                 ## xmm0 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm0
	movq	%r12, %rdi
	callq	_put_amf_double
	movsd	16(%r15), %xmm0                 ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_5
	jnp	LBB0_6
LBB0_5:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movsd	16(%r15), %xmm0                 ## xmm0 = mem[0],zero
	movq	%r12, %rdi
	callq	_put_amf_double
	incl	%r13d
LBB0_6:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	152(%r15), %rax
	movsd	24(%rax), %xmm0                 ## xmm0 = mem[0],zero
	movq	%r12, %rdi
	callq	_put_amf_double
	cmpq	$0, 144(%r15)
	je	LBB0_9
LBB0_8:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	144(%r15), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm0
	movq	%r12, %rdi
	callq	_put_amf_double
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	144(%r15), %rax
	movsd	8(%rax), %xmm0                  ## xmm0 = mem[0],zero
	movq	%r12, %rdi
	callq	_put_amf_double
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	144(%r15), %rax
	movq	16(%rax), %rax
	movq	_AV_CODEC_ID_PCM_U8@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	leaq	LCPI0_1(%rip), %rax
	movsd	(%rax,%rdx,8), %xmm0            ## xmm0 = mem[0],zero
	movq	%r12, %rdi
	callq	_put_amf_double
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	144(%r15), %rax
	xorl	%esi, %esi
	cmpl	$2, 24(%rax)
	sete	%sil
	movq	%r12, %rdi
	callq	_put_amf_bool
	leaq	L_.str.11(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	144(%r15), %rax
	movsd	32(%rax), %xmm0                 ## xmm0 = mem[0],zero
	movq	%r12, %rdi
	callq	_put_amf_double
LBB0_9:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, 184(%r15)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.12(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	xorpd	%xmm0, %xmm0
	movq	%r12, %rdi
	callq	_put_amf_double
LBB0_11:
	movq	%rbx, %rdi
	callq	_ff_standardize_creation_time
	movl	8(%rbx), %edi
	movq	_AV_DICT_IGNORE_SUFFIX@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	L_.str.13(%rip), %rsi
	xorl	%edx, %edx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_36
## %bb.12:
	movq	%rax, %r13
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	L_.str.22(%rip), %rdx
	movq	%r14, %rcx
	callq	_av_log
	movl	8(%rbx), %edi
	movl	(%r15), %ecx
	leaq	L_.str.13(%rip), %rsi
	movq	%r13, %rdx
	callq	_av_dict_get
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_34
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %r14
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.23:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.24:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.25:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.14(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.26:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.15(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.27:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.16(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.28:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.17(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.29:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.18(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.19(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.20(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.21(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_33
## %bb.35:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_put_amf_string
	movq	_AMF_DATA_TYPE_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_avio_w8
	movq	8(%r13), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movl	8(%rbx), %edi
	movl	(%r15), %ecx
	leaq	L_.str.13(%rip), %rsi
	movq	%r13, %rdx
	callq	_av_dict_get
	movq	%rax, %r13
	testq	%rax, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_13
	jmp	LBB0_36
LBB0_34:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_36:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_38
## %bb.37:
	leaq	L_.str.23(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	%r12, %rdi
	callq	_avio_tell
	movq	%rax, 176(%r15)
	xorpd	%xmm0, %xmm0
	movq	%r12, %rdi
	callq	_put_amf_double
LBB0_38:
	movq	_FLV_ADD_KEYFRAME_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_40
## %bb.39:
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, 160(%r15)
	leaq	L_.str.18(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	xorl	%esi, %esi
	cmpq	$0, 152(%r15)
	setne	%sil
	movq	%r12, %rdi
	callq	_put_amf_bool
	leaq	L_.str.21(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_put_amf_bool
	leaq	L_.str.17(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	xorl	%esi, %esi
	cmpq	$0, 144(%r15)
	setne	%sil
	movq	%r12, %rdi
	callq	_put_amf_bool
	leaq	L_.str.20(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_put_amf_bool
	leaq	L_.str.24(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_put_amf_bool
	leaq	L_.str.14(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	%r12, %rdi
	callq	_avio_tell
	movq	%rax, 136(%r15)
	movq	$0, 24(%r15)
	xorpd	%xmm0, %xmm0
	movq	%r12, %rdi
	callq	_put_amf_double
	leaq	L_.str.25(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	%r12, %rdi
	callq	_avio_tell
	movq	%rax, 128(%r15)
	movq	$0, 32(%r15)
	xorpd	%xmm0, %xmm0
	movq	%r12, %rdi
	callq	_put_amf_double
	leaq	L_.str.26(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	%r12, %rdi
	callq	_avio_tell
	movq	%rax, 120(%r15)
	movq	$0, 40(%r15)
	xorpd	%xmm0, %xmm0
	movq	%r12, %rdi
	callq	_put_amf_double
	leaq	L_.str.15(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	%r12, %rdi
	callq	_avio_tell
	movq	%rax, 112(%r15)
	movq	$0, 104(%r15)
	xorpd	%xmm0, %xmm0
	movq	%r12, %rdi
	callq	_put_amf_double
	leaq	L_.str.27(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	%r12, %rdi
	callq	_avio_tell
	movq	%rax, 96(%r15)
	movq	$0, 88(%r15)
	xorpd	%xmm0, %xmm0
	movq	%r12, %rdi
	callq	_put_amf_double
	leaq	L_.str.28(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	%r12, %rdi
	callq	_avio_tell
	movq	%rax, 80(%r15)
	movq	$0, 72(%r15)
	xorpd	%xmm0, %xmm0
	movq	%r12, %rdi
	callq	_put_amf_double
	leaq	L_.str.29(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	_AMF_DATA_TYPE_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_put_amf_byte
	addl	$12, %r13d
	movq	%r12, %rdi
	callq	_avio_tell
	movq	%rax, 64(%r15)
LBB0_40:
	leaq	L_.str.13(%rip), %rsi
	movq	%r12, %rdi
	callq	_put_amf_string
	movq	_AMF_END_OF_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_avio_w8
	movq	%r12, %rdi
	callq	_avio_tell
	subl	8(%r15), %eax
	addl	$-10, %eax
	movl	%eax, 48(%r15)
	movq	_SEEK_SET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_avio_seek
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_avio_wb32
	movq	8(%r15), %rsi
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_avio_seek
	movl	48(%r15), %esi
	movq	%r12, %rdi
	callq	_avio_wb24
	movl	48(%r15), %esi
	addl	$7, %esi
	movq	%r12, %rdi
	callq	_avio_skip
	movq	%r12, %rdi
	callq	_avio_tell
	movq	%rax, 56(%r15)
	movl	48(%r15), %esi
	addl	$11, %esi
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_avio_wb32                      ## TAILCALL
LBB0_3:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	cmpq	$0, 144(%r15)
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_FLV_NO_DURATION_FILESIZE,4,2   ## @FLV_NO_DURATION_FILESIZE
	.comm	_FLV_TAG_TYPE_META,4,2          ## @FLV_TAG_TYPE_META
	.comm	_AMF_DATA_TYPE_STRING,4,2       ## @AMF_DATA_TYPE_STRING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"onMetaData"

	.comm	_AMF_DATA_TYPE_MIXEDARRAY,4,2   ## @AMF_DATA_TYPE_MIXEDARRAY
L_.str.1:                               ## @.str.1
	.asciz	"duration"

	.comm	_AV_TIME_BASE,8,3               ## @AV_TIME_BASE
L_.str.2:                               ## @.str.2
	.asciz	"width"

L_.str.3:                               ## @.str.3
	.asciz	"height"

L_.str.4:                               ## @.str.4
	.asciz	"videodatarate"

L_.str.5:                               ## @.str.5
	.asciz	"framerate"

L_.str.6:                               ## @.str.6
	.asciz	"videocodecid"

L_.str.7:                               ## @.str.7
	.asciz	"audiodatarate"

L_.str.8:                               ## @.str.8
	.asciz	"audiosamplerate"

L_.str.9:                               ## @.str.9
	.asciz	"audiosamplesize"

	.comm	_AV_CODEC_ID_PCM_U8,8,3         ## @AV_CODEC_ID_PCM_U8
L_.str.10:                              ## @.str.10
	.asciz	"stereo"

L_.str.11:                              ## @.str.11
	.asciz	"audiocodecid"

L_.str.12:                              ## @.str.12
	.asciz	"datastream"

L_.str.13:                              ## @.str.13
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ## @AV_DICT_IGNORE_SUFFIX
L_.str.14:                              ## @.str.14
	.asciz	"datasize"

L_.str.15:                              ## @.str.15
	.asciz	"lasttimestamp"

L_.str.16:                              ## @.str.16
	.asciz	"totalframes"

L_.str.17:                              ## @.str.17
	.asciz	"hasAudio"

L_.str.18:                              ## @.str.18
	.asciz	"hasVideo"

L_.str.19:                              ## @.str.19
	.asciz	"hasCuePoints"

L_.str.20:                              ## @.str.20
	.asciz	"hasMetadata"

L_.str.21:                              ## @.str.21
	.asciz	"hasKeyframes"

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.22:                              ## @.str.22
	.asciz	"Ignoring metadata for %s\n"

L_.str.23:                              ## @.str.23
	.asciz	"filesize"

	.comm	_FLV_ADD_KEYFRAME_INDEX,4,2     ## @FLV_ADD_KEYFRAME_INDEX
L_.str.24:                              ## @.str.24
	.asciz	"canSeekToEnd"

L_.str.25:                              ## @.str.25
	.asciz	"videosize"

L_.str.26:                              ## @.str.26
	.asciz	"audiosize"

L_.str.27:                              ## @.str.27
	.asciz	"lastkeyframetimestamp"

L_.str.28:                              ## @.str.28
	.asciz	"lastkeyframelocation"

L_.str.29:                              ## @.str.29
	.asciz	"keyframes"

	.comm	_AMF_DATA_TYPE_OBJECT,4,2       ## @AMF_DATA_TYPE_OBJECT
	.comm	_AMF_END_OF_OBJECT,4,2          ## @AMF_END_OF_OBJECT
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_write_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_metadata
_write_metadata:                        ; @write_metadata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x22, x0
	ldp	x28, x19, [x0, #16]
	ldr	w21, [x28]
Lloh0:
	adrp	x8, _FLV_NO_DURATION_FILESIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLV_NO_DURATION_FILESIZE@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _FLV_TAG_TYPE_META@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLV_TAG_TYPE_META@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_avio_w8
	mov	x0, x19
	bl	_avio_tell
	str	x0, [x28, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb24
	mov	x0, x19
	mov	x1, x20
	bl	_avio_wb24
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
Lloh6:
	adrp	x8, _AMF_DATA_TYPE_STRING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AMF_DATA_TYPE_STRING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_avio_w8
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
Lloh11:
	adrp	x8, _AMF_DATA_TYPE_MIXEDARRAY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AMF_DATA_TYPE_MIXEDARRAY@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_avio_w8
	mov	x0, x19
	bl	_avio_tell
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldp	x9, x8, [x28, #144]
	cmp	x8, #0
	cset	w8, ne
	cmp	x9, #0
	mov	w9, #5
	csel	w9, wzr, w9, eq
	add	w8, w9, w8, lsl #2
	ldr	x9, [x28, #184]
	cmp	x9, #0
	cinc	w8, w8, ne
	ands	w20, w23, w21
	add	w9, w8, #2
	csel	w21, w9, w8, eq
	mov	x0, x19
	mov	x1, x21
	bl	_avio_wb32
	str	w20, [sp, #4]                   ; 4-byte Folded Spill
	cbnz	w20, LBB0_2
; %bb.1:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	mov	x0, x19
	bl	_avio_tell
	str	x0, [x28, #192]
	ldr	d0, [x22]
Lloh16:
	adrp	x8, _AV_TIME_BASE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_TIME_BASE@GOTPAGEOFF]
Lloh18:
	ldr	d1, [x8]
	fdiv	d0, d0, d1
	mov	x0, x19
	bl	_put_amf_double
LBB0_2:
	ldr	x8, [x28, #152]
	cbz	x8, LBB0_6
; %bb.3:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	ldr	x8, [x28, #152]
	ldr	d0, [x8]
	mov	x0, x19
	bl	_put_amf_double
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	ldr	x8, [x28, #152]
	ldr	d0, [x8, #8]
	mov	x0, x19
	bl	_put_amf_double
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	ldr	x8, [x28, #152]
	ldr	d0, [x8, #16]
	mov	x8, #4562146422526312448
	fmov	d1, x8
	fmul	d0, d0, d1
	mov	x0, x19
	bl	_put_amf_double
	ldr	d0, [x28, #16]
	fcmp	d0, #0.0
	b.eq	LBB0_5
; %bb.4:
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	ldr	d0, [x28, #16]
	mov	x0, x19
	bl	_put_amf_double
	add	w21, w21, #1
LBB0_5:
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	ldr	x8, [x28, #152]
	ldr	d0, [x8, #24]
	mov	x0, x19
	bl	_put_amf_double
LBB0_6:
	ldr	x8, [x28, #144]
	cbz	x8, LBB0_8
; %bb.7:
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	ldr	x8, [x28, #144]
	ldr	d0, [x8]
	mov	x8, #4562146422526312448
	fmov	d1, x8
	fmul	d0, d0, d1
	mov	x0, x19
	bl	_put_amf_double
Lloh31:
	adrp	x1, l_.str.8@PAGE
Lloh32:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	ldr	x8, [x28, #144]
	ldr	d0, [x8, #8]
	mov	x0, x19
	bl	_put_amf_double
Lloh33:
	adrp	x1, l_.str.9@PAGE
Lloh34:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	ldr	x8, [x28, #144]
Lloh35:
	adrp	x9, _AV_CODEC_ID_PCM_U8@GOTPAGE
Lloh36:
	ldr	x9, [x9, _AV_CODEC_ID_PCM_U8@GOTPAGEOFF]
	ldr	x8, [x8, #16]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	fmov	d0, #16.00000000
	fmov	d1, #8.00000000
	fcsel	d0, d1, d0, eq
	mov	x0, x19
	bl	_put_amf_double
Lloh38:
	adrp	x1, l_.str.10@PAGE
Lloh39:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	ldr	x8, [x28, #144]
	ldr	w8, [x8, #24]
	cmp	w8, #2
	cset	w1, eq
	mov	x0, x19
	bl	_put_amf_bool
Lloh40:
	adrp	x1, l_.str.11@PAGE
Lloh41:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	ldr	x8, [x28, #144]
	ldr	d0, [x8, #32]
	mov	x0, x19
	bl	_put_amf_double
LBB0_8:
	ldr	x8, [x28, #184]
	cbz	x8, LBB0_10
; %bb.9:
Lloh42:
	adrp	x1, l_.str.12@PAGE
Lloh43:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	movi	d0, #0000000000000000
	mov	x0, x19
	bl	_put_amf_double
LBB0_10:
	mov	x0, x22
	bl	_ff_standardize_creation_time
	ldr	w0, [x22, #8]
Lloh44:
	adrp	x20, _AV_DICT_IGNORE_SUFFIX@GOTPAGE
Lloh45:
	ldr	x20, [x20, _AV_DICT_IGNORE_SUFFIX@GOTPAGEOFF]
	ldr	w3, [x20]
Lloh46:
	adrp	x1, l_.str.13@PAGE
Lloh47:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x2, #0
	bl	_av_dict_get
	cbz	x0, LBB0_36
; %bb.11:
	mov	x27, x0
Lloh48:
	adrp	x23, l_.str.2@PAGE
Lloh49:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh50:
	adrp	x26, _AV_LOG_DEBUG@GOTPAGE
Lloh51:
	ldr	x26, [x26, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh52:
	adrp	x24, l_.str.22@PAGE
Lloh53:
	add	x24, x24, l_.str.22@PAGEOFF
Lloh54:
	adrp	x25, l_.str.13@PAGE
Lloh55:
	add	x25, x25, l_.str.13@PAGEOFF
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	str	w21, [sp]                       ; 4-byte Folded Spill
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	w1, [x26]
	mov	x0, x22
	mov	x2, x24
	mov	x3, x21
	bl	_av_log
	ldr	w0, [x22, #8]
	ldr	w3, [x20]
	mov	x1, x25
	mov	x2, x27
	bl	_av_dict_get
	mov	x27, x0
	cbz	x0, LBB0_35
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x21, [x27]
	mov	x0, x21
	mov	x1, x23
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh56:
	adrp	x1, l_.str.3@PAGE
Lloh57:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh58:
	adrp	x1, l_.str.4@PAGE
Lloh59:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh60:
	adrp	x1, l_.str.5@PAGE
Lloh61:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh62:
	adrp	x1, l_.str.6@PAGE
Lloh63:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh64:
	adrp	x1, l_.str.7@PAGE
Lloh65:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh66:
	adrp	x1, l_.str.8@PAGE
Lloh67:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh68:
	adrp	x1, l_.str.9@PAGE
Lloh69:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh70:
	adrp	x1, l_.str.10@PAGE
Lloh71:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.23:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh72:
	adrp	x1, l_.str.11@PAGE
Lloh73:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.24:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh74:
	adrp	x1, l_.str.1@PAGE
Lloh75:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.25:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh76:
	adrp	x1, l_.str@PAGE
Lloh77:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.26:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh78:
	adrp	x1, l_.str.14@PAGE
Lloh79:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.27:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh80:
	adrp	x1, l_.str.15@PAGE
Lloh81:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.28:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh82:
	adrp	x1, l_.str.16@PAGE
Lloh83:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.29:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh84:
	adrp	x1, l_.str.17@PAGE
Lloh85:
	add	x1, x1, l_.str.17@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.30:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh86:
	adrp	x1, l_.str.18@PAGE
Lloh87:
	add	x1, x1, l_.str.18@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.31:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh88:
	adrp	x1, l_.str.19@PAGE
Lloh89:
	add	x1, x1, l_.str.19@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.32:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh90:
	adrp	x1, l_.str.20@PAGE
Lloh91:
	add	x1, x1, l_.str.20@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.33:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
Lloh92:
	adrp	x1, l_.str.21@PAGE
Lloh93:
	add	x1, x1, l_.str.21@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.34:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_put_amf_string
Lloh94:
	adrp	x8, _AMF_DATA_TYPE_STRING@GOTPAGE
Lloh95:
	ldr	x8, [x8, _AMF_DATA_TYPE_STRING@GOTPAGEOFF]
Lloh96:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_avio_w8
	ldr	x1, [x27, #8]
	mov	x0, x19
	bl	_put_amf_string
	ldr	w21, [sp]                       ; 4-byte Folded Reload
	add	w21, w21, #1
	ldr	w0, [x22, #8]
	ldr	w3, [x20]
	mov	x1, x25
	mov	x2, x27
	bl	_av_dict_get
	mov	x27, x0
	cbnz	x0, LBB0_12
	b	LBB0_36
LBB0_35:
	ldr	w21, [sp]                       ; 4-byte Folded Reload
LBB0_36:
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cbnz	w8, LBB0_38
; %bb.37:
Lloh97:
	adrp	x1, l_.str.23@PAGE
Lloh98:
	add	x1, x1, l_.str.23@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	mov	x0, x19
	bl	_avio_tell
	str	x0, [x28, #176]
	movi	d0, #0000000000000000
	mov	x0, x19
	bl	_put_amf_double
LBB0_38:
	ldr	w8, [x28]
Lloh99:
	adrp	x9, _FLV_ADD_KEYFRAME_INDEX@GOTPAGE
Lloh100:
	ldr	x9, [x9, _FLV_ADD_KEYFRAME_INDEX@GOTPAGEOFF]
Lloh101:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_40
; %bb.39:
	stp	xzr, xzr, [x28, #160]
Lloh102:
	adrp	x1, l_.str.18@PAGE
Lloh103:
	add	x1, x1, l_.str.18@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	ldr	x8, [x28, #152]
	cmp	x8, #0
	cset	w1, ne
	mov	x0, x19
	bl	_put_amf_bool
Lloh104:
	adrp	x1, l_.str.21@PAGE
Lloh105:
	add	x1, x1, l_.str.21@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	mov	x0, x19
	mov	w1, #1
	bl	_put_amf_bool
Lloh106:
	adrp	x1, l_.str.17@PAGE
Lloh107:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	ldr	x8, [x28, #144]
	cmp	x8, #0
	cset	w1, ne
	mov	x0, x19
	bl	_put_amf_bool
Lloh108:
	adrp	x1, l_.str.20@PAGE
Lloh109:
	add	x1, x1, l_.str.20@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	mov	x0, x19
	mov	w1, #1
	bl	_put_amf_bool
Lloh110:
	adrp	x1, l_.str.24@PAGE
Lloh111:
	add	x1, x1, l_.str.24@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	mov	x0, x19
	mov	w1, #1
	bl	_put_amf_bool
Lloh112:
	adrp	x1, l_.str.14@PAGE
Lloh113:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	mov	x0, x19
	bl	_avio_tell
	str	x0, [x28, #136]
	str	xzr, [x28, #24]
	movi	d0, #0000000000000000
	mov	x0, x19
	bl	_put_amf_double
Lloh114:
	adrp	x1, l_.str.25@PAGE
Lloh115:
	add	x1, x1, l_.str.25@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	mov	x0, x19
	bl	_avio_tell
	str	x0, [x28, #128]
	str	xzr, [x28, #32]
	movi	d0, #0000000000000000
	mov	x0, x19
	bl	_put_amf_double
Lloh116:
	adrp	x1, l_.str.26@PAGE
Lloh117:
	add	x1, x1, l_.str.26@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	mov	x0, x19
	bl	_avio_tell
	str	x0, [x28, #120]
	str	xzr, [x28, #40]
	movi	d0, #0000000000000000
	mov	x0, x19
	bl	_put_amf_double
Lloh118:
	adrp	x1, l_.str.15@PAGE
Lloh119:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	mov	x0, x19
	bl	_avio_tell
	stp	xzr, x0, [x28, #104]
	movi	d0, #0000000000000000
	mov	x0, x19
	bl	_put_amf_double
Lloh120:
	adrp	x1, l_.str.27@PAGE
Lloh121:
	add	x1, x1, l_.str.27@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	mov	x0, x19
	bl	_avio_tell
	stp	xzr, x0, [x28, #88]
	movi	d0, #0000000000000000
	mov	x0, x19
	bl	_put_amf_double
Lloh122:
	adrp	x1, l_.str.28@PAGE
Lloh123:
	add	x1, x1, l_.str.28@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
	mov	x0, x19
	bl	_avio_tell
	stp	xzr, x0, [x28, #72]
	movi	d0, #0000000000000000
	mov	x0, x19
	bl	_put_amf_double
Lloh124:
	adrp	x1, l_.str.29@PAGE
Lloh125:
	add	x1, x1, l_.str.29@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
Lloh126:
	adrp	x8, _AMF_DATA_TYPE_OBJECT@GOTPAGE
Lloh127:
	ldr	x8, [x8, _AMF_DATA_TYPE_OBJECT@GOTPAGEOFF]
Lloh128:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_put_amf_byte
	add	w21, w21, #12
	mov	x0, x19
	bl	_avio_tell
	str	x0, [x28, #64]
LBB0_40:
Lloh129:
	adrp	x1, l_.str.13@PAGE
Lloh130:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x19
	bl	_put_amf_string
Lloh131:
	adrp	x8, _AMF_END_OF_OBJECT@GOTPAGE
Lloh132:
	ldr	x8, [x8, _AMF_END_OF_OBJECT@GOTPAGEOFF]
Lloh133:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_avio_w8
	mov	x0, x19
	bl	_avio_tell
	ldr	w8, [x28, #8]
	sub	w8, w0, w8
	sub	w8, w8, #10
	str	w8, [x28, #48]
Lloh134:
	adrp	x20, _SEEK_SET@GOTPAGE
Lloh135:
	ldr	x20, [x20, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_avio_seek
	mov	x0, x19
	mov	x1, x21
	bl	_avio_wb32
	ldr	x1, [x28, #8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_avio_seek
	ldr	w1, [x28, #48]
	mov	x0, x19
	bl	_avio_wb24
	ldr	w8, [x28, #48]
	add	w1, w8, #7
	mov	x0, x19
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_tell
	str	x0, [x28, #56]
	ldr	w8, [x28, #48]
	add	w1, w8, #11
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_avio_wb32
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh126, Lloh127, Lloh128
	.loh AdrpAdd	Lloh124, Lloh125
	.loh AdrpAdd	Lloh122, Lloh123
	.loh AdrpAdd	Lloh120, Lloh121
	.loh AdrpAdd	Lloh118, Lloh119
	.loh AdrpAdd	Lloh116, Lloh117
	.loh AdrpAdd	Lloh114, Lloh115
	.loh AdrpAdd	Lloh112, Lloh113
	.loh AdrpAdd	Lloh110, Lloh111
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpAdd	Lloh106, Lloh107
	.loh AdrpAdd	Lloh104, Lloh105
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpLdrGot	Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpAdd	Lloh129, Lloh130
	.cfi_endproc
                                        ; -- End function
	.comm	_FLV_NO_DURATION_FILESIZE,4,2   ; @FLV_NO_DURATION_FILESIZE
	.comm	_FLV_TAG_TYPE_META,4,2          ; @FLV_TAG_TYPE_META
	.comm	_AMF_DATA_TYPE_STRING,4,2       ; @AMF_DATA_TYPE_STRING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"onMetaData"

	.comm	_AMF_DATA_TYPE_MIXEDARRAY,4,2   ; @AMF_DATA_TYPE_MIXEDARRAY
l_.str.1:                               ; @.str.1
	.asciz	"duration"

	.comm	_AV_TIME_BASE,8,3               ; @AV_TIME_BASE
l_.str.2:                               ; @.str.2
	.asciz	"width"

l_.str.3:                               ; @.str.3
	.asciz	"height"

l_.str.4:                               ; @.str.4
	.asciz	"videodatarate"

l_.str.5:                               ; @.str.5
	.asciz	"framerate"

l_.str.6:                               ; @.str.6
	.asciz	"videocodecid"

l_.str.7:                               ; @.str.7
	.asciz	"audiodatarate"

l_.str.8:                               ; @.str.8
	.asciz	"audiosamplerate"

l_.str.9:                               ; @.str.9
	.asciz	"audiosamplesize"

	.comm	_AV_CODEC_ID_PCM_U8,8,3         ; @AV_CODEC_ID_PCM_U8
l_.str.10:                              ; @.str.10
	.asciz	"stereo"

l_.str.11:                              ; @.str.11
	.asciz	"audiocodecid"

l_.str.12:                              ; @.str.12
	.asciz	"datastream"

l_.str.13:                              ; @.str.13
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ; @AV_DICT_IGNORE_SUFFIX
l_.str.14:                              ; @.str.14
	.asciz	"datasize"

l_.str.15:                              ; @.str.15
	.asciz	"lasttimestamp"

l_.str.16:                              ; @.str.16
	.asciz	"totalframes"

l_.str.17:                              ; @.str.17
	.asciz	"hasAudio"

l_.str.18:                              ; @.str.18
	.asciz	"hasVideo"

l_.str.19:                              ; @.str.19
	.asciz	"hasCuePoints"

l_.str.20:                              ; @.str.20
	.asciz	"hasMetadata"

l_.str.21:                              ; @.str.21
	.asciz	"hasKeyframes"

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.22:                              ; @.str.22
	.asciz	"Ignoring metadata for %s\n"

l_.str.23:                              ; @.str.23
	.asciz	"filesize"

	.comm	_FLV_ADD_KEYFRAME_INDEX,4,2     ; @FLV_ADD_KEYFRAME_INDEX
l_.str.24:                              ; @.str.24
	.asciz	"canSeekToEnd"

l_.str.25:                              ; @.str.25
	.asciz	"videosize"

l_.str.26:                              ; @.str.26
	.asciz	"audiosize"

l_.str.27:                              ; @.str.27
	.asciz	"lastkeyframetimestamp"

l_.str.28:                              ; @.str.28
	.asciz	"lastkeyframelocation"

l_.str.29:                              ; @.str.29
	.asciz	"keyframes"

	.comm	_AMF_DATA_TYPE_OBJECT,4,2       ; @AMF_DATA_TYPE_OBJECT
	.comm	_AMF_END_OF_OBJECT,4,2          ; @AMF_END_OF_OBJECT
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_write_metadata
.subsections_via_symbols
