	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function track_index
_track_index:                           ## @track_index
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rdi, %r14
	movl	(%rsi), %edi
	callq	_avio_size
	movq	%rax, %r13
	movq	$0, (%rsp)
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_avio_alloc_context
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %rbx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_ffio_read_varlen
	movq	%rbx, %rdi
	callq	_avio_r8
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ffio_read_varlen
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r14)
	shrl	%r15d
	cmpl	%eax, %r15d
	jae	LBB0_2
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$0, (%rdi)
	addq	$8, %rdi
	callq	_av_freep
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%eax, %edi
	movl	$4, %esi
	callq	_av_calloc
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	cmpl	$0, (%rcx)
	je	LBB0_4
## %bb.5:
	xorl	%ecx, %ecx
	movl	$24, %r12d
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	xorl	%r13d, %r13d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ffio_read_varlen
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_ffio_read_varlen
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rbx, %rcx
	jl	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rax, %rcx
	jl	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rcx
	movq	%r15, (%rcx,%r12)
	movq	%rsi, -8(%rcx,%r12)
	movq	%rbx, -24(%rcx,%r12)
	movq	%rax, -16(%rcx,%r12)
	addq	%rbx, %r15
	addq	%rax, %rsi
	movslq	%r13d, %r13
	cmpq	%rax, %r13
	cmovll	%eax, %r13d
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movl	(%rdx), %eax
	addq	$32, %r12
	cmpq	%rax, %rcx
	jb	LBB0_6
## %bb.9:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jg	LBB0_10
	jmp	LBB0_11
LBB0_14:
	movl	$0, (%rcx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_free
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jle	LBB0_11
LBB0_10:
	cmpq	-64(%rbp), %rsi                 ## 8-byte Folded Reload
	jg	LBB0_12
LBB0_11:
	movl	%r13d, %edi
	movl	$4, %esi
	callq	_av_calloc
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_free
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_track_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function track_index
_track_index:                           ; @track_index
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x20, x2
	mov	x19, x0
	ldr	w0, [x1]
	bl	_avio_size
	mov	x21, x0
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	bl	_avio_alloc_context
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
	bl	_ffio_read_varlen
	mov	x0, x20
	bl	_avio_r8
	mov	x0, x20
	bl	_ffio_read_varlen
	str	w0, [x19]
	cmp	w0, w22, lsr #1
	b.ls	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_av_free
	str	wzr, [x19], #8
	mov	x0, x19
	bl	_av_freep
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #4
	bl	_av_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.5:
	ldr	w8, [x19]
	cbz	w8, LBB0_12
; %bb.6:
	mov	x25, #0
	mov	x26, #0
	mov	x27, #0
	mov	x24, #0
	mov	w22, #0
Lloh3:
	adrp	x28, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x28, [x28, _INT_MAX@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_ffio_read_varlen
	mov	x23, x0
	mov	x0, x20
	bl	_ffio_read_varlen
	ldr	x8, [x28]
	cmp	x8, x23
	ccmp	x8, x0, #8, ge
	b.lt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x25
	stp	x24, x27, [x8, #16]
	stp	x23, x0, [x8]
	add	x27, x27, x23
	add	x24, x24, x0
	sxtw	x8, w22
	cmp	x8, x0
	csel	w22, w0, w22, lt
	add	x26, x26, #1
	ldr	w8, [x19]
	add	x25, x25, #32
	cmp	x26, x8
	b.lo	LBB0_7
; %bb.9:
	cmp	x21, #1
	b.ge	LBB0_13
	b	LBB0_14
LBB0_10:
	str	wzr, [x19]
	mov	x0, x20
	bl	_av_free
LBB0_11:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_12:
	mov	w22, #0
	mov	x24, #0
	cmp	x21, #1
	b.lt	LBB0_14
LBB0_13:
	cmp	x24, x21
	b.gt	LBB0_2
LBB0_14:
	mov	x0, x22
	mov	w1, #4
	bl	_av_calloc
	str	x0, [x19, #16]
	mov	x0, x20
	bl	_av_free
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_track_index
.subsections_via_symbols
