	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mkv_check_new_extra_data
_mkv_check_new_extra_data:              ## @mkv_check_new_extra_data
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	16(%rdi), %r15
	movq	8(%r15), %r12
	movq	(%rsi), %rcx
	leaq	(%rcx,%rcx,2), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %r14
	movl	$0, -44(%rbp)
	movq	_AV_PKT_DATA_NEW_EXTRADATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_av_packet_get_side_data
	movq	%rax, %rsi
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_16
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_22
## %bb.3:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r12,%rax,8), %rbx
	movl	-44(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_6
## %bb.4:
	movq	(%r13), %rax
	movq	_AVIO_SEEKABLE_NORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.5:
	cmpl	$0, 4(%r15)
	je	LBB0_25
LBB0_6:
	xorl	%r12d, %r12d
	cmpl	$0, 4(%r14)
	jne	LBB0_45
## %bb.7:
	cmpl	$0, (%rbx)
	jne	LBB0_45
## %bb.8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_33
LBB0_9:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %eax
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_45
## %bb.10:
	movq	(%r13), %rcx
	movq	_AVIO_SEEKABLE_NORMAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_45
## %bb.11:
	cmpl	$0, 4(%r15)
	jne	LBB0_45
## %bb.12:
	cmpl	4(%r14), %eax
	jne	LBB0_32
## %bb.13:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_avcodec_parameters_alloc
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_41
## %bb.14:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_avcodec_parameters_copy
	testl	%eax, %eax
	js	LBB0_43
## %bb.15:
	movl	8(%rbx), %edi
	movl	-44(%rbp), %edx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movl	(%r15), %edi
	callq	_avio_tell
	movq	%rax, %r14
	movl	(%r15), %edi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rax,%rcx,8), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	movl	(%r15), %esi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_mkv_write_codecprivate
	movl	(%r15), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_avio_seek
	jmp	LBB0_44
LBB0_16:
	cmpl	$0, -44(%rbp)
	je	LBB0_20
## %bb.17:
	movq	(%r13), %rax
	movq	_AVIO_SEEKABLE_NORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_20
## %bb.18:
	cmpl	$0, 4(%r15)
	jne	LBB0_20
## %bb.19:
	cmpl	$0, 4(%r14)
	je	LBB0_35
LBB0_20:
	xorl	%r12d, %r12d
	cmpl	$0, 4(%r14)
	jne	LBB0_45
LBB0_21:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_45
LBB0_22:
	cmpl	$0, -44(%rbp)
	je	LBB0_24
## %bb.23:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rcx
	leaq	L_.str.2(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_45
LBB0_24:
	xorl	%r12d, %r12d
	jmp	LBB0_45
LBB0_25:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	$0, -56(%rbp)
	leaq	-56(%rbp), %r8
	movq	%r13, %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	callq	_get_aac_sample_rates
	testl	%eax, %eax
	js	LBB0_39
## %bb.26:
	cmpl	$0, -56(%rbp)
	jne	LBB0_28
## %bb.27:
	movl	(%rbx), %eax
	movl	%eax, -56(%rbp)
LBB0_28:
	leaq	8(%r14), %rdi
	callq	_av_freep
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	callq	_ff_alloc_extradata
	testl	%eax, %eax
	js	LBB0_39
## %bb.29:
	movl	8(%r14), %edi
	movl	-44(%rbp), %edx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movl	(%r15), %edi
	callq	_avio_tell
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax,%rcx,8), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	movl	(%r15), %esi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_mkv_write_codecprivate
	movq	_MAX_PCE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r15), %edi
	callq	_avio_tell
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	8(%rdx,%rcx,8), %esi
	subl	%eax, %esi
	addl	%r14d, %esi
	addl	$6, %esi
	je	LBB0_31
## %bb.30:
	movl	(%r15), %edi
	callq	_put_ebml_void
LBB0_31:
	movl	(%r15), %edi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rax,%rcx,8), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_avio_seek
	movl	(%r15), %edi
	movq	_MATROSKA_ID_AUDIOSAMPLINGFREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	callq	_put_ebml_float
	movl	(%r15), %edi
	movq	_MATROSKA_ID_AUDIOOUTSAMPLINGFREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %edx
	callq	_put_ebml_float
	movl	(%r15), %edi
	movl	(%r14), %edx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_avio_seek
	jmp	LBB0_45
