	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AVIFILE_FindStreamInTable
_AVIFILE_FindStreamInTable:             ## @AVIFILE_FindStreamInTable
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %rbx
	movq	%rcx, %r8
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%r9, (%rsp)
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rbx, %r9
	xorl	%eax, %eax
	callq	_TRACE
	movq	16(%r13), %rax
	movq	_AVIERR_BADPARAM@GOTPCREL(%rip), %rdi
	cmpq	%r15, %rax
	jg	LBB0_17
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	subq	%rax, %r15
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	jle	LBB0_2
## %bb.3:
	movq	8(%r13), %rdx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	movq	%r15, %rsi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	subq	(%rdx,%rcx), %rsi
	jl	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
	addq	$24, %rcx
	movq	%rsi, %r15
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.8:
	decq	%rbx
	movq	%rsi, %r15
	testq	%r14, %r14
	jne	LBB0_10
	jmp	LBB0_14
LBB0_2:
	movq	$-1, %rbx
	testq	%r14, %r14
	je	LBB0_14
LBB0_10:
	testq	%r15, %r15
	jne	LBB0_14
## %bb.11:
	movq	8(%r13), %rax
	leaq	(%rbx,%rbx,2), %rcx
	movq	16(%rax,%rcx,8), %rax
	movq	%rax, (%r12)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_EditStreamEnd
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:
	movq	%rbx, (%rcx)
	movq	(%rdx), %rax
LBB0_13:
	movq	(%r12), %rsi
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_TRACE
	movq	_AVIERR_OK@GOTPCREL(%rip), %rdi
	jmp	LBB0_17
LBB0_14:
	movq	%rdi, %rbx
	movq	$0, (%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	$0, (%rax)
LBB0_16:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%rbx, %rdi
	jmp	LBB0_17
LBB0_5:
	movq	16(%rdx,%rcx), %rdx
	movq	%rdx, (%r12)
	movq	8(%r13), %rdx
	addq	8(%rdx,%rcx), %r15
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, (%rcx)
	movq	_AVIERR_OK@GOTPCREL(%rip), %rdi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.6:
	movq	%rax, (%rcx)
LBB0_17:
	movl	(%rdi), %eax
	addq	$24, %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	"(%p,%u,%p,%p,%p,%d)\n"

	.comm	_AVIERR_BADPARAM,4,2            ## @AVIERR_BADPARAM
	.comm	_AVIERR_OK,4,2                  ## @AVIERR_OK
L_.str.1:                               ## @.str.1
	.asciz	" -- pos=0 && b=1 -> (%p,%u,%u)\n"

L_.str.2:                               ## @.str.2
	.asciz	" -> ERROR (NULL,0,0)\n"

	.no_dead_strip	_AVIFILE_FindStreamInTable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AVIFILE_FindStreamInTable
_AVIFILE_FindStreamInTable:             ; @AVIFILE_FindStreamInTable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x24, x5
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
	stp	x4, x5, [sp, #32]
	stp	x2, x3, [sp, #16]
	stp	x0, x1, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	x8, [x22, #16]
	cmp	x8, x23
	b.gt	LBB0_14
; %bb.1:
	sub	x8, x23, x8
	ldr	x11, [x22]
	subs	x23, x11, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x10, #0
	mov	x9, #0
	ldr	x12, [x22, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12, x10]
	subs	x13, x8, x13
	b.lt	LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	add	x10, x10, #24
	mov	x8, x13
	cmp	x11, x9
	b.ne	LBB0_3
; %bb.5:
	mov	x8, x13
	cbnz	x24, LBB0_7
	b	LBB0_11
LBB0_6:
	mov	x23, #-1
	cbz	x24, LBB0_11
LBB0_7:
	cbnz	x8, LBB0_11
; %bb.8:
	ldr	x8, [x22, #8]
	mov	w9, #24
	madd	x8, x23, x9, x8
	ldr	x8, [x8, #16]
	str	x8, [x20]
	mov	x0, x22
	mov	x1, x23
	bl	_EditStreamEnd
	str	x0, [x21]
	cbz	x19, LBB0_10
; %bb.9:
	str	x23, [x19]
	ldr	x0, [x21]
LBB0_10:
	ldr	x8, [x20]
	stp	x0, x23, [sp, #8]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	b	LBB0_17
LBB0_11:
	str	xzr, [x20]
	str	xzr, [x21]
	cbz	x19, LBB0_13
; %bb.12:
	str	xzr, [x19]
LBB0_13:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
LBB0_14:
Lloh6:
	adrp	x8, _AVIERR_BADPARAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVIERR_BADPARAM@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
	add	x11, x12, x10
	ldr	x11, [x11, #16]
	str	x11, [x20]
	ldr	x11, [x22, #8]
	add	x10, x11, x10
	ldr	x10, [x10, #8]
	add	x8, x10, x8
	str	x8, [x21]
	cbz	x19, LBB0_17
; %bb.16:
	str	x9, [x19]
LBB0_17:
Lloh8:
	adrp	x8, _AVIERR_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVIERR_OK@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%p,%u,%p,%p,%p,%d)\n"

	.comm	_AVIERR_BADPARAM,4,2            ; @AVIERR_BADPARAM
	.comm	_AVIERR_OK,4,2                  ; @AVIERR_OK
l_.str.1:                               ; @.str.1
	.asciz	" -- pos=0 && b=1 -> (%p,%u,%u)\n"

l_.str.2:                               ; @.str.2
	.asciz	" -> ERROR (NULL,0,0)\n"

	.no_dead_strip	_AVIFILE_FindStreamInTable
.subsections_via_symbols
