	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AVIFILE_UpdateInfo
_AVIFILE_UpdateInfo:                    ## @AVIFILE_UpdateInfo
	.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	%rdi, %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	movq	$0, 72(%r15)
	movq	_AVIFILECAPS_CANREAD@GOTPCREL(%rip), %rax
	movq	_AVIFILECAPS_CANWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%r15)
	movq	$0, (%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r15)
	movups	%xmm0, 32(%r15)
	movups	%xmm0, 48(%r15)
	cmpq	$0, 64(%r15)
	je	LBB0_17
## %bb.1:
	leaq	16(%r15), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%rbx), %rax
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdi
	callq	_MulDiv
	addq	%rax, 72(%r15)
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	64(%r15), %r12
	jae	LBB0_17
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	80(%r15), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax,%r12,8)
	setne	%dil
	callq	_assert
	movq	80(%r15), %rax
	movq	(%rax,%r12,8), %rbx
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	setne	%dil
	callq	_assert
	testq	%r12, %r12
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	80(%r15), %rax
	movq	(%rax), %rdi
	movq	(%rax,%r12,8), %rsi
	movq	24(%rbx), %rdx
	callq	_AVIStreamSampleToSample
	cmpq	%rax, 56(%r15)
	jl	LBB0_5
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_MulDiv
	addq	%rax, 72(%r15)
	movq	56(%rbx), %rax
	subq	64(%rbx), %rax
	cmpq	%rax, 24(%r15)
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 24(%r15)
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	72(%rbx), %rax
	subq	80(%rbx), %rax
	cmpq	%rax, 32(%r15)
	jge	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 32(%r15)
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movups	8(%rbx), %xmm0
	movups	%xmm0, 40(%r15)
	movq	24(%rbx), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 56(%r15)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rax
	cmpq	%rax, (%r15)
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, (%r15)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rbx), %rdi
	cmpq	%rdi, (%r14)
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, (%r14)
	jmp	LBB0_10
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVIFILECAPS_CANREAD,4,2        ## @AVIFILECAPS_CANREAD
	.comm	_AVIFILECAPS_CANWRITE,4,2       ## @AVIFILECAPS_CANWRITE
	.no_dead_strip	_AVIFILE_UpdateInfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AVIFILE_UpdateInfo
_AVIFILE_UpdateInfo:                    ; @AVIFILE_UpdateInfo
	.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, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	str	xzr, [x19, #72]
Lloh0:
	adrp	x8, _AVIFILECAPS_CANREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVIFILECAPS_CANREAD@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AVIFILECAPS_CANWRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AVIFILECAPS_CANWRITE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	movi.2d	v0, #0000000000000000
	mov	x20, x19
	str	q0, [x20, #16]!
	str	xzr, [x19]
	stp	q0, q0, [x19, #32]
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_17
; %bb.1:
	mov	x21, #0
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #48]
	ldp	x2, x1, [x22, #8]
	cbz	x8, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x8
	bl	_MulDiv
	ldr	x8, [x19, #72]
	add	x8, x8, x0
	str	x8, [x19, #72]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldr	x8, [x19, #64]
	cmp	x21, x8
	b.hs	LBB0_17
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #80]
	lsl	x22, x21, #3
	ldr	x8, [x8, x22]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19, #80]
	ldr	x22, [x8, x22]
	ldr	x8, [x22, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x22, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	cbz	x21, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #80]
	ldr	x0, [x8]
	ldr	x1, [x8, x21, lsl #3]
	ldr	x2, [x22, #24]
	bl	_AVIStreamSampleToSample
	ldr	x8, [x19, #56]
	cmp	x8, x0
	b.lt	LBB0_12
	b	LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_MulDiv
	ldr	x8, [x19, #72]
	add	x8, x8, x0
	str	x8, [x19, #72]
	ldp	x8, x9, [x22, #56]
	ldr	x10, [x19, #24]
	sub	x8, x8, x9
	cmp	x10, x8
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x19, #24]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	x8, x9, [x22, #72]
	ldr	x10, [x19, #32]
	sub	x8, x8, x9
	cmp	x10, x8
	b.ge	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x19, #32]
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	q0, [x22, #8]
	stur	q0, [x19, #40]
	ldr	x0, [x22, #24]
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x0, [x19, #56]
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19]
	ldr	x8, [x22, #32]
	cmp	x9, x8
	b.ge	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x19]
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	ldr	x0, [x22, #40]
	cmp	x8, x0
	b.ge	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	str	x0, [x20]
	b	LBB0_2
LBB0_17:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVIFILECAPS_CANREAD,4,2        ; @AVIFILECAPS_CANREAD
	.comm	_AVIFILECAPS_CANWRITE,4,2       ; @AVIFILECAPS_CANWRITE
	.no_dead_strip	_AVIFILE_UpdateInfo
.subsections_via_symbols
