	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AVISplitter_InputPin_PreConnect
_AVISplitter_InputPin_PreConnect:       ## @AVISplitter_InputPin_PreConnect
	.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	%rdx, %r12
	callq	_impl_PullPin_from_IPin
	movq	%rax, %r13
	movq	24(%rax), %rbx
	movl	8(%rax), %edi
	leaq	-64(%rbp), %rcx
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_IAsyncReader_SyncRead
	movq	-64(%rbp), %rax
	movq	_FOURCC_RIFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	movq	-56(%rbp), %rax
	movq	_formtypeAVI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movl	8(%r13), %edi
	leaq	-64(%rbp), %rcx
	movl	$24, %esi
	movl	$24, %edx
	callq	_IAsyncReader_SyncRead
	cmpq	$132, -64(%rbp)
	jne	LBB0_7
## %bb.9:
	movq	-56(%rbp), %rax
	movq	_listtypeAVIHEADER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.11:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	-48(%rbp), %edx
	addl	$-16, %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, %r14
	movl	8(%r13), %edi
	movl	-48(%rbp), %edx
	addl	$-16, %edx
	movl	$48, %esi
	movq	%rax, %rcx
	callq	_IAsyncReader_SyncRead
	leaq	8(%rbx), %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	$0, 8(%rbx)
	movq	%rax, %rbx
	movl	$131072, (%r12)                 ## imm = 0x20000
	cmpl	$9, -48(%rbp)
	jl	LBB0_23
## %bb.12:
	movq	%r14, %r15
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_ERR
LBB0_3:
	movq	_E_FAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_60:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	4(%r15), %rsi
	leaq	L_.str.4(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_FIXME
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	movslq	(%r15), %rax
	leaq	(%r15,%rax,4), %rcx
	addq	$64, %rcx
	leaq	(%r15,%rax,4), %r15
	addq	$32, %r15
	movslq	-48(%rbp), %rax
	leaq	(%r14,%rax,4), %rax
	cmpq	%rax, %rcx
	jae	LBB0_23
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %eax
	cmpl	$132, %eax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$131, %eax
	je	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$130, %eax
	jne	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_memcpy
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%r15), %rax
	cmpq	$129, %rax
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	$128, %rax
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	96(%r15), %rsi
	movl	(%r15), %edx
	addl	$-16, %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_AVISplitter_ProcessStreamList
	jmp	LBB0_22
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	96(%r15), %rsi
	movl	(%r15), %edx
	addl	$-16, %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_AVISplitter_ProcessODML
	jmp	LBB0_22
