	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function AVISplitter_ProcessOldIndex
LCPI0_0:
	.long	0x428c0000                      ## float 70
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_AVISplitter_ProcessOldIndex:           ## @AVISplitter_ProcessOldIndex
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	32(%rdi), %edi
	callq	_BYTES_FROM_MEDIATIME
                                        ## kill: def $eax killed $eax def $rax
	movq	8(%rbx), %r15
	cmpl	$24, (%r15)
	jb	LBB0_21
## %bb.1:
	addl	$-4, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$-1, -64(%rbp)                  ## 4-byte Folded Spill
	xorl	%esi, %esi
	xorl	%eax, %eax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movslq	(%r15), %rax
	movabsq	$-6148914691236517205, %rdx     ## imm = 0xAAAAAAAAAAAAAAAB
	mulq	%rdx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	incq	%rax
	shrq	$4, %rdx
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	addq	$24, %rsi
	cmpq	%rax, %rdx
	jbe	LBB0_19
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	$0, -44(%rbp)
	movq	24(%rbx), %r13
	movq	8(%r15), %rax
	movl	(%rax,%rsi), %r12d
	movl	4(%rax,%rsi), %eax
	movl	%eax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	movq	%rsi, %rbx
	leaq	-48(%rbp), %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movq	8(%r15), %rax
	movq	8(%rax,%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.4(%rip), %rax
	cmoveq	%rax, %rsi
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rdx
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_TRACE
	movq	8(%r15), %rax
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	16(%rax,%rbx), %rsi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	cmpl	$-1, %r14d
	jne	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	movl	%r12d, %esi
	movl	$4, %edx
	leaq	-52(%rbp), %rcx
	callq	_IAsyncReader_SyncRead
	movl	-48(%rbp), %r15d
	xorl	%ebx, %ebx
	cmpl	-52(%rbp), %r15d
	setne	%bl
	movl	$55, %edi
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$120, %esi
	movl	$120, %edx
	callq	_mmioFOURCC
	movzbl	-52(%rbp), %ecx
	movzbl	-51(%rbp), %edx
	xorb	$105, %cl
	xorb	$120, %dl
	orb	%cl, %dl
	movl	%ebx, %ecx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %r15d
	cmovel	%ecx, %ebx
	testl	%ebx, %ebx
	je	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	(%r12,%rax), %r14d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	callq	_BYTES_FROM_MEDIATIME
	cmpl	%eax, %r14d
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%r14d, %esi
	movl	$4, %edx
	leaq	-44(%rbp), %rcx
	callq	_IAsyncReader_SyncRead
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %r15d
	movl	$55, %edi
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$120, %esi
	movl	$120, %edx
	callq	_mmioFOURCC
	cmpl	%eax, %r15d
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$105, -44(%rbp)
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$120, -43(%rbp)
	je	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax
	cmpl	-48(%rbp), %eax
	jne	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	leaq	-44(%rbp), %rdi
	movl	$4, %esi
	callq	_debugstr_an
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-52(%rbp), %rdi
	movl	$4, %esi
	callq	_debugstr_an
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.7(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-48(%rbp), %rdi
	movl	$4, %esi
	callq	_debugstr_an
	movq	%rax, %r15
	leaq	-52(%rbp), %rdi
	movl	$4, %esi
	callq	_debugstr_an
	movq	%rax, %r13
	leaq	-44(%rbp), %rdi
	movl	$4, %esi
	callq	_debugstr_an
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_wine_dbgstr_longlong
	leaq	L_.str.6(%rip), %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movq	%rbx, %r8
	movl	%eax, %r9d
	callq	_ERR
	movl	$-1, -64(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_14
LBB0_18:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_19:
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_22
## %bb.20:
	cmpl	$-1, %eax
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_23
LBB0_21:
	leaq	L_.str.8(%rip), %rdi
	callq	_FIXME
	movq	8(%rbx), %rdi
	callq	_CoTaskMemFree
	movq	$0, 8(%rbx)
	jmp	LBB0_24
LBB0_22:
	movl	$0, (%rbx)
	jmp	LBB0_24
LBB0_23:
	movl	%eax, (%rbx)
LBB0_24:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dwChunkId: %.4s\n"

L_.str.1:                               ## @.str.1
	.asciz	"dwFlags: %08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"dwOffset (%s): %08x\n"

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

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

L_.str.5:                               ## @.str.5
	.asciz	"dwSize: %08x\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.6:                               ## @.str.6
	.asciz	"Faulty index or bug in handling: Wanted FCC: %s, Abs FCC: %s (@ %x), Rel FCC: %s (@ %s)\n"

L_.str.7:                               ## @.str.7
	.asciz	"Scanned dwChunkId: %s\n"

L_.str.8:                               ## @.str.8
	.asciz	"Dropping index: no idea whether it is relative or absolute\n"

	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_AVISplitter_ProcessOldIndex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AVISplitter_ProcessOldIndex
_AVISplitter_ProcessOldIndex:           ; @AVISplitter_ProcessOldIndex
	.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
	mov	x19, x0
	ldr	w0, [x0, #32]
	bl	_BYTES_FROM_MEDIATIME
	ldr	x21, [x19, #8]
	ldr	w8, [x21]
	cmp	w8, #24
	b.lo	LBB0_17
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	sub	w28, w0, #4
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	mov	w24, #-1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #20
	mov	w1, #4
	bl	_debugstr_an
	mov	x20, x28
	mov	x28, x0
	add	x0, sp, #28
	mov	w1, #4
	bl	_debugstr_an
	mov	x25, x0
	add	x0, sp, #24
	mov	w1, #4
	bl	_debugstr_an
	mov	x24, x0
	mov	x0, x27
	bl	_wine_dbgstr_longlong
	mov	x5, x0
Lloh2:
	adrp	x0, l_.str.6@PAGE
Lloh3:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x28
	mov	x28, x20
Lloh4:
	adrp	x20, l_.str@PAGE
Lloh5:
	add	x20, x20, l_.str@PAGEOFF
	mov	x2, x25
	mov	x3, x26
	mov	x4, x24
	bl	_ERR
	mov	w24, #-1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	mov	x9, #-6148914691236517206
	movk	x9, #43691
	umulh	x8, x8, x9
	add	x22, x22, #24
	cmp	x23, x8, lsr #4
	b.hs	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #24]
	ldr	x25, [x19, #24]
	ldr	x8, [x21, #8]
	add	x8, x8, x22
	ldp	w26, w8, [x8]
	str	w8, [sp, #20]
	add	x1, sp, #20
	mov	x0, x20
	bl	_TRACE
	ldr	x8, [x21, #8]
	add	x8, x8, x22
	ldr	x1, [x8, #8]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	cmp	w24, #0
Lloh8:
	adrp	x8, l_.str.3@PAGE
Lloh9:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh10:
	adrp	x9, l_.str.4@PAGE
Lloh11:
	add	x9, x9, l_.str.4@PAGEOFF
	csel	x1, x9, x8, eq
	str	x26, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	ldr	x8, [x21, #8]
	add	x8, x8, x22
	ldr	x1, [x8, #16]
Lloh14:
	adrp	x0, l_.str.5@PAGE
Lloh15:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_TRACE
	cmn	w24, #1
	b.ne	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	add	x3, sp, #28
	mov	x1, x26
	mov	w2, #4
	bl	_IAsyncReader_SyncRead
	ldr	w24, [sp, #20]
	ldr	w8, [sp, #28]
	cmp	w24, w8
	cset	w27, ne
	mov	w8, #1116471296
	fmov	s0, w8
	mov	w0, #55
	mov	w1, #120
	mov	w2, #120
	bl	_mmioFOURCC
	ldrb	w8, [sp, #28]
	ldrb	w9, [sp, #29]
	cmp	w9, #120
	mov	w9, #105
	ccmp	w8, w9, #0, eq
	ccmp	w24, w0, #0, eq
Lloh16:
	adrp	x8, _FALSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	csel	w24, w8, w27, eq
	cbz	w24, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w27, w26, w28
	ldr	w0, [x19, #16]
	bl	_BYTES_FROM_MEDIATIME
	cmp	w27, w0
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	add	x3, sp, #24
	mov	x1, x27
	mov	w2, #4
	bl	_IAsyncReader_SyncRead
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w25, [sp, #20]
	mov	w8, #1116471296
	fmov	s0, w8
	mov	w0, #55
	mov	w1, #120
	mov	w2, #120
	bl	_mmioFOURCC
	cmp	w25, w0
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [sp, #24]
	cmp	w8, #105
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [sp, #25]
	cmp	w8, #120
	b.eq	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w9, w8, [sp, #20]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #24
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #28
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w1, #4
	bl	_debugstr_an
	mov	x1, x0
Lloh19:
	adrp	x0, l_.str.7@PAGE
Lloh20:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_TRACE
	b	LBB0_3
LBB0_15:
	cbz	w24, LBB0_18
; %bb.16:
	cmn	w24, #1
	b.ne	LBB0_19
LBB0_17:
Lloh21:
	adrp	x0, l_.str.8@PAGE
Lloh22:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_FIXME
	ldr	x0, [x19, #8]
	bl	_CoTaskMemFree
	str	xzr, [x19, #8]
	b	LBB0_20
LBB0_18:
	str	wzr, [x19]
	b	LBB0_20
LBB0_19:
	str	w28, [x19]
LBB0_20:
Lloh23:
	adrp	x8, _S_OK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dwChunkId: %.4s\n"

l_.str.1:                               ; @.str.1
	.asciz	"dwFlags: %08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"dwOffset (%s): %08x\n"

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

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

l_.str.5:                               ; @.str.5
	.asciz	"dwSize: %08x\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.6:                               ; @.str.6
	.asciz	"Faulty index or bug in handling: Wanted FCC: %s, Abs FCC: %s (@ %x), Rel FCC: %s (@ %s)\n"

l_.str.7:                               ; @.str.7
	.asciz	"Scanned dwChunkId: %s\n"

l_.str.8:                               ; @.str.8
	.asciz	"Dropping index: no idea whether it is relative or absolute\n"

	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_AVISplitter_ProcessOldIndex
.subsections_via_symbols
