	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_mediatypes_extension
_register_mediatypes_extension:         ## @register_mediatypes_extension
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -224(%rbp)
	movq	_HKEY_CLASSES_ROOT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_mediatype_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KEY_READ@GOTPCREL(%rip), %r14
	movq	_KEY_WRITE@GOTPCREL(%rip), %r13
	movl	(%r13), %r9d
	orl	(%r14), %r9d
	subq	$8, %rsp
	leaq	-232(%rbp), %rax
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.1:
	movq	-232(%rbp), %rdi
	movq	_extensions_keyname@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %r9d
	orl	(%r14), %r9d
	subq	$8, %rsp
	leaq	-224(%rbp), %rax
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	movq	%rax, %rbx
	cmpq	(%r15), %rax
	jne	LBB0_12
## %bb.2:
	cmpq	$0, 8(%r12)
	je	LBB0_12
## %bb.3:
	addq	$32, %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-224(%rbp), %rdi
	movl	-16(%r12), %esi
	movl	(%r13), %r9d
	orl	(%r14), %r9d
	subq	$8, %rsp
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	leaq	-216(%rbp), %rax
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyExA
	addq	$32, %rsp
	cmpq	(%r15), %rax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-24(%r12), %rdi
	leaq	-208(%rbp), %r14
	movq	%r14, %rsi
	movl	$39, %edx
	callq	_StringFromGUID2
	movq	-216(%rbp), %rbx
	movq	_mediatype_name@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_REG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %r9d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r14, %r13
	movq	_REG_SZ@GOTPCREL(%rip), %r14
	xorl	%edx, %edx
	movl	%r15d, %ecx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r15
	movq	%r13, %r8
	callq	_RegSetValueExW
	movq	%rax, %rbx
	cmpq	(%r15), %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-32(%r12), %rdi
	movq	%r13, %rsi
	movl	$39, %edx
	callq	_StringFromGUID2
	movq	-216(%rbp), %rbx
	movq	_subtype_valuename@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r14), %r13d
	leaq	-208(%rbp), %rdi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %r9d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r15
	xorl	%edx, %edx
	movl	%r13d, %ecx
	leaq	-208(%rbp), %r13
	movq	%r13, %r8
	callq	_RegSetValueExW
	movq	%rax, %rbx
	cmpq	(%r15), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_CLSID_AsyncReader@GOTPCREL(%rip), %rdi
	movq	%r13, %rsi
	movl	$39, %edx
	callq	_StringFromGUID2
	movq	-216(%rbp), %rbx
	movq	_sourcefilter_valuename@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r14), %r13d
	leaq	-208(%rbp), %rdi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %r9d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r15
	xorl	%edx, %edx
	movl	%r13d, %ecx
	leaq	-208(%rbp), %r8
	callq	_RegSetValueExW
	movq	%rax, %rbx
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-216(%rbp), %rdi
	callq	_RegCloseKey
	cmpq	(%r15), %rbx
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%r12)
	leaq	24(%r12), %r12
	movq	_KEY_READ@GOTPCREL(%rip), %r14
	movq	_KEY_WRITE@GOTPCREL(%rip), %r13
	jne	LBB0_4
	jmp	LBB0_12
LBB0_10:
	movq	%rax, %rdi
	jmp	LBB0_17
LBB0_11:
	movq	%rax, %rbx
