	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AVIFILE_ComputeMoviStart
_AVIFILE_ComputeMoviStart:              ## @AVIFILE_ComputeMoviStart
	.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	%rdi, %r14
	movq	24(%rdi), %rax
	movl	$92, %r15d
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	(%rcx), %edx
	incl	%edx
	andl	$-2, %edx
	addq	%rdx, %r15
	addq	$60, %r15
	cmpq	$0, 16(%rcx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rcx), %edx
	testl	%edx, %edx
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%edx
	andl	$-2, %edx
	addq	%rdx, %r15
	addq	$16, %r15
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rcx), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	incl	%eax
	andl	$-2, %eax
	addq	%rax, %r15
	addq	$16, %r15
	movq	24(%r14), %rax
	jmp	LBB0_7
LBB0_8:
	cmpl	$0, (%r14)
	jne	LBB0_10
## %bb.9:
	movq	_AVI_HEADERSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%r15), %rcx
	negq	%rax
	andq	%rcx, %rax
	movq	%rax, %rcx
	subq	%r15, %rcx
	cmpq	$17, %rcx
	cmovbq	%r15, %rax
	movq	%rax, 8(%r14)
	addl	$-8, %eax
	movl	%eax, (%r14)
LBB0_10:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVI_HEADERSIZE,8,3             ## @AVI_HEADERSIZE
	.no_dead_strip	_AVIFILE_ComputeMoviStart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AVIFILE_ComputeMoviStart
_AVIFILE_ComputeMoviStart:              ; @AVIFILE_ComputeMoviStart
	.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
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x21, #0
	mov	w20, #92
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	cmp	x21, x8
	b.hs	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x21, lsl #3]
	ldr	w10, [x9]
	add	w10, w10, #1
	and	w10, w10, #0xfffffffe
	add	x10, x20, x10
	add	x20, x10, #60
	ldr	x10, [x9, #16]
	cbz	x10, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x9, #4]
	cmp	w10, #1
	add	w10, w10, #1
	and	x10, x10, #0xfffffffe
	add	x10, x20, x10
	add	x10, x10, #16
	csel	x20, x20, x10, lt
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x9, #8]
	ldr	x9, [x0]
	cbz	x9, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_lstrlenW
	add	w8, w0, #1
	and	w8, w8, #0xfffffffe
	add	x8, x20, x8
	add	x20, x8, #16
	ldr	x8, [x19, #24]
	b	LBB0_2
LBB0_7:
	mov	w20, #92
LBB0_8:
	ldr	w8, [x19]
	cbnz	w8, LBB0_10
; %bb.9:
Lloh0:
	adrp	x8, _AVI_HEADERSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVI_HEADERSIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x9, x8, x20
	neg	x8, x8
	and	x8, x9, x8
	sub	x9, x8, x20
	cmp	x9, #16
	csel	x8, x8, x20, hi
	str	x8, [x19, #8]
	sub	w8, w8, #8
	str	w8, [x19]
LBB0_10:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVI_HEADERSIZE,8,3             ; @AVI_HEADERSIZE
	.no_dead_strip	_AVIFILE_ComputeMoviStart
.subsections_via_symbols
