	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inject_fake_duration_metadata
_inject_fake_duration_metadata:         ## @inject_fake_duration_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	%rbx, -32(%rbp)
	movl	(%rdi), %edi
	addl	$55, %edi
	callq	_av_malloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	$13, %edx
	callq	_memcpy
	movl	$272, %edi                      ## imm = 0x110
	addq	8(%r15), %rdi
	addq	$52, %rbx
	movl	(%r15), %edx
	addl	$-13, %edx
	movq	%rbx, %rsi
	callq	_memcpy
	addl	$55, (%r15)
	leaq	-32(%rbp), %rdi
	callq	_av_freep
	movq	8(%r15), %rax
	addq	$52, %rax
	movq	%rax, -40(%rbp)
	movq	_FLV_TAG_TYPE_META@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	callq	_bytestream_put_byte
	movq	%r14, %rdi
	movl	$40, %esi
	callq	_bytestream_put_be24
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bytestream_put_be24
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bytestream_put_be32
	movq	_AMF_DATA_TYPE_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bytestream_put_byte
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_bytestream_put_be16
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_bytestream_put_buffer
	movq	_AMF_DATA_TYPE_MIXEDARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bytestream_put_byte
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_bytestream_put_be32
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_bytestream_put_be16
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_bytestream_put_buffer
	movq	_AMF_DATA_TYPE_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bytestream_put_byte
	movl	4(%r15), %edi
	callq	_av_double2int
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bytestream_put_be64
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bytestream_put_be16
	movq	_AMF_END_OF_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bytestream_put_byte
	movq	_RTMP_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	$40, %esi
	movq	%r14, %rdi
	callq	_bytestream_put_be32
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, 8(%r15)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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	_AMF_DATA_TYPE_NUMBER,4,2       ## @AMF_DATA_TYPE_NUMBER
	.comm	_AMF_END_OF_OBJECT,4,2          ## @AMF_END_OF_OBJECT
	.comm	_RTMP_HEADER,4,2                ## @RTMP_HEADER
	.no_dead_strip	_inject_fake_duration_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inject_fake_duration_metadata
_inject_fake_duration_metadata:         ; @inject_fake_duration_metadata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #8]
	str	x20, [sp]
	ldr	w8, [x0]
	add	w0, w8, #55
	bl	_av_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x20
	mov	w2, #13
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x0, x8, #272
	add	x1, x20, #52
	ldr	w8, [x19]
	sub	w2, w8, #13
	bl	_memcpy
	ldr	w8, [x19]
	add	w8, w8, #55
	str	w8, [x19]
	mov	x0, sp
	bl	_av_freep
	ldr	x8, [x19, #8]
	add	x8, x8, #52
	str	x8, [sp, #8]
Lloh0:
	adrp	x8, _FLV_TAG_TYPE_META@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLV_TAG_TYPE_META@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_bytestream_put_byte
	add	x0, sp, #8
	mov	w1, #40
	bl	_bytestream_put_be24
	add	x0, sp, #8
	mov	w1, #0
	bl	_bytestream_put_be24
	add	x0, sp, #8
	mov	w1, #0
	bl	_bytestream_put_be32
Lloh3:
	adrp	x8, _AMF_DATA_TYPE_STRING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AMF_DATA_TYPE_STRING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_bytestream_put_byte
	add	x0, sp, #8
	mov	w1, #10
	bl	_bytestream_put_be16
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w2, #10
	bl	_bytestream_put_buffer
Lloh8:
	adrp	x8, _AMF_DATA_TYPE_MIXEDARRAY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AMF_DATA_TYPE_MIXEDARRAY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_bytestream_put_byte
	add	x0, sp, #8
	mov	w1, #1
	bl	_bytestream_put_be32
	add	x0, sp, #8
	mov	w1, #8
	bl	_bytestream_put_be16
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w2, #8
	bl	_bytestream_put_buffer
Lloh13:
	adrp	x8, _AMF_DATA_TYPE_NUMBER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AMF_DATA_TYPE_NUMBER@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_bytestream_put_byte
	ldr	w0, [x19, #4]
	bl	_av_double2int
	mov	x1, x0
	add	x0, sp, #8
	bl	_bytestream_put_be64
	add	x0, sp, #8
	mov	w1, #0
	bl	_bytestream_put_be16
Lloh16:
	adrp	x8, _AMF_END_OF_OBJECT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AMF_END_OF_OBJECT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_bytestream_put_byte
Lloh19:
	adrp	x8, _RTMP_HEADER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RTMP_HEADER@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	add	w1, w8, #40
	add	x0, sp, #8
	bl	_bytestream_put_be32
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	str	x20, [x19, #8]
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.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	_AMF_DATA_TYPE_NUMBER,4,2       ; @AMF_DATA_TYPE_NUMBER
	.comm	_AMF_END_OF_OBJECT,4,2          ; @AMF_END_OF_OBJECT
	.comm	_RTMP_HEADER,4,2                ; @RTMP_HEADER
	.no_dead_strip	_inject_fake_duration_metadata
.subsections_via_symbols
