	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_qt_codec
_get_qt_codec:                          ## @get_qt_codec
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_MATROSKA_TRACK_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdi
	cmpq	(%rax), %rcx
	jne	LBB0_1
## %bb.2:
	movq	_ff_codec_movvideo_tags@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ff_codec_movaudio_tags@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %r12
	callq	_AV_RL32
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_ff_codec_get_id
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	24(%rbx), %rdi
	movq	16(%rbx), %rax
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$4, %rsi
	callq	_av_buffer_realloc
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movq	16(%rbx), %rdx
	movq	24(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rsi, 8(%rbx)
	leaq	4(%rsi), %rdi
	callq	_memmove
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rsi
	addq	$4, %rsi
	movq	%rsi, 16(%rbx)
	callq	_AV_WB32
LBB0_6:
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	callq	_AV_RL32
	movl	%eax, (%r15)
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_ff_codec_get_id
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MATROSKA_TRACK_TYPE_VIDEO,8,3  ## @MATROSKA_TRACK_TYPE_VIDEO
	.comm	_ff_codec_movvideo_tags,8,3     ## @ff_codec_movvideo_tags
	.comm	_ff_codec_movaudio_tags,8,3     ## @ff_codec_movaudio_tags
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.no_dead_strip	_get_qt_codec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_qt_codec
_get_qt_codec:                          ; @get_qt_codec
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _MATROSKA_TRACK_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MATROSKA_TRACK_TYPE_VIDEO@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ff_codec_movvideo_tags@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ff_codec_movvideo_tags@GOTPAGEOFF]
Lloh4:
	adrp	x10, _ff_codec_movaudio_tags@GOTPAGE
Lloh5:
	ldr	x10, [x10, _ff_codec_movaudio_tags@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldp	x11, x0, [x0]
	cmp	x11, x8
	csel	x8, x9, x10, eq
	ldr	x22, [x8]
	bl	_AV_RL32
	mov	x1, x0
	mov	x0, x22
	bl	_ff_codec_get_id
	cbz	w0, LBB0_3
; %bb.1:
	add	x0, x21, #24
	ldr	x8, [x21, #16]
Lloh7:
	adrp	x9, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x8, x8, x9
	add	x1, x8, #4
	bl	_av_buffer_realloc
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldp	x2, x8, [x21, #16]
	ldr	x1, [x8]
	str	x1, [x21, #8]
	add	x0, x1, #4
	bl	_memmove
	ldp	x0, x8, [x21, #8]
	add	x1, x8, #4
	str	x1, [x21, #16]
	bl	_AV_WB32
LBB0_3:
	ldr	x8, [x21, #8]
	add	x0, x8, #4
	bl	_AV_RL32
	mov	x1, x0
	str	w0, [x20]
	mov	x0, x22
	bl	_ff_codec_get_id
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
LBB0_4:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MATROSKA_TRACK_TYPE_VIDEO,8,3  ; @MATROSKA_TRACK_TYPE_VIDEO
	.comm	_ff_codec_movvideo_tags,8,3     ; @ff_codec_movvideo_tags
	.comm	_ff_codec_movaudio_tags,8,3     ; @ff_codec_movaudio_tags
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.no_dead_strip	_get_qt_codec
.subsections_via_symbols