LBB0_32:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_33:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_34:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r12d
	jmp	LBB0_45
LBB0_35:
	movq	%rsi, %r13
	movq	%r12, %rbx
	leaq	-56(%rbp), %rdi
	callq	_avio_open_dyn_buf
	testl	%eax, %eax
	js	LBB0_39
## %bb.36:
	movq	-56(%rbp), %rdi
	movl	-44(%rbp), %edx
	movq	%r13, %rsi
	callq	_ff_isom_write_av1c
	movq	-56(%rbp), %rdi
	leaq	-88(%rbp), %rsi
	callq	_avio_close_dyn_buf
	testl	%eax, %eax
	je	LBB0_46
## %bb.37:
	movl	(%r15), %edi
	callq	_avio_tell
	movq	%rax, %r12
	movl	(%r15), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rbx,%rax,8), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_avio_seek
	movl	(%r15), %edi
	movq	_MATROSKA_ID_CODECPRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-88(%rbp), %rdx
	movl	$4, %ecx
	callq	_put_ebml_binary
	movq	-88(%rbp), %rdi
	callq	_av_free
	movl	(%r15), %edi
	movl	(%rbx), %edx
	movq	%r12, %rsi
	callq	_avio_seek
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	callq	_ff_alloc_extradata
	testl	%eax, %eax
	js	LBB0_39
## %bb.38:
	movl	8(%r14), %edi
	movl	-44(%rbp), %edx
	movq	%r13, %rsi
	callq	_memcpy
	xorl	%r12d, %r12d
	jmp	LBB0_45
LBB0_39:
	movl	%eax, %r12d
	jmp	LBB0_45
LBB0_41:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_43:
	movl	%eax, %r12d
LBB0_44:
	leaq	-56(%rbp), %rdi
	callq	_avcodec_parameters_free
LBB0_45:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_46:
	movq	-88(%rbp), %rdi
	callq	_av_free
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PKT_DATA_NEW_EXTRADATA,4,2  ## @AV_PKT_DATA_NEW_EXTRADATA
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ## @AVIO_SEEKABLE_NORMAL
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_MAX_PCE_SIZE,4,2               ## @MAX_PCE_SIZE
	.comm	_MATROSKA_ID_AUDIOSAMPLINGFREQ,4,2 ## @MATROSKA_ID_AUDIOSAMPLINGFREQ
	.comm	_MATROSKA_ID_AUDIOOUTSAMPLINGFREQ,4,2 ## @MATROSKA_ID_AUDIOOUTSAMPLINGFREQ
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error parsing AAC extradata, unable to determine samplerate.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid FLAC STREAMINFO metadata for output stream %d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_MATROSKA_ID_CODECPRIVATE,4,2   ## @MATROSKA_ID_CODECPRIVATE
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"Ignoring new extradata in a packet for stream %d.\n"

	.no_dead_strip	_mkv_check_new_extra_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mkv_check_new_extra_data
