	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avi_write_super_index_chunk
_avi_write_super_index_chunk:           ## @avi_write_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.5:
	movq	_AVI_SUPER_INDEX_ENTRY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	$32, %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_WRITE_BYTES
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_STREAM_STATUS                  ## TAILCALL
LBB0_1:
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	(%rbx), %rax
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	cmpq	$0, 24(%r12)
	je	LBB0_3
## %bb.2:
	movl	$105, %edi
	movl	$110, %esi
	movl	$100, %edx
	movl	$120, %ecx
	jmp	LBB0_4
LBB0_3:
	movl	$74, %edi
	movl	$85, %esi
	movl	$78, %edx
	movl	$75, %ecx
LBB0_4:
	callq	_VC_FOURCC
	movl	%eax, %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_WRITE_FOURCC
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_WRITE_U32
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_avi_chunk_id_from_track_num
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_WRITE_U16
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U8
	movq	_AVI_INDEX_OF_INDEXES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	callq	_WRITE_U8
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_WRITE_U32
	movl	-36(%rbp), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%rbx, %rdi
	callq	_WRITE_FOURCC
	leaq	L_.str.7(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U32
	leaq	L_.str.8(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U32
	leaq	L_.str.9(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U32
	movq	24(%r12), %rsi
	movl	(%r12), %r14d
	xorl	%eax, %eax
	cmpq	$0, 16(%r12)
	sete	%al
	movl	4(%r12,%rax,4), %r15d
	leaq	L_.str.10(%rip), %rdx
	movq	%rbx, %rdi
	callq	_WRITE_U64
	leaq	L_.str.11(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_WRITE_U32
	leaq	L_.str.12(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_WRITE_U32
	movq	%rbx, %rdi
	callq	_AVI_END_CHUNK
	movq	%rbx, %rdi
	callq	_STREAM_STATUS
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVI_SUPER_INDEX_ENTRY_SIZE,8,3 ## @AVI_SUPER_INDEX_ENTRY_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Chunk ID"

L_.str.1:                               ## @.str.1
	.asciz	"Chunk Size"

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

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

	.comm	_AVI_INDEX_OF_INDEXES,4,2       ## @AVI_INDEX_OF_INDEXES
L_.str.4:                               ## @.str.4
	.asciz	"bIndexType"

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

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

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

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

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

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

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

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

	.no_dead_strip	_avi_write_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_write_super_index_chunk
_avi_write_super_index_chunk:           ; @avi_write_super_index_chunk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AVI_SUPER_INDEX_ENTRY_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVI_SUPER_INDEX_ENTRY_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w2, w8, #32
	mov	x0, x19
	mov	x1, #0
	bl	_WRITE_BYTES
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_STREAM_STATUS
LBB0_2:
	mov	x21, x2
	mov	x20, x1
	ldr	x8, [x19]
	ldr	x8, [x8, w1, uxtw #3]
	ldr	x8, [x8]
	ldr	x22, [x8]
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w0, #105
	mov	w1, #110
	mov	w2, #100
	mov	w3, #120
	b	LBB0_5
LBB0_4:
	mov	w0, #74
	mov	w1, #85
	mov	w2, #78
	mov	w3, #75
LBB0_5:
	bl	_VC_FOURCC
	mov	x1, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_WRITE_FOURCC
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_WRITE_U32
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_avi_chunk_id_from_track_num
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w21, #4
	mov	x0, x19
	mov	w1, #4
	bl	_WRITE_U16
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_U8
Lloh11:
	adrp	x8, _AVI_INDEX_OF_INDEXES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVI_INDEX_OF_INDEXES@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.4@PAGE
Lloh15:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_WRITE_U8
Lloh16:
	adrp	x2, l_.str.5@PAGE
Lloh17:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_WRITE_U32
	ldr	w1, [sp, #12]
Lloh18:
	adrp	x2, l_.str.6@PAGE
Lloh19:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_WRITE_FOURCC
Lloh20:
	adrp	x2, l_.str.7@PAGE
Lloh21:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_U32
Lloh22:
	adrp	x2, l_.str.8@PAGE
Lloh23:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_U32
Lloh24:
	adrp	x2, l_.str.9@PAGE
Lloh25:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_U32
	ldr	w20, [x22]
	ldp	x8, x1, [x22, #16]
	mov	w9, #8
	cmp	x8, #0
	csel	x8, x9, x21, eq
	ldr	w21, [x22, x8]
Lloh26:
	adrp	x2, l_.str.10@PAGE
Lloh27:
	add	x2, x2, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_WRITE_U64
Lloh28:
	adrp	x2, l_.str.11@PAGE
Lloh29:
	add	x2, x2, l_.str.11@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_WRITE_U32
Lloh30:
	adrp	x2, l_.str.12@PAGE
Lloh31:
	add	x2, x2, l_.str.12@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_WRITE_U32
	mov	x0, x19
	bl	_AVI_END_CHUNK
	mov	x0, x19
	bl	_STREAM_STATUS
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVI_SUPER_INDEX_ENTRY_SIZE,8,3 ; @AVI_SUPER_INDEX_ENTRY_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Chunk ID"

l_.str.1:                               ; @.str.1
	.asciz	"Chunk Size"

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

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

	.comm	_AVI_INDEX_OF_INDEXES,4,2       ; @AVI_INDEX_OF_INDEXES
l_.str.4:                               ; @.str.4
	.asciz	"bIndexType"

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

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

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

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

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

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

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

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

	.no_dead_strip	_avi_write_super_index_chunk
.subsections_via_symbols
