	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mkv_write_native_codecprivate
_mkv_write_native_codecprivate:         ## @mkv_write_native_codecprivate
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movl	(%rdx), %eax
	leal	-128(%rax), %ecx
	cmpl	$8, %ecx
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	%r14, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_xiph_codecpriv             ## TAILCALL
LBB0_3:
	movq	_AV_CODEC_ID_PRORES@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_16
## %bb.4:
	movq	_ff_codec_movvideo_tags@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	callq	_ff_codec_get_id
	cmpl	(%r15), %eax
	jne	LBB0_16
## %bb.5:
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_avio_wl32
	jmp	LBB0_24
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_wv_codecpriv               ## TAILCALL
LBB0_7:
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_ff_isom_write_hvcc
	jmp	LBB0_25
LBB0_8:
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_isom_write_avcc             ## TAILCALL
LBB0_9:
	movq	%r14, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_flac_codecpriv             ## TAILCALL
LBB0_10:
	movl	4(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_21
## %bb.11:
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_isom_write_av1c             ## TAILCALL
LBB0_12:
	movl	4(%rbx), %edx
	cmpl	$35, %edx
	jg	LBB0_19
## %bb.13:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_25
LBB0_14:
	movl	4(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_22
## %bb.15:
	movl	8(%rbx), %esi
	jmp	LBB0_20
LBB0_16:
	movl	4(%rbx), %edx
	xorl	%r15d, %r15d
	testl	%edx, %edx
	je	LBB0_25
## %bb.17:
	movl	(%rbx), %eax
	movq	_AV_CODEC_ID_TTA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_25
## %bb.18:
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_avio_write
	jmp	LBB0_25
LBB0_19:
	movl	8(%rbx), %esi
	addl	$12, %esi
	addl	$-12, %edx
LBB0_20:
	movq	%r14, %rdi
	callq	_avio_write
	jmp	LBB0_24
LBB0_21:
	movq	%rsi, %rdi
	movl	$7, %esi
	jmp	LBB0_23
LBB0_22:
	movq	_MAX_PCE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$6, %eax
	movq	%rsi, %rdi
	movl	%eax, %esi
LBB0_23:
	callq	_put_ebml_void
LBB0_24:
	xorl	%r15d, %r15d
LBB0_25:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid extradata found, ALAC expects a 36-byte QuickTime atom."

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_MAX_PCE_SIZE,4,2               ## @MAX_PCE_SIZE
	.comm	_AV_CODEC_ID_PRORES,4,2         ## @AV_CODEC_ID_PRORES
	.comm	_ff_codec_movvideo_tags,4,2     ## @ff_codec_movvideo_tags
	.comm	_AV_CODEC_ID_TTA,4,2            ## @AV_CODEC_ID_TTA
	.no_dead_strip	_mkv_write_native_codecprivate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mkv_write_native_codecprivate
_mkv_write_native_codecprivate:         ; @mkv_write_native_codecprivate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x20, x2
	ldr	w8, [x2]
	sub	w9, w8, #128
	cmp	w9, #8
	b.hi	LBB0_13
; %bb.1:
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x1, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_put_xiph_codecpriv
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_put_wv_codecpriv
LBB0_4:
	ldp	w2, w1, [x20, #4]
	mov	x0, x19
	mov	w3, #0
	bl	_ff_isom_write_hvcc
	b	LBB0_23
LBB0_5:
	ldp	w2, w1, [x20, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ff_isom_write_avcc
LBB0_6:
	mov	x1, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_put_flac_codecpriv
LBB0_7:
	ldr	w2, [x20, #4]
	cbz	w2, LBB0_21
; %bb.8:
	ldr	w1, [x20, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ff_isom_write_av1c
LBB0_9:
	ldr	w8, [x20, #4]
	cmp	w8, #35
	b.gt	LBB0_19
; %bb.10:
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh7:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_24
LBB0_11:
	ldr	w2, [x20, #4]
	cbnz	w2, LBB0_18
; %bb.12:
Lloh10:
	adrp	x8, _MAX_PCE_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_PCE_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	add	w8, w8, #6
	mov	x0, x1
	mov	x1, x8
	b	LBB0_22
LBB0_13:
Lloh13:
	adrp	x21, _AV_CODEC_ID_PRORES@GOTPAGE
Lloh14:
	ldr	x21, [x21, _AV_CODEC_ID_PRORES@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.14:
Lloh15:
	adrp	x8, _ff_codec_movvideo_tags@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ff_codec_movvideo_tags@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_ff_codec_get_id
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.15:
	ldr	w1, [x20, #12]
	mov	x0, x19
	bl	_avio_wl32
	b	LBB0_23
LBB0_16:
	ldr	w2, [x20, #4]
	cbz	w2, LBB0_23
; %bb.17:
	ldr	w8, [x20]
Lloh18:
	adrp	x9, _AV_CODEC_ID_TTA@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AV_CODEC_ID_TTA@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_23
LBB0_18:
	ldr	w1, [x20, #8]
	b	LBB0_20
LBB0_19:
	ldr	w9, [x20, #8]
	add	w1, w9, #12
	sub	w2, w8, #12
LBB0_20:
	mov	x0, x19
	bl	_avio_write
	b	LBB0_23
LBB0_21:
	mov	x0, x1
	mov	w1, #7
LBB0_22:
	bl	_put_ebml_void
LBB0_23:
	mov	w0, #0
LBB0_24:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid extradata found, ALAC expects a 36-byte QuickTime atom."

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_MAX_PCE_SIZE,4,2               ; @MAX_PCE_SIZE
	.comm	_AV_CODEC_ID_PRORES,4,2         ; @AV_CODEC_ID_PRORES
	.comm	_ff_codec_movvideo_tags,4,2     ; @ff_codec_movvideo_tags
	.comm	_AV_CODEC_ID_TTA,4,2            ; @AV_CODEC_ID_TTA
	.no_dead_strip	_mkv_write_native_codecprivate
.subsections_via_symbols
