	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avisynth_next_stream
_avisynth_next_stream:                  ## @avisynth_next_stream
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r9
	movq	16(%rdi), %r8
	movq	(%r8), %rax
	incq	%rax
	movq	%rax, %rdx
	orq	%r9, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%r9
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r9d
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	movq	%rdx, (%r8)
	movq	8(%rdi), %rax
	movq	(%rax,%rdx,8), %rax
	movq	%rax, (%rsi)
	movq	(%rax), %rax
	movq	_AVDISCARD_ALL@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rax
	sete	%sil
	movl	%esi, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVDISCARD_ALL,8,3              ## @AVDISCARD_ALL
	.no_dead_strip	_avisynth_next_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avisynth_next_stream
_avisynth_next_stream:                  ; @avisynth_next_stream
	.cfi_startproc
; %bb.0:
	ldp	x11, x8, [x0, #8]
	ldr	x9, [x8]
	add	x9, x9, #1
	ldr	x10, [x0]
	udiv	x12, x9, x10
	msub	x9, x12, x10, x9
	str	x9, [x8]
	ldr	x8, [x11, x9, lsl #3]
	str	x8, [x1]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _AVDISCARD_ALL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVDISCARD_ALL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x3]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVDISCARD_ALL,8,3              ; @AVDISCARD_ALL
	.no_dead_strip	_avisynth_next_stream
.subsections_via_symbols
