	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unregister_mediatypes_parsing
_unregister_mediatypes_parsing:         ## @unregister_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	$184, %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	_HKEY_CLASSES_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mediatype_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movq	_KEY_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	-216(%rbp), %r8
	xorl	%edx, %edx
	callq	_RegOpenKeyExW
	movq	_ERROR_FILE_NOT_FOUND@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %rbx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_13
## %bb.2:
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.3:
	leaq	-208(%rbp), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rsi
	movl	$39, %edx
	callq	_StringFromGUID2
	movl	-216(%rbp), %edi
	movq	_KEY_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r14, %rsi
	xorl	%edx, %edx
	leaq	-212(%rbp), %r8
	callq	_RegOpenKeyExW
	movq	%rax, %rbx
	movq	(%r13), %rax
	cmpq	(%r15), %rbx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	cmpq	%rax, %rbx
	je	LBB0_4
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rax, %rbx
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rdi
	movq	%r14, %rsi
	movl	$39, %edx
	callq	_StringFromGUID2
	movl	-212(%rbp), %edi
	movq	%r14, %rsi
	callq	_RegDeleteTreeW
	movl	-212(%rbp), %edi
	xorl	%esi, %esi
	callq	_RegDeleteKeyW
	movq	%rax, %rbx
	movq	_ERROR_ACCESS_DENIED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rbx
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-212(%rbp), %edi
	callq	_RegCloseKey
	movq	(%r13), %rax
	cmpq	%rax, %rbx
	jne	LBB0_12
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r12), %rdi
	addq	$16, %r12
	movq	%rax, %rbx
	testq	%rdi, %rdi
	jne	LBB0_5
LBB0_12:
	movl	-216(%rbp), %edi
	callq	_RegCloseKey
	cmpq	(%r13), %rbx
	jne	LBB0_13
LBB0_14:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_15
LBB0_13:
	movq	%rbx, %rdi
	callq	_HRESULT_FROM_WIN32
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HKEY_CLASSES_ROOT,4,2          ## @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	_ERROR_FILE_NOT_FOUND,8,3       ## @ERROR_FILE_NOT_FOUND
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_ERROR_ACCESS_DENIED,8,3        ## @ERROR_ACCESS_DENIED
	.no_dead_strip	_unregister_mediatypes_parsing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unregister_mediatypes_parsing
_unregister_mediatypes_parsing:         ; @unregister_mediatypes_parsing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	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
	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, #-72]
Lloh5:
	ldr	w0, [x9]
Lloh6:
	adrp	x8, _mediatype_name@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mediatype_name@GOTPAGEOFF]
Lloh8:
	adrp	x21, _KEY_READ@GOTPAGE
Lloh9:
	ldr	x21, [x21, _KEY_READ@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	ldr	w8, [x21]
Lloh11:
	adrp	x22, _KEY_WRITE@GOTPAGE
Lloh12:
	ldr	x22, [x22, _KEY_WRITE@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w3, w9, w8
	add	x4, sp, #8
	mov	w2, #0
	bl	_RegOpenKeyExW
Lloh13:
	adrp	x24, _ERROR_FILE_NOT_FOUND@GOTPAGE
Lloh14:
	ldr	x24, [x24, _ERROR_FILE_NOT_FOUND@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.1:
	mov	x20, x0
Lloh15:
	adrp	x23, _ERROR_SUCCESS@GOTPAGE
Lloh16:
	ldr	x23, [x23, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.2:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.3:
Lloh17:
	adrp	x25, _ERROR_ACCESS_DENIED@GOTPAGE
Lloh18:
	ldr	x25, [x25, _ERROR_ACCESS_DENIED@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	w2, #39
	bl	_StringFromGUID2
	ldr	w0, [sp, #8]
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w3, w9, w8
	add	x1, sp, #12
	add	x4, sp, #4
	mov	w2, #0
	bl	_RegOpenKeyExW
	ldr	x9, [x24]
	ldr	x8, [x23]
	mov	x20, x8
	cmp	x0, x9
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19]
	add	x1, sp, #12
	mov	w2, #39
	bl	_StringFromGUID2
	ldr	w0, [sp, #4]
	add	x1, sp, #12
	bl	_RegDeleteTreeW
	ldr	w0, [sp, #4]
	mov	w1, #0
	bl	_RegDeleteKeyW
	ldr	x8, [x25]
	ldr	x9, [x23]
	cmp	x0, x8
	csel	x20, x9, x0, eq
	ldr	w0, [sp, #4]
	bl	_RegCloseKey
	ldr	x8, [x23]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x20, x8
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19, #24]
	add	x19, x19, #16
	mov	x20, x8
	cbnz	x0, LBB0_4
	b	LBB0_10
LBB0_9:
	mov	x20, x0
LBB0_10:
	ldr	w0, [sp, #8]
	bl	_RegCloseKey
	ldr	x8, [x23]
	cmp	x20, x8
	b.ne	LBB0_12
LBB0_11:
Lloh19:
	adrp	x8, _S_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	bl	_HRESULT_FROM_WIN32
LBB0_13:
	ldur	x8, [x29, #-72]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	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
	add	sp, sp, #256
	ret
LBB0_15:
	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	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_HKEY_CLASSES_ROOT,4,2          ; @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	_ERROR_FILE_NOT_FOUND,8,3       ; @ERROR_FILE_NOT_FOUND
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_ERROR_ACCESS_DENIED,8,3        ; @ERROR_ACCESS_DENIED
	.no_dead_strip	_unregister_mediatypes_parsing
.subsections_via_symbols
