	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_vtrk
_parse_vtrk:                            ## @parse_vtrk
	.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	_vtrk_SIZE@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_2
## %bb.1:
	addl	$8, %ecx
	cmpl	%r8d, %ecx
	jg	LBB0_2
## %bb.3:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %r15
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	movq	%rax, %rdi
	movl	$60, %esi
	callq	_avpriv_set_pts_info
	movl	8(%r15), %eax
	movl	%eax, (%rbx)
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, 32(%rcx)
	movq	_AV_CODEC_ID_4XM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rcx)
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$4, %rdi
	callq	_av_mallocz
	movl	%eax, %ebx
	movq	(%r15), %rax
	movl	%ebx, 24(%rax)
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.5:
	movl	$4, (%rax)
	leaq	64(%r14), %rdi
	callq	_AV_RL32
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_AV_WL32
	leaq	144(%r14), %rdi
	callq	_AV_RL32
	movq	(%r15), %rcx
	movq	%rax, 16(%rcx)
	addq	$160, %r14
	movq	%r14, %rdi
	callq	_AV_RL32
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vtrk_SIZE,4,2                  ## @vtrk_SIZE
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_4XM,4,2            ## @AV_CODEC_ID_4XM
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.no_dead_strip	_parse_vtrk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_vtrk
_parse_vtrk:                            ; @parse_vtrk
	.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
	add	w8, w3, #8
Lloh0:
	adrp	x9, _vtrk_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _vtrk_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w3
	ccmp	w8, w4, #0, eq
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_2:
	mov	x19, x2
	mov	x21, x1
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	ldp	w3, w2, [x21, #4]
	mov	w1, #60
	bl	_avpriv_set_pts_info
	ldr	w8, [x20, #8]
Lloh6:
	adrp	x9, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
	str	w8, [x21]
Lloh8:
	ldr	w8, [x9]
	ldr	x9, [x20]
Lloh9:
	adrp	x10, _AV_CODEC_ID_4XM@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AV_CODEC_ID_4XM@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #28]
Lloh12:
	adrp	x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x0, x8, #4
	bl	_av_mallocz
	ldr	x8, [x20]
	str	w0, [x8, #24]
	cbz	w0, LBB0_6
; %bb.4:
	mov	x21, x0
	mov	w9, #4
	str	w9, [x8]
	add	x0, x19, #64
	bl	_AV_RL32
	mov	x1, x0
	mov	x0, x21
	bl	_AV_WL32
	add	x0, x19, #144
	bl	_AV_RL32
	ldr	x8, [x20]
	str	x0, [x8, #16]
	add	x0, x19, #160
	bl	_AV_RL32
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x20]
	str	x8, [x9, #8]
LBB0_5:
	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
LBB0_6:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	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	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_vtrk_SIZE,4,2                  ; @vtrk_SIZE
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_4XM,4,2            ; @AV_CODEC_ID_4XM
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.no_dead_strip	_parse_vtrk
.subsections_via_symbols