_mkv_check_new_extra_data:              ; @mkv_check_new_extra_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x1
	mov	x20, x0
	ldr	x25, [x1]
	ldp	x8, x24, [x0, #8]
	ldr	x8, [x8, x25, lsl #3]
	ldr	x26, [x24, #8]
	ldr	x19, [x8]
	str	wzr, [sp, #28]
Lloh0:
	adrp	x8, _AV_PKT_DATA_NEW_EXTRADATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PKT_DATA_NEW_EXTRADATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #28
	mov	x0, x22
	bl	_av_packet_get_side_data
	mov	x21, x0
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_16
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_21
; %bb.3:
	mov	w8, #24
	madd	x22, x25, x8, x26
	ldr	w2, [sp, #28]
	cbz	w2, LBB0_6
; %bb.4:
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AVIO_SEEKABLE_NORMAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVIO_SEEKABLE_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x24, #4]
	cbz	w8, LBB0_25
LBB0_6:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_23
; %bb.7:
	ldr	w8, [x22]
	cbnz	w8, LBB0_23
; %bb.8:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_33
LBB0_9:
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_23
; %bb.10:
	ldr	x9, [x20]
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _AVIO_SEEKABLE_NORMAL@GOTPAGE
Lloh12:
	ldr	x10, [x10, _AVIO_SEEKABLE_NORMAL@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_23
; %bb.11:
	ldr	w9, [x24, #4]
	cbnz	w9, LBB0_23
; %bb.12:
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.ne	LBB0_32
; %bb.13:
	bl	_avcodec_parameters_alloc
	str	x0, [sp, #16]
	cbz	x0, LBB0_40
; %bb.14:
	mov	x22, x0
	mov	x1, x19
	bl	_avcodec_parameters_copy
	tbnz	w0, #31, LBB0_41
; %bb.15:
	ldr	w0, [x22, #8]
	ldr	w2, [sp, #28]
	mov	x1, x21
	bl	_memcpy
	ldr	w0, [x24]
	bl	_avio_tell
	mov	x19, x0
	ldr	w0, [x24]
	mov	w8, #24
	madd	x8, x25, x8, x26
	ldr	x1, [x8, #8]
Lloh14:
	adrp	x21, _SEEK_SET@GOTPAGE
Lloh15:
	ldr	x21, [x21, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_avio_seek
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x22
	mov	w3, #1
	mov	w4, #0
	bl	_mkv_write_codecprivate
	ldr	w0, [x24]
	ldr	w2, [x21]
	mov	x1, x19
	bl	_avio_seek
	add	x0, sp, #16
	bl	_avcodec_parameters_free
	b	LBB0_23
LBB0_16:
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_20
; %bb.17:
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _AVIO_SEEKABLE_NORMAL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AVIO_SEEKABLE_NORMAL@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.18:
	ldr	w8, [x24, #4]
	cbnz	w8, LBB0_20
; %bb.19:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_35
LBB0_20:
	ldr	w8, [x19, #4]
Lloh19:
	adrp	x9, _AVERROR_INVALIDDATA@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w23, w9, wzr, eq
	b	LBB0_24
LBB0_21:
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_23
; %bb.22:
Lloh22:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	x8, [x22]
	str	x8, [sp]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_23:
	mov	w23, #0
LBB0_24:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_25:
	str	wzr, [sp, #16]
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	bl	_get_aac_sample_rates
	tbnz	w0, #31, LBB0_39
; %bb.26:
	ldr	w8, [sp, #16]
	cbnz	w8, LBB0_28
; %bb.27:
	ldr	w8, [x22]
	str	w8, [sp, #16]
LBB0_28:
	add	x0, x19, #8
	bl	_av_freep
	ldr	w1, [sp, #28]
	mov	x0, x19
	bl	_ff_alloc_extradata
	tbnz	w0, #31, LBB0_39
; %bb.29:
	ldr	w0, [x19, #8]
	ldr	w2, [sp, #28]
	mov	x1, x21
	bl	_memcpy
	ldr	w0, [x24]
	bl	_avio_tell
	mov	x21, x0
	ldr	w0, [x24]
	mov	w8, #24
	madd	x27, x25, x8, x26
	ldr	x1, [x27, #8]
Lloh27:
	adrp	x23, _SEEK_SET@GOTPAGE
Lloh28:
	ldr	x23, [x23, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_avio_seek
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x19
	mov	w3, #1
	mov	w4, #0
	bl	_mkv_write_codecprivate
Lloh29:
	adrp	x8, _MAX_PCE_SIZE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MAX_PCE_SIZE@GOTPAGEOFF]
Lloh31:
	ldr	w19, [x8]
	ldr	w0, [x24]
	bl	_avio_tell
	ldr	w8, [x27, #8]
	sub	w8, w8, w0
	add	w8, w19, w8
	adds	w1, w8, #6
	b.eq	LBB0_31
; %bb.30:
	ldr	w0, [x24]
	bl	_put_ebml_void
LBB0_31:
	ldr	w0, [x24]
	mov	w8, #24
	madd	x8, x25, x8, x26
	ldr	x1, [x8, #16]
	ldr	w2, [x23]
	bl	_avio_seek
	ldr	w0, [x24]
Lloh32:
	adrp	x8, _MATROSKA_ID_AUDIOSAMPLINGFREQ@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MATROSKA_ID_AUDIOSAMPLINGFREQ@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w2, [x22]
	bl	_put_ebml_float
	ldr	w0, [x24]
Lloh35:
	adrp	x8, _MATROSKA_ID_AUDIOOUTSAMPLINGFREQ@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MATROSKA_ID_AUDIOOUTSAMPLINGFREQ@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	w2, [sp, #16]
	bl	_put_ebml_float
	ldr	w0, [x24]
	ldr	w2, [x23]
	mov	x1, x21
	bl	_avio_seek
	b	LBB0_23
LBB0_32:
Lloh38:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	ldr	x8, [x22]
	str	x8, [sp]
Lloh41:
	adrp	x2, l_.str.1@PAGE
Lloh42:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_33:
	mov	x0, x20
	bl	_av_log
Lloh43:
	adrp	x8, _EINVAL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_34:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x23, x0
	b	LBB0_24
LBB0_35:
	add	x0, sp, #16
	bl	_avio_open_dyn_buf
	tbnz	w0, #31, LBB0_39
; %bb.36:
	ldr	x0, [sp, #16]
	ldr	w2, [sp, #28]
	mov	x1, x21
	bl	_ff_isom_write_av1c
	ldr	x0, [sp, #16]
	add	x1, sp, #8
	bl	_avio_close_dyn_buf
	cbz	w0, LBB0_42
; %bb.37:
	ldr	w0, [x24]
	bl	_avio_tell
	mov	x20, x0
	ldr	w0, [x24]
	mov	w8, #24
	madd	x8, x25, x8, x26
	ldr	x1, [x8, #8]
Lloh45:
	adrp	x22, _SEEK_SET@GOTPAGE
Lloh46:
	ldr	x22, [x22, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_avio_seek
	ldr	w0, [x24]
Lloh47:
	adrp	x8, _MATROSKA_ID_CODECPRIVATE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MATROSKA_ID_CODECPRIVATE@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	ldr	x2, [sp, #8]
	mov	w3, #4
	bl	_put_ebml_binary
	ldr	x0, [sp, #8]
	bl	_av_free
	ldr	w0, [x24]
	ldr	w2, [x22]
	mov	x1, x20
	bl	_avio_seek
	ldr	w1, [sp, #28]
	mov	x0, x19
	bl	_ff_alloc_extradata
	tbnz	w0, #31, LBB0_39
; %bb.38:
	ldr	w0, [x19, #8]
	ldr	w2, [sp, #28]
	mov	x1, x21
	bl	_memcpy
	b	LBB0_23
LBB0_39:
	mov	x23, x0
	b	LBB0_24
LBB0_40:
Lloh50:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_34
LBB0_41:
	mov	x23, x0
	add	x0, sp, #16
	bl	_avcodec_parameters_free
	b	LBB0_24
LBB0_42:
	ldr	x0, [sp, #8]
	bl	_av_free
Lloh52:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh53:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh54:
	ldr	w23, [x8]
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PKT_DATA_NEW_EXTRADATA,4,2  ; @AV_PKT_DATA_NEW_EXTRADATA
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ; @AVIO_SEEKABLE_NORMAL
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_MAX_PCE_SIZE,4,2               ; @MAX_PCE_SIZE
	.comm	_MATROSKA_ID_AUDIOSAMPLINGFREQ,4,2 ; @MATROSKA_ID_AUDIOSAMPLINGFREQ
	.comm	_MATROSKA_ID_AUDIOOUTSAMPLINGFREQ,4,2 ; @MATROSKA_ID_AUDIOOUTSAMPLINGFREQ
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error parsing AAC extradata, unable to determine samplerate.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid FLAC STREAMINFO metadata for output stream %d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_MATROSKA_ID_CODECPRIVATE,4,2   ; @MATROSKA_ID_CODECPRIVATE
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"Ignoring new extradata in a packet for stream %d.\n"

	.no_dead_strip	_mkv_check_new_extra_data
.subsections_via_symbols