LBB0_12:
	movq	-232(%rbp), %rdi
	callq	_RegCloseKey
	movq	-224(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_RegCloseKey
LBB0_14:
	cmpq	(%r15), %rbx
	jne	LBB0_16
## %bb.15:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_16:
	movq	%rbx, %rdi
LBB0_17:
	callq	_HRESULT_FROM_WIN32
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_20
## %bb.19:
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_HKEY_CLASSES_ROOT,8,3          ## @HKEY_CLASSES_ROOT
	.comm	_mediatype_name,4,2             ## @mediatype_name
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_KEY_WRITE,4,2                  ## @KEY_WRITE
	.comm	_extensions_keyname,4,2         ## @extensions_keyname
	.comm	_REG_SZ,4,2                     ## @REG_SZ
	.comm	_subtype_valuename,4,2          ## @subtype_valuename
	.comm	_CLSID_AsyncReader,4,2          ## @CLSID_AsyncReader
	.comm	_sourcefilter_valuename,4,2     ## @sourcefilter_valuename
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_register_mediatypes_extension
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_mediatypes_extension
_register_mediatypes_extension:         ; @register_mediatypes_extension
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _HKEY_CLASSES_ROOT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HKEY_CLASSES_ROOT@GOTPAGEOFF]
	str	xzr, [sp, #16]
Lloh5:
	ldr	x0, [x8]
Lloh6:
	adrp	x24, _mediatype_name@GOTPAGE
Lloh7:
	ldr	x24, [x24, _mediatype_name@GOTPAGEOFF]
Lloh8:
	adrp	x25, _KEY_READ@GOTPAGE
Lloh9:
	ldr	x25, [x25, _KEY_READ@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w8, [x25]
Lloh10:
	adrp	x26, _KEY_WRITE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _KEY_WRITE@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w5, w9, w8
	str	xzr, [sp]
	add	x7, sp, #24
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	mov	x6, #0
	bl	_RegCreateKeyExW
Lloh12:
	adrp	x23, _ERROR_SUCCESS@GOTPAGE
Lloh13:
	ldr	x23, [x23, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.1:
	ldr	x0, [sp, #24]
Lloh14:
	adrp	x8, _extensions_keyname@GOTPAGE
Lloh15:
	ldr	x8, [x8, _extensions_keyname@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w5, w9, w8
	str	xzr, [sp]
	add	x7, sp, #16
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	mov	x6, #0
	bl	_RegCreateKeyExW
	mov	x20, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.3:
	add	x27, x19, #16
Lloh17:
	adrp	x28, _REG_SZ@GOTPAGE
Lloh18:
	ldr	x28, [x28, _REG_SZ@GOTPAGEOFF]
Lloh19:
	adrp	x19, _subtype_valuename@GOTPAGE
Lloh20:
	ldr	x19, [x19, _subtype_valuename@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #16]
	ldr	w1, [x27]
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w5, w9, w8
	str	xzr, [sp]
	add	x7, sp, #8
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	mov	x6, #0
	bl	_RegCreateKeyExA
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x0, [x27, #-8]
	add	x1, sp, #36
	mov	w2, #39
	bl	_StringFromGUID2
	ldr	x20, [sp, #8]
	ldr	w21, [x24]
	ldr	w22, [x28]
	add	x0, sp, #36
	bl	_lstrlenW
	lsl	w8, w0, #2
	add	w5, w8, #4
	add	x4, sp, #36
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	x3, x22
	bl	_RegSetValueExW
	mov	x20, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x0, [x27, #-16]
	add	x1, sp, #36
	mov	w2, #39
	bl	_StringFromGUID2
	ldr	x20, [sp, #8]
	ldr	w21, [x19]
	ldr	w22, [x28]
	add	x0, sp, #36
	bl	_lstrlenW
	lsl	w8, w0, #2
	add	w5, w8, #4
	add	x4, sp, #36
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	x3, x22
	bl	_RegSetValueExW
	mov	x20, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #36
Lloh21:
	adrp	x0, _CLSID_AsyncReader@GOTPAGE
Lloh22:
	ldr	x0, [x0, _CLSID_AsyncReader@GOTPAGEOFF]
	mov	w2, #39
	bl	_StringFromGUID2
	ldr	x20, [sp, #8]
Lloh23:
	adrp	x8, _sourcefilter_valuename@GOTPAGE
Lloh24:
	ldr	x8, [x8, _sourcefilter_valuename@GOTPAGEOFF]
Lloh25:
	ldr	w21, [x8]
	ldr	w22, [x28]
	add	x0, sp, #36
	bl	_lstrlenW
	lsl	w8, w0, #2
	add	w5, w8, #4
	add	x4, sp, #36
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	x3, x22
	bl	_RegSetValueExW
	mov	x20, x0
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]
	bl	_RegCloseKey
	ldr	x8, [x23]
	cmp	x20, x8
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27, #16]
	add	x27, x27, #24
	cbnz	x8, LBB0_4
	b	LBB0_11
LBB0_10:
	mov	x20, x0
LBB0_11:
	ldr	x0, [sp, #24]
	bl	_RegCloseKey
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_RegCloseKey
LBB0_13:
	ldr	x8, [x23]
	cmp	x20, x8
	b.ne	LBB0_15
; %bb.14:
Lloh26:
	adrp	x8, _S_OK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_15:
	mov	x0, x20
LBB0_16:
	bl	_HRESULT_FROM_WIN32
LBB0_17:
	ldur	x8, [x29, #-96]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_HKEY_CLASSES_ROOT,8,3          ; @HKEY_CLASSES_ROOT
	.comm	_mediatype_name,4,2             ; @mediatype_name
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_KEY_WRITE,4,2                  ; @KEY_WRITE
	.comm	_extensions_keyname,4,2         ; @extensions_keyname
	.comm	_REG_SZ,4,2                     ; @REG_SZ
	.comm	_subtype_valuename,4,2          ; @subtype_valuename
	.comm	_CLSID_AsyncReader,4,2          ; @CLSID_AsyncReader
	.comm	_sourcefilter_valuename,4,2     ; @sourcefilter_valuename
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_register_mediatypes_extension
.subsections_via_symbols
