	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_EnumMoniker             ## -- Begin function create_EnumMoniker
	.p2align	4, 0x90
_create_EnumMoniker:                    ## @create_EnumMoniker
	.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	$344, %rsp                      ## imm = 0x158
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$64, %edi
	callq	_CoTaskMemAlloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, -376(%rbp)                ## 8-byte Spill
	movq	_IEnumMoniker_Vtbl@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movl	$1, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movl	(%r15), %eax
	movl	%eax, 40(%rbx)
	movq	_clsidW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-368(%rbp), %r12
	movq	%r12, %rdi
	callq	_lstrcpyW
	movq	_backslashW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_lstrcatW
	movq	%r12, %rdi
	callq	_lstrlenW
	cltq
	leaq	-368(,%rax,4), %rsi
	addq	%rbp, %rsi
	movq	_CHARS_IN_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_StringFromGUID2
	movq	_instanceW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_lstrcatW
	movq	_HKEY_CLASSES_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KEY_ENUMERATE_SUB_KEYS@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	leaq	32(%rbx), %r13
	movq	%r12, %rsi
	xorl	%edx, %edx
	movq	%r13, %r8
	callq	_RegOpenKeyExW
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	$0, (%r13)
LBB0_4:
	movq	_wszActiveMovieKey@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-368(%rbp), %r13
	movq	%r13, %rdi
	callq	_lstrcpyW
	movq	%r13, %rdi
	callq	_lstrlenW
	cltq
	leaq	-368(,%rax,4), %rsi
	addq	%rbp, %rsi
	movq	_CHARS_IN_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_StringFromGUID2
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %ecx
	leaq	24(%rbx), %r12
	movq	%r13, %rsi
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_RegOpenKeyExW
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	$0, (%r12)
LBB0_6:
	leaq	8(%rbx), %r12
	addq	$16, %rbx
	movq	%rbx, (%rsp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_DMOEnum
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_IEnumMoniker_Release
	jmp	LBB0_10
LBB0_1:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	-376(%rbp), %rax                ## 8-byte Reload
	movq	%r12, (%rax)
	xorl	%eax, %eax
	callq	_DEVENUM_LockModule
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %ebx
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	addq	$344, %rsp                      ## imm = 0x158
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_IEnumMoniker_Vtbl,4,2          ## @IEnumMoniker_Vtbl
	.comm	_clsidW,4,2                     ## @clsidW
	.comm	_backslashW,4,2                 ## @backslashW
	.comm	_CHARS_IN_GUID,4,2              ## @CHARS_IN_GUID
	.comm	_instanceW,4,2                  ## @instanceW
	.comm	_HKEY_CLASSES_ROOT,4,2          ## @HKEY_CLASSES_ROOT
	.comm	_KEY_ENUMERATE_SUB_KEYS,4,2     ## @KEY_ENUMERATE_SUB_KEYS
	.comm	_wszActiveMovieKey,4,2          ## @wszActiveMovieKey
	.comm	_HKEY_CURRENT_USER,4,2          ## @HKEY_CURRENT_USER
	.comm	_S_OK,4,2                       ## @S_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_EnumMoniker             ; -- Begin function create_EnumMoniker
	.p2align	2
_create_EnumMoniker:                    ; @create_EnumMoniker
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #416
	.cfi_def_cfa_offset 416
	stp	x28, x27, [sp, #320]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #336]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #352]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #368]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #384]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #400]            ; 16-byte Folded Spill
	add	x29, sp, #400
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	w0, #64
	bl	_CoTaskMemAlloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x8, _IEnumMoniker_Vtbl@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEnumMoniker_Vtbl@GOTPAGEOFF]
	mov	x20, x0
	str	x8, [x20, #8]!
	mov	w8, #1
	str	w8, [x0]
	stp	xzr, xzr, [x0, #48]
	ldr	w8, [x21]
	str	w8, [x0, #40]
Lloh5:
	adrp	x8, _clsidW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _clsidW@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x24, sp
	mov	x0, sp
	bl	_lstrcpyW
Lloh8:
	adrp	x8, _backslashW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _backslashW@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_lstrcatW
	mov	x0, sp
	bl	_lstrlenW
	add	x1, x24, w0, sxtw #2
Lloh11:
	adrp	x25, _CHARS_IN_GUID@GOTPAGE
Lloh12:
	ldr	x25, [x25, _CHARS_IN_GUID@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x21
	bl	_StringFromGUID2
Lloh13:
	adrp	x8, _instanceW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _instanceW@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_lstrcatW
Lloh16:
	adrp	x8, _HKEY_CLASSES_ROOT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HKEY_CLASSES_ROOT@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x26, _KEY_ENUMERATE_SUB_KEYS@GOTPAGE
Lloh20:
	ldr	x26, [x26, _KEY_ENUMERATE_SUB_KEYS@GOTPAGEOFF]
	ldr	w3, [x26]
	add	x23, x22, #32
	mov	x1, sp
	mov	w2, #0
	mov	x4, x23
	bl	_RegOpenKeyExW
	cbz	x0, LBB0_3
; %bb.2:
	str	xzr, [x23]
LBB0_3:
Lloh21:
	adrp	x8, _wszActiveMovieKey@GOTPAGE
Lloh22:
	ldr	x8, [x8, _wszActiveMovieKey@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_lstrcpyW
	mov	x0, sp
	bl	_lstrlenW
	add	x1, x24, w0, sxtw #2
	ldr	w2, [x25]
	mov	x0, x21
	bl	_StringFromGUID2
Lloh24:
	adrp	x8, _HKEY_CURRENT_USER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HKEY_CURRENT_USER@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w3, [x26]
	add	x23, x22, #24
	mov	x1, sp
	mov	w2, #0
	mov	x4, x23
	bl	_RegOpenKeyExW
	cbz	x0, LBB0_5
; %bb.4:
	str	xzr, [x23]
LBB0_5:
	add	x6, x22, #16
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_DMOEnum
	mov	x21, x0
	bl	_FAILED
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_IEnumMoniker_Release
	b	LBB0_10
LBB0_7:
Lloh27:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	str	x20, [x19]
	bl	_DEVENUM_LockModule
Lloh29:
	adrp	x8, _S_OK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_9:
	ldr	w21, [x8]
LBB0_10:
	ldur	x8, [x29, #-88]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x21
	ldp	x29, x30, [sp, #400]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #384]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #368]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #352]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #336]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #320]            ; 16-byte Folded Reload
	add	sp, sp, #416
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_IEnumMoniker_Vtbl,4,2          ; @IEnumMoniker_Vtbl
	.comm	_clsidW,4,2                     ; @clsidW
	.comm	_backslashW,4,2                 ; @backslashW
	.comm	_CHARS_IN_GUID,4,2              ; @CHARS_IN_GUID
	.comm	_instanceW,4,2                  ; @instanceW
	.comm	_HKEY_CLASSES_ROOT,4,2          ; @HKEY_CLASSES_ROOT
	.comm	_KEY_ENUMERATE_SUB_KEYS,4,2     ; @KEY_ENUMERATE_SUB_KEYS
	.comm	_wszActiveMovieKey,4,2          ; @wszActiveMovieKey
	.comm	_HKEY_CURRENT_USER,4,2          ; @HKEY_CURRENT_USER
	.comm	_S_OK,4,2                       ; @S_OK
.subsections_via_symbols
