	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dshow_cycle_pins
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dshow_cycle_pins:                      ## @dshow_cycle_pins
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	$0, -128(%rbp)
	movq	_VideoDevice@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_VideoSourceDevice@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.2(%rip), %r15
	cmoveq	%rcx, %r15
	leaq	L_.str.1(%rip), %r13
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	cmpl	%esi, %eax
	cmoveq	%rcx, %r13
	jne	LBB0_6
## %bb.1:
	movb	$1, %cl
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	cmpq	$0, 80(%rbx)
	jne	LBB0_10
## %bb.2:
	cmpq	$0, 72(%rbx)
	je	LBB0_4
## %bb.3:
	cmpq	$0, 64(%rbx)
	jne	LBB0_10
LBB0_4:
	movq	(%rbx), %rcx
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.5:
	movq	8(%rbx), %rcx
	movq	_AV_CODEC_ID_RAWVIDEO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
LBB0_6:
	movq	_AudioDevice@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, (%rcx)
	jne	LBB0_7
## %bb.8:
	movb	$1, %cl
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	cmpq	$0, 56(%rbx)
	jne	LBB0_10
## %bb.9:
	cmpq	$0, 48(%rbx)
	setne	%cl
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_10
LBB0_7:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_10:
	xorl	%ecx, %ecx
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	setne	%cl
	movl	$0, -68(%rbp)
	cmpl	$0, 16(%rbx,%rcx,4)
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_dshow_show_filter_properties
LBB0_12:
	leaq	-128(%rbp), %rsi
	movq	%r14, %rdi
	callq	_IBaseFilter_EnumPins
	movq	_S_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.16:
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_18
## %bb.17:
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	movq	%r13, %rcx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_av_log
LBB0_18:
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_19 Depth=1
	testq	%r13, %r13
	jne	LBB0_55
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_42 Depth 2
	movq	-128(%rbp), %rdi
	movl	$1, %esi
	leaq	-64(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_IEnumPins_Next
	movl	%eax, %r14d
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$0, %r13d
	cmpl	%ebx, %r14d
	jne	LBB0_55
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	$0, -120(%rbp)
	movq	$0, -80(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -176(%rbp)
	movq	$0, -160(%rbp)
	xorl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	_VideoDevice@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	movq	$0, -104(%rbp)
	setne	%al
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movq	24(%rcx,%rax,8), %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %rdi
	leaq	-176(%rbp), %rsi
	callq	_IPin_QueryPinInfo
	movl	-160(%rbp), %edi
	callq	_IBaseFilter_Release
	movq	-176(%rbp), %rax
	movl	$0, %r13d
	movl	$0, %r12d
	movl	$0, %r15d
	movq	_PINDIR_OUTPUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_46
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-64(%rbp), %rdi
	movq	_IID_IKsPropertySet@GOTPCREL(%rip), %rsi
	leaq	-120(%rbp), %rdx
	callq	_IPin_QueryInterface
	movl	$0, %r13d
	movl	$0, %r12d
	movl	$0, %r15d
	movq	_S_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_46
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-120(%rbp), %rdi
	movq	_AMPROPERTY_PIN_CATEGORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AMPROPSETID_Pin@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	leaq	-132(%rbp), %r9
	leaq	-196(%rbp), %rax
	pushq	%rax
	pushq	$4
	callq	_IKsPropertySet_Get
	addq	$16, %rsp
	movl	$0, %r13d
	movl	$0, %r12d
	movl	$0, %r15d
	movq	_S_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_46
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=1
	leaq	-132(%rbp), %rdi
	movq	_PIN_CATEGORY_CAPTURE@GOTPCREL(%rip), %rsi
	callq	_IsEqualGUID
	testq	%rax, %rax
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-168(%rbp), %rdi
	callq	_dup_wchar_to_utf8
	movq	%rax, %r12
	movq	-64(%rbp), %rdi
	leaq	-104(%rbp), %rsi
	callq	_IPin_QueryId
	movq	_S_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-104(%rbp), %rdi
	callq	_dup_wchar_to_utf8
	movq	%rax, %r15
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-192(%rbp), %r13                ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.7(%rip), %rdx
	movq	%r12, %rcx
	movq	%r15, %r8
	movq	%r13, %r9
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_45
LBB0_24:                                ##   in Loop: Header=BB0_19 Depth=1
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_46
LBB0_33:                                ##   in Loop: Header=BB0_19 Depth=1
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	leaq	-68(%rbp), %rcx
	callq	_dshow_cycle_formats
	cmpl	$0, -68(%rbp)
	je	LBB0_45
LBB0_35:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_AudioDevice@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	movq	-144(%rbp), %r13                ## 8-byte Reload
	jne	LBB0_39
## %bb.36:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpq	$0, 40(%r13)
	je	LBB0_39
## %bb.37:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dshow_set_audio_buffer_size
	testq	%rax, %rax
	jns	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%r13), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.8(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_39:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-64(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	callq	_IPin_EnumMediaTypes
	movq	_S_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_45
## %bb.40:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-80(%rbp), %rdi
	callq	_IEnumMediaTypes_Reset
	movq	-80(%rbp), %rdi
	movl	$1, %esi
	leaq	-112(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_IEnumMediaTypes_Next
	movq	_S_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_45
## %bb.41:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-184(%rbp), %rax                ## 8-byte Reload
	leaq	l___const.dshow_cycle_pins.mediatype(%rip), %rcx
	movq	(%rcx,%rax,8), %r13
	.p2align	4, 0x90
LBB0_42:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-112(%rbp), %rdi
	movq	%r13, %rsi
	callq	_IsEqualGUID
	testq	%rax, %rax
	jne	LBB0_43
## %bb.44:                              ##   in Loop: Header=BB0_42 Depth=2
	movq	-112(%rbp), %rdi
	callq	_CoTaskMemFree
	movq	-80(%rbp), %rdi
	movl	$1, %esi
	leaq	-112(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_IEnumMediaTypes_Next
	movq	_S_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_42
	jmp	LBB0_45
LBB0_28:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	leaq	L_.str.6(%rip), %rdx
	movq	%r12, %rcx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_av_log
	movq	-64(%rbp), %rdx
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_dshow_cycle_formats
LBB0_45:                                ##   in Loop: Header=BB0_19 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_46:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-80(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_19 Depth=1
	callq	_IEnumMediaTypes_Release
LBB0_48:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-120(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_19 Depth=1
	callq	_IKsPropertySet_Release
LBB0_50:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-64(%rbp), %rdi
	cmpq	%rdi, %r13
	je	LBB0_52
## %bb.51:                              ##   in Loop: Header=BB0_19 Depth=1
	callq	_IPin_Release
LBB0_52:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	%r12, %rdi
	callq	_av_free
	movq	%r15, %rdi
	callq	_av_free
	movq	-104(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_54
## %bb.53:                              ##   in Loop: Header=BB0_19 Depth=1
	callq	_CoTaskMemFree
	jmp	LBB0_54
LBB0_43:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-64(%rbp), %r13
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.9(%rip), %rdx
	movq	%r12, %rcx
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_46
LBB0_13:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
LBB0_14:
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_15
LBB0_55:
	movq	-128(%rbp), %rdi
	callq	_IEnumPins_Release
	xorl	%eax, %eax
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_63
## %bb.56:
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_60
## %bb.57:
	cmpl	$0, -68(%rbp)
	jne	LBB0_60
## %bb.58:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.10(%rip), %rdx
	jmp	LBB0_59
LBB0_60:
	cmpl	%ebx, %r14d
	jne	LBB0_61
## %bb.62:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, (%rcx)
	jmp	LBB0_63
LBB0_61:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.11(%rip), %rdx
LBB0_59:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
LBB0_15:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_63:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MEDIATYPE_Video,4,2            ## @MEDIATYPE_Video
	.comm	_MEDIATYPE_Audio,4,2            ## @MEDIATYPE_Audio
	.section	__DATA,__const
	.p2align	4                               ## @__const.dshow_cycle_pins.mediatype
l___const.dshow_cycle_pins.mediatype:
	.quad	_MEDIATYPE_Video
	.quad	_MEDIATYPE_Audio

	.comm	_VideoDevice,4,2                ## @VideoDevice
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"video"

L_.str.1:                               ## @.str.1
	.asciz	"audio only"

	.comm	_VideoSourceDevice,4,2          ## @VideoSourceDevice
L_.str.2:                               ## @.str.2
	.asciz	"audio"

	.comm	_AV_PIX_FMT_NONE,8,3            ## @AV_PIX_FMT_NONE
	.comm	_AV_CODEC_ID_RAWVIDEO,8,3       ## @AV_CODEC_ID_RAWVIDEO
	.comm	_AudioDevice,4,2                ## @AudioDevice
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"Could not enumerate pins.\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
L_.str.4:                               ## @.str.4
	.asciz	"DirectShow %s device options (from %s devices)\n"

	.comm	_PINDIR_OUTPUT,8,3              ## @PINDIR_OUTPUT
	.comm	_IID_IKsPropertySet,4,2         ## @IID_IKsPropertySet
	.comm	_AMPROPSETID_Pin,4,2            ## @AMPROPSETID_Pin
	.comm	_AMPROPERTY_PIN_CATEGORY,4,2    ## @AMPROPERTY_PIN_CATEGORY
	.comm	_PIN_CATEGORY_CAPTURE,4,2       ## @PIN_CATEGORY_CAPTURE
L_.str.5:                               ## @.str.5
	.asciz	"Could not query pin id\n"

L_.str.6:                               ## @.str.6
	.asciz	" Pin \"%s\" (alternative pin name \"%s\")\n"

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.7:                               ## @.str.7
	.asciz	"skipping pin \"%s\" (\"%s\") != requested \"%s\"\n"

L_.str.8:                               ## @.str.8
	.asciz	"unable to set audio buffer size %d to pin, using pin anyway..."

L_.str.9:                               ## @.str.9
	.asciz	"Selecting pin %s on %s\n"

L_.str.10:                              ## @.str.10
	.asciz	"Could not set %s options\n"

L_.str.11:                              ## @.str.11
	.asciz	"Could not find output pin from %s capture device.\n"

	.no_dead_strip	_dshow_cycle_pins
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dshow_cycle_pins
_dshow_cycle_pins:                      ; @dshow_cycle_pins
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x4, [sp, #56]                   ; 8-byte Folded Spill
	mov	x22, x3
	mov	x21, x1
	mov	x23, x0
	ldr	x24, [x0]
	stur	xzr, [x29, #-96]
Lloh0:
	adrp	x8, _VideoDevice@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VideoDevice@GOTPAGEOFF]
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh4:
	adrp	x10, l_.str@PAGE
Lloh5:
	add	x10, x10, l_.str@PAGEOFF
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x11, _VideoSourceDevice@GOTPAGE
Lloh8:
	ldr	x11, [x11, _VideoSourceDevice@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
Lloh10:
	adrp	x12, l_.str.2@PAGE
Lloh11:
	add	x12, x12, l_.str.2@PAGEOFF
	cmp	w11, w2
	csel	x19, x10, x12, eq
Lloh12:
	adrp	x11, _AudioDevice@GOTPAGE
Lloh13:
	ldr	x11, [x11, _AudioDevice@GOTPAGEOFF]
	cmp	w8, w1
	csel	x25, x10, x9, eq
	b.ne	LBB0_6
; %bb.1:
	ldr	x9, [x24, #80]
	cbnz	x9, LBB0_8
; %bb.2:
	ldr	x9, [x24, #72]
	cbz	x9, LBB0_4
; %bb.3:
	ldr	x9, [x24, #64]
	cbnz	x9, LBB0_8
LBB0_4:
	ldr	x9, [x24]
Lloh14:
	adrp	x10, _AV_PIX_FMT_NONE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _AV_PIX_FMT_NONE@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.5:
	ldr	x9, [x24, #8]
Lloh17:
	adrp	x10, _AV_CODEC_ID_RAWVIDEO@GOTPAGE
Lloh18:
	ldr	x10, [x10, _AV_CODEC_ID_RAWVIDEO@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
LBB0_6:
	ldr	w9, [x11]
	cmp	w9, w21
	b.ne	LBB0_9
; %bb.7:
	ldr	x9, [x24, #56]
	cbz	x9, LBB0_10
LBB0_8:
	mov	w26, #1
	b	LBB0_11
LBB0_9:
	mov	w26, #0
	b	LBB0_11
LBB0_10:
	ldr	x9, [x24, #48]
	cmp	x9, #0
	cset	w26, ne
LBB0_11:
	stur	wzr, [x29, #-108]
	cmp	w8, w21
	mov	w8, #20
	mov	w9, #16
	csel	x8, x9, x8, eq
	ldr	w8, [x24, x8]
	cbz	w8, LBB0_13
; %bb.12:
	mov	x0, x22
	mov	x1, x23
	bl	_dshow_show_filter_properties
LBB0_13:
	sub	x1, x29, #96
	mov	x0, x22
	bl	_IBaseFilter_EnumPins
Lloh20:
	adrp	x20, _S_OK@GOTPAGE
Lloh21:
	ldr	x20, [x20, _S_OK@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_52
; %bb.14:
	str	w26, [sp, #44]                  ; 4-byte Folded Spill
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	cbnz	x8, LBB0_16
; %bb.15:
Lloh22:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	stp	x25, x19, [sp]
Lloh25:
	adrp	x2, l_.str.4@PAGE
Lloh26:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_av_log
LBB0_16:
	str	x23, [sp, #48]                  ; 8-byte Folded Spill
	mov	w8, w21
	stp	x8, x25, [sp, #24]              ; 16-byte Folded Spill
	mov	w19, #24
Lloh27:
	adrp	x23, _PINDIR_OUTPUT@GOTPAGE
Lloh28:
	ldr	x23, [x23, _PINDIR_OUTPUT@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	cbnz	x26, LBB0_54
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_47 Depth 2
	ldur	x0, [x29, #-96]
	sub	x2, x29, #104
	mov	w1, #1
	mov	x3, #0
	bl	_IEnumPins_Next
	mov	x25, x0
	ldr	w22, [x20]
	cmp	w0, w22
	b.ne	LBB0_53
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	stp	xzr, xzr, [sp, #112]
	stp	xzr, xzr, [sp, #88]
	str	xzr, [sp, #104]
	str	xzr, [sp, #64]
Lloh29:
	adrp	x8, _VideoDevice@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VideoDevice@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w8, w21
	mov	w8, #32
	csel	x8, x19, x8, eq
	ldr	x26, [x24, x8]
	ldur	x0, [x29, #-104]
	add	x1, sp, #88
	bl	_IPin_QueryPinInfo
	ldr	w0, [sp, #104]
	bl	_IBaseFilter_Release
	ldr	x8, [sp, #88]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_29
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldur	x0, [x29, #-104]
	add	x2, sp, #120
Lloh32:
	adrp	x1, _IID_IKsPropertySet@GOTPAGE
Lloh33:
	ldr	x1, [x1, _IID_IKsPropertySet@GOTPAGEOFF]
	bl	_IPin_QueryInterface
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_29
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [sp, #120]
Lloh34:
	adrp	x8, _AMPROPERTY_PIN_CATEGORY@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AMPROPERTY_PIN_CATEGORY@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	add	x5, sp, #76
	add	x7, sp, #72
Lloh37:
	adrp	x1, _AMPROPSETID_Pin@GOTPAGE
Lloh38:
	ldr	x1, [x1, _AMPROPSETID_Pin@GOTPAGEOFF]
	mov	x3, #0
	mov	w4, #0
	mov	w6, #4
	bl	_IKsPropertySet_Get
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_29
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x0, sp, #76
Lloh39:
	adrp	x1, _PIN_CATEGORY_CAPTURE@GOTPAGE
Lloh40:
	ldr	x1, [x1, _PIN_CATEGORY_CAPTURE@GOTPAGEOFF]
	bl	_IsEqualGUID
	cbz	x0, LBB0_29
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [sp, #96]
	bl	_dup_wchar_to_utf8
	mov	x28, x0
	ldur	x0, [x29, #-104]
	add	x1, sp, #64
	bl	_IPin_QueryId
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_62
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [sp, #64]
	bl	_dup_wchar_to_utf8
	mov	x27, x0
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_49
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=1
	cbz	x26, LBB0_38
; %bb.26:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x28
	mov	x1, x26
	bl	_strcmp
	cbz	x0, LBB0_38
; %bb.27:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x27
	mov	x1, x26
	bl	_strcmp
	cbz	x0, LBB0_38
; %bb.28:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh41:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	stp	x27, x26, [sp, #8]
	str	x28, [sp]
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
Lloh44:
	adrp	x2, l_.str.7@PAGE
Lloh45:
	add	x2, x2, l_.str.7@PAGEOFF
	bl	_av_log
	b	LBB0_50
LBB0_29:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x26, #0
	mov	x28, #0
	mov	x27, #0
LBB0_30:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [sp, #112]
	cbz	x0, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_18 Depth=1
	bl	_IEnumMediaTypes_Release
LBB0_32:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [sp, #120]
	cbz	x0, LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_18 Depth=1
	bl	_IKsPropertySet_Release
LBB0_34:                                ;   in Loop: Header=BB0_18 Depth=1
	ldur	x0, [x29, #-104]
	cmp	x26, x0
	b.eq	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_18 Depth=1
	bl	_IPin_Release
LBB0_36:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x28
	bl	_av_free
	mov	x0, x27
	bl	_av_free
	ldr	x0, [sp, #64]
	cbz	x0, LBB0_17
; %bb.37:                               ;   in Loop: Header=BB0_18 Depth=1
	bl	_CoTaskMemFree
	b	LBB0_17
LBB0_38:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_40
; %bb.39:                               ;   in Loop: Header=BB0_18 Depth=1
	ldur	x2, [x29, #-104]
	sub	x3, x29, #108
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	mov	x1, x21
	bl	_dshow_cycle_formats
	ldur	w8, [x29, #-108]
	cbz	w8, LBB0_50
LBB0_40:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh46:
	adrp	x8, _AudioDevice@GOTPAGE
Lloh47:
	ldr	x8, [x8, _AudioDevice@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_44
; %bb.41:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x24, #40]
	cbz	x8, LBB0_44
; %bb.42:                               ;   in Loop: Header=BB0_18 Depth=1
	ldur	x1, [x29, #-104]
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	bl	_dshow_set_audio_buffer_size
	tbz	x0, #63, LBB0_44
; %bb.43:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh49:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh50:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	ldr	x8, [x24, #40]
	str	x8, [sp]
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
Lloh52:
	adrp	x2, l_.str.8@PAGE
Lloh53:
	add	x2, x2, l_.str.8@PAGEOFF
	bl	_av_log
LBB0_44:                                ;   in Loop: Header=BB0_18 Depth=1
	ldur	x0, [x29, #-104]
	add	x1, sp, #112
	bl	_IPin_EnumMediaTypes
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_50
; %bb.45:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [sp, #112]
	bl	_IEnumMediaTypes_Reset
	ldr	x0, [sp, #112]
	add	x2, sp, #80
	mov	w1, #1
	mov	x3, #0
	bl	_IEnumMediaTypes_Next
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_50
; %bb.46:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
Lloh54:
	adrp	x9, l___const.dshow_cycle_pins.mediatype@PAGE
Lloh55:
	add	x9, x9, l___const.dshow_cycle_pins.mediatype@PAGEOFF
	ldr	x26, [x9, x8, lsl #3]
LBB0_47:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [sp, #80]
	mov	x1, x26
	bl	_IsEqualGUID
	cbnz	x0, LBB0_51
; %bb.48:                               ;   in Loop: Header=BB0_47 Depth=2
	ldr	x0, [sp, #80]
	bl	_CoTaskMemFree
	ldr	x0, [sp, #112]
	add	x2, sp, #80
	mov	w1, #1
	mov	x3, #0
	bl	_IEnumMediaTypes_Next
	ldr	w8, [x20]
	cmp	w0, w8
	b.eq	LBB0_47
	b	LBB0_50
LBB0_49:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh56:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh57:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	stp	x28, x27, [sp]
	ldr	x26, [sp, #48]                  ; 8-byte Folded Reload
	mov	x0, x26
Lloh59:
	adrp	x2, l_.str.6@PAGE
Lloh60:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_av_log
	ldur	x2, [x29, #-104]
	mov	x0, x26
	mov	x1, x21
	mov	x3, #0
	bl	_dshow_cycle_formats
LBB0_50:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x26, #0
	b	LBB0_30
LBB0_51:                                ;   in Loop: Header=BB0_18 Depth=1
	ldur	x26, [x29, #-104]
Lloh61:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh62:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	stp	x28, x8, [sp]
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
Lloh64:
	adrp	x2, l_.str.9@PAGE
Lloh65:
	add	x2, x2, l_.str.9@PAGEOFF
	bl	_av_log
	b	LBB0_30
LBB0_52:
Lloh66:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh67:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
Lloh69:
	adrp	x2, l_.str.3@PAGE
Lloh70:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x23
	b	LBB0_64
LBB0_53:
	mov	x26, #0
LBB0_54:
	ldur	x0, [x29, #-96]
	bl	_IEnumPins_Release
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_58
; %bb.55:
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_59
; %bb.56:
	ldur	w8, [x29, #-108]
	cbnz	w8, LBB0_59
; %bb.57:
Lloh71:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh72:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	str	x8, [sp]
Lloh74:
	adrp	x2, l_.str.10@PAGE
Lloh75:
	add	x2, x2, l_.str.10@PAGEOFF
	b	LBB0_63
LBB0_58:
	mov	w0, #0
	b	LBB0_65
LBB0_59:
	cmp	w25, w22
	b.ne	LBB0_61
; %bb.60:
	mov	w0, #0
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	str	x26, [x8]
	b	LBB0_65
LBB0_61:
Lloh76:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh77:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	str	x8, [sp]
Lloh79:
	adrp	x2, l_.str.11@PAGE
Lloh80:
	add	x2, x2, l_.str.11@PAGEOFF
	b	LBB0_63
LBB0_62:
Lloh81:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh82:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh83:
	ldr	w1, [x8]
Lloh84:
	adrp	x2, l_.str.5@PAGE
Lloh85:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_63:
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
LBB0_64:
	bl	_av_log
Lloh86:
	adrp	x8, _EIO@GOTPAGE
Lloh87:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh88:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_65:
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIATYPE_Video,4,2            ; @MEDIATYPE_Video
	.comm	_MEDIATYPE_Audio,4,2            ; @MEDIATYPE_Audio
	.section	__DATA,__const
	.p2align	3                               ; @__const.dshow_cycle_pins.mediatype
l___const.dshow_cycle_pins.mediatype:
	.quad	_MEDIATYPE_Video
	.quad	_MEDIATYPE_Audio

	.comm	_VideoDevice,4,2                ; @VideoDevice
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"video"

l_.str.1:                               ; @.str.1
	.asciz	"audio only"

	.comm	_VideoSourceDevice,4,2          ; @VideoSourceDevice
l_.str.2:                               ; @.str.2
	.asciz	"audio"

	.comm	_AV_PIX_FMT_NONE,8,3            ; @AV_PIX_FMT_NONE
	.comm	_AV_CODEC_ID_RAWVIDEO,8,3       ; @AV_CODEC_ID_RAWVIDEO
	.comm	_AudioDevice,4,2                ; @AudioDevice
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"Could not enumerate pins.\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
l_.str.4:                               ; @.str.4
	.asciz	"DirectShow %s device options (from %s devices)\n"

	.comm	_PINDIR_OUTPUT,8,3              ; @PINDIR_OUTPUT
	.comm	_IID_IKsPropertySet,4,2         ; @IID_IKsPropertySet
	.comm	_AMPROPSETID_Pin,4,2            ; @AMPROPSETID_Pin
	.comm	_AMPROPERTY_PIN_CATEGORY,4,2    ; @AMPROPERTY_PIN_CATEGORY
	.comm	_PIN_CATEGORY_CAPTURE,4,2       ; @PIN_CATEGORY_CAPTURE
l_.str.5:                               ; @.str.5
	.asciz	"Could not query pin id\n"

l_.str.6:                               ; @.str.6
	.asciz	" Pin \"%s\" (alternative pin name \"%s\")\n"

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.7:                               ; @.str.7
	.asciz	"skipping pin \"%s\" (\"%s\") != requested \"%s\"\n"

l_.str.8:                               ; @.str.8
	.asciz	"unable to set audio buffer size %d to pin, using pin anyway..."

l_.str.9:                               ; @.str.9
	.asciz	"Selecting pin %s on %s\n"

l_.str.10:                              ; @.str.10
	.asciz	"Could not set %s options\n"

l_.str.11:                              ; @.str.11
	.asciz	"Could not find output pin from %s capture device.\n"

	.no_dead_strip	_dshow_cycle_pins
.subsections_via_symbols
