	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WAVEParser_Sample
_WAVEParser_Sample:                     ## @WAVEParser_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	$0, -88(%rbp)
	movq	$0, -48(%rbp)
	movq	32(%rdi), %r13
	leaq	-88(%rbp), %rsi
	movq	%r14, %rdi
	callq	_IMediaSample_GetPointer
	leaq	-72(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	callq	_IMediaSample_GetTime
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_IMediaSample_GetActualDataLength
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	16(%r12), %rax
	movl	4(%rax), %edi
	callq	_unsafe_impl_Parser_OutputPin_from_IPin
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	32(%r13), %edi
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_IMemAllocator_GetBuffer
	movq	%rax, %rbx
LBB0_4:
	movq	%rbx, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	(%r13), %rbx
	movq	%rbx, -56(%rbp)
	movq	-48(%rbp), %rdi
	callq	_IMediaSample_GetSize
	movq	%rax, %rdi
	callq	_MEDIATIME_FROM_BYTES
	addq	%rbx, %rax
	movq	%rax, -64(%rbp)
	movq	8(%r13), %rdi
	cmpq	%rdi, %rax
	jle	LBB0_7
## %bb.6:
	callq	_BYTES_FROM_MEDIATIME
	movl	28(%r13), %esi
	movl	%eax, %edi
	callq	_ALIGNUP
	movq	%rax, %rdi
	callq	_MEDIATIME_FROM_BYTES
	movq	%rax, -64(%rbp)
LBB0_7:
	movq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	callq	_IMediaSample_SetTime
	movq	(%r13), %rax
	movq	%rax, 16(%r13)
	movq	-64(%rbp), %rax
	movq	%rax, (%r13)
	movq	-48(%rbp), %rdi
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_IMediaSample_SetPreroll
	movq	-48(%rbp), %rdi
	movl	(%rbx), %esi
	callq	_IMediaSample_SetDiscontinuity
	movq	-48(%rbp), %rdi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IMediaSample_SetSyncPoint
	movl	24(%r13), %edi
	movq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_IAsyncReader_Request
	movq	%rax, %rbx
LBB0_8:
	movq	%rbx, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_IMediaSample_SetSyncPoint
	incl	4(%r15)
	movq	-72(%rbp), %rsi
	movq	%r12, %rdi
	callq	_bytepos_to_duration
	movq	%rax, -56(%rbp)
	movq	-72(%rbp), %rbx
	movq	%r14, %rdi
	callq	_IMediaSample_GetActualDataLength
	movq	%rax, %rdi
	callq	_MEDIATIME_FROM_BYTES
	addq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_bytepos_to_duration
	movq	%rax, -64(%rbp)
	leaq	-56(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_IMediaSample_SetTime
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_BaseOutputPinImpl_Deliver
	movq	%rax, %rbx
	movq	_S_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	je	LBB0_13
## %bb.10:
	movq	_S_FALSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	je	LBB0_13
## %bb.11:
	movq	_VFW_E_WRONG_STATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	je	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_ERR
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_13:
	cmpq	%rax, %rbx
	je	LBB0_15
## %bb.14:
	movq	-72(%rbp), %rax
	movq	32(%r12), %rcx
	movq	%rax, 16(%rcx)
LBB0_15:
	movq	-80(%rbp), %rsi
	cmpq	(%r12), %rsi
	jge	LBB0_18
## %bb.16:
	movq	%r12, %rdi
	callq	_bytepos_to_duration
	cmpq	24(%r12), %rax
	jge	LBB0_18
## %bb.17:
	movq	_VFW_E_NOT_CONNECTED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_27
LBB0_18:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	cmpl	$0, 8(%r12)
	je	LBB0_25
## %bb.19:
	leaq	L_.str.3(%rip), %r14
	leaq	-56(%rbp), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	16(%r12), %rax
	movl	4(%rax,%rbx,4), %edi
	movq	%r15, %rsi
	callq	_IPin_ConnectedTo
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-56(%rbp), %rdi
	callq	_IPin_EndOfStream
	movq	%rax, %r13
	movq	-56(%rbp), %rdi
	callq	_IPin_Release
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%r13, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	incq	%rbx
	movl	8(%r12), %eax
	cmpq	%rax, %rbx
	jb	LBB0_20
	jmp	LBB0_25
LBB0_23:
	leaq	L_.str.4(%rip), %rdi
	movq	%r13, %rsi
	callq	_ERR
LBB0_25:
	movq	_S_FALSE@GOTPCREL(%rip), %rax
LBB0_26:
	movq	(%rax), %rbx
LBB0_27:
	movq	%rbx, %rax
	addq	$56, %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
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_S_FALSE,8,3                    ## @S_FALSE
	.comm	_VFW_E_WRONG_STATE,8,3          ## @VFW_E_WRONG_STATE
L_.str.1:                               ## @.str.1
	.asciz	"Error sending sample (%x)\n"

	.comm	_VFW_E_NOT_CONNECTED,8,3        ## @VFW_E_NOT_CONNECTED
L_.str.2:                               ## @.str.2
	.asciz	"End of file reached\n"

L_.str.3:                               ## @.str.3
	.asciz	"Send End Of Stream to output pin %u\n"

L_.str.4:                               ## @.str.4
	.asciz	"%x\n"

	.no_dead_strip	_WAVEParser_Sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WAVEParser_Sample
_WAVEParser_Sample:                     ; @WAVEParser_Sample
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	xzr, [sp, #56]
	str	xzr, [sp, #32]
	ldr	x23, [x0, #32]
	add	x1, sp, #56
	mov	x0, x20
	bl	_IMediaSample_GetPointer
	add	x1, sp, #48
	add	x2, sp, #40
	mov	x0, x20
	bl	_IMediaSample_GetTime
	mov	x22, x0
	mov	x0, x20
	bl	_IMediaSample_GetActualDataLength
	cbz	x0, LBB0_12
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	bl	_unsafe_impl_Parser_OutputPin_from_IPin
	mov	x21, x0
	mov	x0, x22
	bl	_SUCCEEDED
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x23, #32]
	add	x1, sp, #32
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_IMemAllocator_GetBuffer
	mov	x22, x0
LBB0_3:
	mov	x0, x22
	bl	_SUCCEEDED
Lloh0:
	adrp	x24, _TRUE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TRUE@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x22, [x23]
	str	x22, [sp, #24]
	ldr	x0, [sp, #32]
	bl	_IMediaSample_GetSize
	bl	_MEDIATIME_FROM_BYTES
	mov	x8, x0
	ldr	x0, [x23, #8]
	add	x8, x8, x22
	cmp	x8, x0
	str	x8, [sp, #16]
	b.le	LBB0_6
; %bb.5:
	bl	_BYTES_FROM_MEDIATIME
	ldr	w1, [x23, #28]
	bl	_ALIGNUP
	bl	_MEDIATIME_FROM_BYTES
	str	x0, [sp, #16]
LBB0_6:
	ldr	x0, [sp, #32]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_IMediaSample_SetTime
	ldr	x8, [x23]
	str	x8, [x23, #16]
	ldr	x8, [sp, #16]
	str	x8, [x23]
	ldr	x0, [sp, #32]
Lloh2:
	adrp	x22, _FALSE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_IMediaSample_SetPreroll
	ldr	x0, [sp, #32]
	ldr	w1, [x22]
	bl	_IMediaSample_SetDiscontinuity
	ldr	x0, [sp, #32]
	ldr	w1, [x24]
	bl	_IMediaSample_SetSyncPoint
	ldr	w0, [x23, #24]
	ldr	x1, [sp, #32]
	mov	w2, #0
	bl	_IAsyncReader_Request
	mov	x22, x0
LBB0_7:
	mov	x0, x22
	bl	_SUCCEEDED
Lloh4:
	adrp	x23, _S_FALSE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _S_FALSE@GOTPAGEOFF]
	cbz	x0, LBB0_15
; %bb.8:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_IMediaSample_SetSyncPoint
	ldr	w8, [x21, #4]
	add	w8, w8, #1
	str	w8, [x21, #4]
	ldr	x1, [sp, #48]
	mov	x0, x19
	bl	_bytepos_to_duration
	str	x0, [sp, #24]
	ldr	x22, [sp, #48]
	mov	x0, x20
	bl	_IMediaSample_GetActualDataLength
	bl	_MEDIATIME_FROM_BYTES
	add	x1, x0, x22
	mov	x0, x19
	bl	_bytepos_to_duration
	str	x0, [sp, #16]
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x0, x20
	bl	_IMediaSample_SetTime
	mov	x0, x21
	mov	x1, x20
	bl	_BaseOutputPinImpl_Deliver
	mov	x22, x0
Lloh6:
	adrp	x8, _S_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_13
; %bb.9:
	ldr	x9, [x23]
	cmp	x22, x9
	b.eq	LBB0_13
; %bb.10:
Lloh9:
	adrp	x9, _VFW_E_WRONG_STATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VFW_E_WRONG_STATE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x22, x9
	b.eq	LBB0_13
; %bb.11:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_ERR
	b	LBB0_15
LBB0_12:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh16:
	adrp	x8, _S_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh18:
	ldr	x22, [x8]
	b	LBB0_26
LBB0_13:
	cmp	x22, x8
	b.eq	LBB0_15
; %bb.14:
	ldr	x8, [sp, #48]
	ldr	x9, [x19, #32]
	str	x8, [x9, #16]
LBB0_15:
	ldr	x1, [sp, #40]
	ldr	x8, [x19]
	cmp	x1, x8
	b.ge	LBB0_18
; %bb.16:
	mov	x0, x19
	bl	_bytepos_to_duration
	ldr	x8, [x19, #24]
	cmp	x0, x8
	b.ge	LBB0_18
; %bb.17:
Lloh19:
	adrp	x8, _VFW_E_NOT_CONNECTED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VFW_E_NOT_CONNECTED@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_26
LBB0_18:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_25
; %bb.19:
	mov	x22, #0
Lloh24:
	adrp	x20, l_.str.3@PAGE
Lloh25:
	add	x20, x20, l_.str.3@PAGEOFF
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	str	x22, [sp]
	mov	x0, x20
	bl	_TRACE
	ldr	x8, [x19, #16]
	add	x8, x8, x22, lsl #2
	ldr	w0, [x8, #4]
	add	x1, sp, #24
	bl	_IPin_ConnectedTo
	mov	x21, x0
	bl	_SUCCEEDED
	cbz	x0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x0, [sp, #24]
	bl	_IPin_EndOfStream
	mov	x21, x0
	ldr	x0, [sp, #24]
	bl	_IPin_Release
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x21
	bl	_FAILED
	cbnz	x0, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x22, x22, #1
	ldr	w8, [x19, #8]
	cmp	x22, x8
	b.lo	LBB0_20
	b	LBB0_25
LBB0_24:
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x21
	bl	_ERR
LBB0_25:
	ldr	x22, [x23]
LBB0_26:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.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
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_S_FALSE,8,3                    ; @S_FALSE
	.comm	_VFW_E_WRONG_STATE,8,3          ; @VFW_E_WRONG_STATE
l_.str.1:                               ; @.str.1
	.asciz	"Error sending sample (%x)\n"

	.comm	_VFW_E_NOT_CONNECTED,8,3        ; @VFW_E_NOT_CONNECTED
l_.str.2:                               ; @.str.2
	.asciz	"End of file reached\n"

l_.str.3:                               ; @.str.3
	.asciz	"Send End Of Stream to output pin %u\n"

l_.str.4:                               ; @.str.4
	.asciz	"%x\n"

	.no_dead_strip	_WAVEParser_Sample
.subsections_via_symbols
