	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_mediatypes_parsing
_register_mediatypes_parsing:           ## @register_mediatypes_parsing
	.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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HKEY_CLASSES_ROOT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_mediatype_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movq	_KEY_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	orl	(%rax), %r9d
	subq	$8, %rsp
	leaq	-248(%rbp), %rax
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	movq	%rax, %r15
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_17
## %bb.1:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	$0, -232(%rbp)
	movq	$0, -224(%rbp)
	leaq	-208(%rbp), %r15
	movq	%r15, %rsi
	movl	$39, %edx
	callq	_StringFromGUID2
	movq	-248(%rbp), %rdi
	movq	_KEY_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %r9d
	subq	$8, %rsp
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	leaq	-232(%rbp), %rax
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	movq	%rax, %r15
	cmpq	(%r14), %rax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rdi
	leaq	-208(%rbp), %r15
	movq	%r15, %rsi
	movl	$39, %edx
	callq	_StringFromGUID2
	movq	-232(%rbp), %rdi
	movq	_KEY_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %r9d
	subq	$8, %rsp
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	leaq	-224(%rbp), %rax
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	movq	%rax, %r15
	cmpq	(%r14), %rax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_CLSID_AsyncReader@GOTPCREL(%rip), %rdi
	leaq	-208(%rbp), %rsi
	movl	$39, %edx
	callq	_StringFromGUID2
	movq	-224(%rbp), %r15
	movq	_sourcefilter_valuename@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_REG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	-208(%rbp), %rdi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %r9d
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	leaq	-208(%rbp), %r8
	callq	_RegSetValueExW
	movq	%rax, %r15
	cmpq	(%r14), %rax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	-211(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_wsprintfA
	movq	-224(%rbp), %r13
	movq	_REG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -236(%rbp)                ## 4-byte Spill
	movq	(%rbx), %rax
	movq	(%rax,%r12,8), %r15
	movq	%r15, %rdi
	callq	_lstrlenA
	movq	%r13, %rdi
	leaq	-211(%rbp), %rsi
	xorl	%edx, %edx
	movl	-236(%rbp), %ecx                ## 4-byte Reload
	movq	%r15, %r8
	movl	%eax, %r9d
	callq	_RegSetValueExA
	movq	%rax, %r15
	cmpq	(%r14), %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=2
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax,%r12,8)
	leaq	1(%r12), %r12
	jne	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-232(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	callq	_RegCloseKey
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-224(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	callq	_RegCloseKey
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	(%r14), %r15
	jne	LBB0_16
## %bb.2:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	40(%rbx), %rdi
	addq	$24, %rbx
	testq	%rdi, %rdi
	jne	LBB0_4
LBB0_16:
	movq	-248(%rbp), %rdi
	callq	_RegCloseKey
	cmpq	(%r14), %r15
	jne	LBB0_17
## %bb.18:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_19
LBB0_17:
	movq	%r15, %rdi
	callq	_HRESULT_FROM_WIN32
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	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,8,3             ## @mediatype_name
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_KEY_WRITE,4,2                  ## @KEY_WRITE
	.comm	_CLSID_AsyncReader,4,2          ## @CLSID_AsyncReader
	.comm	_sourcefilter_valuename,4,2     ## @sourcefilter_valuename
	.comm	_REG_SZ,4,2                     ## @REG_SZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_register_mediatypes_parsing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_mediatypes_parsing
_register_mediatypes_parsing:           ; @register_mediatypes_parsing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #224]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #240]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #256]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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]
Lloh3:
	adrp	x9, _HKEY_CLASSES_ROOT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HKEY_CLASSES_ROOT@GOTPAGEOFF]
	stur	x8, [x29, #-96]
Lloh5:
	ldr	x0, [x9]
Lloh6:
	adrp	x8, _mediatype_name@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mediatype_name@GOTPAGEOFF]
Lloh8:
	adrp	x26, _KEY_READ@GOTPAGE
Lloh9:
	ldr	x26, [x26, _KEY_READ@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	ldr	w8, [x26]
Lloh11:
	adrp	x27, _KEY_WRITE@GOTPAGE
Lloh12:
	ldr	x27, [x27, _KEY_WRITE@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w5, w9, w8
	str	xzr, [sp]
	add	x7, sp, #40
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	mov	x6, #0
	bl	_RegCreateKeyExW
	mov	x22, x0
Lloh13:
	adrp	x28, _ERROR_SUCCESS@GOTPAGE
Lloh14:
	ldr	x28, [x28, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.1:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_16
; %bb.2:
Lloh15:
	adrp	x21, l_.str@PAGE
Lloh16:
	add	x21, x21, l_.str@PAGEOFF
Lloh17:
	adrp	x20, _REG_SZ@GOTPAGE
Lloh18:
	ldr	x20, [x20, _REG_SZ@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	stp	xzr, xzr, [sp, #24]
	add	x1, sp, #52
	mov	w2, #39
	bl	_StringFromGUID2
	ldr	x0, [sp, #40]
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w5, w9, w8
	str	xzr, [sp]
	add	x1, sp, #52
	add	x7, sp, #32
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	mov	x6, #0
	bl	_RegCreateKeyExW
	mov	x22, x0
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #8]
	add	x1, sp, #52
	mov	w2, #39
	bl	_StringFromGUID2
	ldr	x0, [sp, #32]
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w5, w9, w8
	str	xzr, [sp]
	add	x1, sp, #52
	add	x7, sp, #24
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	mov	x6, #0
	bl	_RegCreateKeyExW
	mov	x22, x0
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #52
Lloh19:
	adrp	x0, _CLSID_AsyncReader@GOTPAGE
Lloh20:
	ldr	x0, [x0, _CLSID_AsyncReader@GOTPAGEOFF]
	mov	w2, #39
	bl	_StringFromGUID2
	ldr	x22, [sp, #24]
Lloh21:
	adrp	x8, _sourcefilter_valuename@GOTPAGE
Lloh22:
	ldr	x8, [x8, _sourcefilter_valuename@GOTPAGEOFF]
Lloh23:
	ldr	w23, [x8]
	ldr	w24, [x20]
	add	x0, sp, #52
	bl	_lstrlenW
	lsl	w8, w0, #2
	add	w5, w8, #4
	add	x4, sp, #52
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	mov	x3, x24
	bl	_RegSetValueExW
	mov	x22, x0
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, #0
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #21
	mov	x1, x21
	mov	x2, x23
	bl	_wsprintfA
	ldr	x22, [sp, #24]
	ldr	w24, [x20]
	ldr	x8, [x19]
	ldr	x25, [x8, x23, lsl #3]
	mov	x0, x25
	bl	_lstrlenA
	mov	x5, x0
	add	x1, sp, #21
	mov	x0, x22
	mov	w2, #0
	mov	x3, x24
	mov	x4, x25
	bl	_RegSetValueExA
	mov	x22, x0
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x19]
	add	x8, x8, x23, lsl #3
	add	x23, x23, #1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_8
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #32]
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	bl	_RegCloseKey
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	bl	_RegCloseKey
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x28]
	cmp	x22, x8
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #40]
	add	x19, x19, #24
	cbnz	x0, LBB0_3
LBB0_16:
	ldr	x0, [sp, #40]
	bl	_RegCloseKey
	ldr	x8, [x28]
	cmp	x22, x8
	b.ne	LBB0_18
; %bb.17:
Lloh24:
	adrp	x8, _S_OK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	b	LBB0_19
LBB0_18:
	mov	x0, x22
	bl	_HRESULT_FROM_WIN32
LBB0_19:
	ldur	x8, [x29, #-96]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #240]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_HKEY_CLASSES_ROOT,8,3          ; @HKEY_CLASSES_ROOT
	.comm	_mediatype_name,8,3             ; @mediatype_name
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_KEY_WRITE,4,2                  ; @KEY_WRITE
	.comm	_CLSID_AsyncReader,4,2          ; @CLSID_AsyncReader
	.comm	_sourcefilter_valuename,4,2     ; @sourcefilter_valuename
	.comm	_REG_SZ,4,2                     ; @REG_SZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_register_mediatypes_parsing
.subsections_via_symbols
