	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AVISplitter_Receive
_AVISplitter_Receive:                   ## @AVISplitter_Receive
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movslq	%edx, %rbx
	movl	4(%rax,%rbx,4), %edi
	callq	_unsafe_impl_Parser_OutputPin_from_IPin
	movq	%rax, %r15
	movq	32(%r14), %rcx
	movl	(%rax), %eax
	leaq	(%rbx,%rbx,2), %rsi
	imull	(%rcx,%rsi,4), %eax
	imull	$10000000, %eax, %eax           ## imm = 0x989680
	cltd
	idivl	4(%rcx,%rsi,4)
	leaq	(%rcx,%rsi,4), %rbx
	movl	%eax, -44(%rbp)
	cmpl	$0, 8(%rcx,%rsi,4)
	je	LBB0_1
## %bb.2:
	movq	%r14, %r12
	leaq	(%rcx,%rsi,4), %r14
	addq	$8, %r14
	movq	%r13, %rdi
	callq	_IMediaSample_GetActualDataLength
	cltd
	idivl	(%r14)
	movq	%r12, %r14
	jmp	LBB0_3
LBB0_1:
	movl	$1, %eax
LBB0_3:
	addl	(%r15), %eax
	movl	%eax, (%r15)
	imull	(%rbx), %eax
	imull	$10000000, %eax, %eax           ## imm = 0x989680
	cltd
	idivl	4(%rbx)
	movl	%eax, %r12d
	movl	%eax, -64(%rbp)
	movq	%r13, %rdi
	callq	_IMediaSample_IsDiscontinuity
	movq	_S_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	callq	_EnterCriticalSection
	movl	-44(%rbp), %r13d
	movl	%r13d, 8(%r15)
	movsd	8(%r14), %xmm0                  ## xmm0 = mem[0],zero
	movsd	%xmm0, 16(%r15)
	leaq	24(%r15), %rdi
	leaq	-56(%rbp), %rsi
	callq	_IPin_ConnectedTo
	movq	%r14, %rcx
	movq	%rax, %r14
	cmpq	(%rbx), %rax
	jne	LBB0_9
## %bb.6:
	movq	-56(%rbp), %rdi
	movl	16(%rcx), %edx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movsd	8(%rcx), %xmm0                  ## xmm0 = mem[0],zero
	movl	%r13d, %esi
	callq	_IPin_NewSegment
	movq	%rax, %r14
	cmpq	(%rbx), %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_FIXME
LBB0_8:
	movq	-56(%rbp), %rdi
	callq	_IPin_Release
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	_S_OK@GOTPCREL(%rip), %rbx
LBB0_9:
	movq	%rcx, %rdi
	callq	_LeaveCriticalSection
	cmpq	(%rbx), %r14
	je	LBB0_10
	jmp	LBB0_11
LBB0_4:
	movl	-44(%rbp), %r13d
LBB0_10:
	movq	%r15, %r14
	addq	$8, %r14
	movl	8(%r15), %eax
	subl	%eax, %r13d
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r13d, %xmm0
	movsd	16(%r15), %xmm1                 ## xmm1 = mem[0],zero
	divsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %ecx
	movl	%ecx, -56(%rbp)
	subl	%eax, %r12d
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12d, %xmm0
	divsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %eax
	movl	%eax, -60(%rbp)
	leaq	-44(%rbp), %r15
	leaq	-64(%rbp), %r12
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_IMediaSample_SetMediaTime
	leaq	-56(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_IMediaSample_SetTime
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_IMediaSample_SetMediaTime
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_BaseOutputPinImpl_Deliver
	movq	%rax, %r14
LBB0_11:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_OK,8,3                       ## @S_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NewSegment returns %08x\n"

	.no_dead_strip	_AVISplitter_Receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AVISplitter_Receive
_AVISplitter_Receive:                   ; @AVISplitter_Receive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	mov	w23, #38528
	movk	w23, #152, lsl #16
	ldr	x8, [x0, #24]
	add	x8, x8, w2, sxtw #2
	ldr	w0, [x8, #4]
	bl	_unsafe_impl_Parser_OutputPin_from_IPin
	mov	x20, x0
	ldr	x8, [x21, #32]
	ldr	w9, [x0]
	mov	w10, #12
	smaddl	x22, w22, w10, x8
	ldr	w8, [x22]
	mul	w8, w9, w8
	mov	x24, x22
	ldr	w9, [x24, #4]!
	mul	w8, w8, w23
	sdiv	w8, w8, w9
	str	w8, [sp, #28]
	mov	x25, x22
	ldr	w8, [x25, #8]!
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_IMediaSample_GetActualDataLength
	ldr	w8, [x25]
	sdiv	w8, w0, w8
	b	LBB0_3
LBB0_2:
	mov	w8, #1
LBB0_3:
	ldr	w9, [x20]
	add	w8, w9, w8
	str	w8, [x20]
	ldr	w9, [x22]
	mul	w8, w8, w23
	mul	w8, w8, w9
	ldr	w9, [x24]
	sdiv	w24, w8, w9
	str	w24, [sp, #24]
	mov	x0, x19
	bl	_IMediaSample_IsDiscontinuity
Lloh0:
	adrp	x25, _S_OK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _S_OK@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.4:
	mov	x0, x21
	bl	_EnterCriticalSection
	ldr	w22, [sp, #28]
	str	w22, [x20, #8]
	ldr	d0, [x21, #8]
	str	d0, [x20, #16]
	add	x0, x20, #24
	add	x1, sp, #8
	bl	_IPin_ConnectedTo
	mov	x23, x0
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.5:
	ldr	x0, [sp, #8]
	ldr	w2, [x21, #16]
	ldr	d0, [x21, #8]
	mov	x1, x22
	bl	_IPin_NewSegment
	mov	x23, x0
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_FIXME
LBB0_7:
	ldr	x0, [sp, #8]
	bl	_IPin_Release
LBB0_8:
	mov	x0, x21
	bl	_LeaveCriticalSection
	ldr	x8, [x25]
	cmp	x23, x8
	b.eq	LBB0_10
	b	LBB0_11
LBB0_9:
	ldr	w22, [sp, #28]
LBB0_10:
	ldr	w8, [x20, #8]!
	sub	w9, w22, w8
	scvtf	d0, w9
	ldr	d1, [x20, #8]
	fdiv	d0, d0, d1
	fcvtzs	w9, d0
	str	w9, [sp, #8]
	sub	w8, w24, w8
	scvtf	d0, w8
	fdiv	d0, d0, d1
	fcvtzs	w8, d0
	str	w8, [sp, #20]
	add	x1, sp, #28
	add	x2, sp, #24
	mov	x0, x19
	bl	_IMediaSample_SetMediaTime
	add	x1, sp, #8
	add	x2, sp, #20
	mov	x0, x19
	bl	_IMediaSample_SetTime
	add	x1, sp, #28
	add	x2, sp, #24
	mov	x0, x19
	bl	_IMediaSample_SetMediaTime
	mov	x0, x20
	mov	x1, x19
	bl	_BaseOutputPinImpl_Deliver
	mov	x23, x0
LBB0_11:
	mov	x0, x23
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_S_OK,8,3                       ; @S_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NewSegment returns %08x\n"

	.no_dead_strip	_AVISplitter_Receive
.subsections_via_symbols