LBB0_7:
	leaq	-64(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_8
LBB0_10:
	leaq	-56(%rbp), %rsi
	leaq	L_.str.3(%rip), %rdi
LBB0_8:
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_3
LBB0_23:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_HeapFree
	cmpl	$0, (%rbx)
	je	LBB0_24
## %bb.61:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_2
LBB0_24:
	movl	$24, %ebx
	leaq	-64(%rbp), %r14
	movq	_listtypeAVIMOVIE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movslq	-48(%rbp), %rax
	addq	%rax, %rbx
	addq	$8, %rbx
	movl	8(%r13), %edi
	movq	%rbx, %rsi
	movl	$24, %edx
	movq	%r14, %rcx
	callq	_IAsyncReader_SyncRead
	movq	_S_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_62
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	cmpq	$132, -64(%rbp)
	jne	LBB0_25
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	(%r15), %rax
	cmpq	%rax, -56(%rbp)
	jne	LBB0_25
## %bb.28:
	movl	8(%r13), %edi
	leaq	-80(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	callq	_IAsyncReader_Length
	leaq	24(%rbx), %rdi
	callq	_MEDIATIME_FROM_BYTES
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, 48(%r15)
	movq	%rax, 16(%r13)
	movslq	-48(%rbp), %rax
	leaq	(%rbx,%rax), %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_MEDIATIME_FROM_BYTES
	movq	%rax, (%r13)
	movq	%rax, (%r15)
	movq	-80(%rbp), %rdi
	cmpq	%rdi, %r14
	jle	LBB0_30
## %bb.29:
	callq	_wine_dbgstr_longlong
	movl	%eax, %ebx
	movq	(%r15), %rdi
	callq	_wine_dbgstr_longlong
	leaq	L_.str.7(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_3
LBB0_62:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_2
LBB0_30:
	movl	8(%r13), %ebx
	movq	48(%r15), %rdi
	callq	_BYTES_FROM_MEDIATIME
	leaq	40(%r15), %rcx
	movl	%ebx, %edi
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_IAsyncReader_SyncRead
	movq	%rax, %r8
	movl	$1, 4(%r12)
	movq	$0, 16(%r12)
	movl	16(%r15), %eax
	addl	%eax, %eax
	movl	%eax, 8(%r12)
	movq	_S_OK@GOTPCREL(%rip), %r12
	cmpq	(%r12), %r8
	jne	LBB0_37
## %bb.31:
	movq	-80(%rbp), %rax
	subq	%r14, %rax
	cmpq	$9, %rax
	jb	LBB0_37
## %bb.32:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	8(%r13), %edi
	movq	%r14, %rsi
	movl	$24, %edx
	movq	%rbx, %rcx
	callq	_IAsyncReader_SyncRead
	movq	%rax, %r8
	movq	-64(%rbp), %rax
	movq	_ckidAVIOLDINDEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_37
## %bb.33:
	movq	24(%r15), %rdi
	movl	-48(%rbp), %esi
	addl	$8, %esi
	movq	%r8, %rbx
	callq	_CoTaskMemRealloc
	movq	%rbx, %r8
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_37
## %bb.34:
	movl	8(%r13), %edi
	movl	-48(%rbp), %edx
	addl	$8, %edx
	movq	%r14, %rsi
	movq	%rax, %rcx
	callq	_IAsyncReader_SyncRead
	cmpq	(%r12), %rax
	jne	LBB0_36
## %bb.35:
	movq	%r15, %rdi
	callq	_AVISplitter_ProcessOldIndex
	movq	%rax, %r8
	jmp	LBB0_37
LBB0_36:
	movq	24(%r15), %rdi
	callq	_CoTaskMemFree
	movq	$0, 24(%r15)
	movq	(%r12), %r8
LBB0_37:
	movslq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_53
## %bb.38:
	movq	32(%r15), %rcx
	cmpl	$4, %eax
	jae	LBB0_40
## %bb.39:
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	jmp	LBB0_47
LBB0_40:
	movq	%rax, %rdx
	andq	$-4, %rdx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_41
## %bb.42:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	pxor	%xmm2, %xmm2
	xorl	%edi, %edi
	pcmpeqd	%xmm3, %xmm3
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,8), %xmm4
	movdqu	16(%rcx,%rdi,8), %xmm5
	movdqu	32(%rcx,%rdi,8), %xmm6
	movdqu	48(%rcx,%rdi,8), %xmm7
	pcmpeqq	%xmm2, %xmm4
	pshufd	$232, %xmm4, %xmm4              ## xmm4 = xmm4[0,2,2,3]
	paddd	%xmm0, %xmm4
	pcmpeqq	%xmm2, %xmm5
	pshufd	$232, %xmm5, %xmm5              ## xmm5 = xmm5[0,2,2,3]
	paddd	%xmm1, %xmm5
	pcmpeqq	%xmm2, %xmm6
	pshufd	$232, %xmm6, %xmm0              ## xmm0 = xmm6[0,2,2,3]
	paddd	%xmm4, %xmm0
	pcmpeqq	%xmm2, %xmm7
	pshufd	$232, %xmm7, %xmm1              ## xmm1 = xmm7[0,2,2,3]
	paddd	%xmm5, %xmm1
	psubd	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	psubd	%xmm3, %xmm1
	psubd	%xmm3, %xmm1
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_43
	jmp	LBB0_44
LBB0_41:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
LBB0_44:
	testb	$1, %bl
	je	LBB0_46
## %bb.45:
	movdqu	(%rcx,%rdi,8), %xmm2
	movdqu	16(%rcx,%rdi,8), %xmm3
	pxor	%xmm4, %xmm4
	pcmpeqq	%xmm4, %xmm2
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pcmpeqq	%xmm4, %xmm3
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
	pcmpeqd	%xmm2, %xmm2
	psubd	%xmm2, %xmm0
	psubd	%xmm2, %xmm1
LBB0_46:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %ebx
	cmpq	%rax, %rdx
	je	LBB0_48
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$1, (%rcx,%rdx,8)
	sbbl	$-1, %ebx
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_47
LBB0_48:
	movq	24(%r15), %rdi
	testl	%ebx, %ebx
	je	LBB0_51
## %bb.49:
	movq	%r8, %r14
	callq	_CoTaskMemFree
	movq	$0, 24(%r15)
	movl	16(%r15), %edx
	cmpl	%edx, %ebx
	jge	LBB0_50
## %bb.52:
	leaq	L_.str.8(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_ERR
	movq	%r14, %r8
	jmp	LBB0_53
LBB0_51:
	testq	%rdi, %rdi
	jne	LBB0_55
LBB0_53:
	movq	_AVIF_MUSTUSEINDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r15)
	je	LBB0_55
## %bb.54:
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
	movq	_E_FAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	jmp	LBB0_55
LBB0_50:
	movq	%r14, %r8
LBB0_55:
	movq	(%r12), %rbx
	cmpq	%rbx, %r8
	jne	LBB0_57
## %bb.56:
	movq	%r15, %rdi
	callq	_AVISplitter_InitializeStreams
	movq	%rax, %r8
	movq	(%r12), %rbx
LBB0_57:
	cmpq	%rbx, %r8
	jne	LBB0_58
## %bb.59:
	leaq	L_.str.10(%rip), %rdi
	callq	_TRACE
	jmp	LBB0_60
LBB0_58:
	movq	%r15, %rdi
	callq	_AVISplitter_Disconnect
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_FOURCC_RIFF,8,3                ## @FOURCC_RIFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Input stream not a RIFF file\n"

	.comm	_E_FAIL,8,3                     ## @E_FAIL
	.comm	_formtypeAVI,8,3                ## @formtypeAVI
L_.str.1:                               ## @.str.1
	.asciz	"Input stream not an AVI RIFF file\n"

L_.str.2:                               ## @.str.2
	.asciz	"Expected LIST chunk, but got %.04s\n"

	.comm	_listtypeAVIHEADER,8,3          ## @listtypeAVIHEADER
L_.str.3:                               ## @.str.3
	.asciz	"Header list expected. Got: %.04s\n"

L_.str.4:                               ## @.str.4
	.asciz	"unrecognised header list type: %.04s\n"

L_.str.5:                               ## @.str.5
	.asciz	"Avi Header wrong size!\n"

	.comm	_S_OK,8,3                       ## @S_OK
	.comm	_listtypeAVIMOVIE,8,3           ## @listtypeAVIMOVIE
L_.str.6:                               ## @.str.6
	.asciz	"Failed to find LIST chunk from AVI file\n"

L_.str.7:                               ## @.str.7
	.asciz	"File smaller (%s) then EndOfFile (%s)\n"

	.comm	_ckidAVIOLDINDEX,8,3            ## @ckidAVIOLDINDEX
L_.str.8:                               ## @.str.8
	.asciz	"%d indexes expected, but only have %d\n"

	.comm	_AVIF_MUSTUSEINDEX,4,2          ## @AVIF_MUSTUSEINDEX
L_.str.9:                               ## @.str.9
	.asciz	"No usable index was found!\n"

L_.str.10:                              ## @.str.10
	.asciz	"AVI File ok\n"

	.no_dead_strip	_AVISplitter_InputPin_PreConnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AVISplitter_InputPin_PreConnect
_AVISplitter_InputPin_PreConnect:       ; @AVISplitter_InputPin_PreConnect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x21, x2
	bl	_impl_PullPin_from_IPin
	mov	x20, x0
	ldr	x19, [x0, #24]
	ldr	w0, [x0, #8]
	add	x22, sp, #40
	add	x3, sp, #40
	mov	x1, #0
	mov	w2, #24
	bl	_IAsyncReader_SyncRead
	ldr	x8, [sp, #40]
Lloh0:
	adrp	x9, _FOURCC_RIFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FOURCC_RIFF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [sp, #48]
Lloh3:
	adrp	x9, _formtypeAVI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _formtypeAVI@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	ldr	w0, [x20, #8]
	add	x23, sp, #40
	add	x3, sp, #40
	mov	w1, #24
	mov	w2, #24
	bl	_IAsyncReader_SyncRead
	ldr	x8, [sp, #40]
	cmp	x8, #132
	b.ne	LBB0_18
; %bb.3:
	ldr	x8, [sp, #48]
Lloh6:
	adrp	x9, _listtypeAVIHEADER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _listtypeAVIHEADER@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.4:
	bl	_GetProcessHeap
	ldr	w8, [sp, #56]
	sub	w2, w8, #16
	mov	w1, #0
	bl	_HeapAlloc
	mov	x22, x0
	ldr	w0, [x20, #8]
	ldr	w8, [sp, #56]
	sub	w2, w8, #16
	mov	w1, #48
	mov	x3, x22
	bl	_IAsyncReader_SyncRead
	mov	x23, x19
	str	wzr, [x23, #8]!
	mov	w8, #131072
	str	w8, [x21]
	ldr	w8, [sp, #56]
	cmp	w8, #9
	b.lt	LBB0_20
; %bb.5:
Lloh9:
	adrp	x24, l_.str.4@PAGE
Lloh10:
	add	x24, x24, l_.str.4@PAGEOFF
	mov	x25, x22
	b	LBB0_10
LBB0_6:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_28
LBB0_7:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_28
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	x8, [sp]
	mov	x0, x24
	bl	_FIXME
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldrsw	x8, [x25]
	add	x8, x25, x8, lsl #2
	add	x25, x8, #32
	add	x8, x8, #64
	ldrsw	x9, [sp, #56]
	add	x9, x22, x9, lsl #2
	cmp	x8, x9
	b.hs	LBB0_20
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x8, x25
	ldr	w9, [x8, #4]!
	cmp	w9, #132
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w9, #131
	b.eq	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w9, #130
	b.ne	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x23
	mov	x1, x25
	mov	w2, #8
	bl	_memcpy
	b	LBB0_9
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x25, #8]
	cmp	x8, #129
	b.eq	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x8, #128
	b.ne	LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, x25
	ldr	w8, [x1], #96
	sub	w2, w8, #16
	mov	x0, x19
	mov	x3, x21
	bl	_AVISplitter_ProcessStreamList
	b	LBB0_9
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, x25
	ldr	w8, [x1], #96
	sub	w2, w8, #16
	mov	x0, x19
	bl	_AVISplitter_ProcessODML
	b	LBB0_9
LBB0_18:
	str	x23, [sp]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_28
LBB0_19:
	add	x8, x22, #8
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_28
LBB0_20:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x22
	bl	_HeapFree
	ldr	w8, [x23]
	cbz	w8, LBB0_22
; %bb.21:
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_28
LBB0_22:
	mov	w22, #24
Lloh21:
	adrp	x24, _S_OK@GOTPAGE
Lloh22:
	ldr	x24, [x24, _S_OK@GOTPAGEOFF]
Lloh23:
	adrp	x23, _listtypeAVIMOVIE@GOTPAGE
Lloh24:
	ldr	x23, [x23, _listtypeAVIMOVIE@GOTPAGEOFF]
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [sp, #56]
	add	x8, x22, x8
	add	x22, x8, #8
	ldr	w0, [x20, #8]
	add	x3, sp, #40
	mov	x1, x22
	mov	w2, #24
	bl	_IAsyncReader_SyncRead
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldp	x8, x9, [sp, #40]
	ldr	x10, [x23]
	cmp	x8, #132
	ccmp	x9, x10, #0, eq
	b.ne	LBB0_23
; %bb.25:
	ldr	w0, [x20, #8]
	add	x1, sp, #32
	add	x2, sp, #24
	bl	_IAsyncReader_Length
	add	x0, x22, #24
	bl	_MEDIATIME_FROM_BYTES
	str	x0, [x19, #48]
	str	x0, [x20, #16]
	ldrsw	x8, [sp, #56]
	add	x8, x22, x8
	add	x23, x8, #8
	mov	x0, x23
	bl	_MEDIATIME_FROM_BYTES
	str	x0, [x20]
	str	x0, [x19]
	ldr	x0, [sp, #32]
	cmp	x23, x0
	b.le	LBB0_31
; %bb.26:
	bl	_wine_dbgstr_longlong
	mov	x20, x0
	ldr	x0, [x19]
	bl	_wine_dbgstr_longlong
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh25:
	adrp	x0, l_.str.7@PAGE
Lloh26:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_28
LBB0_27:
Lloh27:
	adrp	x0, l_.str.6@PAGE
Lloh28:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_28:
	bl	_ERR
LBB0_29:
Lloh29:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
Lloh31:
	ldr	x20, [x8]
LBB0_30:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_31:
	ldr	w22, [x20, #8]
	ldr	x0, [x19, #48]
	bl	_BYTES_FROM_MEDIATIME
	mov	x1, x0
	add	x3, x19, #40
	mov	x0, x22
	mov	w2, #4
	bl	_IAsyncReader_SyncRead
	mov	x22, x0
	mov	w8, #1
	str	w8, [x21, #4]
	str	xzr, [x21, #16]
	ldr	w8, [x19, #16]
	lsl	w8, w8, #1
	str	w8, [x21, #8]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_38
; %bb.32:
	ldr	x8, [sp, #32]
	sub	x8, x8, x23
	cmp	x8, #9
	b.lo	LBB0_38
; %bb.33:
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w0, [x20, #8]
	add	x3, sp, #40
	mov	x1, x23
	mov	w2, #24
	bl	_IAsyncReader_SyncRead
	mov	x22, x0
	ldr	x8, [sp, #40]
Lloh32:
	adrp	x9, _ckidAVIOLDINDEX@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ckidAVIOLDINDEX@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_38
; %bb.34:
	ldr	x0, [x19, #24]
	ldr	w8, [sp, #56]
	add	w1, w8, #8
	bl	_CoTaskMemRealloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_38
; %bb.35:
	mov	x3, x0
	ldr	w0, [x20, #8]
	ldr	w8, [sp, #56]
	add	w2, w8, #8
	mov	x1, x23
	bl	_IAsyncReader_SyncRead
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_37
; %bb.36:
	mov	x0, x19
	bl	_AVISplitter_ProcessOldIndex
	mov	x22, x0
	b	LBB0_38
LBB0_37:
	ldr	x0, [x19, #24]
	bl	_CoTaskMemFree
	str	xzr, [x19, #24]
	ldr	x22, [x24]
LBB0_38:
	ldrsw	x8, [x19, #16]
	cbz	w8, LBB0_50
; %bb.39:
	ldr	x9, [x19, #32]
	cmp	w8, #8
	b.hs	LBB0_41
; %bb.40:
	mov	w20, #0
	mov	x10, #0
	b	LBB0_44
LBB0_41:
	and	x10, x8, #0xfffffffffffffff8
	movi.2d	v0, #0000000000000000
	add	x11, x9, #32
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	cmtst.2d	v4, v4, v4
	xtn.2s	v4, v4
	cmtst.2d	v5, v5, v5
	xtn.2s	v5, v5
	cmtst.2d	v6, v6, v6
	xtn.2s	v6, v6
	cmtst.2d	v7, v7, v7
	xtn.2s	v7, v7
	sub.2s	v0, v0, v4
	sub.2s	v1, v1, v5
	sub.2s	v2, v2, v6
	sub.2s	v3, v3, v7
	subs	x12, x12, #8
	b.ne	LBB0_42
; %bb.43:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w20, s0
	cmp	x10, x8
	b.eq	LBB0_46
LBB0_44:
	sub	x8, x8, x10
	add	x9, x9, x10, lsl #3
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	cmp	x10, #0
	cinc	w20, w20, ne
	subs	x8, x8, #1
	b.ne	LBB0_45
LBB0_46:
	ldr	x0, [x19, #24]
	cbz	w20, LBB0_49
; %bb.47:
	bl	_CoTaskMemFree
	str	xzr, [x19, #24]
	ldr	w8, [x19, #16]
	cmp	w20, w8
	b.ge	LBB0_52
; %bb.48:
	stp	x20, x8, [sp]
Lloh35:
	adrp	x0, l_.str.8@PAGE
Lloh36:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_ERR
	b	LBB0_50
LBB0_49:
	cbnz	x0, LBB0_52
LBB0_50:
	ldr	w8, [x19, #12]
Lloh37:
	adrp	x9, _AVIF_MUSTUSEINDEX@GOTPAGE
Lloh38:
	ldr	x9, [x9, _AVIF_MUSTUSEINDEX@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_52
; %bb.51:
Lloh40:
	adrp	x0, l_.str.9@PAGE
Lloh41:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_FIXME
Lloh42:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
Lloh44:
	ldr	x22, [x8]
LBB0_52:
	ldr	x20, [x24]
	cmp	x22, x20
	b.ne	LBB0_54
; %bb.53:
	mov	x0, x19
	bl	_AVISplitter_InitializeStreams
	mov	x22, x0
	ldr	x20, [x24]
LBB0_54:
	cmp	x22, x20
	b.ne	LBB0_56
; %bb.55:
Lloh45:
	adrp	x0, l_.str.10@PAGE
Lloh46:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_TRACE
	b	LBB0_30
LBB0_56:
	mov	x0, x19
	bl	_AVISplitter_Disconnect
	b	LBB0_29
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_FOURCC_RIFF,8,3                ; @FOURCC_RIFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Input stream not a RIFF file\n"

	.comm	_E_FAIL,8,3                     ; @E_FAIL
	.comm	_formtypeAVI,8,3                ; @formtypeAVI
l_.str.1:                               ; @.str.1
	.asciz	"Input stream not an AVI RIFF file\n"

l_.str.2:                               ; @.str.2
	.asciz	"Expected LIST chunk, but got %.04s\n"

	.comm	_listtypeAVIHEADER,8,3          ; @listtypeAVIHEADER
l_.str.3:                               ; @.str.3
	.asciz	"Header list expected. Got: %.04s\n"

l_.str.4:                               ; @.str.4
	.asciz	"unrecognised header list type: %.04s\n"

l_.str.5:                               ; @.str.5
	.asciz	"Avi Header wrong size!\n"

	.comm	_S_OK,8,3                       ; @S_OK
	.comm	_listtypeAVIMOVIE,8,3           ; @listtypeAVIMOVIE
l_.str.6:                               ; @.str.6
	.asciz	"Failed to find LIST chunk from AVI file\n"

l_.str.7:                               ; @.str.7
	.asciz	"File smaller (%s) then EndOfFile (%s)\n"

	.comm	_ckidAVIOLDINDEX,8,3            ; @ckidAVIOLDINDEX
l_.str.8:                               ; @.str.8
	.asciz	"%d indexes expected, but only have %d\n"

	.comm	_AVIF_MUSTUSEINDEX,4,2          ; @AVIF_MUSTUSEINDEX
l_.str.9:                               ; @.str.9
	.asciz	"No usable index was found!\n"

l_.str.10:                              ; @.str.10
	.asciz	"AVI File ok\n"

	.no_dead_strip	_AVISplitter_InputPin_PreConnect
.subsections_via_symbols
