	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avi_scan_super_index_chunk
_avi_scan_super_index_chunk:            ## @avi_scan_super_index_chunk
	.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	%r8, -88(%rbp)                  ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movl	8(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r15, %rsi
	callq	_SEEK
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_READ_U16
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_READ_U8
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_READ_U8
	movq	%rax, %r12
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_READ_U32
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_READ_FOURCC
	movl	%eax, %r14d
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_SKIP_U32
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_SKIP_U32
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_SKIP_U32
	movq	%rbx, %rdi
	callq	_STREAM_STATUS
	movq	%rax, %r13
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_18
## %bb.1:
	movq	_AVI_INDEX_OF_INDEXES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_15
## %bb.2:
	leaq	-68(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	movl	%r14d, %edi
	callq	_avi_track_from_chunk_id
	movl	-68(%rbp), %esi
	movl	-52(%rbp), %edx
	movq	%rbx, %rdi
	callq	_avi_check_track
	testq	%rax, %rax
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	jne	LBB0_5
## %bb.3:
	cmpl	$24, %esi
	jl	LBB0_5
## %bb.4:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -52(%rbp)
	jne	LBB0_5
## %bb.6:
	cmpl	$4, -60(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_16
## %bb.7:
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_16
## %bb.8:
	addl	$-24, %esi
	shrl	$2, %esi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_MIN
	testl	%eax, %eax
	jle	LBB0_9
## %bb.10:
	movl	%eax, %r14d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_READ_U64
	movq	%rax, %r12
	movq	%rbx, %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_SKIP_U32
	movq	%rbx, %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_SKIP_U32
	movq	%rbx, %rdi
	callq	_STREAM_STATUS
	movq	%rax, %r13
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%edi, %edi
	callq	_UINT64_C
	cmpq	%rax, %r12
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_STREAM_POSITION
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	callq	_avi_scan_standard_index_chunk
	movq	%rax, %r13
	movq	_VC_CONTAINER_ERROR_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_SEEK
	decl	%r14d
	jne	LBB0_11
	jmp	LBB0_18
LBB0_15:
	movq	_AVI_INDEX_OF_CHUNKS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_16
## %bb.19:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_avi_scan_standard_index_chunk  ## TAILCALL
LBB0_16:
	movq	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_5:
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %rax
LBB0_17:
	movq	(%rax), %r13
LBB0_18:
	movq	%r13, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%r13d, %r13d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ERROR_NOT_FOUND,8,3 ## @VC_CONTAINER_ERROR_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wLongsPerEntry"

L_.str.1:                               ## @.str.1
	.asciz	"bIndexSubType"

L_.str.2:                               ## @.str.2
	.asciz	"bIndexType"

L_.str.3:                               ## @.str.3
	.asciz	"nEntriesInUse"

L_.str.4:                               ## @.str.4
	.asciz	"dwChunkId"

L_.str.5:                               ## @.str.5
	.asciz	"dwReserved0"

L_.str.6:                               ## @.str.6
	.asciz	"dwReserved1"

L_.str.7:                               ## @.str.7
	.asciz	"dwReserved2"

	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_AVI_INDEX_OF_INDEXES,8,3       ## @AVI_INDEX_OF_INDEXES
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,8,3 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,8,3 ## @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
L_.str.8:                               ## @.str.8
	.asciz	"qwOffset"

L_.str.9:                               ## @.str.9
	.asciz	"dwSize"

L_.str.10:                              ## @.str.10
	.asciz	"dwDuration"

	.comm	_AVI_INDEX_OF_CHUNKS,8,3        ## @AVI_INDEX_OF_CHUNKS
	.no_dead_strip	_avi_scan_super_index_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avi_scan_super_index_chunk
_avi_scan_super_index_chunk:            ; @avi_scan_super_index_chunk
	.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
	str	x4, [sp, #16]                   ; 8-byte Folded Spill
	str	w3, [sp, #12]                   ; 4-byte Folded Spill
	str	x2, [sp]                        ; 8-byte Folded Spill
	mov	x22, x1
	mov	x23, x0
	ldr	x8, [x0]
	ldr	x8, [x8, w1, uxtw #3]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x26, [x8]
	ldr	w21, [x8, #8]
	mov	x1, x26
	bl	_SEEK
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_READ_U16
	mov	x24, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_READ_U8
	mov	x25, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_READ_U8
	mov	x19, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_READ_U32
	mov	x27, x0
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_READ_FOURCC
	mov	x20, x0
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x23
	bl	_SKIP_U32
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x23
	bl	_SKIP_U32
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x23
	bl	_SKIP_U32
	mov	x0, x23
	bl	_STREAM_STATUS
	mov	x28, x0
Lloh16:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.1:
Lloh19:
	adrp	x8, _AVI_INDEX_OF_INDEXES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AVI_INDEX_OF_INDEXES@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x19, x8
	b.ne	LBB0_12
; %bb.2:
	add	x1, sp, #28
	add	x2, sp, #24
	mov	x0, x20
	bl	_avi_track_from_chunk_id
	ldp	w2, w1, [sp, #24]
	mov	x0, x23
	bl	_avi_check_track
	cbnz	x0, LBB0_15
; %bb.3:
	ldr	w9, [sp, #24]
	subs	w8, w21, #24
	ccmp	w9, w22, #0, ge
	b.ne	LBB0_15
; %bb.4:
	cmp	w24, #4
	b.ne	LBB0_14
; %bb.5:
	cbnz	x25, LBB0_14
; %bb.6:
	lsr	w1, w8, #2
	mov	x0, x27
	bl	_MIN
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.7:
	mov	x24, x0
Lloh22:
	adrp	x25, l_.str.8@PAGE
Lloh23:
	add	x25, x25, l_.str.8@PAGEOFF
Lloh24:
	adrp	x26, l_.str.9@PAGE
Lloh25:
	add	x26, x26, l_.str.9@PAGEOFF
Lloh26:
	adrp	x21, _VC_CONTAINER_ERROR_NOT_FOUND@GOTPAGE
Lloh27:
	ldr	x21, [x21, _VC_CONTAINER_ERROR_NOT_FOUND@GOTPAGEOFF]
Lloh28:
	adrp	x27, l_.str.10@PAGE
Lloh29:
	add	x27, x27, l_.str.10@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x25
	bl	_READ_U64
	mov	x19, x0
	mov	x0, x23
	mov	x1, x26
	bl	_SKIP_U32
	mov	x0, x23
	mov	x1, x27
	bl	_SKIP_U32
	mov	x0, x23
	bl	_STREAM_STATUS
Lloh30:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #0
	bl	_UINT64_C
	cmp	x19, x0
	b.eq	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x23
	bl	_STREAM_POSITION
	mov	x20, x0
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	ldr	x3, [sp]                        ; 8-byte Folded Reload
	ldr	w4, [sp, #12]                   ; 4-byte Folded Reload
	ldr	x5, [sp, #16]                   ; 8-byte Folded Reload
	bl	_avi_scan_standard_index_chunk
	mov	x28, x0
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x23
	mov	x1, x20
	bl	_SEEK
	subs	w24, w24, #1
	b.ne	LBB0_8
	b	LBB0_17
LBB0_12:
Lloh33:
	adrp	x8, _AVI_INDEX_OF_CHUNKS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AVI_INDEX_OF_CHUNKS@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cmp	x19, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x23
	mov	x1, x26
	mov	x2, x22
	ldr	x3, [sp]                        ; 8-byte Folded Reload
	ldr	w4, [sp, #12]                   ; 4-byte Folded Reload
	ldr	x5, [sp, #16]                   ; 8-byte Folded Reload
	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
	b	_avi_scan_standard_index_chunk
LBB0_14:
Lloh36:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh38:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh39:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
LBB0_16:
	ldr	x28, [x8]
LBB0_17:
	mov	x0, x28
	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_18:
	mov	x28, #0
	b	LBB0_17
LBB0_19:
	mov	x28, x0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ERROR_NOT_FOUND,8,3 ; @VC_CONTAINER_ERROR_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wLongsPerEntry"

l_.str.1:                               ; @.str.1
	.asciz	"bIndexSubType"

l_.str.2:                               ; @.str.2
	.asciz	"bIndexType"

l_.str.3:                               ; @.str.3
	.asciz	"nEntriesInUse"

l_.str.4:                               ; @.str.4
	.asciz	"dwChunkId"

l_.str.5:                               ; @.str.5
	.asciz	"dwReserved0"

l_.str.6:                               ; @.str.6
	.asciz	"dwReserved1"

l_.str.7:                               ; @.str.7
	.asciz	"dwReserved2"

	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_AVI_INDEX_OF_INDEXES,8,3       ; @AVI_INDEX_OF_INDEXES
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,8,3 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,8,3 ; @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
l_.str.8:                               ; @.str.8
	.asciz	"qwOffset"

l_.str.9:                               ; @.str.9
	.asciz	"dwSize"

l_.str.10:                              ; @.str.10
	.asciz	"dwDuration"

	.comm	_AVI_INDEX_OF_CHUNKS,8,3        ; @AVI_INDEX_OF_CHUNKS
	.no_dead_strip	_avi_scan_super_index_chunk
.subsections_via_symbols
