	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unregister_mediatypes_extension
_unregister_mediatypes_extension:       ## @unregister_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, -48(%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), %r13
	movq	_KEY_WRITE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	orl	(%r13), %ecx
	leaq	-56(%rbp), %r8
	xorl	%edx, %edx
	callq	_RegOpenKeyExW
	movq	_ERROR_FILE_NOT_FOUND@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_2
LBB0_1:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_2:
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.3:
	movq	-56(%rbp), %rdi
	movq	_extensions_keyname@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	orl	(%r13), %ecx
	leaq	-48(%rbp), %r8
	xorl	%edx, %edx
	callq	_RegOpenKeyExW
	movq	%rax, %rbx
	movq	(%r15), %rax
	cmpq	(%r12), %rbx
	jne	LBB0_6
## %bb.4:
	movq	%rax, %rbx
	jmp	LBB0_12
LBB0_5:
	movq	%rax, %rdi
	jmp	LBB0_16
LBB0_6:
	cmpq	%rax, %rbx
	jne	LBB0_12
## %bb.7:
	cmpq	$0, 8(%r14)
	je	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	movl	(%r14), %esi
	callq	_RegDeleteTreeA
	movq	(%r15), %rcx
	movq	%rcx, %rbx
	cmpq	(%r12), %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rbx
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rcx, %rbx
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, 24(%r14)
	leaq	16(%r14), %r14
	movq	%rcx, %rbx
	jne	LBB0_8
LBB0_12:
	movq	-56(%rbp), %rdi
	callq	_RegCloseKey
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_RegCloseKey
LBB0_14:
	cmpq	(%r15), %rbx
	je	LBB0_1
## %bb.15:
	movq	%rbx, %rdi
LBB0_16:
	callq	_HRESULT_FROM_WIN32
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_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	_extensions_keyname,4,2         ## @extensions_keyname
	.no_dead_strip	_unregister_mediatypes_extension
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unregister_mediatypes_extension
_unregister_mediatypes_extension:       ; @unregister_mediatypes_extension
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _HKEY_CLASSES_ROOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HKEY_CLASSES_ROOT@GOTPAGEOFF]
	str	xzr, [sp]
Lloh2:
	ldr	x0, [x8]
Lloh3:
	adrp	x8, _mediatype_name@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mediatype_name@GOTPAGEOFF]
Lloh5:
	adrp	x20, _KEY_READ@GOTPAGE
Lloh6:
	ldr	x20, [x20, _KEY_READ@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w8, [x20]
Lloh8:
	adrp	x23, _KEY_WRITE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _KEY_WRITE@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w3, w9, w8
	add	x4, sp, #8
	mov	w2, #0
	bl	_RegOpenKeyExW
Lloh10:
	adrp	x22, _ERROR_FILE_NOT_FOUND@GOTPAGE
Lloh11:
	ldr	x22, [x22, _ERROR_FILE_NOT_FOUND@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_1:
Lloh12:
	adrp	x8, _S_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_15
LBB0_2:
Lloh15:
	adrp	x21, _ERROR_SUCCESS@GOTPAGE
Lloh16:
	ldr	x21, [x21, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.3:
	ldr	x0, [sp, #8]
Lloh17:
	adrp	x8, _extensions_keyname@GOTPAGE
Lloh18:
	ldr	x8, [x8, _extensions_keyname@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w8, [x20]
	ldr	w9, [x23]
	orr	w3, w9, w8
	mov	x4, sp
	mov	w2, #0
	bl	_RegOpenKeyExW
	ldr	x8, [x22]
	ldr	x20, [x21]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.4:
	cmp	x0, x20
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x19, #8]
	mov	x20, x0
	cbz	x8, LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp]
	ldr	w1, [x19]
	bl	_RegDeleteTreeA
	ldr	x8, [x22]
	ldr	x20, [x21]
	cmp	x0, x8
	csel	x8, x20, x0, eq
	cmp	x8, x20
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #24]
	add	x19, x19, #16
	cbnz	x8, LBB0_6
	b	LBB0_10
LBB0_8:
	mov	x20, x0
	b	LBB0_10
LBB0_9:
	mov	x20, x8
LBB0_10:
	ldr	x0, [sp, #8]
	bl	_RegCloseKey
	ldr	x0, [sp]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_RegCloseKey
LBB0_12:
	ldr	x8, [x21]
	cmp	x20, x8
	b.eq	LBB0_1
; %bb.13:
	mov	x0, x20
LBB0_14:
	bl	_HRESULT_FROM_WIN32
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.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	_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	_extensions_keyname,4,2         ; @extensions_keyname
	.no_dead_strip	_unregister_mediatypes_extension
.subsections_via_symbols
