	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dshow_read_close
_dshow_read_close:                      ## @dshow_read_close
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	88(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_IMediaControl_Stop
	movq	88(%rbx), %rdi
	callq	_IMediaControl_Release
LBB0_2:
	movq	80(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_IMediaEvent_Release
LBB0_4:
	movq	72(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.5:
	leaq	-32(%rbp), %rsi
	callq	_IGraphBuilder_EnumFilters
	movq	_S_OK@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_12
## %bb.6:
	movq	-32(%rbp), %rdi
	callq	_IEnumFilters_Reset
	movq	-32(%rbp), %rdi
	leaq	-40(%rbp), %rdx
	movl	$1, %esi
	xorl	%ecx, %ecx
	callq	_IEnumFilters_Next
	cmpl	(%r15), %eax
	jne	LBB0_11
## %bb.7:
	leaq	-40(%rbp), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-40(%rbp), %rdi
	callq	_IBaseFilter_Release
	movq	-32(%rbp), %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_IEnumFilters_Next
	cmpl	(%r15), %eax
	jne	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	72(%rbx), %rdi
	movq	-40(%rbp), %rsi
	callq	_IGraphBuilder_RemoveFilter
	cmpl	(%r15), %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-32(%rbp), %rdi
	callq	_IEnumFilters_Reset
	jmp	LBB0_10
LBB0_11:
	movq	-32(%rbp), %rdi
	callq	_IEnumFilters_Release
LBB0_12:
	movq	72(%rbx), %rdi
	callq	_IGraphBuilder_Release
LBB0_13:
	movq	64(%rbx), %rax
	movq	_VideoDevice@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_libAVPin_Release
	movq	64(%rbx), %rax
LBB0_15:
	movq	_AudioDevice@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	callq	_libAVPin_Release
LBB0_17:
	movq	56(%rbx), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_libAVFilter_Release
	movq	56(%rbx), %rax
LBB0_19:
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	callq	_libAVFilter_Release
LBB0_21:
	movq	48(%rbx), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	callq	_IPin_Release
	movq	48(%rbx), %rax
LBB0_23:
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:
	callq	_IPin_Release
LBB0_25:
	movq	40(%rbx), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.26:
	callq	_IBaseFilter_Release
	movq	40(%rbx), %rax
LBB0_27:
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.28:
	callq	_IBaseFilter_Release
LBB0_29:
	movq	32(%rbx), %rdi
	callq	_av_freep
	movq	32(%rbx), %rdi
	addq	$4, %rdi
	callq	_av_freep
	movq	24(%rbx), %rdi
	callq	_av_freep
	movq	24(%rbx), %rdi
	addq	$4, %rdi
	callq	_av_freep
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.30:
	callq	_CloseHandle
LBB0_31:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.32:
	callq	_CloseHandle
	movq	8(%rbx), %rax
LBB0_33:
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_35
## %bb.34:
	callq	_CloseHandle
LBB0_35:
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_37
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r14
	movq	%rbx, %rdi
	callq	_av_packet_unref
	movq	%rbx, %rdi
	callq	_av_free
	movq	%r14, %rbx
	testq	%r14, %r14
	jne	LBB0_36
LBB0_37:
	xorl	%eax, %eax
	callq	_CoUninitialize
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_VideoDevice,8,3                ## @VideoDevice
	.comm	_AudioDevice,8,3                ## @AudioDevice
	.no_dead_strip	_dshow_read_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dshow_read_close
_dshow_read_close:                      ; @dshow_read_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x19, [x0]
	ldr	x0, [x19, #88]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_IMediaControl_Stop
	ldr	x0, [x19, #88]
	bl	_IMediaControl_Release
LBB0_2:
	ldr	x0, [x19, #80]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_IMediaEvent_Release
LBB0_4:
	ldr	x0, [x19, #72]
	cbz	x0, LBB0_13
; %bb.5:
	add	x1, sp, #8
	bl	_IGraphBuilder_EnumFilters
Lloh0:
	adrp	x20, _S_OK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _S_OK@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.6:
	ldr	x0, [sp, #8]
	bl	_IEnumFilters_Reset
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [sp]
	bl	_IBaseFilter_Release
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	mov	x2, sp
	mov	w1, #1
	mov	x3, #0
	bl	_IEnumFilters_Next
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x19, #72]
	ldr	x1, [sp]
	bl	_IGraphBuilder_RemoveFilter
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [sp, #8]
	bl	_IEnumFilters_Reset
	b	LBB0_7
LBB0_11:
	ldr	x0, [sp, #8]
	bl	_IEnumFilters_Release
LBB0_12:
	ldr	x0, [x19, #72]
	bl	_IGraphBuilder_Release
LBB0_13:
	ldr	x8, [x19, #64]
Lloh2:
	adrp	x20, _VideoDevice@GOTPAGE
Lloh3:
	ldr	x20, [x20, _VideoDevice@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_15
; %bb.14:
	bl	_libAVPin_Release
	ldr	x8, [x19, #64]
LBB0_15:
Lloh4:
	adrp	x21, _AudioDevice@GOTPAGE
Lloh5:
	ldr	x21, [x21, _AudioDevice@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_17
; %bb.16:
	bl	_libAVPin_Release
LBB0_17:
	ldr	x8, [x19, #56]
	ldr	x9, [x20]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_19
; %bb.18:
	bl	_libAVFilter_Release
	ldr	x8, [x19, #56]
LBB0_19:
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_21
; %bb.20:
	bl	_libAVFilter_Release
LBB0_21:
	ldr	x8, [x19, #48]
	ldr	x9, [x20]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_23
; %bb.22:
	bl	_IPin_Release
	ldr	x8, [x19, #48]
LBB0_23:
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_25
; %bb.24:
	bl	_IPin_Release
LBB0_25:
	ldr	x8, [x19, #40]
	ldr	x9, [x20]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_27
; %bb.26:
	bl	_IBaseFilter_Release
	ldr	x8, [x19, #40]
LBB0_27:
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_29
; %bb.28:
	bl	_IBaseFilter_Release
LBB0_29:
	ldr	x0, [x19, #32]
	bl	_av_freep
	ldr	x8, [x19, #32]
	add	x0, x8, #4
	bl	_av_freep
	ldr	x0, [x19, #24]
	bl	_av_freep
	ldr	x8, [x19, #24]
	add	x0, x8, #4
	bl	_av_freep
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_31
; %bb.30:
	bl	_CloseHandle
LBB0_31:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	cbz	x0, LBB0_33
; %bb.32:
	bl	_CloseHandle
	ldr	x8, [x19, #8]
LBB0_33:
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_35
; %bb.34:
	bl	_CloseHandle
LBB0_35:
	ldr	x19, [x19]
	cbz	x19, LBB0_37
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x19, #8]
	mov	x0, x19
	bl	_av_packet_unref
	mov	x0, x19
	bl	_av_free
	mov	x19, x20
	cbnz	x20, LBB0_36
LBB0_37:
	bl	_CoUninitialize
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_VideoDevice,8,3                ; @VideoDevice
	.comm	_AudioDevice,8,3                ; @AudioDevice
	.no_dead_strip	_dshow_read_close
.subsections_via_symbols
