	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_extensions
_process_extensions:                    ## @process_extensions
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%r8, %r12
	movq	%rcx, %r15
	movq	%rdx, %r13
	movl	%edi, %ebx
	movl	%esi, %edi
	callq	_PathFindExtensionW
	movq	_E_FAIL@GOTPCREL(%rip), %r14
	cmpb	$46, (%rax)
	jne	LBB0_22
## %bb.3:
	movq	_KEY_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-104(%rbp), %r8
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_RegOpenKeyExW
	testq	%rax, %rax
	jne	LBB0_22
## %bb.4:
	movq	%r12, %rbx
	testq	%r13, %r13
	je	LBB0_7
## %bb.5:
	movl	$39, -100(%rbp)
	movl	-104(%rbp), %edi
	movq	_mediatype_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %r8
	leaq	-100(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_RegQueryValueExW
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	leaq	-96(%rbp), %rdi
	movq	%r13, %rsi
	callq	_CLSIDFromString
LBB0_7:
	xorl	%r12d, %r12d
LBB0_8:
	testq	%r15, %r15
	je	LBB0_11
## %bb.9:
	movl	$39, -100(%rbp)
	testq	%r12, %r12
	jne	LBB0_11
## %bb.10:
	movl	-104(%rbp), %edi
	movq	_subtype_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %r13
	leaq	-100(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r13d, %r8d
	callq	_RegQueryValueExW
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_14
LBB0_11:
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.12:
	movl	$39, -100(%rbp)
	testq	%r12, %r12
	jne	LBB0_19
## %bb.13:
	leaq	-96(%rbp), %r13
	jmp	LBB0_16
LBB0_1:
	movq	_E_POINTER@GOTPCREL(%rip), %r14
LBB0_22:
	movl	(%r14), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_24
## %bb.23:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	-104(%rbp), %edi
	callq	_RegCloseKey
	testq	%r12, %r12
	jne	LBB0_22
	jmp	LBB0_21
LBB0_14:
	leaq	-96(%rbp), %rdi
	movq	%r15, %rsi
	callq	_CLSIDFromString
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.15:
	movl	$39, -100(%rbp)
LBB0_16:
	movl	-104(%rbp), %edi
	movq	_source_filter_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-100(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r13d, %r8d
	callq	_RegQueryValueExW
	testq	%rax, %rax
	je	LBB0_17
LBB0_19:
	movl	-104(%rbp), %edi
	callq	_RegCloseKey
	jmp	LBB0_22
LBB0_17:
	leaq	-96(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_CLSIDFromString
LBB0_18:
	movl	-104(%rbp), %edi
	callq	_RegCloseKey
LBB0_21:
	movq	_S_OK@GOTPCREL(%rip), %r14
	jmp	LBB0_22
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_E_POINTER,4,2                  ## @E_POINTER
	.comm	_E_FAIL,4,2                     ## @E_FAIL
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_mediatype_name,4,2             ## @mediatype_name
	.comm	_subtype_name,4,2               ## @subtype_name
	.comm	_source_filter_name,4,2         ## @source_filter_name
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_process_extensions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_extensions
_process_extensions:                    ; @process_extensions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	cbz	w1, LBB0_6
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x0
	mov	x0, x1
	bl	_PathFindExtensionW
	ldrb	w8, [x0]
	cmp	w8, #46
	b.ne	LBB0_19
; %bb.2:
	mov	x1, x0
Lloh3:
	adrp	x8, _KEY_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEY_READ@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x4, sp, #12
	mov	x0, x22
	mov	w2, #0
	bl	_RegOpenKeyExW
	cbnz	x0, LBB0_19
; %bb.3:
	cbz	x21, LBB0_7
; %bb.4:
	mov	w8, #39
	str	w8, [sp, #8]
	ldr	w0, [sp, #12]
Lloh6:
	adrp	x8, _mediatype_name@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mediatype_name@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x4, sp, #17
	add	x5, sp, #8
	mov	x2, #0
	mov	x3, #0
	bl	_RegQueryValueExW
	mov	x22, x0
	cbnz	x0, LBB0_8
; %bb.5:
	add	x0, sp, #17
	mov	x1, x21
	bl	_CLSIDFromString
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _E_POINTER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E_POINTER@GOTPAGEOFF]
	b	LBB0_20
LBB0_7:
	mov	x22, #0
LBB0_8:
	cbz	x20, LBB0_11
; %bb.9:
	mov	w8, #39
	str	w8, [sp, #8]
	cbnz	x22, LBB0_11
; %bb.10:
	ldr	w0, [sp, #12]
Lloh11:
	adrp	x8, _subtype_name@GOTPAGE
Lloh12:
	ldr	x8, [x8, _subtype_name@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x21, sp, #17
	add	x4, sp, #17
	add	x5, sp, #8
	mov	x2, #0
	mov	x3, #0
	bl	_RegQueryValueExW
	mov	x22, x0
	cbz	x0, LBB0_15
LBB0_11:
	cbz	x19, LBB0_14
; %bb.12:
	mov	w8, #39
	str	w8, [sp, #8]
	cbnz	x22, LBB0_18
; %bb.13:
	add	x21, sp, #17
	b	LBB0_17
LBB0_14:
	ldr	w0, [sp, #12]
	bl	_RegCloseKey
	cbnz	x22, LBB0_19
	b	LBB0_24
LBB0_15:
	add	x0, sp, #17
	mov	x1, x20
	bl	_CLSIDFromString
	cbz	x19, LBB0_23
; %bb.16:
	mov	w8, #39
	str	w8, [sp, #8]
LBB0_17:
	ldr	w0, [sp, #12]
Lloh14:
	adrp	x8, _source_filter_name@GOTPAGE
Lloh15:
	ldr	x8, [x8, _source_filter_name@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x5, sp, #8
	mov	x2, #0
	mov	x3, #0
	mov	x4, x21
	bl	_RegQueryValueExW
	cbz	x0, LBB0_22
LBB0_18:
	ldr	w0, [sp, #12]
	bl	_RegCloseKey
LBB0_19:
Lloh17:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
	ldur	x8, [x29, #-40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.21:
	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
	add	sp, sp, #112
	ret
LBB0_22:
	add	x0, sp, #17
	mov	x1, x19
	bl	_CLSIDFromString
LBB0_23:
	ldr	w0, [sp, #12]
	bl	_RegCloseKey
LBB0_24:
Lloh22:
	adrp	x8, _S_OK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_20
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_E_POINTER,4,2                  ; @E_POINTER
	.comm	_E_FAIL,4,2                     ; @E_FAIL
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_mediatype_name,4,2             ; @mediatype_name
	.comm	_subtype_name,4,2               ; @subtype_name
	.comm	_source_filter_name,4,2         ; @source_filter_name
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_process_extensions
.subsections_via_symbols
