	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MPEGSplitter_process_sample
_MPEGSplitter_process_sample:           ## @MPEGSplitter_process_sample
	.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, %rbx
	movq	%rdi, %r12
	movq	(%rdi), %r15
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_IMediaSample_GetTime
	movq	%rax, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_IMediaSample_GetActualDataLength
	movq	%rax, %r14
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_IMediaSample_GetPointer
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_FillBuffer
	movq	%rax, %r14
	movq	_S_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_7
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_WARN
	movq	_VFW_E_WRONG_STATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_6
## %bb.5:
	movq	_S_FALSE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_7
LBB0_6:
	movl	48(%r12), %edi
	movq	-72(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	-64(%rbp), %rax
	movq	40(%r12), %rcx
	movq	%rax, (%rcx)
	movq	%r15, (%r12)
LBB0_7:
	movq	-56(%rbp), %rdi
	callq	_BYTES_FROM_MEDIATIME
	cmpq	8(%r12), %rax
	jge	LBB0_9
## %bb.8:
	movq	(%r12), %rax
	cmpq	32(%r12), %rax
	jl	LBB0_18
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	callq	_TRACE
	cmpl	$0, 16(%r12)
	je	LBB0_16
## %bb.10:
	leaq	-48(%rbp), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	16(%r12), %eax
	movq	%r15, %rbx
	cmpq	%rax, %r15
	jae	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movl	4(%rax,%rbx,4), %edi
	movq	%r14, %rsi
	callq	_IPin_ConnectedTo
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rdi
	callq	_IPin_EndOfStream
	movq	%rax, %r13
	movq	-48(%rbp), %rdi
	callq	_IPin_Release
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	1(%rbx), %r15
	movq	%r13, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_15
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_S_FALSE@GOTPCREL(%rip), %rax
LBB0_17:
	movq	(%rax), %r14
LBB0_18:
	movq	%r14, %rax
	addq	$40, %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	".. Why do I need you?\n"

	.comm	_S_OK,8,3                       ## @S_OK
L_.str.1:                               ## @.str.1
	.asciz	"Failed with hres: %08x!\n"

	.comm	_VFW_E_WRONG_STATE,8,3          ## @VFW_E_WRONG_STATE
	.comm	_S_FALSE,8,3                    ## @S_FALSE
L_.str.2:                               ## @.str.2
	.asciz	"End of file reached\n"

L_.str.3:                               ## @.str.3
	.asciz	"Error sending EndOfStream to pin %u (%x)\n"

	.no_dead_strip	_MPEGSplitter_process_sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MPEGSplitter_process_sample
_MPEGSplitter_process_sample:           ; @MPEGSplitter_process_sample
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x0]
	add	x1, sp, #32
	add	x2, sp, #24
	mov	x0, x20
	bl	_IMediaSample_GetTime
	bl	_SUCCEEDED
	cbz	x0, LBB0_14
; %bb.1:
	mov	x0, x20
	bl	_IMediaSample_GetActualDataLength
	mov	x21, x0
	add	x1, sp, #40
	mov	x0, x20
	bl	_IMediaSample_GetPointer
	cbz	x21, LBB0_14
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_FillBuffer
	mov	x20, x0
Lloh0:
	adrp	x8, _S_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x23, _S_FALSE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _S_FALSE@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_WARN
Lloh7:
	adrp	x8, _VFW_E_WRONG_STATE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VFW_E_WRONG_STATE@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x9, [x23]
	cmp	x20, x8
	ccmp	x20, x9, #4, ne
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x19, #48]
	ldr	x1, [sp, #40]
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [sp, #32]
	ldr	x9, [x19, #40]
	str	x8, [x9]
	str	x22, [x19]
LBB0_5:
	ldr	x0, [sp, #24]
	bl	_BYTES_FROM_MEDIATIME
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.ge	LBB0_7
; %bb.6:
	ldr	x8, [x19]
	ldr	x9, [x19, #32]
	cmp	x8, x9
	b.lt	LBB0_16
LBB0_7:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_15
; %bb.8:
	mov	x20, #0
Lloh12:
	adrp	x21, l_.str.3@PAGE
Lloh13:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x20, x20, #1
	ldr	w8, [x19, #16]
	cmp	x20, x8
	b.hs	LBB0_15
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x8, x8, x20, lsl #2
	ldr	w0, [x8, #4]
	add	x1, sp, #16
	bl	_IPin_ConnectedTo
	mov	x22, x0
	bl	_SUCCEEDED
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [sp, #16]
	bl	_IPin_EndOfStream
	mov	x22, x0
	ldr	x0, [sp, #16]
	bl	_IPin_Release
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	bl	_FAILED
	cbz	x0, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	str	x22, [sp]
	mov	x0, x21
	mov	x1, x20
	bl	_WARN
	b	LBB0_9
LBB0_14:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
Lloh16:
	adrp	x8, _S_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh18:
	ldr	x20, [x8]
	b	LBB0_16
LBB0_15:
	ldr	x20, [x23]
LBB0_16:
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".. Why do I need you?\n"

	.comm	_S_OK,8,3                       ; @S_OK
l_.str.1:                               ; @.str.1
	.asciz	"Failed with hres: %08x!\n"

	.comm	_VFW_E_WRONG_STATE,8,3          ; @VFW_E_WRONG_STATE
	.comm	_S_FALSE,8,3                    ; @S_FALSE
l_.str.2:                               ; @.str.2
	.asciz	"End of file reached\n"

l_.str.3:                               ; @.str.3
	.asciz	"Error sending EndOfStream to pin %u (%x)\n"

	.no_dead_strip	_MPEGSplitter_process_sample
.subsections_via_symbols
